From f68d342ee4ab61d10204b38dc3d7c82cfa17ab3e Mon Sep 17 00:00:00 2001 From: DattatreyaReddy Panta <58727124+DattatreyaReddy@users.noreply.github.com> Date: Mon, 26 Feb 2024 09:46:07 +0530 Subject: [PATCH 1/5] completed more and about screen --- .github/workflows/publish.yml | 22 +- .github/workflows/web.yml | 4 +- .vscode/settings.json | 12 +- analysis_options.yaml | 3 +- android/app/build.gradle | 19 +- android/build.gradle | 13 - android/settings.gradle | 33 +- build.yaml | 21 +- lib/main.dart | 7 + lib/src/abstracts/locale_enum.dart | 12 + lib/src/abstracts/value_enum.dart | 5 + lib/src/constants/endpoints.dart | 16 +- lib/src/constants/enum.dart | 72 +- lib/src/constants/navigation_bar_data.dart | 10 +- lib/src/constants/quick_open_help_text.dart | 12 +- .../features/about/data/about_repository.dart | 67 +- .../about/data/about_repository.g.dart | 2 +- .../__generated__/about_query.ast.gql.dart | 112 + .../__generated__/about_query.data.gql.dart | 138 + .../__generated__/about_query.data.gql.g.dart | 872 + .../__generated__/about_query.req.gql.dart | 172 + .../__generated__/about_query.req.gql.g.dart | 714 + .../__generated__/about_query.var.gql.dart | 53 + .../__generated__/about_query.var.gql.g.dart | 168 + .../about/data/graphql/about_query.dart | 11 + .../about/data/graphql/about_query.graphql | 19 + .../{about_model.dart => about_dto.dart} | 12 +- ...el.freezed.dart => about_dto.freezed.dart} | 86 +- .../about/domain/about/about_model.g.dart | 28 - ...r_update_model.dart => server_update.dart} | 6 +- ...reezed.dart => server_update.freezed.dart} | 25 +- .../server_update/server_update_model.g.dart | 21 - .../presentation/about/about_screen.dart | 49 +- .../about/controllers/about_controller.dart | 12 +- .../about/controllers/about_controller.g.dart | 6 +- .../about/widget/app_update_dialog.dart | 8 +- .../about/widget/clipboard_list_tile.dart | 2 +- .../extension_repository.dart | 4 +- .../extension/extension_model.freezed.dart | 2 +- .../domain/filter/filter_model.freezed.dart | 2 +- .../filter_state_model.freezed.dart | 2 +- .../language/language_model.freezed.dart | 2 +- .../domain/manga_page/manga_page.freezed.dart | 2 +- .../domain/source/source_model.freezed.dart | 2 +- .../source_preference.freezed.dart | 2 +- .../source_preference_prop.freezed.dart | 2 +- .../presentation/browse/browse_screen.dart | 6 +- .../extension/extension_screen.dart | 4 +- .../extension_language_filter_dialog.dart | 6 +- .../widgets/extension_list_tile.dart | 18 +- .../widgets/install_extension_file.dart | 4 +- .../global_search/global_search_screen.dart | 6 +- .../widgets/source_short_search.dart | 2 +- .../presentation/source/source_screen.dart | 4 +- .../widgets/source_language_filter.dart | 6 +- .../source/widgets/source_list_tile.dart | 2 +- .../source_manga_list_screen.dart | 4 +- .../source_manga_display_icon_popup.dart | 4 +- .../widgets/source_manga_display_view.dart | 6 +- .../widgets/source_manga_filter.dart | 4 +- .../widgets/source_manga_grid_view.dart | 6 +- .../widgets/source_manga_list_view.dart | 6 +- .../widgets/source_preference_to_widget.dart | 8 +- .../category/category_model.freezed.dart | 2 +- .../category/edit_category_screen.dart | 6 +- .../category/widgets/category_create_fab.dart | 2 +- .../category/widgets/category_tile.dart | 8 +- .../widgets/edit_category_dialog.dart | 18 +- .../library/category_manga_list.dart | 4 +- .../presentation/library/library_screen.dart | 12 +- .../widgets/library_manga_display.dart | 11 +- .../library/widgets/library_manga_filter.dart | 6 +- .../widgets/library_manga_organizer.dart | 6 +- .../domain/chapter/chapter_model.dart | 2 +- .../domain/chapter/chapter_model.freezed.dart | 2 +- .../chapter_batch_model.freezed.dart | 2 +- .../chapter_page_model.freezed.dart | 2 +- .../chapter_put_model.freezed.dart | 2 +- .../downloads/downloads_model.freezed.dart | 2 +- .../downloads_queue_model.freezed.dart | 2 +- .../domain/manga/manga_model.freezed.dart | 2 +- .../update_status_model.freezed.dart | 2 +- .../downloads/downloads_screen.dart | 6 +- .../widgets/download_progress_list_tile.dart | 8 +- .../downloads/widgets/downloads_fab.dart | 4 +- .../manga_details/manga_details_screen.dart | 30 +- .../widgets/big_screen_manga_details.dart | 6 +- .../widgets/chapter_list_tile.dart | 2 +- .../widgets/edit_manga_category_dialog.dart | 8 +- .../widgets/manga_chapter_filter.dart | 10 +- .../widgets/manga_chapter_organizer.dart | 4 +- .../widgets/manga_description.dart | 6 +- .../widgets/small_screen_manga_details.dart | 6 +- .../reader/widgets/chapter_separator.dart | 8 +- .../reader_mode/continuous_reader_mode.dart | 2 +- .../reader_mode/single_page_reader_mode.dart | 2 +- .../reader/widgets/reader_wrapper.dart | 10 +- .../presentation/updates/updates_screen.dart | 10 +- .../manga_book/widgets/update_status_fab.dart | 2 +- .../widgets/update_status_popup_menu.dart | 6 +- .../widgets/update_status_summary_sheet.dart | 10 +- .../domain/quick_search_result.freezed.dart | 2 +- .../quick_search/quick_search_screen.dart | 2 +- .../widgets/quick_search_bar.dart | 2 +- .../controller/settings_controller.dart | 16 + .../controller/settings_controller.g.dart | 178 + .../data/backup/backup_repository.dart | 60 - .../__generated__/settings_query.ast.gql.dart | 547 + .../settings_query.data.gql.dart | 777 + .../settings_query.data.gql.g.dart | 4493 +++ .../__generated__/settings_query.req.gql.dart | 741 + .../settings_query.req.gql.g.dart | 3276 +++ .../__generated__/settings_query.var.gql.dart | 230 + .../settings_query.var.gql.g.dart | 1189 + .../settings/data/graphql/settings_query.dart | 55 + .../data/graphql/settings_query.graphql | 77 + .../settings/data/settings_repository.dart | 82 + .../settings/data/settings_repository.g.dart | 27 + .../domain/automatic_backup_settings_dto.dart | 14 + ...automatic_backup_settings_dto.freezed.dart | 205 + .../domain/backup_missing/backup_missing.dart | 38 - .../backup_missing.freezed.dart | 231 - .../backup_missing/backup_missing.g.dart | 27 - .../settings/domain/restore_status.dart | 18 + .../domain/restore_status.freezed.dart | 189 + .../settings/domain/restore_status.g.dart | 29 + .../settings/enums/restore_state.dart | 24 + .../appearance/appearance_screen.dart | 2 +- .../widgets/grid_cover_min_width.dart | 2 +- .../is_true_black/is_true_black_tile.dart | 2 +- .../automatic_backup_section.dart | 118 + .../backup_and_restore_section.dart | 149 + .../widgets/backup_missing_dialog.dart | 49 + .../widgets/create_backup_dialog.dart | 79 + .../widgets/restore_status_progress.dart | 56 + .../presentation/backup/backup_screen.dart | 88 +- .../backup/widgets/backup_missing_dialog.dart | 68 - .../browse/browse_settings_screen.dart | 4 +- .../show_nsfw_switch/show_nsfw_switch.dart | 2 +- .../presentation/general/general_screen.dart | 12 +- .../quick_search_toggle_tile.dart | 2 +- .../library/library_settings_screen.dart | 4 +- .../presentation/more/more_screen.dart | 12 +- .../reader/reader_settings_screen.dart | 2 +- .../reader_initial_overlay_tile.dart | 4 +- .../reader_invert_tap_tile.dart | 2 +- .../reader_magnifier_size_slider.dart | 4 +- .../reader_mode_tile/reader_mode_tile.dart | 6 +- .../reader_navigation_layout_tile.dart | 6 +- .../reader_padding_slider.dart | 4 +- .../reader_pinch_to_zoom.dart | 2 +- .../reader_scroll_animation_tile.dart | 2 +- .../reader_swipe_chapter_toggle_tile.dart | 4 +- .../reader_volume_tap_invert_tile.dart | 2 +- .../reader_volume_tap_tile.dart | 4 +- .../presentation/server/server_screen.dart | 6 +- .../server/widget/auth_type_tile.dart | 6 +- .../credential_popup/credentials_popup.dart | 14 +- .../settings/settings_screen.dart | 16 +- .../app_theme_mode_tile.dart | 12 +- .../server_port_tile/server_port_tile.dart | 10 +- .../server_url_tile/server_search_button.dart | 4 +- .../server_url_tile/server_url_tile.dart | 10 +- .../global_providers/global_providers.dart | 20 + .../global_providers/global_providers.g.dart | 28 + .../graphql/__generated__/schema.ast.gql.dart | 14282 +++++++++ .../__generated__/schema.schema.gql.dart | 3164 ++ .../__generated__/schema.schema.gql.g.dart | 24155 ++++++++++++++++ .../__generated__/serializers.gql.dart | 362 + .../__generated__/serializers.gql.g.dart | 334 + lib/src/graphql/schema.graphql | 1973 ++ lib/src/l10n/app_en.arb | 61 + lib/src/sorayomi.dart | 2 +- .../utils/extensions/custom_extensions.dart | 5 + .../async_value_extensions.dart | 8 +- .../custom_extensions/context_extensions.dart | 34 +- .../date_time_extensions.dart | 6 +- .../custom_extensions/ferry_extensions.dart | 29 + .../custom_extensions/int_extensions.dart | 30 +- .../custom_extensions/string_extensions.dart | 18 + lib/src/utils/hooks/polling_hook.dart | 35 + lib/src/utils/launch_url_in_web.dart | 2 +- lib/src/utils/misc/app_utils.dart | 56 +- lib/src/utils/misc/file_picker_utils.dart | 56 + lib/src/utils/misc/toast/toast.dart | 53 +- lib/src/utils/misc/upload_serializer.dart | 30 + lib/src/utils/storage/dio/dio_client.dart | 2 +- .../storage/{ => dio}/dio_error_util.dart | 0 .../utils/storage/ferry/network_module.dart | 56 + .../storage/ferry/network_module.g.dart} | 20 +- .../async_buttons/async_elevated_button.dart | 34 + .../async_buttons/async_list_tile.dart | 42 + .../async_buttons/async_outline_button.dart | 32 + .../manga_cover_descriptive_list_tile.dart | 6 +- .../manga_cover/widgets/manga_chips.dart | 10 +- .../multi_select_popup.dart | 6 +- .../{ => popup_widgets}/pop_button.dart | 4 +- .../{ => popup_widgets}/radio_list_popup.dart | 4 +- .../widgets/popup_widgets/slider_popup.dart | 89 + .../{ => popup_widgets}/text_field_popup.dart | 16 +- lib/src/widgets/search_field.dart | 2 +- lib/src/widgets/section_title.dart | 14 + lib/src/widgets/server_image.dart | 8 +- .../shell/big_screen_navigation_bar.dart | 2 +- lib/src/widgets/shell/shell_screen.dart | 30 +- macos/Podfile.lock | 18 +- macos/Runner.xcodeproj/project.pbxproj | 2 +- .../xcshareddata/xcschemes/Runner.xcscheme | 2 +- pubspec.lock | 352 +- pubspec.yaml | 8 + 210 files changed, 60748 insertions(+), 1245 deletions(-) create mode 100644 lib/src/abstracts/locale_enum.dart create mode 100644 lib/src/abstracts/value_enum.dart create mode 100644 lib/src/features/about/data/graphql/__generated__/about_query.ast.gql.dart create mode 100644 lib/src/features/about/data/graphql/__generated__/about_query.data.gql.dart create mode 100644 lib/src/features/about/data/graphql/__generated__/about_query.data.gql.g.dart create mode 100644 lib/src/features/about/data/graphql/__generated__/about_query.req.gql.dart create mode 100644 lib/src/features/about/data/graphql/__generated__/about_query.req.gql.g.dart create mode 100644 lib/src/features/about/data/graphql/__generated__/about_query.var.gql.dart create mode 100644 lib/src/features/about/data/graphql/__generated__/about_query.var.gql.g.dart create mode 100644 lib/src/features/about/data/graphql/about_query.dart create mode 100644 lib/src/features/about/data/graphql/about_query.graphql rename lib/src/features/about/domain/about/{about_model.dart => about_dto.dart} (70%) rename lib/src/features/about/domain/about/{about_model.freezed.dart => about_dto.freezed.dart} (77%) delete mode 100644 lib/src/features/about/domain/about/about_model.g.dart rename lib/src/features/about/domain/server_update/{server_update_model.dart => server_update.dart} (73%) rename lib/src/features/about/domain/server_update/{server_update_model.freezed.dart => server_update.freezed.dart} (89%) delete mode 100644 lib/src/features/about/domain/server_update/server_update_model.g.dart create mode 100644 lib/src/features/settings/controller/settings_controller.dart create mode 100644 lib/src/features/settings/controller/settings_controller.g.dart delete mode 100644 lib/src/features/settings/data/backup/backup_repository.dart create mode 100644 lib/src/features/settings/data/graphql/__generated__/settings_query.ast.gql.dart create mode 100644 lib/src/features/settings/data/graphql/__generated__/settings_query.data.gql.dart create mode 100644 lib/src/features/settings/data/graphql/__generated__/settings_query.data.gql.g.dart create mode 100644 lib/src/features/settings/data/graphql/__generated__/settings_query.req.gql.dart create mode 100644 lib/src/features/settings/data/graphql/__generated__/settings_query.req.gql.g.dart create mode 100644 lib/src/features/settings/data/graphql/__generated__/settings_query.var.gql.dart create mode 100644 lib/src/features/settings/data/graphql/__generated__/settings_query.var.gql.g.dart create mode 100644 lib/src/features/settings/data/graphql/settings_query.dart create mode 100644 lib/src/features/settings/data/graphql/settings_query.graphql create mode 100644 lib/src/features/settings/data/settings_repository.dart create mode 100644 lib/src/features/settings/data/settings_repository.g.dart create mode 100644 lib/src/features/settings/domain/automatic_backup_settings_dto.dart create mode 100644 lib/src/features/settings/domain/automatic_backup_settings_dto.freezed.dart delete mode 100644 lib/src/features/settings/domain/backup_missing/backup_missing.dart delete mode 100644 lib/src/features/settings/domain/backup_missing/backup_missing.freezed.dart delete mode 100644 lib/src/features/settings/domain/backup_missing/backup_missing.g.dart create mode 100644 lib/src/features/settings/domain/restore_status.dart create mode 100644 lib/src/features/settings/domain/restore_status.freezed.dart create mode 100644 lib/src/features/settings/domain/restore_status.g.dart create mode 100644 lib/src/features/settings/enums/restore_state.dart create mode 100644 lib/src/features/settings/presentation/backup/automatic_backup/automatic_backup_section.dart create mode 100644 lib/src/features/settings/presentation/backup/backup_and_restore/backup_and_restore_section.dart create mode 100644 lib/src/features/settings/presentation/backup/backup_and_restore/widgets/backup_missing_dialog.dart create mode 100644 lib/src/features/settings/presentation/backup/backup_and_restore/widgets/create_backup_dialog.dart create mode 100644 lib/src/features/settings/presentation/backup/backup_and_restore/widgets/restore_status_progress.dart delete mode 100644 lib/src/features/settings/presentation/backup/widgets/backup_missing_dialog.dart create mode 100644 lib/src/graphql/__generated__/schema.ast.gql.dart create mode 100644 lib/src/graphql/__generated__/schema.schema.gql.dart create mode 100644 lib/src/graphql/__generated__/schema.schema.gql.g.dart create mode 100644 lib/src/graphql/__generated__/serializers.gql.dart create mode 100644 lib/src/graphql/__generated__/serializers.gql.g.dart create mode 100644 lib/src/graphql/schema.graphql create mode 100644 lib/src/utils/extensions/custom_extensions/ferry_extensions.dart create mode 100644 lib/src/utils/hooks/polling_hook.dart create mode 100644 lib/src/utils/misc/file_picker_utils.dart create mode 100644 lib/src/utils/misc/upload_serializer.dart rename lib/src/utils/storage/{ => dio}/dio_error_util.dart (100%) create mode 100644 lib/src/utils/storage/ferry/network_module.dart rename lib/src/{features/settings/data/backup/backup_repository.g.dart => utils/storage/ferry/network_module.g.dart} (53%) create mode 100644 lib/src/widgets/async_buttons/async_elevated_button.dart create mode 100644 lib/src/widgets/async_buttons/async_list_tile.dart create mode 100644 lib/src/widgets/async_buttons/async_outline_button.dart rename lib/src/widgets/{ => popup_widgets}/multi_select_popup.dart (96%) rename lib/src/widgets/{ => popup_widgets}/pop_button.dart (83%) rename lib/src/widgets/{ => popup_widgets}/radio_list_popup.dart (96%) create mode 100644 lib/src/widgets/popup_widgets/slider_popup.dart rename lib/src/widgets/{ => popup_widgets}/text_field_popup.dart (82%) create mode 100644 lib/src/widgets/section_title.dart diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 62dc169f..fb7952fe 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -42,30 +42,37 @@ jobs: steps: - uses: subosito/flutter-action@v2 with: - channel: 'stable' + channel: "stable" + # Install Linux dependencies - name: Install Linux dependencies if: matrix.target == 'linux' run: | sudo apt-get update -y sudo apt-get install -y libgtk-3-dev libx11-dev pkg-config cmake ninja-build libblkid-dev + + # Install Android dependencies - name: Install Android dependencies if: matrix.target == 'android' uses: actions/setup-java@v3 with: - distribution: 'zulu' + distribution: "zulu" java-version: "12.x" + # Enable desktop support - name: Enable desktop support if: matrix.target != 'android' && matrix.target != 'ios' && matrix.target != 'web' run: | flutter config --enable-linux-desktop flutter config --enable-macos-desktop flutter config --enable-windows-desktop + + # Recreating the project - run: flutter doctor -v - uses: actions/checkout@v3 # - run: flutter create . - run: flutter pub get + # Configure Keystore for Android - name: Configure Keystore for Android if: matrix.target == 'android' working-directory: android @@ -76,15 +83,19 @@ jobs: echo "storePassword=${{ secrets.KEYSTORE_STORE_PASSWORD }}" >> key.properties echo "keyPassword=${{ secrets.KEYSTORE_KEY_PASSWORD }}" >> key.properties + # Build the project for the target platform - if: matrix.target != 'android' && matrix.target != 'ios' run: flutter build ${{ matrix.target }} --release + - if: matrix.target == 'android' run: | flutter build apk --release flutter build apk --split-per-abi --release + - if: matrix.target == 'ios' run: flutter build ios --release --no-codesign + # Windows packaging - name: Copy VC redistributables to release directory for Windows if: matrix.target == 'windows' working-directory: ${{ matrix.build_path }} @@ -92,6 +103,8 @@ jobs: Copy-Item (vswhere -latest -find 'VC\Redist\MSVC\*\x64\*\msvcp140.dll') . Copy-Item (vswhere -latest -find 'VC\Redist\MSVC\*\x64\*\vcruntime140.dll') . Copy-Item (vswhere -latest -find 'VC\Redist\MSVC\*\x64\*\vcruntime140_1.dll') . + + # Android packaging - name: Rename build for Android if: matrix.target == 'android' working-directory: ${{ matrix.build_path }} @@ -126,6 +139,7 @@ jobs: cp "$GITHUB_WORKSPACE/assets/icons/launcher/sorayomi_icon.png" "./${{ env.pkg_name }}.png" GZIP=-9 tar czf "$GITHUB_WORKSPACE/${{ env.pkg_name }}-${{ github.ref_name }}-${{ matrix.target }}-x64.tar.gz" * + # Debian packaging - name: Build deb package if: matrix.target == 'linux' run: | @@ -143,14 +157,18 @@ jobs: debuild --no-lintian -us -uc cp "../${{ env.pkg_name }}_${{ github.ref_name }}-1_amd64.deb" "$GITHUB_WORKSPACE/" + # macOS packaging - name: Compress build for macOS if: matrix.target == 'macos' working-directory: ${{ matrix.build_path }} run: ditto -c -k --sequesterRsrc --keepParent "Tachidesk Sorayomi.app" "$GITHUB_WORKSPACE/${{ env.pkg_name }}-${{ github.ref_name }}-${{ matrix.target }}-x64.zip" + + # Windows packaging - name: Compress build for Windows if: matrix.target == 'windows' working-directory: ${{ matrix.build_path }} run: compress-archive -Path * -DestinationPath "${env:GITHUB_WORKSPACE}\${{ env.pkg_name }}-${{ github.ref_name }}-${{ matrix.target }}-x64.zip" + - name: Create MSI Package if: matrix.target == 'windows' && startsWith(github.ref, 'refs/tags/') working-directory: ${{ matrix.build_path }} diff --git a/.github/workflows/web.yml b/.github/workflows/web.yml index 25782b44..8e7c9f69 100644 --- a/.github/workflows/web.yml +++ b/.github/workflows/web.yml @@ -1,5 +1,5 @@ # Copyright (c) 2022 Contributors to the Suwayomi project -# +# # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. @@ -23,4 +23,4 @@ jobs: channel: 'stable' - uses: bluefireteam/flutter-gh-pages@v7 with: - baseHref: /Tachidesk-Sorayomi/ \ No newline at end of file + baseHref: /Tachidesk-Sorayomi/ diff --git a/.vscode/settings.json b/.vscode/settings.json index aea96891..6331c984 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -27,5 +27,15 @@ ], "licenser.license": "MPLv2", "licenser.projectName": "Tachidesk-Sorayomi", - "licenser.author": "Contributors to the Suwayomi project" + "licenser.author": "Contributors to the Suwayomi project", + "files.exclude": { + "**/__generated__": true, + "**/*.ast.gql.dart": true, + "**/*.data.gql.dart": true, + "**/*.freezed.dart": true, + "**/*.g.dart": true, + "**/*.gql.g.dart": true, + "**/*.req.gql.dart": true, + "**/*.var.gql.dart": true + } } diff --git a/analysis_options.yaml b/analysis_options.yaml index bc304fd8..bfeb970f 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -34,6 +34,7 @@ analyzer: - "**/*.gform.dart" - "**/*.g.dart" - "**/*.freezed.dart" + - "**/*.gql.dart" errors: - invalid_annotation_target: ignore \ No newline at end of file + invalid_annotation_target: ignore diff --git a/android/app/build.gradle b/android/app/build.gradle index 84de668d..9f3fea11 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -1,3 +1,9 @@ +plugins { + id "com.android.application" + id "kotlin-android" + id "dev.flutter.flutter-gradle-plugin" +} + def localProperties = new Properties() def localPropertiesFile = rootProject.file('local.properties') if (localPropertiesFile.exists()) { @@ -6,11 +12,6 @@ if (localPropertiesFile.exists()) { } } -def flutterRoot = localProperties.getProperty('flutter.sdk') -if (flutterRoot == null) { - throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") -} - def flutterVersionCode = localProperties.getProperty('flutter.versionCode') if (flutterVersionCode == null) { flutterVersionCode = '1' @@ -21,10 +22,6 @@ if (flutterVersionName == null) { flutterVersionName = '1.0' } -apply plugin: 'com.android.application' -apply plugin: 'kotlin-android' -apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" - def keystoreProperties = new Properties() def keystorePropertiesFile = rootProject.file('key.properties') if (keystorePropertiesFile.exists()) { @@ -78,6 +75,4 @@ flutter { source '../..' } -dependencies { - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" -} +dependencies {} diff --git a/android/build.gradle b/android/build.gradle index 9bc02fa3..bc157bd1 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,16 +1,3 @@ -buildscript { - ext.kotlin_version = '1.8.20' - repositories { - google() - mavenCentral() - } - - dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - } -} - allprojects { repositories { google() diff --git a/android/settings.gradle b/android/settings.gradle index 44e62bcf..e7aeae34 100644 --- a/android/settings.gradle +++ b/android/settings.gradle @@ -1,11 +1,28 @@ -include ':app' +pluginManagement { + def flutterSdkPath = { + def properties = new Properties() + file("local.properties").withInputStream { properties.load(it) } + def flutterSdkPath = properties.getProperty("flutter.sdk") + assert flutterSdkPath != null, "flutter.sdk not set in local.properties" + return flutterSdkPath + } + settings.ext.flutterSdkPath = flutterSdkPath() -def localPropertiesFile = new File(rootProject.projectDir, "local.properties") -def properties = new Properties() + includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle") -assert localPropertiesFile.exists() -localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } + repositories { + google() + mavenCentral() + gradlePluginPortal() + } +} -def flutterSdkPath = properties.getProperty("flutter.sdk") -assert flutterSdkPath != null, "flutter.sdk not set in local.properties" -apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" +plugins { + id "dev.flutter.flutter-plugin-loader" version "1.0.0" + id "com.android.application" version "7.3.0" apply false + id "org.jetbrains.kotlin.android" version "1.7.10" apply false + id "com.google.gms.google-services" version "4.4.0" apply false + id "com.google.firebase.crashlytics" version "2.9.9" apply false +} + +include ":app" diff --git a/build.yaml b/build.yaml index aaa6e0dd..aab320fd 100644 --- a/build.yaml +++ b/build.yaml @@ -3,4 +3,23 @@ targets: builders: json_serializable: options: - explicit_to_json: true \ No newline at end of file + explicit_to_json: true + ferry_generator|graphql_builder: + enabled: true + options: + schema: tachidesk_sorayomi|lib/src/graphql/schema.graphql + type_overrides: + Upload: + name: MultipartFile + import: 'package:http/http.dart' + ferry_generator|serializer_builder: + enabled: true + options: + schema: tachidesk_sorayomi|lib/src/graphql/schema.graphql + type_overrides: + Upload: + name: MultipartFile + import: 'package:http/http.dart' + custom_serializers: + - import: 'package:tachidesk_sorayomi/src/utils/misc/upload_serializer.dart' + name: UploadSerializer diff --git a/lib/main.dart b/lib/main.dart index 8ae01949..26baf9cb 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -6,10 +6,12 @@ import 'dart:io'; +import 'package:ferry_hive_store/ferry_hive_store.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:go_router/go_router.dart'; +import 'package:hive_flutter/hive_flutter.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:package_info_plus/package_info_plus.dart'; import 'package:path/path.dart' as path; @@ -24,7 +26,11 @@ Future main() async { WidgetsFlutterBinding.ensureInitialized(); final packageInfo = await PackageInfo.fromPlatform(); final sharedPreferences = await SharedPreferences.getInstance(); + await Hive.initFlutter('Sorayomi'); + final box = await Hive.openBox("graphql"); + final store = HiveStore(box); + //TODO remove final Directory? appDirectory; if (!kIsWeb) { final appDocDirectory = await getApplicationDocumentsDirectory(); @@ -55,6 +61,7 @@ Future main() async { packageInfoProvider.overrideWithValue(packageInfo), sharedPreferencesProvider.overrideWithValue(sharedPreferences), appDirectoryProvider.overrideWithValue(appDirectory), + hiveStoreProvider.overrideWithValue(store) ], child: const Sorayomi(), ), diff --git a/lib/src/abstracts/locale_enum.dart b/lib/src/abstracts/locale_enum.dart new file mode 100644 index 00000000..0e1a8ddd --- /dev/null +++ b/lib/src/abstracts/locale_enum.dart @@ -0,0 +1,12 @@ +import 'package:flutter/material.dart'; + +import 'value_enum.dart'; + +abstract interface class LocaleEnum implements ValueEnum { + LocaleEnum(this.value); + + @override + final String value; + + String toLocale(BuildContext context); +} diff --git a/lib/src/abstracts/value_enum.dart b/lib/src/abstracts/value_enum.dart new file mode 100644 index 00000000..7fb0ae30 --- /dev/null +++ b/lib/src/abstracts/value_enum.dart @@ -0,0 +1,5 @@ +abstract interface class ValueEnum implements Enum { + ValueEnum(this.value); + + final String value; +} diff --git a/lib/src/constants/endpoints.dart b/lib/src/constants/endpoints.dart index a623c2b6..d862c721 100644 --- a/lib/src/constants/endpoints.dart +++ b/lib/src/constants/endpoints.dart @@ -13,10 +13,18 @@ abstract class Endpoints { int? port, bool addPort = true, bool appendApiToUrl = true, - }) => - "${baseUrl ?? DBKeys.serverUrl.initial}" - "${port != null && addPort ? ":$port" : ''}" - "${appendApiToUrl ? '/api/v1' : ''}"; + bool isGraphQl = false, + }) { + String url = "${baseUrl ?? DBKeys.serverUrl.initial}"; + if (port != null && addPort) { + url += ":$port"; + } + if (appendApiToUrl) { + final api = isGraphQl ? '/api/graphql' : '/api/v1'; + url += api; + } + return url; + } // receiveTimeout static const Duration receiveTimeout = Duration(minutes: 1); diff --git a/lib/src/constants/enum.dart b/lib/src/constants/enum.dart index ead94888..b5d366ec 100644 --- a/lib/src/constants/enum.dart +++ b/lib/src/constants/enum.dart @@ -13,8 +13,8 @@ enum AuthType { basic; String toLocale(BuildContext context) => switch (this) { - AuthType.none => context.l10n!.authTypeNone, - AuthType.basic => context.l10n!.authTypeBasic, + AuthType.none => context.l10n.authTypeNone, + AuthType.basic => context.l10n.authTypeBasic, }; } @@ -29,19 +29,19 @@ enum ReaderMode { webtoon; String toLocale(BuildContext context) => switch (this) { - ReaderMode.defaultReader => context.l10n!.readerModeDefaultReader, + ReaderMode.defaultReader => context.l10n.readerModeDefaultReader, ReaderMode.continuousVertical => - context.l10n!.readerModeContinuousVertical, + context.l10n.readerModeContinuousVertical, ReaderMode.singleHorizontalLTR => - context.l10n!.readerModeSingleHorizontalLTR, + context.l10n.readerModeSingleHorizontalLTR, ReaderMode.singleHorizontalRTL => - context.l10n!.readerModeSingleHorizontalRTL, + context.l10n.readerModeSingleHorizontalRTL, ReaderMode.continuousHorizontalLTR => - context.l10n!.readerModeContinuousHorizontalLTR, + context.l10n.readerModeContinuousHorizontalLTR, ReaderMode.continuousHorizontalRTL => - context.l10n!.readerModeContinuousHorizontalRTL, - ReaderMode.singleVertical => context.l10n!.readerModeSingleVertical, - ReaderMode.webtoon => context.l10n!.readerModeWebtoon + context.l10n.readerModeContinuousHorizontalRTL, + ReaderMode.singleVertical => context.l10n.readerModeSingleVertical, + ReaderMode.webtoon => context.l10n.readerModeWebtoon }; } @@ -55,16 +55,16 @@ enum ReaderNavigationLayout { String toLocale(BuildContext context) => switch (this) { ReaderNavigationLayout.defaultNavigation => - context.l10n!.readerNavigationLayoutDefault, + context.l10n.readerNavigationLayoutDefault, ReaderNavigationLayout.lShaped => - context.l10n!.readerNavigationLayoutLShaped, + context.l10n.readerNavigationLayoutLShaped, ReaderNavigationLayout.rightAndLeft => - context.l10n!.readerNavigationLayoutRightAndLeft, - ReaderNavigationLayout.edge => context.l10n!.readerNavigationLayoutEdge, + context.l10n.readerNavigationLayoutRightAndLeft, + ReaderNavigationLayout.edge => context.l10n.readerNavigationLayoutEdge, ReaderNavigationLayout.kindlish => - context.l10n!.readerNavigationLayoutKindlish, + context.l10n.readerNavigationLayoutKindlish, ReaderNavigationLayout.disabled => - context.l10n!.readerNavigationLayoutDisabled + context.l10n.readerNavigationLayoutDisabled }; } @@ -75,10 +75,10 @@ enum MangaSort { lastRead; String toLocale(BuildContext context) => switch (this) { - MangaSort.alphabetical => context.l10n!.mangaSortAlphabetical, - MangaSort.dateAdded => context.l10n!.mangaSortDateAdded, - MangaSort.unread => context.l10n!.mangaSortUnread, - MangaSort.lastRead => context.l10n!.mangaSortLastRead + MangaSort.alphabetical => context.l10n.mangaSortAlphabetical, + MangaSort.dateAdded => context.l10n.mangaSortDateAdded, + MangaSort.unread => context.l10n.mangaSortUnread, + MangaSort.lastRead => context.l10n.mangaSortLastRead }; } @@ -88,9 +88,9 @@ enum ChapterSort { fetchedDate; String toLocale(BuildContext context) => switch (this) { - ChapterSort.source => context.l10n!.chapterSortSource, - ChapterSort.fetchedDate => context.l10n!.chapterSortFetchedDate, - ChapterSort.uploadDate => context.l10n!.chapterSortUploadDate + ChapterSort.source => context.l10n.chapterSortSource, + ChapterSort.fetchedDate => context.l10n.chapterSortFetchedDate, + ChapterSort.uploadDate => context.l10n.chapterSortUploadDate }; } @@ -109,9 +109,9 @@ enum DisplayMode { const DisplayMode(this.icon); String toLocale(BuildContext context) => switch (this) { - DisplayMode.grid => context.l10n!.displayModeGrid, - DisplayMode.list => context.l10n!.displayModeList, - DisplayMode.descriptiveList => context.l10n!.displayModeDescriptiveList + DisplayMode.grid => context.l10n.displayModeGrid, + DisplayMode.list => context.l10n.displayModeList, + DisplayMode.descriptiveList => context.l10n.displayModeDescriptiveList }; } @@ -139,14 +139,14 @@ enum MangaStatus { status?.title ?? MangaStatus.unknown.title; String toLocale(BuildContext context) => switch (this) { - MangaStatus.unknown => context.l10n!.mangaStatusUnknown, - MangaStatus.ongoing => context.l10n!.mangaStatusOngoing, - MangaStatus.completed => context.l10n!.mangaStatusCompleted, - MangaStatus.licensed => context.l10n!.mangaStatusLicensed, + MangaStatus.unknown => context.l10n.mangaStatusUnknown, + MangaStatus.ongoing => context.l10n.mangaStatusOngoing, + MangaStatus.completed => context.l10n.mangaStatusCompleted, + MangaStatus.licensed => context.l10n.mangaStatusLicensed, MangaStatus.publishingFinished => - context.l10n!.mangaStatusPublishingFinished, - MangaStatus.cancelled => context.l10n!.mangaStatusCancelled, - MangaStatus.onHiatus => context.l10n!.mangaStatusOnHiatus + context.l10n.mangaStatusPublishingFinished, + MangaStatus.cancelled => context.l10n.mangaStatusCancelled, + MangaStatus.onHiatus => context.l10n.mangaStatusOnHiatus }; } @@ -161,8 +161,8 @@ enum SourceType { final IconData selectedIcon; String toLocale(BuildContext context) => switch (this) { - SourceType.latest => context.l10n!.sourceTypeLatest, - SourceType.popular => context.l10n!.sourceTypePopular, - SourceType.filter => context.l10n!.sourceTypeFilter + SourceType.latest => context.l10n.sourceTypeLatest, + SourceType.popular => context.l10n.sourceTypePopular, + SourceType.filter => context.l10n.sourceTypeFilter }; } diff --git a/lib/src/constants/navigation_bar_data.dart b/lib/src/constants/navigation_bar_data.dart index c9c54352..dbb845d1 100644 --- a/lib/src/constants/navigation_bar_data.dart +++ b/lib/src/constants/navigation_bar_data.dart @@ -26,35 +26,35 @@ class NavigationBarData { NavigationBarData( icon: Icons.collections_bookmark_outlined, activeIcon: Icons.collections_bookmark_rounded, - label: (context) => context.l10n!.library, + label: (context) => context.l10n.library, go: const LibraryRoute().go, activeOn: [const LibraryRoute().location], ), NavigationBarData( icon: Icons.new_releases_outlined, activeIcon: Icons.new_releases_rounded, - label: (context) => context.l10n!.updates, + label: (context) => context.l10n.updates, go: const UpdatesRoute().go, activeOn: [const UpdatesRoute().location], ), NavigationBarData( icon: Icons.explore_outlined, activeIcon: Icons.explore_rounded, - label: (context) => context.l10n!.browse, + label: (context) => context.l10n.browse, go: const BrowseRoute().go, activeOn: [const BrowseRoute().location], ), NavigationBarData( icon: Icons.download_outlined, activeIcon: Icons.download_rounded, - label: (context) => context.l10n!.downloads, + label: (context) => context.l10n.downloads, go: const DownloadsRoute().go, activeOn: [const DownloadsRoute().location], ), NavigationBarData( icon: Icons.more_horiz_outlined, activeIcon: Icons.more_horiz_rounded, - label: (context) => context.l10n!.more, + label: (context) => context.l10n.more, go: const MoreRoute().go, activeOn: [const MoreRoute().location, const SettingsRoute().location], ), diff --git a/lib/src/constants/quick_open_help_text.dart b/lib/src/constants/quick_open_help_text.dart index 565307d6..b3cb5f76 100644 --- a/lib/src/constants/quick_open_help_text.dart +++ b/lib/src/constants/quick_open_help_text.dart @@ -14,31 +14,31 @@ List getQuickShowHintTextList(BuildContext context) { QuickSearchResult.helpText( prefill: '@S', pattern: '@', - hintText: context.l10n!.quickSearchSource, + hintText: context.l10n.quickSearchSource, ), QuickSearchResult.helpText( prefill: '@S/M', pattern: '@/', - hintText: context.l10n!.quickSearchSourceManga, + hintText: context.l10n.quickSearchSourceManga, ), QuickSearchResult.helpText( prefill: '#C', pattern: '#', - hintText: context.l10n!.quickSearchCategory, + hintText: context.l10n.quickSearchCategory, ), QuickSearchResult.helpText( prefill: '#C/M', pattern: '#/', - hintText: context.l10n!.quickSearchCategoryManga, + hintText: context.l10n.quickSearchCategoryManga, ), QuickSearchResult.helpText( prefill: '#C/M:CN', pattern: '#/:', - hintText: context.l10n!.quickSearchCategoryMangaChapter, + hintText: context.l10n.quickSearchCategoryMangaChapter, ), QuickSearchResult.helpText( prefill: 'X', - hintText: context.l10n!.quickSearchContext, + hintText: context.l10n.quickSearchContext, ), ]; } diff --git a/lib/src/features/about/data/about_repository.dart b/lib/src/features/about/data/about_repository.dart index 1739018c..f980f2a5 100644 --- a/lib/src/features/about/data/about_repository.dart +++ b/lib/src/features/about/data/about_repository.dart @@ -4,56 +4,65 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. +import 'dart:convert'; + import 'package:dio/dio.dart'; +import 'package:ferry/ferry.dart'; +import 'package:http/http.dart' as http; import 'package:package_info_plus/package_info_plus.dart'; import 'package:pub_semver/pub_semver.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; -import '../../../constants/endpoints.dart'; import '../../../constants/urls.dart'; import '../../../global_providers/global_providers.dart'; import '../../../utils/extensions/custom_extensions.dart'; -import '../../../utils/storage/dio/dio_client.dart'; -import '../domain/about/about_model.dart'; -import '../domain/server_update/server_update_model.dart'; +import '../domain/about/about_dto.dart'; +import '../domain/server_update/server_update.dart'; import '../presentation/about/controllers/about_controller.dart'; +import 'graphql/about_query.dart'; part 'about_repository.g.dart'; class AboutRepository { - final DioClient dioClient; + final Client ferryClient; final PackageInfo packageInfo; AboutRepository({ - required this.dioClient, + required this.ferryClient, required this.packageInfo, }); - Future getAbout({CancelToken? cancelToken}) async { - return (await dioClient.get( - SettingsUrl.about, - decoder: (e) => e is Map ? About.fromJson(e) : null, - cancelToken: cancelToken, - )) - .data; - } + Stream getAbout() => ferryClient.fetch( + AboutQuery.getAboutQuery, + (data) => AboutDto( + name: data.aboutServer.name, + version: data.aboutServer.version, + revision: data.aboutServer.revision, + buildType: data.aboutServer.buildType, + buildTime: int.tryParse(data.aboutServer.buildTime.value), + github: data.aboutServer.github, + discord: data.aboutServer.discord, + ), + ); - Future?> checkServerUpdate() async { - return (await dioClient.get, ServerUpdate>( - SettingsUrl.checkServerUpdate, - decoder: (e) => - e is Map ? ServerUpdate.fromJson(e) : ServerUpdate(), - )) - .data; - } + Future?> checkServerUpdate() => ferryClient + .fetch( + AboutQuery.serverUpdateQuery, + (data) => data.checkForServerUpdates + .map((data) => ServerUpdate( + channel: data.channel, + tag: data.tag, + url: data.url, + )) + .toList(), + ) + .first; Future> checkUpdate({CancelToken? cancelToken}) async { final gitResponse = await AsyncValue.guard?>( - () async => (await dioClient.get( - AppUrls.sorayomiLatestReleaseApiUrl.url, - cancelToken: cancelToken, - )) - .data, - ); + () async => json.decode((await http.get( + Uri.parse(AppUrls.sorayomiLatestReleaseApiUrl.url), + )) + .body)); return gitResponse.copyWithData( (data) { String? tag = data?["tag_name"]; @@ -74,6 +83,6 @@ class AboutRepository { @riverpod AboutRepository aboutRepository(ref) => AboutRepository( - dioClient: ref.watch(dioClientKeyProvider), + ferryClient: ref.watch(ferryClientProvider), packageInfo: ref.watch(packageInfoProvider), ); diff --git a/lib/src/features/about/data/about_repository.g.dart b/lib/src/features/about/data/about_repository.g.dart index 3a7570a0..47d109a9 100644 --- a/lib/src/features/about/data/about_repository.g.dart +++ b/lib/src/features/about/data/about_repository.g.dart @@ -6,7 +6,7 @@ part of 'about_repository.dart'; // RiverpodGenerator // ************************************************************************** -String _$aboutRepositoryHash() => r'216ca259fbc00fa61ce7260975ab8d3df1e282dc'; +String _$aboutRepositoryHash() => r'8365e7f7ab23a0c6ef122555fcd8a87e36540dc3'; /// See also [aboutRepository]. @ProviderFor(aboutRepository) diff --git a/lib/src/features/about/data/graphql/__generated__/about_query.ast.gql.dart b/lib/src/features/about/data/graphql/__generated__/about_query.ast.gql.dart new file mode 100644 index 00000000..6c8b14b7 --- /dev/null +++ b/lib/src/features/about/data/graphql/__generated__/about_query.ast.gql.dart @@ -0,0 +1,112 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const About = _i1.OperationDefinitionNode( + type: _i1.OperationType.query, + name: _i1.NameNode(value: 'About'), + variableDefinitions: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'aboutServer'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'version'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'revision'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'buildType'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'buildTime'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'discord'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'github'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ) + ]), +); +const ServerUpdate = _i1.OperationDefinitionNode( + type: _i1.OperationType.query, + name: _i1.NameNode(value: 'ServerUpdate'), + variableDefinitions: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'checkForServerUpdates'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'channel'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'tag'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'url'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + About, + ServerUpdate, +]); diff --git a/lib/src/features/about/data/graphql/__generated__/about_query.data.gql.dart b/lib/src/features/about/data/graphql/__generated__/about_query.data.gql.dart new file mode 100644 index 00000000..82c0b1b8 --- /dev/null +++ b/lib/src/features/about/data/graphql/__generated__/about_query.data.gql.dart @@ -0,0 +1,138 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'about_query.data.gql.g.dart'; + +abstract class GAboutData implements Built { + GAboutData._(); + + factory GAboutData([void Function(GAboutDataBuilder b) updates]) = + _$GAboutData; + + static void _initializeBuilder(GAboutDataBuilder b) => + b..G__typename = 'Query'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GAboutData_aboutServer get aboutServer; + static Serializer get serializer => _$gAboutDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GAboutData.serializer, + this, + ) as Map); + + static GAboutData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GAboutData.serializer, + json, + ); +} + +abstract class GAboutData_aboutServer + implements Built { + GAboutData_aboutServer._(); + + factory GAboutData_aboutServer( + [void Function(GAboutData_aboutServerBuilder b) updates]) = + _$GAboutData_aboutServer; + + static void _initializeBuilder(GAboutData_aboutServerBuilder b) => + b..G__typename = 'AboutServerPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + String get name; + String get version; + String get revision; + String get buildType; + _i2.GLongString get buildTime; + String get discord; + String get github; + static Serializer get serializer => + _$gAboutDataAboutServerSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GAboutData_aboutServer.serializer, + this, + ) as Map); + + static GAboutData_aboutServer? fromJson(Map json) => + _i1.serializers.deserializeWith( + GAboutData_aboutServer.serializer, + json, + ); +} + +abstract class GServerUpdateData + implements Built { + GServerUpdateData._(); + + factory GServerUpdateData( + [void Function(GServerUpdateDataBuilder b) updates]) = + _$GServerUpdateData; + + static void _initializeBuilder(GServerUpdateDataBuilder b) => + b..G__typename = 'Query'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + BuiltList get checkForServerUpdates; + static Serializer get serializer => + _$gServerUpdateDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GServerUpdateData.serializer, + this, + ) as Map); + + static GServerUpdateData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GServerUpdateData.serializer, + json, + ); +} + +abstract class GServerUpdateData_checkForServerUpdates + implements + Built { + GServerUpdateData_checkForServerUpdates._(); + + factory GServerUpdateData_checkForServerUpdates( + [void Function(GServerUpdateData_checkForServerUpdatesBuilder b) + updates]) = _$GServerUpdateData_checkForServerUpdates; + + static void _initializeBuilder( + GServerUpdateData_checkForServerUpdatesBuilder b) => + b..G__typename = 'CheckForServerUpdatesPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + String get channel; + String get tag; + String get url; + static Serializer get serializer => + _$gServerUpdateDataCheckForServerUpdatesSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GServerUpdateData_checkForServerUpdates.serializer, + this, + ) as Map); + + static GServerUpdateData_checkForServerUpdates? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GServerUpdateData_checkForServerUpdates.serializer, + json, + ); +} diff --git a/lib/src/features/about/data/graphql/__generated__/about_query.data.gql.g.dart b/lib/src/features/about/data/graphql/__generated__/about_query.data.gql.g.dart new file mode 100644 index 00000000..141ad027 --- /dev/null +++ b/lib/src/features/about/data/graphql/__generated__/about_query.data.gql.g.dart @@ -0,0 +1,872 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'about_query.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gAboutDataSerializer = new _$GAboutDataSerializer(); +Serializer _$gAboutDataAboutServerSerializer = + new _$GAboutData_aboutServerSerializer(); +Serializer _$gServerUpdateDataSerializer = + new _$GServerUpdateDataSerializer(); +Serializer + _$gServerUpdateDataCheckForServerUpdatesSerializer = + new _$GServerUpdateData_checkForServerUpdatesSerializer(); + +class _$GAboutDataSerializer implements StructuredSerializer { + @override + final Iterable types = const [GAboutData, _$GAboutData]; + @override + final String wireName = 'GAboutData'; + + @override + Iterable serialize(Serializers serializers, GAboutData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'aboutServer', + serializers.serialize(object.aboutServer, + specifiedType: const FullType(GAboutData_aboutServer)), + ]; + + return result; + } + + @override + GAboutData deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAboutDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'aboutServer': + result.aboutServer.replace(serializers.deserialize(value, + specifiedType: const FullType(GAboutData_aboutServer))! + as GAboutData_aboutServer); + break; + } + } + + return result.build(); + } +} + +class _$GAboutData_aboutServerSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GAboutData_aboutServer, + _$GAboutData_aboutServer + ]; + @override + final String wireName = 'GAboutData_aboutServer'; + + @override + Iterable serialize( + Serializers serializers, GAboutData_aboutServer object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'version', + serializers.serialize(object.version, + specifiedType: const FullType(String)), + 'revision', + serializers.serialize(object.revision, + specifiedType: const FullType(String)), + 'buildType', + serializers.serialize(object.buildType, + specifiedType: const FullType(String)), + 'buildTime', + serializers.serialize(object.buildTime, + specifiedType: const FullType(_i2.GLongString)), + 'discord', + serializers.serialize(object.discord, + specifiedType: const FullType(String)), + 'github', + serializers.serialize(object.github, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GAboutData_aboutServer deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAboutData_aboutServerBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'version': + result.version = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'revision': + result.revision = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'buildType': + result.buildType = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'buildTime': + result.buildTime.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GLongString))! + as _i2.GLongString); + break; + case 'discord': + result.discord = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'github': + result.github = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GServerUpdateDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GServerUpdateData, _$GServerUpdateData]; + @override + final String wireName = 'GServerUpdateData'; + + @override + Iterable serialize(Serializers serializers, GServerUpdateData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'checkForServerUpdates', + serializers.serialize(object.checkForServerUpdates, + specifiedType: const FullType(BuiltList, + const [const FullType(GServerUpdateData_checkForServerUpdates)])), + ]; + + return result; + } + + @override + GServerUpdateData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GServerUpdateDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'checkForServerUpdates': + result.checkForServerUpdates.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GServerUpdateData_checkForServerUpdates) + ]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GServerUpdateData_checkForServerUpdatesSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GServerUpdateData_checkForServerUpdates, + _$GServerUpdateData_checkForServerUpdates + ]; + @override + final String wireName = 'GServerUpdateData_checkForServerUpdates'; + + @override + Iterable serialize( + Serializers serializers, GServerUpdateData_checkForServerUpdates object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'channel', + serializers.serialize(object.channel, + specifiedType: const FullType(String)), + 'tag', + serializers.serialize(object.tag, specifiedType: const FullType(String)), + 'url', + serializers.serialize(object.url, specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GServerUpdateData_checkForServerUpdates deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GServerUpdateData_checkForServerUpdatesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'channel': + result.channel = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'tag': + result.tag = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'url': + result.url = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GAboutData extends GAboutData { + @override + final String G__typename; + @override + final GAboutData_aboutServer aboutServer; + + factory _$GAboutData([void Function(GAboutDataBuilder)? updates]) => + (new GAboutDataBuilder()..update(updates))._build(); + + _$GAboutData._({required this.G__typename, required this.aboutServer}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GAboutData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + aboutServer, r'GAboutData', 'aboutServer'); + } + + @override + GAboutData rebuild(void Function(GAboutDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAboutDataBuilder toBuilder() => new GAboutDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAboutData && + G__typename == other.G__typename && + aboutServer == other.aboutServer; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, aboutServer.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GAboutData') + ..add('G__typename', G__typename) + ..add('aboutServer', aboutServer)) + .toString(); + } +} + +class GAboutDataBuilder implements Builder { + _$GAboutData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GAboutData_aboutServerBuilder? _aboutServer; + GAboutData_aboutServerBuilder get aboutServer => + _$this._aboutServer ??= new GAboutData_aboutServerBuilder(); + set aboutServer(GAboutData_aboutServerBuilder? aboutServer) => + _$this._aboutServer = aboutServer; + + GAboutDataBuilder() { + GAboutData._initializeBuilder(this); + } + + GAboutDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _aboutServer = $v.aboutServer.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GAboutData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAboutData; + } + + @override + void update(void Function(GAboutDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAboutData build() => _build(); + + _$GAboutData _build() { + _$GAboutData _$result; + try { + _$result = _$v ?? + new _$GAboutData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GAboutData', 'G__typename'), + aboutServer: aboutServer.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'aboutServer'; + aboutServer.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GAboutData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GAboutData_aboutServer extends GAboutData_aboutServer { + @override + final String G__typename; + @override + final String name; + @override + final String version; + @override + final String revision; + @override + final String buildType; + @override + final _i2.GLongString buildTime; + @override + final String discord; + @override + final String github; + + factory _$GAboutData_aboutServer( + [void Function(GAboutData_aboutServerBuilder)? updates]) => + (new GAboutData_aboutServerBuilder()..update(updates))._build(); + + _$GAboutData_aboutServer._( + {required this.G__typename, + required this.name, + required this.version, + required this.revision, + required this.buildType, + required this.buildTime, + required this.discord, + required this.github}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GAboutData_aboutServer', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + name, r'GAboutData_aboutServer', 'name'); + BuiltValueNullFieldError.checkNotNull( + version, r'GAboutData_aboutServer', 'version'); + BuiltValueNullFieldError.checkNotNull( + revision, r'GAboutData_aboutServer', 'revision'); + BuiltValueNullFieldError.checkNotNull( + buildType, r'GAboutData_aboutServer', 'buildType'); + BuiltValueNullFieldError.checkNotNull( + buildTime, r'GAboutData_aboutServer', 'buildTime'); + BuiltValueNullFieldError.checkNotNull( + discord, r'GAboutData_aboutServer', 'discord'); + BuiltValueNullFieldError.checkNotNull( + github, r'GAboutData_aboutServer', 'github'); + } + + @override + GAboutData_aboutServer rebuild( + void Function(GAboutData_aboutServerBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAboutData_aboutServerBuilder toBuilder() => + new GAboutData_aboutServerBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAboutData_aboutServer && + G__typename == other.G__typename && + name == other.name && + version == other.version && + revision == other.revision && + buildType == other.buildType && + buildTime == other.buildTime && + discord == other.discord && + github == other.github; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, version.hashCode); + _$hash = $jc(_$hash, revision.hashCode); + _$hash = $jc(_$hash, buildType.hashCode); + _$hash = $jc(_$hash, buildTime.hashCode); + _$hash = $jc(_$hash, discord.hashCode); + _$hash = $jc(_$hash, github.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GAboutData_aboutServer') + ..add('G__typename', G__typename) + ..add('name', name) + ..add('version', version) + ..add('revision', revision) + ..add('buildType', buildType) + ..add('buildTime', buildTime) + ..add('discord', discord) + ..add('github', github)) + .toString(); + } +} + +class GAboutData_aboutServerBuilder + implements Builder { + _$GAboutData_aboutServer? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + String? _version; + String? get version => _$this._version; + set version(String? version) => _$this._version = version; + + String? _revision; + String? get revision => _$this._revision; + set revision(String? revision) => _$this._revision = revision; + + String? _buildType; + String? get buildType => _$this._buildType; + set buildType(String? buildType) => _$this._buildType = buildType; + + _i2.GLongStringBuilder? _buildTime; + _i2.GLongStringBuilder get buildTime => + _$this._buildTime ??= new _i2.GLongStringBuilder(); + set buildTime(_i2.GLongStringBuilder? buildTime) => + _$this._buildTime = buildTime; + + String? _discord; + String? get discord => _$this._discord; + set discord(String? discord) => _$this._discord = discord; + + String? _github; + String? get github => _$this._github; + set github(String? github) => _$this._github = github; + + GAboutData_aboutServerBuilder() { + GAboutData_aboutServer._initializeBuilder(this); + } + + GAboutData_aboutServerBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _name = $v.name; + _version = $v.version; + _revision = $v.revision; + _buildType = $v.buildType; + _buildTime = $v.buildTime.toBuilder(); + _discord = $v.discord; + _github = $v.github; + _$v = null; + } + return this; + } + + @override + void replace(GAboutData_aboutServer other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAboutData_aboutServer; + } + + @override + void update(void Function(GAboutData_aboutServerBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAboutData_aboutServer build() => _build(); + + _$GAboutData_aboutServer _build() { + _$GAboutData_aboutServer _$result; + try { + _$result = _$v ?? + new _$GAboutData_aboutServer._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GAboutData_aboutServer', 'G__typename'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'GAboutData_aboutServer', 'name'), + version: BuiltValueNullFieldError.checkNotNull( + version, r'GAboutData_aboutServer', 'version'), + revision: BuiltValueNullFieldError.checkNotNull( + revision, r'GAboutData_aboutServer', 'revision'), + buildType: BuiltValueNullFieldError.checkNotNull( + buildType, r'GAboutData_aboutServer', 'buildType'), + buildTime: buildTime.build(), + discord: BuiltValueNullFieldError.checkNotNull( + discord, r'GAboutData_aboutServer', 'discord'), + github: BuiltValueNullFieldError.checkNotNull( + github, r'GAboutData_aboutServer', 'github')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'buildTime'; + buildTime.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GAboutData_aboutServer', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GServerUpdateData extends GServerUpdateData { + @override + final String G__typename; + @override + final BuiltList + checkForServerUpdates; + + factory _$GServerUpdateData( + [void Function(GServerUpdateDataBuilder)? updates]) => + (new GServerUpdateDataBuilder()..update(updates))._build(); + + _$GServerUpdateData._( + {required this.G__typename, required this.checkForServerUpdates}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GServerUpdateData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + checkForServerUpdates, r'GServerUpdateData', 'checkForServerUpdates'); + } + + @override + GServerUpdateData rebuild(void Function(GServerUpdateDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GServerUpdateDataBuilder toBuilder() => + new GServerUpdateDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GServerUpdateData && + G__typename == other.G__typename && + checkForServerUpdates == other.checkForServerUpdates; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, checkForServerUpdates.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GServerUpdateData') + ..add('G__typename', G__typename) + ..add('checkForServerUpdates', checkForServerUpdates)) + .toString(); + } +} + +class GServerUpdateDataBuilder + implements Builder { + _$GServerUpdateData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + ListBuilder? _checkForServerUpdates; + ListBuilder + get checkForServerUpdates => _$this._checkForServerUpdates ??= + new ListBuilder(); + set checkForServerUpdates( + ListBuilder? + checkForServerUpdates) => + _$this._checkForServerUpdates = checkForServerUpdates; + + GServerUpdateDataBuilder() { + GServerUpdateData._initializeBuilder(this); + } + + GServerUpdateDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _checkForServerUpdates = $v.checkForServerUpdates.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GServerUpdateData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GServerUpdateData; + } + + @override + void update(void Function(GServerUpdateDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GServerUpdateData build() => _build(); + + _$GServerUpdateData _build() { + _$GServerUpdateData _$result; + try { + _$result = _$v ?? + new _$GServerUpdateData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GServerUpdateData', 'G__typename'), + checkForServerUpdates: checkForServerUpdates.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'checkForServerUpdates'; + checkForServerUpdates.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GServerUpdateData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GServerUpdateData_checkForServerUpdates + extends GServerUpdateData_checkForServerUpdates { + @override + final String G__typename; + @override + final String channel; + @override + final String tag; + @override + final String url; + + factory _$GServerUpdateData_checkForServerUpdates( + [void Function(GServerUpdateData_checkForServerUpdatesBuilder)? + updates]) => + (new GServerUpdateData_checkForServerUpdatesBuilder()..update(updates)) + ._build(); + + _$GServerUpdateData_checkForServerUpdates._( + {required this.G__typename, + required this.channel, + required this.tag, + required this.url}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GServerUpdateData_checkForServerUpdates', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + channel, r'GServerUpdateData_checkForServerUpdates', 'channel'); + BuiltValueNullFieldError.checkNotNull( + tag, r'GServerUpdateData_checkForServerUpdates', 'tag'); + BuiltValueNullFieldError.checkNotNull( + url, r'GServerUpdateData_checkForServerUpdates', 'url'); + } + + @override + GServerUpdateData_checkForServerUpdates rebuild( + void Function(GServerUpdateData_checkForServerUpdatesBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GServerUpdateData_checkForServerUpdatesBuilder toBuilder() => + new GServerUpdateData_checkForServerUpdatesBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GServerUpdateData_checkForServerUpdates && + G__typename == other.G__typename && + channel == other.channel && + tag == other.tag && + url == other.url; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, channel.hashCode); + _$hash = $jc(_$hash, tag.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GServerUpdateData_checkForServerUpdates') + ..add('G__typename', G__typename) + ..add('channel', channel) + ..add('tag', tag) + ..add('url', url)) + .toString(); + } +} + +class GServerUpdateData_checkForServerUpdatesBuilder + implements + Builder { + _$GServerUpdateData_checkForServerUpdates? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _channel; + String? get channel => _$this._channel; + set channel(String? channel) => _$this._channel = channel; + + String? _tag; + String? get tag => _$this._tag; + set tag(String? tag) => _$this._tag = tag; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + GServerUpdateData_checkForServerUpdatesBuilder() { + GServerUpdateData_checkForServerUpdates._initializeBuilder(this); + } + + GServerUpdateData_checkForServerUpdatesBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _channel = $v.channel; + _tag = $v.tag; + _url = $v.url; + _$v = null; + } + return this; + } + + @override + void replace(GServerUpdateData_checkForServerUpdates other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GServerUpdateData_checkForServerUpdates; + } + + @override + void update( + void Function(GServerUpdateData_checkForServerUpdatesBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GServerUpdateData_checkForServerUpdates build() => _build(); + + _$GServerUpdateData_checkForServerUpdates _build() { + final _$result = _$v ?? + new _$GServerUpdateData_checkForServerUpdates._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GServerUpdateData_checkForServerUpdates', 'G__typename'), + channel: BuiltValueNullFieldError.checkNotNull( + channel, r'GServerUpdateData_checkForServerUpdates', 'channel'), + tag: BuiltValueNullFieldError.checkNotNull( + tag, r'GServerUpdateData_checkForServerUpdates', 'tag'), + url: BuiltValueNullFieldError.checkNotNull( + url, r'GServerUpdateData_checkForServerUpdates', 'url')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/about/data/graphql/__generated__/about_query.req.gql.dart b/lib/src/features/about/data/graphql/__generated__/about_query.req.gql.dart new file mode 100644 index 00000000..6643c52a --- /dev/null +++ b/lib/src/features/about/data/graphql/__generated__/about_query.req.gql.dart @@ -0,0 +1,172 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/about/data/graphql/__generated__/about_query.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/about/data/graphql/__generated__/about_query.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/about/data/graphql/__generated__/about_query.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'about_query.req.gql.g.dart'; + +abstract class GAboutReq + implements + Built, + _i1.OperationRequest<_i2.GAboutData, _i3.GAboutVars> { + GAboutReq._(); + + factory GAboutReq([void Function(GAboutReqBuilder b) updates]) = _$GAboutReq; + + static void _initializeBuilder(GAboutReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'About', + ) + ..executeOnListen = true; + + @override + _i3.GAboutVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GAboutData? Function( + _i2.GAboutData?, + _i2.GAboutData?, + )? get updateResult; + @override + _i2.GAboutData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GAboutData? parseData(Map json) => + _i2.GAboutData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GAboutData data) => data.toJson(); + + @override + _i1.OperationRequest<_i2.GAboutData, _i3.GAboutVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => _$gAboutReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GAboutReq.serializer, + this, + ) as Map); + + static GAboutReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GAboutReq.serializer, + json, + ); +} + +abstract class GServerUpdateReq + implements + Built, + _i1.OperationRequest<_i2.GServerUpdateData, _i3.GServerUpdateVars> { + GServerUpdateReq._(); + + factory GServerUpdateReq([void Function(GServerUpdateReqBuilder b) updates]) = + _$GServerUpdateReq; + + static void _initializeBuilder(GServerUpdateReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'ServerUpdate', + ) + ..executeOnListen = true; + + @override + _i3.GServerUpdateVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GServerUpdateData? Function( + _i2.GServerUpdateData?, + _i2.GServerUpdateData?, + )? get updateResult; + @override + _i2.GServerUpdateData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GServerUpdateData? parseData(Map json) => + _i2.GServerUpdateData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GServerUpdateData data) => data.toJson(); + + @override + _i1.OperationRequest<_i2.GServerUpdateData, _i3.GServerUpdateVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gServerUpdateReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GServerUpdateReq.serializer, + this, + ) as Map); + + static GServerUpdateReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GServerUpdateReq.serializer, + json, + ); +} diff --git a/lib/src/features/about/data/graphql/__generated__/about_query.req.gql.g.dart b/lib/src/features/about/data/graphql/__generated__/about_query.req.gql.g.dart new file mode 100644 index 00000000..b6a1a38d --- /dev/null +++ b/lib/src/features/about/data/graphql/__generated__/about_query.req.gql.g.dart @@ -0,0 +1,714 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'about_query.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gAboutReqSerializer = new _$GAboutReqSerializer(); +Serializer _$gServerUpdateReqSerializer = + new _$GServerUpdateReqSerializer(); + +class _$GAboutReqSerializer implements StructuredSerializer { + @override + final Iterable types = const [GAboutReq, _$GAboutReq]; + @override + final String wireName = 'GAboutReq'; + + @override + Iterable serialize(Serializers serializers, GAboutReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GAboutVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GAboutData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GAboutReq deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAboutReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GAboutVars))! + as _i3.GAboutVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GAboutData))! + as _i2.GAboutData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GServerUpdateReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GServerUpdateReq, _$GServerUpdateReq]; + @override + final String wireName = 'GServerUpdateReq'; + + @override + Iterable serialize(Serializers serializers, GServerUpdateReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GServerUpdateVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GServerUpdateData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GServerUpdateReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GServerUpdateReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GServerUpdateVars))! + as _i3.GServerUpdateVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GServerUpdateData))! + as _i2.GServerUpdateData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GAboutReq extends GAboutReq { + @override + final _i3.GAboutVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GAboutData? Function(_i2.GAboutData?, _i2.GAboutData?)? + updateResult; + @override + final _i2.GAboutData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GAboutReq([void Function(GAboutReqBuilder)? updates]) => + (new GAboutReqBuilder()..update(updates))._build(); + + _$GAboutReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GAboutReq', 'vars'); + BuiltValueNullFieldError.checkNotNull(operation, r'GAboutReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GAboutReq', 'executeOnListen'); + } + + @override + GAboutReq rebuild(void Function(GAboutReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAboutReqBuilder toBuilder() => new GAboutReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GAboutReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GAboutReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GAboutReqBuilder implements Builder { + _$GAboutReq? _$v; + + _i3.GAboutVarsBuilder? _vars; + _i3.GAboutVarsBuilder get vars => + _$this._vars ??= new _i3.GAboutVarsBuilder(); + set vars(_i3.GAboutVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GAboutData? Function(_i2.GAboutData?, _i2.GAboutData?)? _updateResult; + _i2.GAboutData? Function(_i2.GAboutData?, _i2.GAboutData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GAboutData? Function(_i2.GAboutData?, _i2.GAboutData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GAboutDataBuilder? _optimisticResponse; + _i2.GAboutDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GAboutDataBuilder(); + set optimisticResponse(_i2.GAboutDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GAboutReqBuilder() { + GAboutReq._initializeBuilder(this); + } + + GAboutReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GAboutReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAboutReq; + } + + @override + void update(void Function(GAboutReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAboutReq build() => _build(); + + _$GAboutReq _build() { + _$GAboutReq _$result; + try { + _$result = _$v ?? + new _$GAboutReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GAboutReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GAboutReq', 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GAboutReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GServerUpdateReq extends GServerUpdateReq { + @override + final _i3.GServerUpdateVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GServerUpdateData? Function( + _i2.GServerUpdateData?, _i2.GServerUpdateData?)? updateResult; + @override + final _i2.GServerUpdateData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GServerUpdateReq( + [void Function(GServerUpdateReqBuilder)? updates]) => + (new GServerUpdateReqBuilder()..update(updates))._build(); + + _$GServerUpdateReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GServerUpdateReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GServerUpdateReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GServerUpdateReq', 'executeOnListen'); + } + + @override + GServerUpdateReq rebuild(void Function(GServerUpdateReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GServerUpdateReqBuilder toBuilder() => + new GServerUpdateReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GServerUpdateReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GServerUpdateReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GServerUpdateReqBuilder + implements Builder { + _$GServerUpdateReq? _$v; + + _i3.GServerUpdateVarsBuilder? _vars; + _i3.GServerUpdateVarsBuilder get vars => + _$this._vars ??= new _i3.GServerUpdateVarsBuilder(); + set vars(_i3.GServerUpdateVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GServerUpdateData? Function( + _i2.GServerUpdateData?, _i2.GServerUpdateData?)? _updateResult; + _i2.GServerUpdateData? Function( + _i2.GServerUpdateData?, _i2.GServerUpdateData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GServerUpdateData? Function( + _i2.GServerUpdateData?, _i2.GServerUpdateData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GServerUpdateDataBuilder? _optimisticResponse; + _i2.GServerUpdateDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GServerUpdateDataBuilder(); + set optimisticResponse(_i2.GServerUpdateDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GServerUpdateReqBuilder() { + GServerUpdateReq._initializeBuilder(this); + } + + GServerUpdateReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GServerUpdateReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GServerUpdateReq; + } + + @override + void update(void Function(GServerUpdateReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GServerUpdateReq build() => _build(); + + _$GServerUpdateReq _build() { + _$GServerUpdateReq _$result; + try { + _$result = _$v ?? + new _$GServerUpdateReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GServerUpdateReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GServerUpdateReq', 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GServerUpdateReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/about/data/graphql/__generated__/about_query.var.gql.dart b/lib/src/features/about/data/graphql/__generated__/about_query.var.gql.dart new file mode 100644 index 00000000..445c0136 --- /dev/null +++ b/lib/src/features/about/data/graphql/__generated__/about_query.var.gql.dart @@ -0,0 +1,53 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'about_query.var.gql.g.dart'; + +abstract class GAboutVars implements Built { + GAboutVars._(); + + factory GAboutVars([void Function(GAboutVarsBuilder b) updates]) = + _$GAboutVars; + + static Serializer get serializer => _$gAboutVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GAboutVars.serializer, + this, + ) as Map); + + static GAboutVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GAboutVars.serializer, + json, + ); +} + +abstract class GServerUpdateVars + implements Built { + GServerUpdateVars._(); + + factory GServerUpdateVars( + [void Function(GServerUpdateVarsBuilder b) updates]) = + _$GServerUpdateVars; + + static Serializer get serializer => + _$gServerUpdateVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GServerUpdateVars.serializer, + this, + ) as Map); + + static GServerUpdateVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GServerUpdateVars.serializer, + json, + ); +} diff --git a/lib/src/features/about/data/graphql/__generated__/about_query.var.gql.g.dart b/lib/src/features/about/data/graphql/__generated__/about_query.var.gql.g.dart new file mode 100644 index 00000000..bc6ddef5 --- /dev/null +++ b/lib/src/features/about/data/graphql/__generated__/about_query.var.gql.g.dart @@ -0,0 +1,168 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'about_query.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gAboutVarsSerializer = new _$GAboutVarsSerializer(); +Serializer _$gServerUpdateVarsSerializer = + new _$GServerUpdateVarsSerializer(); + +class _$GAboutVarsSerializer implements StructuredSerializer { + @override + final Iterable types = const [GAboutVars, _$GAboutVars]; + @override + final String wireName = 'GAboutVars'; + + @override + Iterable serialize(Serializers serializers, GAboutVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GAboutVars deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GAboutVarsBuilder().build(); + } +} + +class _$GServerUpdateVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GServerUpdateVars, _$GServerUpdateVars]; + @override + final String wireName = 'GServerUpdateVars'; + + @override + Iterable serialize(Serializers serializers, GServerUpdateVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GServerUpdateVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GServerUpdateVarsBuilder().build(); + } +} + +class _$GAboutVars extends GAboutVars { + factory _$GAboutVars([void Function(GAboutVarsBuilder)? updates]) => + (new GAboutVarsBuilder()..update(updates))._build(); + + _$GAboutVars._() : super._(); + + @override + GAboutVars rebuild(void Function(GAboutVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAboutVarsBuilder toBuilder() => new GAboutVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAboutVars; + } + + @override + int get hashCode { + return 467808740; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GAboutVars').toString(); + } +} + +class GAboutVarsBuilder implements Builder { + _$GAboutVars? _$v; + + GAboutVarsBuilder(); + + @override + void replace(GAboutVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAboutVars; + } + + @override + void update(void Function(GAboutVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAboutVars build() => _build(); + + _$GAboutVars _build() { + final _$result = _$v ?? new _$GAboutVars._(); + replace(_$result); + return _$result; + } +} + +class _$GServerUpdateVars extends GServerUpdateVars { + factory _$GServerUpdateVars( + [void Function(GServerUpdateVarsBuilder)? updates]) => + (new GServerUpdateVarsBuilder()..update(updates))._build(); + + _$GServerUpdateVars._() : super._(); + + @override + GServerUpdateVars rebuild(void Function(GServerUpdateVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GServerUpdateVarsBuilder toBuilder() => + new GServerUpdateVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GServerUpdateVars; + } + + @override + int get hashCode { + return 646785332; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GServerUpdateVars').toString(); + } +} + +class GServerUpdateVarsBuilder + implements Builder { + _$GServerUpdateVars? _$v; + + GServerUpdateVarsBuilder(); + + @override + void replace(GServerUpdateVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GServerUpdateVars; + } + + @override + void update(void Function(GServerUpdateVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GServerUpdateVars build() => _build(); + + _$GServerUpdateVars _build() { + final _$result = _$v ?? new _$GServerUpdateVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/about/data/graphql/about_query.dart b/lib/src/features/about/data/graphql/about_query.dart new file mode 100644 index 00000000..06693003 --- /dev/null +++ b/lib/src/features/about/data/graphql/about_query.dart @@ -0,0 +1,11 @@ +import 'package:ferry/ferry.dart'; + +import '__generated__/about_query.req.gql.dart'; + +abstract class AboutQuery { + static GAboutReq get getAboutQuery => GAboutReq(); + + static GServerUpdateReq get serverUpdateQuery => GServerUpdateReq( + (req) => req..fetchPolicy = FetchPolicy.NoCache, + ); +} diff --git a/lib/src/features/about/data/graphql/about_query.graphql b/lib/src/features/about/data/graphql/about_query.graphql new file mode 100644 index 00000000..da10ba56 --- /dev/null +++ b/lib/src/features/about/data/graphql/about_query.graphql @@ -0,0 +1,19 @@ +query About { + aboutServer { + name + version + revision + buildType + buildTime + discord + github + } +} + +query ServerUpdate { + checkForServerUpdates { + channel + tag + url + } +} diff --git a/lib/src/features/about/domain/about/about_model.dart b/lib/src/features/about/domain/about/about_dto.dart similarity index 70% rename from lib/src/features/about/domain/about/about_model.dart rename to lib/src/features/about/domain/about/about_dto.dart index 8eb5d6d6..cd4a4201 100644 --- a/lib/src/features/about/domain/about/about_model.dart +++ b/lib/src/features/about/domain/about/about_dto.dart @@ -6,12 +6,12 @@ import 'package:freezed_annotation/freezed_annotation.dart'; -part 'about_model.freezed.dart'; -part 'about_model.g.dart'; +part 'about_dto.freezed.dart'; @freezed -class About with _$About { - const factory About({ +class AboutDto with _$AboutDto { + const AboutDto._(); + const factory AboutDto({ String? name, String? version, String? revision, @@ -19,7 +19,5 @@ class About with _$About { int? buildTime, String? github, String? discord, - }) = _About; - - factory About.fromJson(Map json) => _$AboutFromJson(json); + }) = _AboutDto; } diff --git a/lib/src/features/about/domain/about/about_model.freezed.dart b/lib/src/features/about/domain/about/about_dto.freezed.dart similarity index 77% rename from lib/src/features/about/domain/about/about_model.freezed.dart rename to lib/src/features/about/domain/about/about_dto.freezed.dart index ec5ba4d9..37fd53f5 100644 --- a/lib/src/features/about/domain/about/about_model.freezed.dart +++ b/lib/src/features/about/domain/about/about_dto.freezed.dart @@ -3,7 +3,7 @@ // 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 'about_model.dart'; +part of 'about_dto.dart'; // ************************************************************************** // FreezedGenerator @@ -12,14 +12,10 @@ part of 'about_model.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); - -About _$AboutFromJson(Map json) { - return _About.fromJson(json); -} + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); /// @nodoc -mixin _$About { +mixin _$AboutDto { String? get name => throw _privateConstructorUsedError; String? get version => throw _privateConstructorUsedError; String? get revision => throw _privateConstructorUsedError; @@ -28,15 +24,15 @@ mixin _$About { String? get github => throw _privateConstructorUsedError; String? get discord => throw _privateConstructorUsedError; - Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $AboutCopyWith get copyWith => throw _privateConstructorUsedError; + $AboutDtoCopyWith get copyWith => + throw _privateConstructorUsedError; } /// @nodoc -abstract class $AboutCopyWith<$Res> { - factory $AboutCopyWith(About value, $Res Function(About) then) = - _$AboutCopyWithImpl<$Res, About>; +abstract class $AboutDtoCopyWith<$Res> { + factory $AboutDtoCopyWith(AboutDto value, $Res Function(AboutDto) then) = + _$AboutDtoCopyWithImpl<$Res, AboutDto>; @useResult $Res call( {String? name, @@ -49,9 +45,9 @@ abstract class $AboutCopyWith<$Res> { } /// @nodoc -class _$AboutCopyWithImpl<$Res, $Val extends About> - implements $AboutCopyWith<$Res> { - _$AboutCopyWithImpl(this._value, this._then); +class _$AboutDtoCopyWithImpl<$Res, $Val extends AboutDto> + implements $AboutDtoCopyWith<$Res> { + _$AboutDtoCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; @@ -103,10 +99,11 @@ class _$AboutCopyWithImpl<$Res, $Val extends About> } /// @nodoc -abstract class _$$AboutImplCopyWith<$Res> implements $AboutCopyWith<$Res> { - factory _$$AboutImplCopyWith( - _$AboutImpl value, $Res Function(_$AboutImpl) then) = - __$$AboutImplCopyWithImpl<$Res>; +abstract class _$$AboutDtoImplCopyWith<$Res> + implements $AboutDtoCopyWith<$Res> { + factory _$$AboutDtoImplCopyWith( + _$AboutDtoImpl value, $Res Function(_$AboutDtoImpl) then) = + __$$AboutDtoImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -120,11 +117,11 @@ abstract class _$$AboutImplCopyWith<$Res> implements $AboutCopyWith<$Res> { } /// @nodoc -class __$$AboutImplCopyWithImpl<$Res> - extends _$AboutCopyWithImpl<$Res, _$AboutImpl> - implements _$$AboutImplCopyWith<$Res> { - __$$AboutImplCopyWithImpl( - _$AboutImpl _value, $Res Function(_$AboutImpl) _then) +class __$$AboutDtoImplCopyWithImpl<$Res> + extends _$AboutDtoCopyWithImpl<$Res, _$AboutDtoImpl> + implements _$$AboutDtoImplCopyWith<$Res> { + __$$AboutDtoImplCopyWithImpl( + _$AboutDtoImpl _value, $Res Function(_$AboutDtoImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -138,7 +135,7 @@ class __$$AboutImplCopyWithImpl<$Res> Object? github = freezed, Object? discord = freezed, }) { - return _then(_$AboutImpl( + return _then(_$AboutDtoImpl( name: freezed == name ? _value.name : name // ignore: cast_nullable_to_non_nullable @@ -172,19 +169,17 @@ class __$$AboutImplCopyWithImpl<$Res> } /// @nodoc -@JsonSerializable() -class _$AboutImpl implements _About { - const _$AboutImpl( + +class _$AboutDtoImpl extends _AboutDto { + const _$AboutDtoImpl( {this.name, this.version, this.revision, this.buildType, this.buildTime, this.github, - this.discord}); - - factory _$AboutImpl.fromJson(Map json) => - _$$AboutImplFromJson(json); + this.discord}) + : super._(); @override final String? name; @@ -203,14 +198,14 @@ class _$AboutImpl implements _About { @override String toString() { - return 'About(name: $name, version: $version, revision: $revision, buildType: $buildType, buildTime: $buildTime, github: $github, discord: $discord)'; + return 'AboutDto(name: $name, version: $version, revision: $revision, buildType: $buildType, buildTime: $buildTime, github: $github, discord: $discord)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$AboutImpl && + other is _$AboutDtoImpl && (identical(other.name, name) || other.name == name) && (identical(other.version, version) || other.version == version) && (identical(other.revision, revision) || @@ -223,7 +218,6 @@ class _$AboutImpl implements _About { (identical(other.discord, discord) || other.discord == discord)); } - @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, name, version, revision, buildType, buildTime, github, discord); @@ -231,28 +225,20 @@ class _$AboutImpl implements _About { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$AboutImplCopyWith<_$AboutImpl> get copyWith => - __$$AboutImplCopyWithImpl<_$AboutImpl>(this, _$identity); - - @override - Map toJson() { - return _$$AboutImplToJson( - this, - ); - } + _$$AboutDtoImplCopyWith<_$AboutDtoImpl> get copyWith => + __$$AboutDtoImplCopyWithImpl<_$AboutDtoImpl>(this, _$identity); } -abstract class _About implements About { - const factory _About( +abstract class _AboutDto extends AboutDto { + const factory _AboutDto( {final String? name, final String? version, final String? revision, final String? buildType, final int? buildTime, final String? github, - final String? discord}) = _$AboutImpl; - - factory _About.fromJson(Map json) = _$AboutImpl.fromJson; + final String? discord}) = _$AboutDtoImpl; + const _AboutDto._() : super._(); @override String? get name; @@ -270,6 +256,6 @@ abstract class _About implements About { String? get discord; @override @JsonKey(ignore: true) - _$$AboutImplCopyWith<_$AboutImpl> get copyWith => + _$$AboutDtoImplCopyWith<_$AboutDtoImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/src/features/about/domain/about/about_model.g.dart b/lib/src/features/about/domain/about/about_model.g.dart deleted file mode 100644 index 6d9940c5..00000000 --- a/lib/src/features/about/domain/about/about_model.g.dart +++ /dev/null @@ -1,28 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'about_model.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$AboutImpl _$$AboutImplFromJson(Map json) => _$AboutImpl( - name: json['name'] as String?, - version: json['version'] as String?, - revision: json['revision'] as String?, - buildType: json['buildType'] as String?, - buildTime: json['buildTime'] as int?, - github: json['github'] as String?, - discord: json['discord'] as String?, - ); - -Map _$$AboutImplToJson(_$AboutImpl instance) => - { - 'name': instance.name, - 'version': instance.version, - 'revision': instance.revision, - 'buildType': instance.buildType, - 'buildTime': instance.buildTime, - 'github': instance.github, - 'discord': instance.discord, - }; diff --git a/lib/src/features/about/domain/server_update/server_update_model.dart b/lib/src/features/about/domain/server_update/server_update.dart similarity index 73% rename from lib/src/features/about/domain/server_update/server_update_model.dart rename to lib/src/features/about/domain/server_update/server_update.dart index ca243773..d96c6e0c 100644 --- a/lib/src/features/about/domain/server_update/server_update_model.dart +++ b/lib/src/features/about/domain/server_update/server_update.dart @@ -6,8 +6,7 @@ import 'package:freezed_annotation/freezed_annotation.dart'; -part 'server_update_model.freezed.dart'; -part 'server_update_model.g.dart'; +part 'server_update.freezed.dart'; @freezed class ServerUpdate with _$ServerUpdate { @@ -16,7 +15,4 @@ class ServerUpdate with _$ServerUpdate { String? tag, String? url, }) = _ServerUpdate; - - factory ServerUpdate.fromJson(Map json) => - _$ServerUpdateFromJson(json); } diff --git a/lib/src/features/about/domain/server_update/server_update_model.freezed.dart b/lib/src/features/about/domain/server_update/server_update.freezed.dart similarity index 89% rename from lib/src/features/about/domain/server_update/server_update_model.freezed.dart rename to lib/src/features/about/domain/server_update/server_update.freezed.dart index 6769c458..9a0681fa 100644 --- a/lib/src/features/about/domain/server_update/server_update_model.freezed.dart +++ b/lib/src/features/about/domain/server_update/server_update.freezed.dart @@ -3,7 +3,7 @@ // 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 'server_update_model.dart'; +part of 'server_update.dart'; // ************************************************************************** // FreezedGenerator @@ -12,11 +12,7 @@ part of 'server_update_model.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); - -ServerUpdate _$ServerUpdateFromJson(Map json) { - return _ServerUpdate.fromJson(json); -} + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); /// @nodoc mixin _$ServerUpdate { @@ -24,7 +20,6 @@ mixin _$ServerUpdate { String? get tag => throw _privateConstructorUsedError; String? get url => throw _privateConstructorUsedError; - Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) $ServerUpdateCopyWith get copyWith => throw _privateConstructorUsedError; @@ -117,13 +112,10 @@ class __$$ServerUpdateImplCopyWithImpl<$Res> } /// @nodoc -@JsonSerializable() + class _$ServerUpdateImpl implements _ServerUpdate { _$ServerUpdateImpl({this.channel, this.tag, this.url}); - factory _$ServerUpdateImpl.fromJson(Map json) => - _$$ServerUpdateImplFromJson(json); - @override final String? channel; @override @@ -146,7 +138,6 @@ class _$ServerUpdateImpl implements _ServerUpdate { (identical(other.url, url) || other.url == url)); } - @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, channel, tag, url); @@ -155,13 +146,6 @@ class _$ServerUpdateImpl implements _ServerUpdate { @pragma('vm:prefer-inline') _$$ServerUpdateImplCopyWith<_$ServerUpdateImpl> get copyWith => __$$ServerUpdateImplCopyWithImpl<_$ServerUpdateImpl>(this, _$identity); - - @override - Map toJson() { - return _$$ServerUpdateImplToJson( - this, - ); - } } abstract class _ServerUpdate implements ServerUpdate { @@ -170,9 +154,6 @@ abstract class _ServerUpdate implements ServerUpdate { final String? tag, final String? url}) = _$ServerUpdateImpl; - factory _ServerUpdate.fromJson(Map json) = - _$ServerUpdateImpl.fromJson; - @override String? get channel; @override diff --git a/lib/src/features/about/domain/server_update/server_update_model.g.dart b/lib/src/features/about/domain/server_update/server_update_model.g.dart deleted file mode 100644 index e1ca2827..00000000 --- a/lib/src/features/about/domain/server_update/server_update_model.g.dart +++ /dev/null @@ -1,21 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'server_update_model.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ServerUpdateImpl _$$ServerUpdateImplFromJson(Map json) => - _$ServerUpdateImpl( - channel: json['channel'] as String?, - tag: json['tag'] as String?, - url: json['url'] as String?, - ); - -Map _$$ServerUpdateImplToJson(_$ServerUpdateImpl instance) => - { - 'channel': instance.channel, - 'tag': instance.tag, - 'url': instance.url, - }; diff --git a/lib/src/features/about/presentation/about/about_screen.dart b/lib/src/features/about/presentation/about/about_screen.dart index 061fbbb0..c30feeed 100644 --- a/lib/src/features/about/presentation/about/about_screen.dart +++ b/lib/src/features/about/presentation/about/about_screen.dart @@ -14,13 +14,12 @@ import 'package:pub_semver/pub_semver.dart'; import '../../../../constants/app_sizes.dart'; import '../../../../constants/gen/assets.gen.dart'; import '../../../../constants/urls.dart'; - import '../../../../utils/extensions/custom_extensions.dart'; import '../../../../utils/launch_url_in_web.dart'; import '../../../../utils/misc/toast/toast.dart'; import '../../data/about_repository.dart'; -import '../../domain/about/about_model.dart'; -import '../../domain/server_update/server_update_model.dart'; +import '../../domain/about/about_dto.dart'; +import '../../domain/server_update/server_update.dart'; import 'controllers/about_controller.dart'; import 'widget/app_update_dialog.dart'; import 'widget/clipboard_list_tile.dart'; @@ -32,11 +31,11 @@ class AboutScreen extends HookConsumerWidget { void checkForServerUpdate({ required BuildContext context, required String serverVer, - required About about, + required AboutDto about, required Future?> Function() updateCallback, required Toast toast, }) { - toast.show(context.l10n!.searchingForUpdates); + toast.show(context.l10n.searchingForUpdates); AsyncValue.guard(updateCallback).then( (value) { toast.close(); @@ -52,7 +51,7 @@ class AboutScreen extends HookConsumerWidget { final newVer = Version.parse(newUpdate.tag?.substring(1) ?? ""); if ((newVer.compareTo(currentVer)).isGreaterThan(0)) { appUpdateDialog( - title: about.name ?? context.l10n!.server, + title: about.name ?? context.l10n.server, newRelease: "${newVer.canonicalizedVersion}" " (${newUpdate.channel})", context: context, @@ -60,14 +59,14 @@ class AboutScreen extends HookConsumerWidget { url: newUpdate.url, ); } else { - toast.show(context.l10n!.noUpdatesAvailable); + toast.show(context.l10n.noUpdatesAvailable); } }, error: (error, stackTrace) => value.showToastOnError(toast), ); } catch (e) { toast.showError( - kDebugMode ? e.toString() : context.l10n!.errorSomethingWentWrong, + kDebugMode ? e.toString() : context.l10n.errorSomethingWentWrong, ); } }, @@ -80,21 +79,21 @@ class AboutScreen extends HookConsumerWidget { required Future> Function() updateCallback, required Toast toast, }) async { - toast.show(context.l10n!.searchingForUpdates); + toast.show(context.l10n.searchingForUpdates); final result = await updateCallback(); - if (context.mounted) return; + if (!context.mounted) return; toast.close(); result.whenOrNull( data: (version) { if (version != null) { appUpdateDialog( - title: title ?? context.l10n!.appTitle, + title: title ?? context.l10n.appTitle, newRelease: "v${version.canonicalizedVersion}", context: context, toast: toast, ); } else { - toast.show(context.l10n!.noUpdatesAvailable); + toast.show(context.l10n.noUpdatesAvailable); } }, error: (error, stackTrace) => result.showToastOnError(toast), @@ -117,7 +116,7 @@ class AboutScreen extends HookConsumerWidget { }, [aboutAsync.valueOrNull]); return Scaffold( - appBar: AppBar(title: Text(context.l10n!.about)), + appBar: AppBar(title: Text(context.l10n.about)), body: RefreshIndicator( onRefresh: () => ref.refresh(aboutProvider.future), child: ListView( @@ -128,22 +127,22 @@ class AboutScreen extends HookConsumerWidget { ), const Divider(), ClipboardListTile( - title: context.l10n!.client, + title: context.l10n.client, value: packageInfo.appName, ), ClipboardListTile( - title: context.l10n!.clientVersion, + title: context.l10n.clientVersion, value: "v${packageInfo.version}", ), ListTile( - title: Text(context.l10n!.whatsNew), + title: Text(context.l10n.whatsNew), onTap: () async { final url = AppUrls.sorayomiWhatsNew.url + packageInfo.version; await launchUrlInWeb(context, url, toast); }, ), ListTile( - title: Text(context.l10n!.checkForUpdates), + title: Text(context.l10n.checkForUpdates), onTap: () => checkForUpdate( title: packageInfo.appName, context: context, @@ -154,20 +153,20 @@ class AboutScreen extends HookConsumerWidget { if (about != null) ...[ const Divider(), ClipboardListTile( - title: context.l10n!.server, + title: context.l10n.server, value: about.name, ), ClipboardListTile( - title: context.l10n!.channel, + title: context.l10n.channel, value: about.buildType, ), if (serverVer.isNotBlank) ClipboardListTile( - title: context.l10n!.serverVersion, + title: context.l10n.serverVersion, value: serverVer, ), ClipboardListTile( - title: context.l10n!.buildTime, + title: context.l10n.buildTime, value: (about.buildTime).isNull ? null : DateTime.fromMillisecondsSinceEpoch( @@ -176,7 +175,7 @@ class AboutScreen extends HookConsumerWidget { ), if (serverVer.isNotBlank) ListTile( - title: Text(context.l10n!.checkForServerUpdates), + title: Text(context.l10n.checkForServerUpdates), onTap: () => checkForServerUpdate( context: context, serverVer: serverVer ?? "", @@ -193,20 +192,20 @@ class AboutScreen extends HookConsumerWidget { alignment: WrapAlignment.spaceEvenly, children: [ MediaLaunchButton( - title: "${context.l10n!.gitHub} ", + title: "${context.l10n.gitHub} ", iconData: FontAwesomeIcons.github, url: AppUrls.sorayomiGithubUrl.url, toast: toast, ), if ((about?.discord).isNotBlank) MediaLaunchButton( - title: context.l10n!.discord, + title: context.l10n.discord, iconData: FontAwesomeIcons.discord, url: about!.discord!, toast: toast, ), MediaLaunchButton( - title: context.l10n!.reddit, + title: context.l10n.reddit, iconData: FontAwesomeIcons.reddit, url: AppUrls.tachideskReddit.url, toast: toast, diff --git a/lib/src/features/about/presentation/about/controllers/about_controller.dart b/lib/src/features/about/presentation/about/controllers/about_controller.dart index cfc547a6..e05c6f8d 100644 --- a/lib/src/features/about/presentation/about/controllers/about_controller.dart +++ b/lib/src/features/about/presentation/about/controllers/about_controller.dart @@ -4,21 +4,19 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -import 'package:dio/dio.dart'; +import 'dart:async'; + import 'package:package_info_plus/package_info_plus.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; import '../../../data/about_repository.dart'; -import '../../../domain/about/about_model.dart'; +import '../../../domain/about/about_dto.dart'; part 'about_controller.g.dart'; @riverpod -Future about(AboutRef ref) async { - final token = CancelToken(); - ref.onDispose(token.cancel); - final result = - await ref.watch(aboutRepositoryProvider).getAbout(cancelToken: token); +Stream about(AboutRef ref) { + final result = ref.watch(aboutRepositoryProvider).getAbout(); ref.keepAlive(); return result; } diff --git a/lib/src/features/about/presentation/about/controllers/about_controller.g.dart b/lib/src/features/about/presentation/about/controllers/about_controller.g.dart index d9ba08f0..e3777762 100644 --- a/lib/src/features/about/presentation/about/controllers/about_controller.g.dart +++ b/lib/src/features/about/presentation/about/controllers/about_controller.g.dart @@ -6,11 +6,11 @@ part of 'about_controller.dart'; // RiverpodGenerator // ************************************************************************** -String _$aboutHash() => r'71e0d6115e3d5baeb6cd30cea233be2cba2142bb'; +String _$aboutHash() => r'b095c8ac883226d5e0282b5d019cc97405b02042'; /// See also [about]. @ProviderFor(about) -final aboutProvider = AutoDisposeFutureProvider.internal( +final aboutProvider = AutoDisposeStreamProvider.internal( about, name: r'aboutProvider', debugGetCreateSourceHash: @@ -19,7 +19,7 @@ final aboutProvider = AutoDisposeFutureProvider.internal( allTransitiveDependencies: null, ); -typedef AboutRef = AutoDisposeFutureProviderRef; +typedef AboutRef = AutoDisposeStreamProviderRef; String _$packageInfoHash() => r'a5025c8498b8f2eacf55450228619ff1477adc05'; /// See also [packageInfo]. diff --git a/lib/src/features/about/presentation/about/widget/app_update_dialog.dart b/lib/src/features/about/presentation/about/widget/app_update_dialog.dart index 19d73342..82386180 100644 --- a/lib/src/features/about/presentation/about/widget/app_update_dialog.dart +++ b/lib/src/features/about/presentation/about/widget/app_update_dialog.dart @@ -23,12 +23,12 @@ void appUpdateDialog({ context: context, builder: (context) { return AlertDialog( - title: Text(context.l10n!.newUpdateAvailable), - content: Text(context.l10n!.versionAvailable(title, newRelease)), + title: Text(context.l10n.newUpdateAvailable), + content: Text(context.l10n.versionAvailable(title, newRelease)), actions: [ TextButton( onPressed: () => Navigator.pop(context), - child: Text(context.l10n!.close), + child: Text(context.l10n.close), ), ElevatedButton.icon( onPressed: () { @@ -37,7 +37,7 @@ void appUpdateDialog({ Navigator.pop(context); }, icon: const Icon(FontAwesomeIcons.github), - label: Text(context.l10n!.gitHub), + label: Text(context.l10n.gitHub), ), ], ); diff --git a/lib/src/features/about/presentation/about/widget/clipboard_list_tile.dart b/lib/src/features/about/presentation/about/widget/clipboard_list_tile.dart index 335ca56a..a03653e6 100644 --- a/lib/src/features/about/presentation/about/widget/clipboard_list_tile.dart +++ b/lib/src/features/about/presentation/about/widget/clipboard_list_tile.dart @@ -32,7 +32,7 @@ class ClipboardListTile extends ConsumerWidget { ); ref .read(toastProvider(context)) - .instantShow(context.l10n!.copyMsg(msg)); + .show(context.l10n.copyMsg(msg), instantShow: true); } : null, ); diff --git a/lib/src/features/browse_center/data/extension_repository/extension_repository.dart b/lib/src/features/browse_center/data/extension_repository/extension_repository.dart index fdf1e324..b2bc0ad3 100644 --- a/lib/src/features/browse_center/data/extension_repository/extension_repository.dart +++ b/lib/src/features/browse_center/data/extension_repository/extension_repository.dart @@ -30,10 +30,10 @@ class ExtensionRepository { CancelToken? cancelToken, }) async { if ((file?.path).isBlank) { - throw context.l10n!.errorFilePick; + throw context.l10n.errorFilePick; } if (!(file!.name.endsWith('.apk'))) { - throw context.l10n!.errorFilePickUnknownExtension(".apk"); + throw context.l10n.errorFilePickUnknownExtension(".apk"); } return (file.path).isNotBlank ? (await dioClient.post( diff --git a/lib/src/features/browse_center/domain/extension/extension_model.freezed.dart b/lib/src/features/browse_center/domain/extension/extension_model.freezed.dart index 4317427d..fa6fdc7e 100644 --- a/lib/src/features/browse_center/domain/extension/extension_model.freezed.dart +++ b/lib/src/features/browse_center/domain/extension/extension_model.freezed.dart @@ -12,7 +12,7 @@ part of 'extension_model.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); Extension _$ExtensionFromJson(Map json) { return _Extension.fromJson(json); diff --git a/lib/src/features/browse_center/domain/filter/filter_model.freezed.dart b/lib/src/features/browse_center/domain/filter/filter_model.freezed.dart index 3a18d33b..8e565abf 100644 --- a/lib/src/features/browse_center/domain/filter/filter_model.freezed.dart +++ b/lib/src/features/browse_center/domain/filter/filter_model.freezed.dart @@ -12,7 +12,7 @@ part of 'filter_model.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); Filter _$FilterFromJson(Map json) { return _Filter.fromJson(json); diff --git a/lib/src/features/browse_center/domain/filter_state/filter_state_model.freezed.dart b/lib/src/features/browse_center/domain/filter_state/filter_state_model.freezed.dart index 76957d02..f06644de 100644 --- a/lib/src/features/browse_center/domain/filter_state/filter_state_model.freezed.dart +++ b/lib/src/features/browse_center/domain/filter_state/filter_state_model.freezed.dart @@ -12,7 +12,7 @@ part of 'filter_state_model.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); FilterState _$FilterStateFromJson(Map json) { switch (json['type']) { diff --git a/lib/src/features/browse_center/domain/language/language_model.freezed.dart b/lib/src/features/browse_center/domain/language/language_model.freezed.dart index 55da1d48..4bbe7655 100644 --- a/lib/src/features/browse_center/domain/language/language_model.freezed.dart +++ b/lib/src/features/browse_center/domain/language/language_model.freezed.dart @@ -12,7 +12,7 @@ part of 'language_model.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); Language _$LanguageFromJson(Map json) { return _Language.fromJson(json); diff --git a/lib/src/features/browse_center/domain/manga_page/manga_page.freezed.dart b/lib/src/features/browse_center/domain/manga_page/manga_page.freezed.dart index 59654d82..fb8e4c09 100644 --- a/lib/src/features/browse_center/domain/manga_page/manga_page.freezed.dart +++ b/lib/src/features/browse_center/domain/manga_page/manga_page.freezed.dart @@ -12,7 +12,7 @@ part of 'manga_page.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); MangaPage _$MangaPageFromJson(Map json) { return _MangaPage.fromJson(json); diff --git a/lib/src/features/browse_center/domain/source/source_model.freezed.dart b/lib/src/features/browse_center/domain/source/source_model.freezed.dart index 5276f0dc..44aad839 100644 --- a/lib/src/features/browse_center/domain/source/source_model.freezed.dart +++ b/lib/src/features/browse_center/domain/source/source_model.freezed.dart @@ -12,7 +12,7 @@ part of 'source_model.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); Source _$SourceFromJson(Map json) { return _Source.fromJson(json); diff --git a/lib/src/features/browse_center/domain/source_preference/source_preference.freezed.dart b/lib/src/features/browse_center/domain/source_preference/source_preference.freezed.dart index addd3ec1..72d68b8e 100644 --- a/lib/src/features/browse_center/domain/source_preference/source_preference.freezed.dart +++ b/lib/src/features/browse_center/domain/source_preference/source_preference.freezed.dart @@ -12,7 +12,7 @@ part of 'source_preference.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); SourcePreference _$SourcePreferenceFromJson(Map json) { return _SourcePreference.fromJson(json); diff --git a/lib/src/features/browse_center/domain/source_preference_prop/source_preference_prop.freezed.dart b/lib/src/features/browse_center/domain/source_preference_prop/source_preference_prop.freezed.dart index 3a0c109c..4b1f7cb4 100644 --- a/lib/src/features/browse_center/domain/source_preference_prop/source_preference_prop.freezed.dart +++ b/lib/src/features/browse_center/domain/source_preference_prop/source_preference_prop.freezed.dart @@ -12,7 +12,7 @@ part of 'source_preference_prop.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); SourcePreferenceProp _$SourcePreferencePropFromJson(Map json) { switch (json['type']) { diff --git a/lib/src/features/browse_center/presentation/browse/browse_screen.dart b/lib/src/features/browse_center/presentation/browse/browse_screen.dart index 596c01e5..caaac23c 100644 --- a/lib/src/features/browse_center/presentation/browse/browse_screen.dart +++ b/lib/src/features/browse_center/presentation/browse/browse_screen.dart @@ -30,7 +30,7 @@ class BrowseScreen extends HookConsumerWidget { final showSearch = useState(false); return Scaffold( appBar: AppBar( - title: Text(context.l10n!.browse), + title: Text(context.l10n.browse), centerTitle: true, actions: [ IconButton( @@ -63,8 +63,8 @@ class BrowseScreen extends HookConsumerWidget { isScrollable: context.isTablet, controller: tabController, tabs: [ - Tab(text: context.l10n!.sources), - Tab(text: context.l10n!.extensions), + Tab(text: context.l10n.sources), + Tab(text: context.l10n.extensions), ], ), if (showSearch.value) diff --git a/lib/src/features/browse_center/presentation/extension/extension_screen.dart b/lib/src/features/browse_center/presentation/extension/extension_screen.dart index e0a3c7cd..11986447 100644 --- a/lib/src/features/browse_center/presentation/extension/extension_screen.dart +++ b/lib/src/features/browse_center/presentation/extension/extension_screen.dart @@ -78,10 +78,10 @@ class ExtensionScreen extends HookConsumerWidget { update.isBlank && all.isBlank) ? Emoticons( - text: context.l10n!.extensionListEmpty, + text: context.l10n.extensionListEmpty, button: TextButton( onPressed: refresh, - child: Text(context.l10n!.refresh), + child: Text(context.l10n.refresh), ), ) : RefreshIndicator( diff --git a/lib/src/features/browse_center/presentation/extension/widgets/extension_language_filter_dialog.dart b/lib/src/features/browse_center/presentation/extension/widgets/extension_language_filter_dialog.dart index b5aa2f4c..5462692d 100644 --- a/lib/src/features/browse_center/presentation/extension/widgets/extension_language_filter_dialog.dart +++ b/lib/src/features/browse_center/presentation/extension/widgets/extension_language_filter_dialog.dart @@ -10,7 +10,7 @@ import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../../constants/language_list.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; -import '../../../../../widgets/pop_button.dart'; +import '../../../../../widgets/popup_widgets/pop_button.dart'; import '../../../domain/language/language_model.dart'; import '../controller/extension_controller.dart'; @@ -21,7 +21,7 @@ class ExtensionLanguageFilterDialog extends ConsumerWidget { final languageCodes = ref.watch(extensionFilterLangListProvider); final enabledLanguages = ref.watch(extensionLanguageFilterProvider); return AlertDialog( - title: Text(context.l10n!.languages), + title: Text(context.l10n.languages), content: SizedBox( height: context.heightScale(scale: .5), width: context.widthScale(scale: context.isSmallTablet ? .5 : .8), @@ -61,7 +61,7 @@ class ExtensionLanguageFilterDialog extends ConsumerWidget { }, ), ), - actions: [PopButton(popText: context.l10n!.close)], + actions: [PopButton(popText: context.l10n.close)], ); } } diff --git a/lib/src/features/browse_center/presentation/extension/widgets/extension_list_tile.dart b/lib/src/features/browse_center/presentation/extension/widgets/extension_list_tile.dart index d6ba02d2..736702a1 100644 --- a/lib/src/features/browse_center/presentation/extension/widgets/extension_list_tile.dart +++ b/lib/src/features/browse_center/presentation/extension/widgets/extension_list_tile.dart @@ -60,7 +60,7 @@ class ExtensionListTile extends HookConsumerWidget { ), if (extension.isNsfw.ifNull()) TextSpan( - text: context.l10n!.nsfw18, + text: context.l10n.nsfw18, style: const TextStyle( fontWeight: FontWeight.w400, color: Colors.redAccent, @@ -104,7 +104,7 @@ class ExtensionListTileTailing extends StatelessWidget { ? () => repository.uninstallExtension(extension.pkgName!) : null, child: Text( - context.l10n!.obsolete, + context.l10n.obsolete, style: const TextStyle(color: Colors.redAccent), ), ); @@ -118,7 +118,7 @@ class ExtensionListTileTailing extends StatelessWidget { final result = (await AsyncValue.guard( () async { if (extension.pkgName.isBlank) { - throw context.l10n!.errorExtension; + throw context.l10n.errorExtension; } if (extension.hasUpdate.ifNull()) { await repository.updateExtension(extension.pkgName!); @@ -142,11 +142,11 @@ class ExtensionListTileTailing extends StatelessWidget { child: Text( extension.hasUpdate.ifNull() ? isLoading.value - ? context.l10n!.updating - : context.l10n!.update + ? context.l10n.updating + : context.l10n.update : isLoading.value - ? context.l10n!.uninstalling - : context.l10n!.uninstall, + ? context.l10n.uninstalling + : context.l10n.uninstall, ), ); } else { @@ -157,7 +157,7 @@ class ExtensionListTileTailing extends StatelessWidget { isLoading.value = (true); final result = await AsyncValue.guard(() async { if (extension.pkgName.isBlank) { - throw context.l10n!.errorExtension; + throw context.l10n.errorExtension; } await repository.installExtension(extension.pkgName!); if ((extension.lang?.code).isNotBlank) { @@ -187,7 +187,7 @@ class ExtensionListTileTailing extends StatelessWidget { } : null, child: Text( - isLoading.value ? context.l10n!.installing : context.l10n!.install, + isLoading.value ? context.l10n.installing : context.l10n.install, ), ); } diff --git a/lib/src/features/browse_center/presentation/extension/widgets/install_extension_file.dart b/lib/src/features/browse_center/presentation/extension/widgets/install_extension_file.dart index 37be67f5..ffd06983 100644 --- a/lib/src/features/browse_center/presentation/extension/widgets/install_extension_file.dart +++ b/lib/src/features/browse_center/presentation/extension/widgets/install_extension_file.dart @@ -24,7 +24,7 @@ class InstallExtensionFile extends ConsumerWidget { ); if ((file?.files).isNotBlank) { if (context.mounted) { - toast.show(context.l10n!.installingExtension); + toast.show(context.l10n.installingExtension); } } AsyncValue.guard(() => ref @@ -34,7 +34,7 @@ class InstallExtensionFile extends ConsumerWidget { error: (error, stackTrace) => result.showToastOnError(toast), data: (data) { ref.invalidate(extensionProvider); - toast.instantShow(context.l10n!.extensionInstalled); + toast.show(context.l10n.extensionInstalled, instantShow: true); }, ), ); diff --git a/lib/src/features/browse_center/presentation/global_search/global_search_screen.dart b/lib/src/features/browse_center/presentation/global_search/global_search_screen.dart index 21fc477a..dbceedf4 100644 --- a/lib/src/features/browse_center/presentation/global_search/global_search_screen.dart +++ b/lib/src/features/browse_center/presentation/global_search/global_search_screen.dart @@ -26,7 +26,7 @@ class GlobalSearchScreen extends HookConsumerWidget { ref.watch(quickSearchResultsProvider(query: query.value)); return Scaffold( appBar: AppBar( - title: Text(context.l10n!.globalSearch), + title: Text(context.l10n.globalSearch), bottom: PreferredSize( preferredSize: kCalculateAppBarBottomSize([true]), child: Column( @@ -46,10 +46,10 @@ class GlobalSearchScreen extends HookConsumerWidget { context, (data) => data.isBlank ? Emoticons( - text: context.l10n!.noSourcesFound, + text: context.l10n.noSourcesFound, button: TextButton( onPressed: () => ref.invalidate(sourceListProvider), - child: Text(context.l10n!.refresh), + child: Text(context.l10n.refresh), ), ) : ListView.builder( diff --git a/lib/src/features/browse_center/presentation/global_search/widgets/source_short_search.dart b/lib/src/features/browse_center/presentation/global_search/widgets/source_short_search.dart index 701745be..6a919e9b 100644 --- a/lib/src/features/browse_center/presentation/global_search/widgets/source_short_search.dart +++ b/lib/src/features/browse_center/presentation/global_search/widgets/source_short_search.dart @@ -47,7 +47,7 @@ class SourceShortSearch extends StatelessWidget { (data) => data.isEmpty ? Padding( padding: KEdgeInsets.h16v4.size, - child: Text(context.l10n!.noResultFound), + child: Text(context.l10n.noResultFound), ) : SingleChildScrollView( scrollDirection: Axis.horizontal, diff --git a/lib/src/features/browse_center/presentation/source/source_screen.dart b/lib/src/features/browse_center/presentation/source/source_screen.dart index 69f239a3..3d2720bb 100644 --- a/lib/src/features/browse_center/presentation/source/source_screen.dart +++ b/lib/src/features/browse_center/presentation/source/source_screen.dart @@ -47,10 +47,10 @@ class SourceScreen extends HookConsumerWidget { (data) { if ((sourceMap.isEmpty && localSource.isBlank && lastUsed.isBlank)) { return Emoticons( - text: context.l10n!.noSourcesFound, + text: context.l10n.noSourcesFound, button: TextButton( onPressed: refresh, - child: Text(context.l10n!.refresh), + child: Text(context.l10n.refresh), ), ); } diff --git a/lib/src/features/browse_center/presentation/source/widgets/source_language_filter.dart b/lib/src/features/browse_center/presentation/source/widgets/source_language_filter.dart index 1401f3a6..2492ae6f 100644 --- a/lib/src/features/browse_center/presentation/source/widgets/source_language_filter.dart +++ b/lib/src/features/browse_center/presentation/source/widgets/source_language_filter.dart @@ -11,7 +11,7 @@ import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../../constants/language_list.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; -import '../../../../../widgets/pop_button.dart'; +import '../../../../../widgets/popup_widgets/pop_button.dart'; import '../../../domain/language/language_model.dart'; import '../controller/source_controller.dart'; @@ -34,7 +34,7 @@ class SourceLanguageFilter extends HookConsumerWidget { }, []); return AlertDialog( - title: Text(context.l10n!.languages), + title: Text(context.l10n.languages), content: SizedBox( height: context.heightScale(scale: .5), width: context.widthScale(scale: context.isSmallTablet ? .5 : .8), @@ -61,7 +61,7 @@ class SourceLanguageFilter extends HookConsumerWidget { }, ), ), - actions: [PopButton(popText: context.l10n!.close)], + actions: [PopButton(popText: context.l10n.close)], ); } } diff --git a/lib/src/features/browse_center/presentation/source/widgets/source_list_tile.dart b/lib/src/features/browse_center/presentation/source/widgets/source_list_tile.dart index e456952b..b02b32b7 100644 --- a/lib/src/features/browse_center/presentation/source/widgets/source_list_tile.dart +++ b/lib/src/features/browse_center/presentation/source/widgets/source_list_tile.dart @@ -52,7 +52,7 @@ class SourceListTile extends ConsumerWidget { sourceType: SourceType.latest, ).push(context); }, - child: Text(context.l10n!.latest), + child: Text(context.l10n.latest), ) : null, ); diff --git a/lib/src/features/browse_center/presentation/source_manga_list/source_manga_list_screen.dart b/lib/src/features/browse_center/presentation/source_manga_list/source_manga_list_screen.dart index 2f5ebf1d..a6c67f5b 100644 --- a/lib/src/features/browse_center/presentation/source_manga_list/source_manga_list_screen.dart +++ b/lib/src/features/browse_center/presentation/source_manga_list/source_manga_list_screen.dart @@ -133,7 +133,7 @@ class SourceMangaListScreen extends HookConsumerWidget { context, (data) => Scaffold( appBar: AppBar( - title: Text(data?.displayName ?? context.l10n!.source), + title: Text(data?.displayName ?? context.l10n.source), actions: [ IconButton( onPressed: () => showSearch.value = true, @@ -245,7 +245,7 @@ class SourceMangaListScreen extends HookConsumerWidget { refresh: () => ref.refresh(sourceProvider(sourceId)), wrapper: (body) => Scaffold( appBar: AppBar( - title: Text(context.l10n!.source), + title: Text(context.l10n.source), ), body: body, ), diff --git a/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_display_icon_popup.dart b/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_display_icon_popup.dart index 88932947..4a0fd59f 100644 --- a/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_display_icon_popup.dart +++ b/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_display_icon_popup.dart @@ -10,7 +10,7 @@ import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../../constants/db_keys.dart'; import '../../../../../constants/enum.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; -import '../../../../../widgets/radio_list_popup.dart'; +import '../../../../../widgets/popup_widgets/radio_list_popup.dart'; import '../controller/source_manga_controller.dart'; class SourceMangaDisplayIconPopup extends ConsumerWidget { @@ -27,7 +27,7 @@ class SourceMangaDisplayIconPopup extends ConsumerWidget { builder: (context) => RadioListPopup( optionList: DisplayMode.sourceDisplayList, getOptionTitle: (value) => value.toLocale(context), - title: context.l10n!.displayMode, + title: context.l10n.displayMode, value: displayMode, onChange: (enumValue) async { ref.read(sourceDisplayModeProvider.notifier).update(enumValue); diff --git a/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_display_view.dart b/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_display_view.dart index 4b8fc963..f88c2eb0 100644 --- a/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_display_view.dart +++ b/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_display_view.dart @@ -40,20 +40,20 @@ class SourceMangaDisplayView extends ConsumerWidget { builder: (context) => AlertDialog( title: item.title.isNotBlank ? Text(item.title!) : null, content: Text( - context.l10n!.removeFromLibrary, + context.l10n.removeFromLibrary, style: context.textTheme.bodyLarge, ), actions: [ TextButton( onPressed: () => Navigator.pop(context), - child: Text(context.l10n!.cancel), + child: Text(context.l10n.cancel), ), ElevatedButton( onPressed: () async { Navigator.pop(context); removeManga = true; }, - child: Text(context.l10n!.remove), + child: Text(context.l10n.remove), ), ], ), diff --git a/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_filter.dart b/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_filter.dart index 5671298d..aeb587b8 100644 --- a/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_filter.dart +++ b/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_filter.dart @@ -40,12 +40,12 @@ class SourceMangaFilter extends HookWidget { onReset(); filters.value = (initialFilters); }, - child: Text(context.l10n!.reset), + child: Text(context.l10n.reset), ), const Spacer(), FilledButton( onPressed: () => onSubmitted(filters.value), - child: Text(context.l10n!.filter), + child: Text(context.l10n.filter), ), ], ), diff --git a/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_grid_view.dart b/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_grid_view.dart index 955e50d6..ae0c0b09 100644 --- a/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_grid_view.dart +++ b/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_grid_view.dart @@ -43,14 +43,14 @@ class SourceMangaGridView extends ConsumerWidget { text: controller.error.toString(), button: TextButton( onPressed: () => controller.refresh(), - child: Text(context.l10n!.retry), + child: Text(context.l10n.retry), ), ), noItemsFoundIndicatorBuilder: (context) => Emoticons( - text: context.l10n!.noMangaFound, + text: context.l10n.noMangaFound, button: TextButton( onPressed: () => controller.refresh(), - child: Text(context.l10n!.refresh), + child: Text(context.l10n.refresh), ), ), itemBuilder: (context, item, index) => MangaCoverGridTile( diff --git a/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_list_view.dart b/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_list_view.dart index 7ea9c9b3..0cc3c25a 100644 --- a/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_list_view.dart +++ b/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_list_view.dart @@ -68,14 +68,14 @@ class SourceMangaListView extends ConsumerWidget { text: controller.error.toString(), button: TextButton( onPressed: () => controller.refresh(), - child: Text(context.l10n!.retry), + child: Text(context.l10n.retry), ), ), noItemsFoundIndicatorBuilder: (context) => Emoticons( - text: context.l10n!.noMangaFound, + text: context.l10n.noMangaFound, button: TextButton( onPressed: () => controller.refresh(), - child: Text(context.l10n!.refresh), + child: Text(context.l10n.refresh), ), ), itemBuilder: (context, item, index) => MangaCoverListTile( diff --git a/lib/src/features/browse_center/presentation/source_preference/widgets/source_preference_to_widget.dart b/lib/src/features/browse_center/presentation/source_preference/widgets/source_preference_to_widget.dart index ad91066f..f377a5f6 100644 --- a/lib/src/features/browse_center/presentation/source_preference/widgets/source_preference_to_widget.dart +++ b/lib/src/features/browse_center/presentation/source_preference/widgets/source_preference_to_widget.dart @@ -7,9 +7,9 @@ import 'package:flutter/material.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; -import '../../../../../widgets/multi_select_popup.dart'; -import '../../../../../widgets/radio_list_popup.dart'; -import '../../../../../widgets/text_field_popup.dart'; +import '../../../../../widgets/popup_widgets/multi_select_popup.dart'; +import '../../../../../widgets/popup_widgets/radio_list_popup.dart'; +import '../../../../../widgets/popup_widgets/text_field_popup.dart'; import '../../../domain/source_preference/source_preference.dart'; import '../../../domain/source_preference_prop/source_preference_prop.dart'; @@ -130,7 +130,7 @@ class SourcePreferenceToWidget extends StatelessWidget { builder: (context) => TextFieldPopup( title: dialogTitle ?? title ?? "", subtitle: dialogMessage ?? summary ?? "", - onChange: (value) => onChangedPreferenceCopyWith( + onChange: (value) async => onChangedPreferenceCopyWith( prop.copyWith(currentValue: value), context), initialValue: currentValue ?? defaultValue, ), diff --git a/lib/src/features/library/domain/category/category_model.freezed.dart b/lib/src/features/library/domain/category/category_model.freezed.dart index 435a96e4..d5d8ad47 100644 --- a/lib/src/features/library/domain/category/category_model.freezed.dart +++ b/lib/src/features/library/domain/category/category_model.freezed.dart @@ -12,7 +12,7 @@ part of 'category_model.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); Category _$CategoryFromJson(Map json) { return _Category.fromJson(json); diff --git a/lib/src/features/library/presentation/category/edit_category_screen.dart b/lib/src/features/library/presentation/category/edit_category_screen.dart index ccd937de..0cd41065 100644 --- a/lib/src/features/library/presentation/category/edit_category_screen.dart +++ b/lib/src/features/library/presentation/category/edit_category_screen.dart @@ -32,7 +32,7 @@ class EditCategoryScreen extends HookConsumerWidget { return Scaffold( appBar: AppBar( - title: Text(context.l10n!.editCategory), + title: Text(context.l10n.editCategory), ), floatingActionButton: categoryList.asError?.error != null ? null @@ -43,10 +43,10 @@ class EditCategoryScreen extends HookConsumerWidget { if (data.isBlank || (data.isSingletonList && data?.firstOrNull?.id == 0)) { return Emoticons( - text: context.l10n!.noCategoriesFound, + text: context.l10n.noCategoriesFound, button: TextButton( onPressed: () => ref.refresh(categoryControllerProvider.future), - child: Text(context.l10n!.refresh), + child: Text(context.l10n.refresh), ), ); } else { diff --git a/lib/src/features/library/presentation/category/widgets/category_create_fab.dart b/lib/src/features/library/presentation/category/widgets/category_create_fab.dart index 56c2a1f8..1da51d8e 100644 --- a/lib/src/features/library/presentation/category/widgets/category_create_fab.dart +++ b/lib/src/features/library/presentation/category/widgets/category_create_fab.dart @@ -41,7 +41,7 @@ class CategoryCreateFab extends HookConsumerWidget { ); }, isExtended: context.isTablet && !isLoading.value, - label: Text(context.l10n!.addCategory), + label: Text(context.l10n.addCategory), icon: isLoading.value ? MiniCircularProgressIndicator(color: context.iconColor) : const Icon(Icons.add_rounded), diff --git a/lib/src/features/library/presentation/category/widgets/category_tile.dart b/lib/src/features/library/presentation/category/widgets/category_tile.dart index 665c9450..b96ac137 100644 --- a/lib/src/features/library/presentation/category/widgets/category_tile.dart +++ b/lib/src/features/library/presentation/category/widgets/category_tile.dart @@ -10,7 +10,7 @@ import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../../constants/app_sizes.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; -import '../../../../../widgets/pop_button.dart'; +import '../../../../../widgets/popup_widgets/pop_button.dart'; import '../../../domain/category/category_model.dart'; import '../controller/edit_category_controller.dart'; import 'edit_category_dialog.dart'; @@ -79,8 +79,8 @@ class CategoryTile extends HookConsumerWidget { onPressed: () => showDialog( context: context, builder: (context) => AlertDialog( - title: Text(context.l10n!.deleteCategoryTitle), - content: Text(context.l10n!.deleteCategoryDescription), + title: Text(context.l10n.deleteCategoryTitle), + content: Text(context.l10n.deleteCategoryDescription), actions: [ const PopButton(), ElevatedButton( @@ -90,7 +90,7 @@ class CategoryTile extends HookConsumerWidget { .deleteCategory(category); Navigator.pop(context); }, - child: Text(context.l10n!.delete), + child: Text(context.l10n.delete), ), ], ), diff --git a/lib/src/features/library/presentation/category/widgets/edit_category_dialog.dart b/lib/src/features/library/presentation/category/widgets/edit_category_dialog.dart index 2fcbd5a8..dc4c9b03 100644 --- a/lib/src/features/library/presentation/category/widgets/edit_category_dialog.dart +++ b/lib/src/features/library/presentation/category/widgets/edit_category_dialog.dart @@ -10,7 +10,7 @@ import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; import '../../../../../utils/misc/toast/toast.dart'; -import '../../../../../widgets/pop_button.dart'; +import '../../../../../widgets/popup_widgets/pop_button.dart'; import '../../../domain/category/category_model.dart'; class EditCategoryDialog extends HookConsumerWidget { @@ -38,9 +38,7 @@ class EditCategoryDialog extends HookConsumerWidget { final defaultCategory = useState((category?.defaultCategory).ifNull()); return AlertDialog( title: Text( - category == null - ? context.l10n!.addCategory - : context.l10n!.editCategory, + category == null ? context.l10n.addCategory : context.l10n.editCategory, ), content: Column( mainAxisSize: MainAxisSize.min, @@ -50,8 +48,8 @@ class EditCategoryDialog extends HookConsumerWidget { autofocus: true, decoration: InputDecoration( hintText: category == null - ? context.l10n!.addCategory - : context.l10n!.editCategory, + ? context.l10n.addCategory + : context.l10n.editCategory, border: const OutlineInputBorder(), ), onSubmitted: (categoryName.text).isNotBlank @@ -73,7 +71,7 @@ class EditCategoryDialog extends HookConsumerWidget { defaultCategory.value = (value); } }, - title: Text(context.l10n!.defaultCategory), + title: Text(context.l10n.defaultCategory), ) ], ), @@ -82,15 +80,13 @@ class EditCategoryDialog extends HookConsumerWidget { ElevatedButton( onPressed: () { if ((categoryName.text).isBlank) { - ref - .read(toastProvider(context)) - .show(context.l10n!.emptyCategory); + ref.read(toastProvider(context)).show(context.l10n.emptyCategory); return; } submitEditCategory(categoryName.text, defaultCategory.value); Navigator.pop(context); }, - child: Text(context.l10n!.save), + child: Text(context.l10n.save), ), ], ); diff --git a/lib/src/features/library/presentation/library/category_manga_list.dart b/lib/src/features/library/presentation/library/category_manga_list.dart index 18766a23..10b215f5 100644 --- a/lib/src/features/library/presentation/library/category_manga_list.dart +++ b/lib/src/features/library/presentation/library/category_manga_list.dart @@ -40,10 +40,10 @@ class CategoryMangaList extends HookConsumerWidget { (data) { if (data.isBlank) { return Emoticons( - text: context.l10n!.noCategoryMangaFound, + text: context.l10n.noCategoryMangaFound, button: TextButton( onPressed: refresh, - child: Text(context.l10n!.refresh), + child: Text(context.l10n.refresh), ), ); } diff --git a/lib/src/features/library/presentation/library/library_screen.dart b/lib/src/features/library/presentation/library/library_screen.dart index 11f758a4..85e5ab40 100644 --- a/lib/src/features/library/presentation/library/library_screen.dart +++ b/lib/src/features/library/presentation/library/library_screen.dart @@ -38,10 +38,10 @@ class LibraryScreen extends HookConsumerWidget { context, (data) => data.isBlank ? Emoticons( - text: context.l10n!.noCategoriesFound, + text: context.l10n.noCategoriesFound, button: TextButton( onPressed: () => ref.refresh(categoryControllerProvider), - child: Text(context.l10n!.refresh), + child: Text(context.l10n.refresh), ), ) : DefaultTabController( @@ -50,7 +50,7 @@ class LibraryScreen extends HookConsumerWidget { data.length - 1), child: Scaffold( appBar: AppBar( - title: Text(context.l10n!.library), + title: Text(context.l10n.library), centerTitle: true, bottom: PreferredSize( preferredSize: kCalculateAppBarBottomSize( @@ -123,11 +123,11 @@ class LibraryScreen extends HookConsumerWidget { ), body: data.isBlank ? Emoticons( - text: context.l10n!.noCategoriesFound, + text: context.l10n.noCategoriesFound, button: TextButton( onPressed: () => ref.refresh(categoryControllerProvider), - child: Text(context.l10n!.refresh), + child: Text(context.l10n.refresh), ), ) : Padding( @@ -145,7 +145,7 @@ class LibraryScreen extends HookConsumerWidget { refresh: () => ref.refresh(categoryControllerProvider), wrapper: (body) => Scaffold( appBar: AppBar( - title: Text(context.l10n!.library), + title: Text(context.l10n.library), centerTitle: true, ), body: body, diff --git a/lib/src/features/library/presentation/library/widgets/library_manga_display.dart b/lib/src/features/library/presentation/library/widgets/library_manga_display.dart index 54d87c97..4fc92268 100644 --- a/lib/src/features/library/presentation/library/widgets/library_manga_display.dart +++ b/lib/src/features/library/presentation/library/widgets/library_manga_display.dart @@ -9,11 +9,10 @@ import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../../constants/db_keys.dart'; import '../../../../../constants/enum.dart'; - import '../../../../../utils/extensions/custom_extensions.dart'; import '../../../../../widgets/custom_checkbox_list_tile.dart'; import '../../../../../widgets/manga_cover/providers/manga_cover_providers.dart'; -import '../../../../../widgets/radio_list_popup.dart'; +import '../../../../../widgets/popup_widgets/radio_list_popup.dart'; import '../controller/library_controller.dart'; class LibraryMangaDisplay extends ConsumerWidget { @@ -26,7 +25,7 @@ class LibraryMangaDisplay extends ConsumerWidget { children: [ ListTile( title: Text( - context.l10n!.displayMode, + context.l10n.displayMode, style: context.textTheme.labelLarge, ), dense: true, @@ -40,19 +39,19 @@ class LibraryMangaDisplay extends ConsumerWidget { ), ListTile( title: Text( - context.l10n!.badges, + context.l10n.badges, style: context.textTheme.labelLarge, ), dense: true, ), CustomCheckboxListTile( - title: context.l10n!.downloaded, + title: context.l10n.downloaded, provider: downloadedBadgeProvider, onChanged: ref.read(downloadedBadgeProvider.notifier).update, tristate: false, ), CustomCheckboxListTile( - title: context.l10n!.unread, + title: context.l10n.unread, provider: unreadBadgeProvider, onChanged: ref.read(unreadBadgeProvider.notifier).update, tristate: false, diff --git a/lib/src/features/library/presentation/library/widgets/library_manga_filter.dart b/lib/src/features/library/presentation/library/widgets/library_manga_filter.dart index ff5d95e0..c45b94e2 100644 --- a/lib/src/features/library/presentation/library/widgets/library_manga_filter.dart +++ b/lib/src/features/library/presentation/library/widgets/library_manga_filter.dart @@ -19,18 +19,18 @@ class LibraryMangaFilter extends ConsumerWidget { return ListView( children: [ CustomCheckboxListTile( - title: context.l10n!.unread, + title: context.l10n.unread, provider: libraryMangaFilterUnreadProvider, onChanged: ref.read(libraryMangaFilterUnreadProvider.notifier).update, ), CustomCheckboxListTile( - title: context.l10n!.completed, + title: context.l10n.completed, provider: libraryMangaFilterCompletedProvider, onChanged: ref.read(libraryMangaFilterCompletedProvider.notifier).update, ), CustomCheckboxListTile( - title: context.l10n!.downloaded, + title: context.l10n.downloaded, provider: libraryMangaFilterDownloadedProvider, onChanged: ref.read(libraryMangaFilterDownloadedProvider.notifier).update, diff --git a/lib/src/features/library/presentation/library/widgets/library_manga_organizer.dart b/lib/src/features/library/presentation/library/widgets/library_manga_organizer.dart index 8515fb7e..e7b5c846 100644 --- a/lib/src/features/library/presentation/library/widgets/library_manga_organizer.dart +++ b/lib/src/features/library/presentation/library/widgets/library_manga_organizer.dart @@ -25,9 +25,9 @@ class LibraryMangaOrganizer extends StatelessWidget { child: Scaffold( appBar: TabBar( tabs: [ - Tab(text: context.l10n!.filter), - Tab(text: context.l10n!.sort), - Tab(text: context.l10n!.display), + Tab(text: context.l10n.filter), + Tab(text: context.l10n.sort), + Tab(text: context.l10n.display), ], ), body: TabBarView( diff --git a/lib/src/features/manga_book/domain/chapter/chapter_model.dart b/lib/src/features/manga_book/domain/chapter/chapter_model.dart index 4a87bae1..e8b6a44d 100644 --- a/lib/src/features/manga_book/domain/chapter/chapter_model.dart +++ b/lib/src/features/manga_book/domain/chapter/chapter_model.dart @@ -45,7 +45,7 @@ class Chapter with _$Chapter { String getDisplayName(BuildContext context) { return name ?? - context.l10n!.chapterNumber( + context.l10n.chapterNumber( chapterNumber ?? index?.toDouble() ?? 0, ); } diff --git a/lib/src/features/manga_book/domain/chapter/chapter_model.freezed.dart b/lib/src/features/manga_book/domain/chapter/chapter_model.freezed.dart index 36e94f70..6d29b7db 100644 --- a/lib/src/features/manga_book/domain/chapter/chapter_model.freezed.dart +++ b/lib/src/features/manga_book/domain/chapter/chapter_model.freezed.dart @@ -12,7 +12,7 @@ part of 'chapter_model.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); Chapter _$ChapterFromJson(Map json) { return _Chapter.fromJson(json); diff --git a/lib/src/features/manga_book/domain/chapter_batch/chapter_batch_model.freezed.dart b/lib/src/features/manga_book/domain/chapter_batch/chapter_batch_model.freezed.dart index 75e3c1d7..31614930 100644 --- a/lib/src/features/manga_book/domain/chapter_batch/chapter_batch_model.freezed.dart +++ b/lib/src/features/manga_book/domain/chapter_batch/chapter_batch_model.freezed.dart @@ -12,7 +12,7 @@ part of 'chapter_batch_model.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); ChapterBatch _$ChapterBatchFromJson(Map json) { return _ChapterBatch.fromJson(json); diff --git a/lib/src/features/manga_book/domain/chapter_page/chapter_page_model.freezed.dart b/lib/src/features/manga_book/domain/chapter_page/chapter_page_model.freezed.dart index b3ae8faa..889d4225 100644 --- a/lib/src/features/manga_book/domain/chapter_page/chapter_page_model.freezed.dart +++ b/lib/src/features/manga_book/domain/chapter_page/chapter_page_model.freezed.dart @@ -12,7 +12,7 @@ part of 'chapter_page_model.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); ChapterMangaPair _$ChapterMangaPairFromJson(Map json) { return _ChapterMangaPair.fromJson(json); diff --git a/lib/src/features/manga_book/domain/chapter_patch/chapter_put_model.freezed.dart b/lib/src/features/manga_book/domain/chapter_patch/chapter_put_model.freezed.dart index 3a0ecdd8..d3db6223 100644 --- a/lib/src/features/manga_book/domain/chapter_patch/chapter_put_model.freezed.dart +++ b/lib/src/features/manga_book/domain/chapter_patch/chapter_put_model.freezed.dart @@ -12,7 +12,7 @@ part of 'chapter_put_model.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); ChapterPut _$ChapterPutFromJson(Map json) { return _ChapterPut.fromJson(json); diff --git a/lib/src/features/manga_book/domain/downloads/downloads_model.freezed.dart b/lib/src/features/manga_book/domain/downloads/downloads_model.freezed.dart index 9daf3849..fecd5751 100644 --- a/lib/src/features/manga_book/domain/downloads/downloads_model.freezed.dart +++ b/lib/src/features/manga_book/domain/downloads/downloads_model.freezed.dart @@ -12,7 +12,7 @@ part of 'downloads_model.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); Downloads _$DownloadsFromJson(Map json) { return _Downloads.fromJson(json); diff --git a/lib/src/features/manga_book/domain/downloads_queue/downloads_queue_model.freezed.dart b/lib/src/features/manga_book/domain/downloads_queue/downloads_queue_model.freezed.dart index b757f8bb..8b0848e2 100644 --- a/lib/src/features/manga_book/domain/downloads_queue/downloads_queue_model.freezed.dart +++ b/lib/src/features/manga_book/domain/downloads_queue/downloads_queue_model.freezed.dart @@ -12,7 +12,7 @@ part of 'downloads_queue_model.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); DownloadsQueue _$DownloadsQueueFromJson(Map json) { return _DownloadsQueue.fromJson(json); diff --git a/lib/src/features/manga_book/domain/manga/manga_model.freezed.dart b/lib/src/features/manga_book/domain/manga/manga_model.freezed.dart index ba360523..7373cb1d 100644 --- a/lib/src/features/manga_book/domain/manga/manga_model.freezed.dart +++ b/lib/src/features/manga_book/domain/manga/manga_model.freezed.dart @@ -12,7 +12,7 @@ part of 'manga_model.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); Manga _$MangaFromJson(Map json) { return _Manga.fromJson(json); diff --git a/lib/src/features/manga_book/domain/update_status/update_status_model.freezed.dart b/lib/src/features/manga_book/domain/update_status/update_status_model.freezed.dart index 6146b542..f95e9d6b 100644 --- a/lib/src/features/manga_book/domain/update_status/update_status_model.freezed.dart +++ b/lib/src/features/manga_book/domain/update_status/update_status_model.freezed.dart @@ -12,7 +12,7 @@ part of 'update_status_model.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); UpdateStatus _$UpdateStatusFromJson(Map json) { return _UpdateStatus.fromJson(json); diff --git a/lib/src/features/manga_book/presentation/downloads/downloads_screen.dart b/lib/src/features/manga_book/presentation/downloads/downloads_screen.dart index c91b146b..69c4bc9f 100644 --- a/lib/src/features/manga_book/presentation/downloads/downloads_screen.dart +++ b/lib/src/features/manga_book/presentation/downloads/downloads_screen.dart @@ -26,7 +26,7 @@ class DownloadsScreen extends ConsumerWidget { final showDownloadsFAB = ref.watch(showDownloadsFABProvider); return Scaffold( appBar: AppBar( - title: Text(context.l10n!.downloads), + title: Text(context.l10n.downloads), actions: [ if ((downloadsChapterIds).isNotBlank) IconButton( @@ -44,9 +44,9 @@ class DownloadsScreen extends ConsumerWidget { context, (data) { if (data == null) { - return Emoticons(text: context.l10n!.errorSomethingWentWrong); + return Emoticons(text: context.l10n.errorSomethingWentWrong); } else if (downloadsChapterIds.isBlank) { - return Emoticons(text: context.l10n!.noDownloads); + return Emoticons(text: context.l10n.noDownloads); } else { final downloadsCount = (downloadsChapterIds.length).getValueOnNullOrNegative(); diff --git a/lib/src/features/manga_book/presentation/downloads/widgets/download_progress_list_tile.dart b/lib/src/features/manga_book/presentation/downloads/widgets/download_progress_list_tile.dart index bd85e334..2f0822a1 100644 --- a/lib/src/features/manga_book/presentation/downloads/widgets/download_progress_list_tile.dart +++ b/lib/src/features/manga_book/presentation/downloads/widgets/download_progress_list_tile.dart @@ -168,18 +168,18 @@ class DownloadProgressListTile extends HookConsumerWidget { itemBuilder: (context) => [ if (download.state == "Error") PopupMenuItem( - child: Text(context.l10n!.retry), + child: Text(context.l10n.retry), onTap: () => toggleChapterToQueue(toast, ref, true, download.mangaId!, download.chapterIndex!), ), PopupMenuItem( - child: Text(context.l10n!.delete), + child: Text(context.l10n.delete), onTap: () => toggleChapterToQueue(toast, ref, false, download.mangaId!, download.chapterIndex!), ), if (!index.isZero) PopupMenuItem( - child: Text(context.l10n!.moveToTop), + child: Text(context.l10n.moveToTop), onTap: () => ref.read(downloadsRepositoryProvider).reorderDownload( download.mangaId!, @@ -189,7 +189,7 @@ class DownloadProgressListTile extends HookConsumerWidget { ), if (index < downloadsCount - 1) PopupMenuItem( - child: Text(context.l10n!.moveToBottom), + child: Text(context.l10n.moveToBottom), onTap: () => ref.read(downloadsRepositoryProvider).reorderDownload( download.mangaId!, diff --git a/lib/src/features/manga_book/presentation/downloads/widgets/downloads_fab.dart b/lib/src/features/manga_book/presentation/downloads/widgets/downloads_fab.dart index 14da638b..c1042c21 100644 --- a/lib/src/features/manga_book/presentation/downloads/widgets/downloads_fab.dart +++ b/lib/src/features/manga_book/presentation/downloads/widgets/downloads_fab.dart @@ -24,7 +24,7 @@ class DownloadsFab extends ConsumerWidget { ref.read(downloadsRepositoryProvider).startDownloads)) .showToastOnError(toast); }, - label: Text(context.l10n!.resume), + label: Text(context.l10n.resume), isExtended: context.isTablet, icon: const Icon(Icons.play_arrow), ); @@ -35,7 +35,7 @@ class DownloadsFab extends ConsumerWidget { ref.read(downloadsRepositoryProvider).stopDownloads)) .showToastOnError(toast); }, - label: Text(context.l10n!.pause), + label: Text(context.l10n.pause), isExtended: context.isTablet, icon: const Icon(Icons.pause_rounded), ); diff --git a/lib/src/features/manga_book/presentation/manga_details/manga_details_screen.dart b/lib/src/features/manga_book/presentation/manga_details/manga_details_screen.dart index 7c0b1479..24a31489 100644 --- a/lib/src/features/manga_book/presentation/manga_details/manga_details_screen.dart +++ b/lib/src/features/manga_book/presentation/manga_details/manga_details_screen.dart @@ -59,7 +59,7 @@ class MangaDetailsScreen extends HookConsumerWidget { final refresh = useCallback(([onlineFetch = false]) async { if (context.mounted && onlineFetch) { ref.read(toastProvider(context)).show( - context.l10n!.updating, + context.l10n.updating, withMicrotask: true, ); } @@ -68,11 +68,11 @@ class MangaDetailsScreen extends HookConsumerWidget { if (context.mounted && onlineFetch) { if (manga.hasError) { ref.read(toastProvider(context)).showError( - context.l10n!.errorSomethingWentWrong, + context.l10n.errorSomethingWentWrong, ); } else { ref.read(toastProvider(context)).show( - context.l10n!.updateCompleted, + context.l10n.updateCompleted, withMicrotask: true, ); } @@ -100,7 +100,7 @@ class MangaDetailsScreen extends HookConsumerWidget { icon: const Icon(Icons.close_rounded), ), title: Text( - context.l10n!.numSelected(selectedChapters.value.length), + context.l10n.numSelected(selectedChapters.value.length), ), actions: [ IconButton( @@ -136,7 +136,7 @@ class MangaDetailsScreen extends HookConsumerWidget { ], ) : AppBar( - title: Text(data?.title ?? context.l10n!.manga), + title: Text(data?.title ?? context.l10n.manga), actions: [ if (context.isTablet) ...[ IconButton( @@ -187,11 +187,11 @@ class MangaDetailsScreen extends HookConsumerWidget { EditMangaCategoryDialog(mangaId: mangaId), ), ), - child: Text(context.l10n!.editCategory), + child: Text(context.l10n.editCategory), ), PopupMenuItem( onTap: () => refresh(true), - child: Text(context.l10n!.refresh), + child: Text(context.l10n.refresh), ), ], ) @@ -214,8 +214,8 @@ class MangaDetailsScreen extends HookConsumerWidget { isExtended: context.isTablet, label: Text( data?.lastChapterRead?.index != null - ? context.l10n!.resume - : context.l10n!.start, + ? context.l10n.resume + : context.l10n.start, ), icon: const Icon(Icons.play_arrow_rounded), onPressed: () { @@ -248,17 +248,17 @@ class MangaDetailsScreen extends HookConsumerWidget { selectedChapters: selectedChapters, ) : Emoticons( - text: context.l10n!.noMangaFound, + text: context.l10n.noMangaFound, button: TextButton( onPressed: refresh, - child: Text(context.l10n!.refresh), + child: Text(context.l10n.refresh), ), ), ), refresh: refresh, wrapper: (body) => Scaffold( appBar: AppBar( - title: Text(context.l10n!.manga), + title: Text(context.l10n.manga), ), body: body, ), @@ -299,7 +299,7 @@ class MultiSelectPopupButton extends StatelessWidget { chapterList[i].id!: chapterList[i] }); }, - child: Text(context.l10n!.selectNext10), + child: Text(context.l10n.selectNext10), ), PopupMenuItem( onTap: () { @@ -310,7 +310,7 @@ class MultiSelectPopupButton extends StatelessWidget { if (i.id != null && !i.read.ifNull()) i.id!: i }); }, - child: Text(context.l10n!.selectUnread), + child: Text(context.l10n.selectUnread), ), PopupMenuItem( onTap: () { @@ -330,7 +330,7 @@ class MultiSelectPopupButton extends StatelessWidget { chapterList[i].id!: chapterList[i] }); }, - child: Text(context.l10n!.selectInBetween), + child: Text(context.l10n.selectInBetween), ), ], ); diff --git a/lib/src/features/manga_book/presentation/manga_details/widgets/big_screen_manga_details.dart b/lib/src/features/manga_book/presentation/manga_details/widgets/big_screen_manga_details.dart index 7b06c310..14a4644e 100644 --- a/lib/src/features/manga_book/presentation/manga_details/widgets/big_screen_manga_details.dart +++ b/lib/src/features/manga_book/presentation/manga_details/widgets/big_screen_manga_details.dart @@ -65,7 +65,7 @@ class BigScreenMangaDetails extends ConsumerWidget { return Column( children: [ ListTile( - title: Text(context.l10n!.noOfChapters( + title: Text(context.l10n.noOfChapters( filteredChapterList?.length ?? 0, )), ), @@ -101,10 +101,10 @@ class BigScreenMangaDetails extends ConsumerWidget { ); } else { return Emoticons( - text: context.l10n!.noChaptersFound, + text: context.l10n.noChaptersFound, button: TextButton( onPressed: () => onListRefresh(true), - child: Text(context.l10n!.refresh), + child: Text(context.l10n.refresh), ), ); } diff --git a/lib/src/features/manga_book/presentation/manga_details/widgets/chapter_list_tile.dart b/lib/src/features/manga_book/presentation/manga_details/widgets/chapter_list_tile.dart index 677e9457..8fe7bb30 100644 --- a/lib/src/features/manga_book/presentation/manga_details/widgets/chapter_list_tile.dart +++ b/lib/src/features/manga_book/presentation/manga_details/widgets/chapter_list_tile.dart @@ -70,7 +70,7 @@ class ChapterListTile extends StatelessWidget { if (!chapter.read.ifNull() && (chapter.lastPageRead).getValueOnNullOrNegative() != 0) Text( - " • ${context.l10n!.page(chapter.lastPageRead.getValueOnNullOrNegative() + 1)}", + " • ${context.l10n.page(chapter.lastPageRead.getValueOnNullOrNegative() + 1)}", style: const TextStyle(color: Colors.grey), overflow: TextOverflow.ellipsis, ), diff --git a/lib/src/features/manga_book/presentation/manga_details/widgets/edit_manga_category_dialog.dart b/lib/src/features/manga_book/presentation/manga_details/widgets/edit_manga_category_dialog.dart index ddd82302..2477fb92 100644 --- a/lib/src/features/manga_book/presentation/manga_details/widgets/edit_manga_category_dialog.dart +++ b/lib/src/features/manga_book/presentation/manga_details/widgets/edit_manga_category_dialog.dart @@ -11,7 +11,7 @@ import '../../../../../constants/app_sizes.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; import '../../../../../widgets/async_buttons/async_checkbox_list_tile.dart'; -import '../../../../../widgets/pop_button.dart'; +import '../../../../../widgets/popup_widgets/pop_button.dart'; import '../../../../library/domain/category/category_model.dart'; import '../../../../library/presentation/category/controller/edit_category_controller.dart'; import '../../../data/manga_book_repository.dart'; @@ -34,7 +34,7 @@ class EditMangaCategoryDialog extends HookConsumerWidget { title: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - Text(context.l10n!.editCategory), + Text(context.l10n.editCategory), if (title.isNotBlank) Text( title!, @@ -44,7 +44,7 @@ class EditMangaCategoryDialog extends HookConsumerWidget { ], ), contentPadding: KEdgeInsets.h8v16.size, - actions: [PopButton(popText: context.l10n!.close)], + actions: [PopButton(popText: context.l10n.close)], content: categoryList.showUiWhenData( context, (data) => ConstrainedBox( @@ -52,7 +52,7 @@ class EditMangaCategoryDialog extends HookConsumerWidget { child: data.isBlank || (data.isSingletonList && data!.first.id == 0) ? Padding( padding: KEdgeInsets.h16.size, - child: Text(context.l10n!.noCategoriesFoundAlt), + child: Text(context.l10n.noCategoriesFoundAlt), ) : SingleChildScrollView( child: mangaCategoryList.showUiWhenData( diff --git a/lib/src/features/manga_book/presentation/manga_details/widgets/manga_chapter_filter.dart b/lib/src/features/manga_book/presentation/manga_details/widgets/manga_chapter_filter.dart index 5547cb40..029efbd5 100644 --- a/lib/src/features/manga_book/presentation/manga_details/widgets/manga_chapter_filter.dart +++ b/lib/src/features/manga_book/presentation/manga_details/widgets/manga_chapter_filter.dart @@ -24,18 +24,18 @@ class MangaChapterFilter extends ConsumerWidget { return ListView( children: [ CustomCheckboxListTile( - title: context.l10n!.unread, + title: context.l10n.unread, provider: mangaChapterFilterUnreadProvider, onChanged: ref.read(mangaChapterFilterUnreadProvider.notifier).update, ), CustomCheckboxListTile( - title: context.l10n!.bookmarked, + title: context.l10n.bookmarked, provider: mangaChapterFilterBookmarkedProvider, onChanged: ref.read(mangaChapterFilterBookmarkedProvider.notifier).update, ), CustomCheckboxListTile( - title: context.l10n!.downloaded, + title: context.l10n.downloaded, provider: mangaChapterFilterDownloadedProvider, onChanged: ref.read(mangaChapterFilterDownloadedProvider.notifier).update, @@ -43,13 +43,13 @@ class MangaChapterFilter extends ConsumerWidget { if (scanlatorList.isNotBlank && scanlatorList.length > 1) ...[ ListTile( title: Text( - context.l10n!.scanlators, + context.l10n.scanlators, style: context.textTheme.labelLarge, ), dense: true, ), RadioListTile( - title: Text(context.l10n!.allScanlators), + title: Text(context.l10n.allScanlators), value: MangaMetaKeys.scanlator.key, groupValue: selectedScanlator, onChanged: (val) => ref diff --git a/lib/src/features/manga_book/presentation/manga_details/widgets/manga_chapter_organizer.dart b/lib/src/features/manga_book/presentation/manga_details/widgets/manga_chapter_organizer.dart index 406c3fba..5da32b53 100644 --- a/lib/src/features/manga_book/presentation/manga_details/widgets/manga_chapter_organizer.dart +++ b/lib/src/features/manga_book/presentation/manga_details/widgets/manga_chapter_organizer.dart @@ -20,8 +20,8 @@ class MangaChapterOrganizer extends StatelessWidget { child: Scaffold( appBar: TabBar( tabs: [ - Tab(text: context.l10n!.filter), - Tab(text: context.l10n!.sort), + Tab(text: context.l10n.filter), + Tab(text: context.l10n.sort), ], ), body: TabBarView( diff --git a/lib/src/features/manga_book/presentation/manga_details/widgets/manga_description.dart b/lib/src/features/manga_book/presentation/manga_details/widgets/manga_description.dart index 9b454f4d..05230c6e 100644 --- a/lib/src/features/manga_book/presentation/manga_details/widgets/manga_description.dart +++ b/lib/src/features/manga_book/presentation/manga_details/widgets/manga_description.dart @@ -67,8 +67,8 @@ class MangaDescription extends HookConsumerWidget { secondaryIcon: const Icon(Icons.favorite_border_outlined), secondaryStyle: TextButton.styleFrom(foregroundColor: Colors.grey), - primaryLabel: Text(context.l10n!.inLibrary), - secondaryLabel: Text(context.l10n!.addToLibrary), + primaryLabel: Text(context.l10n.inLibrary), + secondaryLabel: Text(context.l10n.addToLibrary), ), if (manga.realUrl.isNotBlank) TextButton.icon( @@ -81,7 +81,7 @@ class MangaDescription extends HookConsumerWidget { }, icon: const Icon(Icons.public), style: TextButton.styleFrom(foregroundColor: Colors.grey), - label: Text(context.l10n!.webView), + label: Text(context.l10n.webView), ), ], ), diff --git a/lib/src/features/manga_book/presentation/manga_details/widgets/small_screen_manga_details.dart b/lib/src/features/manga_book/presentation/manga_details/widgets/small_screen_manga_details.dart index 6d9477c4..217e2a5b 100644 --- a/lib/src/features/manga_book/presentation/manga_details/widgets/small_screen_manga_details.dart +++ b/lib/src/features/manga_book/presentation/manga_details/widgets/small_screen_manga_details.dart @@ -59,7 +59,7 @@ class SmallScreenMangaDetails extends ConsumerWidget { SliverToBoxAdapter( child: ListTile( title: Text( - context.l10n!.noOfChapters(filteredChapterList?.length ?? 0), + context.l10n.noOfChapters(filteredChapterList?.length ?? 0), ), ), ), @@ -89,10 +89,10 @@ class SmallScreenMangaDetails extends ConsumerWidget { } else { return SliverToBoxAdapter( child: Emoticons( - text: context.l10n!.noChaptersFound, + text: context.l10n.noChaptersFound, button: TextButton( onPressed: () => onDescriptionRefresh(true), - child: Text(context.l10n!.refresh), + child: Text(context.l10n.refresh), ), ), ); diff --git a/lib/src/features/manga_book/presentation/reader/widgets/chapter_separator.dart b/lib/src/features/manga_book/presentation/reader/widgets/chapter_separator.dart index 3e7af7df..5a7b84b4 100644 --- a/lib/src/features/manga_book/presentation/reader/widgets/chapter_separator.dart +++ b/lib/src/features/manga_book/presentation/reader/widgets/chapter_separator.dart @@ -60,7 +60,7 @@ class ChapterSeparator extends ConsumerWidget { chapterIndex: nextPrevChapterPair.second!.index!, ).pushReplacement(context), child: Text( - context.l10n!.previousChapter( + context.l10n.previousChapter( nextPrevChapterPair?.second?.getDisplayName(context) ?? "", ), @@ -69,8 +69,8 @@ class ChapterSeparator extends ConsumerWidget { ), Text( isPreviousChapterSeparator - ? context.l10n!.start - : context.l10n!.finished, + ? context.l10n.start + : context.l10n.finished, style: context.textTheme.titleMedium ?.copyWith(fontWeight: FontWeight.bold), overflow: TextOverflow.ellipsis, @@ -92,7 +92,7 @@ class ChapterSeparator extends ConsumerWidget { chapterIndex: nextPrevChapterPair.first!.index!, ).pushReplacement(context), child: Text( - context.l10n!.nextChapter( + context.l10n.nextChapter( nextPrevChapterPair?.first?.getDisplayName(context) ?? "", ), ), diff --git a/lib/src/features/manga_book/presentation/reader/widgets/reader_mode/continuous_reader_mode.dart b/lib/src/features/manga_book/presentation/reader/widgets/reader_mode/continuous_reader_mode.dart index eae9696f..bb436cbb 100644 --- a/lib/src/features/manga_book/presentation/reader/widgets/reader_mode/continuous_reader_mode.dart +++ b/lib/src/features/manga_book/presentation/reader/widgets/reader_mode/continuous_reader_mode.dart @@ -127,7 +127,7 @@ class ContinuousReaderMode extends HookConsumerWidget { alignment: alignment, ); }, - child: AppUtils.wrapIf( + child: AppUtils.wrapOn( !kIsWeb && (Platform.isAndroid || Platform.isIOS) && isPinchToZoomEnabled diff --git a/lib/src/features/manga_book/presentation/reader/widgets/reader_mode/single_page_reader_mode.dart b/lib/src/features/manga_book/presentation/reader/widgets/reader_mode/single_page_reader_mode.dart index 531019ee..b20c6abe 100644 --- a/lib/src/features/manga_book/presentation/reader/widgets/reader_mode/single_page_reader_mode.dart +++ b/lib/src/features/manga_book/presentation/reader/widgets/reader_mode/single_page_reader_mode.dart @@ -135,7 +135,7 @@ class SinglePageReaderMode extends HookConsumerWidget { value: downloadProgress.progress, ), ); - return AppUtils.wrapIf( + return AppUtils.wrapOn( !kIsWeb && (Platform.isAndroid || Platform.isIOS) ? (child) => InteractiveViewer(maxScale: 5, child: child) : null, diff --git a/lib/src/features/manga_book/presentation/reader/widgets/reader_wrapper.dart b/lib/src/features/manga_book/presentation/reader/widgets/reader_wrapper.dart index bfd0c61c..c5f42ed3 100644 --- a/lib/src/features/manga_book/presentation/reader/widgets/reader_wrapper.dart +++ b/lib/src/features/manga_book/presentation/reader/widgets/reader_wrapper.dart @@ -23,7 +23,7 @@ import '../../../../../routes/router_config.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; import '../../../../../utils/launch_url_in_web.dart'; import '../../../../../utils/misc/toast/toast.dart'; -import '../../../../../widgets/radio_list_popup.dart'; +import '../../../../../widgets/popup_widgets/radio_list_popup.dart'; import '../../../../settings/presentation/reader/widgets/reader_initial_overlay_tile/reader_initial_overlay_tile.dart'; import '../../../../settings/presentation/reader/widgets/reader_invert_tap_tile/reader_invert_tap_tile.dart'; import '../../../../settings/presentation/reader/widgets/reader_magnifier_size_slider/reader_magnifier_size_slider.dart'; @@ -106,7 +106,7 @@ class ReaderWrapper extends HookConsumerWidget { optionList: ReaderMode.values, getOptionTitle: (value) => value.toLocale(context), value: mangaReaderMode, - title: context.l10n!.readerMode, + title: context.l10n.readerMode, onChange: (enumValue) async { if (context.mounted) Navigator.pop(context); await AsyncValue.guard( @@ -129,7 +129,7 @@ class ReaderWrapper extends HookConsumerWidget { builder: (context) => RadioListPopup( optionList: ReaderNavigationLayout.values, getOptionTitle: (value) => value.toLocale(context), - title: context.l10n!.readerNavigationLayout, + title: context.l10n.readerNavigationLayout, value: mangaReaderNavigationLayout, onChange: (enumValue) async { if (context.mounted) Navigator.pop(context); @@ -225,7 +225,7 @@ class ReaderWrapper extends HookConsumerWidget { ListTile( style: ListTileStyle.drawer, leading: const Icon(Icons.app_settings_alt_outlined), - title: Text(context.l10n!.readerMode), + title: Text(context.l10n.readerMode), subtitle: Text(mangaReaderMode.toLocale(context)), onTap: () { context.pop(); @@ -235,7 +235,7 @@ class ReaderWrapper extends HookConsumerWidget { ListTile( style: ListTileStyle.drawer, leading: const Icon(Icons.touch_app_rounded), - title: Text(context.l10n!.readerNavigationLayout), + title: Text(context.l10n.readerNavigationLayout), subtitle: Text(mangaReaderNavigationLayout.toLocale(context)), onTap: () { context.pop(); diff --git a/lib/src/features/manga_book/presentation/updates/updates_screen.dart b/lib/src/features/manga_book/presentation/updates/updates_screen.dart index dbaa837c..56c1f5eb 100644 --- a/lib/src/features/manga_book/presentation/updates/updates_screen.dart +++ b/lib/src/features/manga_book/presentation/updates/updates_screen.dart @@ -93,11 +93,11 @@ class UpdatesScreen extends HookConsumerWidget { icon: const Icon(Icons.close_rounded), ), title: Text( - context.l10n!.numSelected(selectedChapters.value.length), + context.l10n.numSelected(selectedChapters.value.length), ), ) : AppBar( - title: Text(context.l10n!.updates), + title: Text(context.l10n.updates), actions: const [UpdateStatusPopupMenu()], ), bottomSheet: selectedChapters.value.isNotEmpty @@ -121,14 +121,14 @@ class UpdatesScreen extends HookConsumerWidget { text: controller.error.toString(), button: TextButton( onPressed: () => controller.refresh(), - child: Text(context.l10n!.retry), + child: Text(context.l10n.retry), ), ), noItemsFoundIndicatorBuilder: (context) => Emoticons( - text: context.l10n!.noUpdatesFound, + text: context.l10n.noUpdatesFound, button: TextButton( onPressed: () => controller.refresh(), - child: Text(context.l10n!.refresh), + child: Text(context.l10n.refresh), ), ), itemBuilder: (context, item, index) { diff --git a/lib/src/features/manga_book/widgets/update_status_fab.dart b/lib/src/features/manga_book/widgets/update_status_fab.dart index d4a961bb..3a9e511a 100644 --- a/lib/src/features/manga_book/widgets/update_status_fab.dart +++ b/lib/src/features/manga_book/widgets/update_status_fab.dart @@ -26,7 +26,7 @@ class UpdateStatusFab extends ConsumerWidget { label: showStatus ? Text("${updateStatus.valueOrNull?.updateChecked.padLeft()}" "/${updateStatus.valueOrNull?.total.padLeft()}") - : Text(context.l10n!.update), + : Text(context.l10n.update), ); } } diff --git a/lib/src/features/manga_book/widgets/update_status_popup_menu.dart b/lib/src/features/manga_book/widgets/update_status_popup_menu.dart index bea764f7..beef86ca 100644 --- a/lib/src/features/manga_book/widgets/update_status_popup_menu.dart +++ b/lib/src/features/manga_book/widgets/update_status_popup_menu.dart @@ -32,20 +32,20 @@ class UpdateStatusPopupMenu extends ConsumerWidget { return [ if (category != null && category.id != null && category.id != 0) PopupMenuItem( - child: Text(context.l10n!.categoryUpdate), + child: Text(context.l10n.categoryUpdate), onTap: () => ref .read(updatesRepositoryProvider) .fetchUpdates(categoryId: category.id), ), PopupMenuItem( onTap: () => ref.read(updatesRepositoryProvider).fetchUpdates(), - child: Text(context.l10n!.globalUpdate), + child: Text(context.l10n.globalUpdate), ), if (showSummaryButton) PopupMenuItem( onTap: () => const UpdateStatusRoute().push(context), child: Text( - context.l10n!.updatesSummary, + context.l10n.updatesSummary, ), ), ]; diff --git a/lib/src/features/manga_book/widgets/update_status_summary_sheet.dart b/lib/src/features/manga_book/widgets/update_status_summary_sheet.dart index 320a9fbd..723d466d 100644 --- a/lib/src/features/manga_book/widgets/update_status_summary_sheet.dart +++ b/lib/src/features/manga_book/widgets/update_status_summary_sheet.dart @@ -28,7 +28,7 @@ class UpdateStatusSummaryDialog extends ConsumerWidget { : statusUpdate; return Scaffold( appBar: AppBar( - title: Text(context.l10n!.updatesSummary), + title: Text(context.l10n.updatesSummary), actions: const [UpdateStatusPopupMenu(showSummaryButton: false)], ), body: finalStatus.showUiWhenData( @@ -40,23 +40,23 @@ class UpdateStatusSummaryDialog extends ConsumerWidget { if ((data?.running).isNotBlank) UpdateStatusExpansionTile( mangas: data!.running!, - title: context.l10n!.running, + title: context.l10n.running, initiallyExpanded: true, ), if ((data?.pending).isNotBlank) UpdateStatusExpansionTile( mangas: data!.pending!, - title: context.l10n!.pending, + title: context.l10n.pending, ), if ((data?.completed).isNotBlank) UpdateStatusExpansionTile( mangas: data!.completed!, - title: context.l10n!.completed, + title: context.l10n.completed, ), if ((data?.failed).isNotBlank) UpdateStatusExpansionTile( mangas: data!.failed!, - title: context.l10n!.failed, + title: context.l10n.failed, initiallyExpanded: true, ), ], diff --git a/lib/src/features/quick_open/domain/quick_search_result.freezed.dart b/lib/src/features/quick_open/domain/quick_search_result.freezed.dart index 8135c5ec..e341f41f 100644 --- a/lib/src/features/quick_open/domain/quick_search_result.freezed.dart +++ b/lib/src/features/quick_open/domain/quick_search_result.freezed.dart @@ -12,7 +12,7 @@ part of 'quick_search_result.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); /// @nodoc mixin _$QuickSearchResult { diff --git a/lib/src/features/quick_open/presentation/quick_search/quick_search_screen.dart b/lib/src/features/quick_open/presentation/quick_search/quick_search_screen.dart index 207ac813..1accf20a 100644 --- a/lib/src/features/quick_open/presentation/quick_search/quick_search_screen.dart +++ b/lib/src/features/quick_open/presentation/quick_search/quick_search_screen.dart @@ -49,7 +49,7 @@ class QuickSearchScreen extends HookWidget { ), Material( color: Colors.transparent, - child: Text(context.l10n!.quickSearchShowAllCommandTip), + child: Text(context.l10n.quickSearchShowAllCommandTip), ) ], ), diff --git a/lib/src/features/quick_open/presentation/quick_search/widgets/quick_search_bar.dart b/lib/src/features/quick_open/presentation/quick_search/widgets/quick_search_bar.dart index 25180646..f4fe1dc6 100644 --- a/lib/src/features/quick_open/presentation/quick_search/widgets/quick_search_bar.dart +++ b/lib/src/features/quick_open/presentation/quick_search/widgets/quick_search_bar.dart @@ -42,7 +42,7 @@ class QuickSearchBar extends HookConsumerWidget { }, decoration: InputDecoration( isDense: true, - hintText: context.l10n!.search, + hintText: context.l10n.search, border: OutlineInputBorder(borderRadius: KBorderRadius.r16.radius), ), ), diff --git a/lib/src/features/settings/controller/settings_controller.dart b/lib/src/features/settings/controller/settings_controller.dart new file mode 100644 index 00000000..b119b559 --- /dev/null +++ b/lib/src/features/settings/controller/settings_controller.dart @@ -0,0 +1,16 @@ +import 'package:riverpod_annotation/riverpod_annotation.dart'; + +import '../data/settings_repository.dart'; +import '../domain/automatic_backup_settings_dto.dart'; +import '../domain/restore_status.dart'; + +part 'settings_controller.g.dart'; + +@riverpod +Stream restoreStatus(RestoreStatusRef ref, String restoreId) => + ref.watch(settingsRepositoryProvider).getRestoreStatus(restoreId); + +@riverpod +Stream automaticBackupSettings( + AutomaticBackupSettingsRef ref) => + ref.watch(settingsRepositoryProvider).getAutomaticBackupSettings(); diff --git a/lib/src/features/settings/controller/settings_controller.g.dart b/lib/src/features/settings/controller/settings_controller.g.dart new file mode 100644 index 00000000..eeb221fa --- /dev/null +++ b/lib/src/features/settings/controller/settings_controller.g.dart @@ -0,0 +1,178 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'settings_controller.dart'; + +// ************************************************************************** +// RiverpodGenerator +// ************************************************************************** + +String _$restoreStatusHash() => r'b70ecd1babf4571614aac6d917627ac647d1b3e3'; + +/// Copied from Dart SDK +class _SystemHash { + _SystemHash._(); + + static int combine(int hash, int value) { + // ignore: parameter_assignments + hash = 0x1fffffff & (hash + value); + // ignore: parameter_assignments + hash = 0x1fffffff & (hash + ((0x0007ffff & hash) << 10)); + return hash ^ (hash >> 6); + } + + static int finish(int hash) { + // ignore: parameter_assignments + hash = 0x1fffffff & (hash + ((0x03ffffff & hash) << 3)); + // ignore: parameter_assignments + hash = hash ^ (hash >> 11); + return 0x1fffffff & (hash + ((0x00003fff & hash) << 15)); + } +} + +/// See also [restoreStatus]. +@ProviderFor(restoreStatus) +const restoreStatusProvider = RestoreStatusFamily(); + +/// See also [restoreStatus]. +class RestoreStatusFamily extends Family> { + /// See also [restoreStatus]. + const RestoreStatusFamily(); + + /// See also [restoreStatus]. + RestoreStatusProvider call( + String restoreId, + ) { + return RestoreStatusProvider( + restoreId, + ); + } + + @override + RestoreStatusProvider getProviderOverride( + covariant RestoreStatusProvider provider, + ) { + return call( + provider.restoreId, + ); + } + + static const Iterable? _dependencies = null; + + @override + Iterable? get dependencies => _dependencies; + + static const Iterable? _allTransitiveDependencies = null; + + @override + Iterable? get allTransitiveDependencies => + _allTransitiveDependencies; + + @override + String? get name => r'restoreStatusProvider'; +} + +/// See also [restoreStatus]. +class RestoreStatusProvider extends AutoDisposeStreamProvider { + /// See also [restoreStatus]. + RestoreStatusProvider( + String restoreId, + ) : this._internal( + (ref) => restoreStatus( + ref as RestoreStatusRef, + restoreId, + ), + from: restoreStatusProvider, + name: r'restoreStatusProvider', + debugGetCreateSourceHash: + const bool.fromEnvironment('dart.vm.product') + ? null + : _$restoreStatusHash, + dependencies: RestoreStatusFamily._dependencies, + allTransitiveDependencies: + RestoreStatusFamily._allTransitiveDependencies, + restoreId: restoreId, + ); + + RestoreStatusProvider._internal( + super._createNotifier, { + required super.name, + required super.dependencies, + required super.allTransitiveDependencies, + required super.debugGetCreateSourceHash, + required super.from, + required this.restoreId, + }) : super.internal(); + + final String restoreId; + + @override + Override overrideWith( + Stream Function(RestoreStatusRef provider) create, + ) { + return ProviderOverride( + origin: this, + override: RestoreStatusProvider._internal( + (ref) => create(ref as RestoreStatusRef), + from: from, + name: null, + dependencies: null, + allTransitiveDependencies: null, + debugGetCreateSourceHash: null, + restoreId: restoreId, + ), + ); + } + + @override + AutoDisposeStreamProviderElement createElement() { + return _RestoreStatusProviderElement(this); + } + + @override + bool operator ==(Object other) { + return other is RestoreStatusProvider && other.restoreId == restoreId; + } + + @override + int get hashCode { + var hash = _SystemHash.combine(0, runtimeType.hashCode); + hash = _SystemHash.combine(hash, restoreId.hashCode); + + return _SystemHash.finish(hash); + } +} + +mixin RestoreStatusRef on AutoDisposeStreamProviderRef { + /// The parameter `restoreId` of this provider. + String get restoreId; +} + +class _RestoreStatusProviderElement + extends AutoDisposeStreamProviderElement + with RestoreStatusRef { + _RestoreStatusProviderElement(super.provider); + + @override + String get restoreId => (origin as RestoreStatusProvider).restoreId; +} + +String _$automaticBackupSettingsHash() => + r'51be9c48a2309ba44fb4335deda56d2e4dd26b91'; + +/// See also [automaticBackupSettings]. +@ProviderFor(automaticBackupSettings) +final automaticBackupSettingsProvider = + AutoDisposeStreamProvider.internal( + automaticBackupSettings, + name: r'automaticBackupSettingsProvider', + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') + ? null + : _$automaticBackupSettingsHash, + dependencies: null, + allTransitiveDependencies: null, +); + +typedef AutomaticBackupSettingsRef + = AutoDisposeStreamProviderRef; +// ignore_for_file: type=lint +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member diff --git a/lib/src/features/settings/data/backup/backup_repository.dart b/lib/src/features/settings/data/backup/backup_repository.dart deleted file mode 100644 index b38ff63c..00000000 --- a/lib/src/features/settings/data/backup/backup_repository.dart +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) 2022 Contributors to the Suwayomi project -// -// This Source Code Form is subject to the terms of the Mozilla Public -// License, v. 2.0. If a copy of the MPL was not distributed with this -// file, You can obtain one at http://mozilla.org/MPL/2.0/. - -import 'package:dio/dio.dart'; - -import 'package:file_picker/file_picker.dart'; -import 'package:flutter/foundation.dart'; -import 'package:flutter/material.dart'; -import 'package:riverpod_annotation/riverpod_annotation.dart'; - -import '../../../../constants/endpoints.dart'; -import '../../../../global_providers/global_providers.dart'; - -import '../../../../utils/extensions/custom_extensions.dart'; -import '../../../../utils/storage/dio/dio_client.dart'; -import '../../domain/backup_missing/backup_missing.dart'; - -part 'backup_repository.g.dart'; - -class BackupRepository { - const BackupRepository(this.dioClient); - - final DioClient dioClient; - - Future restoreBackup( - BuildContext context, PlatformFile? file) async { - if ((file?.name).isBlank || - (kIsWeb && (file?.bytes).isBlank || - (!kIsWeb && (file?.path).isBlank))) { - throw context.l10n!.errorFilePick; - } - if (!(file!.name.endsWith('.proto.gz'))) { - throw context.l10n!.errorFilePickUnknownExtension(".proto.gz"); - } - return (await dioClient.post( - BackupUrl.import, - data: FormData.fromMap({ - 'backup.proto.gz': kIsWeb - ? MultipartFile.fromBytes( - file.bytes!, - filename: "backup.proto.gz", - ) - : MultipartFile.fromFileSync( - file.path!, - filename: "backup.proto.gz", - ) - }), - decoder: (e) => - e is Map ? BackupMissing.fromJson(e) : null, - )) - .data; - } -} - -@riverpod -BackupRepository backupRepository(BackupRepositoryRef ref) => - BackupRepository(ref.watch(dioClientKeyProvider)); diff --git a/lib/src/features/settings/data/graphql/__generated__/settings_query.ast.gql.dart b/lib/src/features/settings/data/graphql/__generated__/settings_query.ast.gql.dart new file mode 100644 index 00000000..d16b2a9b --- /dev/null +++ b/lib/src/features/settings/data/graphql/__generated__/settings_query.ast.gql.dart @@ -0,0 +1,547 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const AutomaticBackupSettings = _i1.OperationDefinitionNode( + type: _i1.OperationType.query, + name: _i1.NameNode(value: 'AutomaticBackupSettings'), + variableDefinitions: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'backupInterval'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'backupPath'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'backupTTL'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'backupTime'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ) + ]), +); +const RestoreStatus = _i1.OperationDefinitionNode( + type: _i1.OperationType.query, + name: _i1.NameNode(value: 'RestoreStatus'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'restoreId')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'restoreStatus'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'id'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'restoreId')), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'mangaProgress'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'state'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'totalManga'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ) + ]), +); +const ValidateBackup = _i1.OperationDefinitionNode( + type: _i1.OperationType.query, + name: _i1.NameNode(value: 'ValidateBackup'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'backup')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Upload'), + isNonNull: true, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'validateBackup'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'backup'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'backup')), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'missingSources'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ) + ]), + ) + ]), + ) + ]), +); +const CreateBackup = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'CreateBackup'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: + _i1.VariableNode(name: _i1.NameNode(value: 'includeCategories')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: + _i1.DefaultValueNode(value: _i1.BooleanValueNode(value: true)), + directives: [], + ), + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'includeChapters')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: + _i1.DefaultValueNode(value: _i1.BooleanValueNode(value: true)), + directives: [], + ), + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'createBackup'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'includeCategories'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'includeCategories')), + ), + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'includeChapters'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'includeChapters')), + ), + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'clientMutationId'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'url'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ) + ]), +); +const RestoreBackup = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'RestoreBackup'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'backup')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Upload'), + isNonNull: true, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'restoreBackup'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'backup'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'backup')), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'clientMutationId'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'id'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'status'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'mangaProgress'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'state'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'totalManga'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + ]), + ) + ]), +); +const UpdateBackupPath = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateBackupPath'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'backupPath')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode( + value: _i1.StringValueNode( + value: '', + isBlock: false, + )), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'backupPath'), + value: + _i1.VariableNode(name: _i1.NameNode(value: 'backupPath')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'backupPath'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ) + ]), + ) + ]), + ) + ]), +); +const UpdateBackupTime = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateBackupTime'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'backupTime')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode( + value: _i1.StringValueNode( + value: '12:00', + isBlock: false, + )), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'backupTime'), + value: + _i1.VariableNode(name: _i1.NameNode(value: 'backupTime')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'backupTime'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ) + ]), + ) + ]), + ) + ]), +); +const UpdateBackupInterval = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateBackupInterval'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'backupInterval')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode(value: _i1.IntValueNode(value: '1')), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'backupInterval'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'backupInterval')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'backupInterval'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ) + ]), + ) + ]), + ) + ]), +); +const UpdateBackupTTL = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateBackupTTL'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'backupTTL')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode(value: _i1.IntValueNode(value: '14')), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'backupTTL'), + value: + _i1.VariableNode(name: _i1.NameNode(value: 'backupTTL')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'backupTTL'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + AutomaticBackupSettings, + RestoreStatus, + ValidateBackup, + CreateBackup, + RestoreBackup, + UpdateBackupPath, + UpdateBackupTime, + UpdateBackupInterval, + UpdateBackupTTL, +]); diff --git a/lib/src/features/settings/data/graphql/__generated__/settings_query.data.gql.dart b/lib/src/features/settings/data/graphql/__generated__/settings_query.data.gql.dart new file mode 100644 index 00000000..a0be6a56 --- /dev/null +++ b/lib/src/features/settings/data/graphql/__generated__/settings_query.data.gql.dart @@ -0,0 +1,777 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'settings_query.data.gql.g.dart'; + +abstract class GAutomaticBackupSettingsData + implements + Built { + GAutomaticBackupSettingsData._(); + + factory GAutomaticBackupSettingsData( + [void Function(GAutomaticBackupSettingsDataBuilder b) updates]) = + _$GAutomaticBackupSettingsData; + + static void _initializeBuilder(GAutomaticBackupSettingsDataBuilder b) => + b..G__typename = 'Query'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GAutomaticBackupSettingsData_settings get settings; + static Serializer get serializer => + _$gAutomaticBackupSettingsDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GAutomaticBackupSettingsData.serializer, + this, + ) as Map); + + static GAutomaticBackupSettingsData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GAutomaticBackupSettingsData.serializer, + json, + ); +} + +abstract class GAutomaticBackupSettingsData_settings + implements + Built { + GAutomaticBackupSettingsData_settings._(); + + factory GAutomaticBackupSettingsData_settings( + [void Function(GAutomaticBackupSettingsData_settingsBuilder b) + updates]) = _$GAutomaticBackupSettingsData_settings; + + static void _initializeBuilder( + GAutomaticBackupSettingsData_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + int get backupInterval; + String get backupPath; + int get backupTTL; + String get backupTime; + static Serializer get serializer => + _$gAutomaticBackupSettingsDataSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GAutomaticBackupSettingsData_settings.serializer, + this, + ) as Map); + + static GAutomaticBackupSettingsData_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GAutomaticBackupSettingsData_settings.serializer, + json, + ); +} + +abstract class GRestoreStatusData + implements Built { + GRestoreStatusData._(); + + factory GRestoreStatusData( + [void Function(GRestoreStatusDataBuilder b) updates]) = + _$GRestoreStatusData; + + static void _initializeBuilder(GRestoreStatusDataBuilder b) => + b..G__typename = 'Query'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GRestoreStatusData_restoreStatus? get restoreStatus; + static Serializer get serializer => + _$gRestoreStatusDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GRestoreStatusData.serializer, + this, + ) as Map); + + static GRestoreStatusData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GRestoreStatusData.serializer, + json, + ); +} + +abstract class GRestoreStatusData_restoreStatus + implements + Built { + GRestoreStatusData_restoreStatus._(); + + factory GRestoreStatusData_restoreStatus( + [void Function(GRestoreStatusData_restoreStatusBuilder b) updates]) = + _$GRestoreStatusData_restoreStatus; + + static void _initializeBuilder(GRestoreStatusData_restoreStatusBuilder b) => + b..G__typename = 'BackupRestoreStatus'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + int get mangaProgress; + _i2.GBackupRestoreState get state; + int get totalManga; + static Serializer get serializer => + _$gRestoreStatusDataRestoreStatusSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GRestoreStatusData_restoreStatus.serializer, + this, + ) as Map); + + static GRestoreStatusData_restoreStatus? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GRestoreStatusData_restoreStatus.serializer, + json, + ); +} + +abstract class GValidateBackupData + implements Built { + GValidateBackupData._(); + + factory GValidateBackupData( + [void Function(GValidateBackupDataBuilder b) updates]) = + _$GValidateBackupData; + + static void _initializeBuilder(GValidateBackupDataBuilder b) => + b..G__typename = 'Query'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GValidateBackupData_validateBackup get validateBackup; + static Serializer get serializer => + _$gValidateBackupDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GValidateBackupData.serializer, + this, + ) as Map); + + static GValidateBackupData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GValidateBackupData.serializer, + json, + ); +} + +abstract class GValidateBackupData_validateBackup + implements + Built { + GValidateBackupData_validateBackup._(); + + factory GValidateBackupData_validateBackup( + [void Function(GValidateBackupData_validateBackupBuilder b) + updates]) = _$GValidateBackupData_validateBackup; + + static void _initializeBuilder(GValidateBackupData_validateBackupBuilder b) => + b..G__typename = 'ValidateBackupResult'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + BuiltList + get missingSources; + static Serializer get serializer => + _$gValidateBackupDataValidateBackupSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GValidateBackupData_validateBackup.serializer, + this, + ) as Map); + + static GValidateBackupData_validateBackup? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GValidateBackupData_validateBackup.serializer, + json, + ); +} + +abstract class GValidateBackupData_validateBackup_missingSources + implements + Built { + GValidateBackupData_validateBackup_missingSources._(); + + factory GValidateBackupData_validateBackup_missingSources( + [void Function(GValidateBackupData_validateBackup_missingSourcesBuilder b) + updates]) = _$GValidateBackupData_validateBackup_missingSources; + + static void _initializeBuilder( + GValidateBackupData_validateBackup_missingSourcesBuilder b) => + b..G__typename = 'ValidateBackupSource'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + String get name; + static Serializer + get serializer => + _$gValidateBackupDataValidateBackupMissingSourcesSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GValidateBackupData_validateBackup_missingSources.serializer, + this, + ) as Map); + + static GValidateBackupData_validateBackup_missingSources? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GValidateBackupData_validateBackup_missingSources.serializer, + json, + ); +} + +abstract class GCreateBackupData + implements Built { + GCreateBackupData._(); + + factory GCreateBackupData( + [void Function(GCreateBackupDataBuilder b) updates]) = + _$GCreateBackupData; + + static void _initializeBuilder(GCreateBackupDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GCreateBackupData_createBackup get createBackup; + static Serializer get serializer => + _$gCreateBackupDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GCreateBackupData.serializer, + this, + ) as Map); + + static GCreateBackupData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GCreateBackupData.serializer, + json, + ); +} + +abstract class GCreateBackupData_createBackup + implements + Built { + GCreateBackupData_createBackup._(); + + factory GCreateBackupData_createBackup( + [void Function(GCreateBackupData_createBackupBuilder b) updates]) = + _$GCreateBackupData_createBackup; + + static void _initializeBuilder(GCreateBackupData_createBackupBuilder b) => + b..G__typename = 'CreateBackupPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + String? get clientMutationId; + String get url; + static Serializer get serializer => + _$gCreateBackupDataCreateBackupSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GCreateBackupData_createBackup.serializer, + this, + ) as Map); + + static GCreateBackupData_createBackup? fromJson(Map json) => + _i1.serializers.deserializeWith( + GCreateBackupData_createBackup.serializer, + json, + ); +} + +abstract class GRestoreBackupData + implements Built { + GRestoreBackupData._(); + + factory GRestoreBackupData( + [void Function(GRestoreBackupDataBuilder b) updates]) = + _$GRestoreBackupData; + + static void _initializeBuilder(GRestoreBackupDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GRestoreBackupData_restoreBackup get restoreBackup; + static Serializer get serializer => + _$gRestoreBackupDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GRestoreBackupData.serializer, + this, + ) as Map); + + static GRestoreBackupData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GRestoreBackupData.serializer, + json, + ); +} + +abstract class GRestoreBackupData_restoreBackup + implements + Built { + GRestoreBackupData_restoreBackup._(); + + factory GRestoreBackupData_restoreBackup( + [void Function(GRestoreBackupData_restoreBackupBuilder b) updates]) = + _$GRestoreBackupData_restoreBackup; + + static void _initializeBuilder(GRestoreBackupData_restoreBackupBuilder b) => + b..G__typename = 'RestoreBackupPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + String? get clientMutationId; + String get id; + GRestoreBackupData_restoreBackup_status? get status; + static Serializer get serializer => + _$gRestoreBackupDataRestoreBackupSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GRestoreBackupData_restoreBackup.serializer, + this, + ) as Map); + + static GRestoreBackupData_restoreBackup? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GRestoreBackupData_restoreBackup.serializer, + json, + ); +} + +abstract class GRestoreBackupData_restoreBackup_status + implements + Built { + GRestoreBackupData_restoreBackup_status._(); + + factory GRestoreBackupData_restoreBackup_status( + [void Function(GRestoreBackupData_restoreBackup_statusBuilder b) + updates]) = _$GRestoreBackupData_restoreBackup_status; + + static void _initializeBuilder( + GRestoreBackupData_restoreBackup_statusBuilder b) => + b..G__typename = 'BackupRestoreStatus'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + int get mangaProgress; + _i2.GBackupRestoreState get state; + int get totalManga; + static Serializer get serializer => + _$gRestoreBackupDataRestoreBackupStatusSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GRestoreBackupData_restoreBackup_status.serializer, + this, + ) as Map); + + static GRestoreBackupData_restoreBackup_status? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GRestoreBackupData_restoreBackup_status.serializer, + json, + ); +} + +abstract class GUpdateBackupPathData + implements Built { + GUpdateBackupPathData._(); + + factory GUpdateBackupPathData( + [void Function(GUpdateBackupPathDataBuilder b) updates]) = + _$GUpdateBackupPathData; + + static void _initializeBuilder(GUpdateBackupPathDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateBackupPathData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateBackupPathDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupPathData.serializer, + this, + ) as Map); + + static GUpdateBackupPathData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupPathData.serializer, + json, + ); +} + +abstract class GUpdateBackupPathData_setSettings + implements + Built { + GUpdateBackupPathData_setSettings._(); + + factory GUpdateBackupPathData_setSettings( + [void Function(GUpdateBackupPathData_setSettingsBuilder b) updates]) = + _$GUpdateBackupPathData_setSettings; + + static void _initializeBuilder(GUpdateBackupPathData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateBackupPathData_setSettings_settings get settings; + static Serializer get serializer => + _$gUpdateBackupPathDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupPathData_setSettings.serializer, + this, + ) as Map); + + static GUpdateBackupPathData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupPathData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateBackupPathData_setSettings_settings + implements + Built { + GUpdateBackupPathData_setSettings_settings._(); + + factory GUpdateBackupPathData_setSettings_settings( + [void Function(GUpdateBackupPathData_setSettings_settingsBuilder b) + updates]) = _$GUpdateBackupPathData_setSettings_settings; + + static void _initializeBuilder( + GUpdateBackupPathData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + String get backupPath; + static Serializer + get serializer => _$gUpdateBackupPathDataSetSettingsSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupPathData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateBackupPathData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupPathData_setSettings_settings.serializer, + json, + ); +} + +abstract class GUpdateBackupTimeData + implements Built { + GUpdateBackupTimeData._(); + + factory GUpdateBackupTimeData( + [void Function(GUpdateBackupTimeDataBuilder b) updates]) = + _$GUpdateBackupTimeData; + + static void _initializeBuilder(GUpdateBackupTimeDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateBackupTimeData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateBackupTimeDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupTimeData.serializer, + this, + ) as Map); + + static GUpdateBackupTimeData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupTimeData.serializer, + json, + ); +} + +abstract class GUpdateBackupTimeData_setSettings + implements + Built { + GUpdateBackupTimeData_setSettings._(); + + factory GUpdateBackupTimeData_setSettings( + [void Function(GUpdateBackupTimeData_setSettingsBuilder b) updates]) = + _$GUpdateBackupTimeData_setSettings; + + static void _initializeBuilder(GUpdateBackupTimeData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateBackupTimeData_setSettings_settings get settings; + static Serializer get serializer => + _$gUpdateBackupTimeDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupTimeData_setSettings.serializer, + this, + ) as Map); + + static GUpdateBackupTimeData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupTimeData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateBackupTimeData_setSettings_settings + implements + Built { + GUpdateBackupTimeData_setSettings_settings._(); + + factory GUpdateBackupTimeData_setSettings_settings( + [void Function(GUpdateBackupTimeData_setSettings_settingsBuilder b) + updates]) = _$GUpdateBackupTimeData_setSettings_settings; + + static void _initializeBuilder( + GUpdateBackupTimeData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + String get backupTime; + static Serializer + get serializer => _$gUpdateBackupTimeDataSetSettingsSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupTimeData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateBackupTimeData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupTimeData_setSettings_settings.serializer, + json, + ); +} + +abstract class GUpdateBackupIntervalData + implements + Built { + GUpdateBackupIntervalData._(); + + factory GUpdateBackupIntervalData( + [void Function(GUpdateBackupIntervalDataBuilder b) updates]) = + _$GUpdateBackupIntervalData; + + static void _initializeBuilder(GUpdateBackupIntervalDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateBackupIntervalData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateBackupIntervalDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupIntervalData.serializer, + this, + ) as Map); + + static GUpdateBackupIntervalData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupIntervalData.serializer, + json, + ); +} + +abstract class GUpdateBackupIntervalData_setSettings + implements + Built { + GUpdateBackupIntervalData_setSettings._(); + + factory GUpdateBackupIntervalData_setSettings( + [void Function(GUpdateBackupIntervalData_setSettingsBuilder b) + updates]) = _$GUpdateBackupIntervalData_setSettings; + + static void _initializeBuilder( + GUpdateBackupIntervalData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateBackupIntervalData_setSettings_settings get settings; + static Serializer get serializer => + _$gUpdateBackupIntervalDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupIntervalData_setSettings.serializer, + this, + ) as Map); + + static GUpdateBackupIntervalData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupIntervalData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateBackupIntervalData_setSettings_settings + implements + Built { + GUpdateBackupIntervalData_setSettings_settings._(); + + factory GUpdateBackupIntervalData_setSettings_settings( + [void Function(GUpdateBackupIntervalData_setSettings_settingsBuilder b) + updates]) = _$GUpdateBackupIntervalData_setSettings_settings; + + static void _initializeBuilder( + GUpdateBackupIntervalData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + int get backupInterval; + static Serializer + get serializer => + _$gUpdateBackupIntervalDataSetSettingsSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupIntervalData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateBackupIntervalData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupIntervalData_setSettings_settings.serializer, + json, + ); +} + +abstract class GUpdateBackupTTLData + implements Built { + GUpdateBackupTTLData._(); + + factory GUpdateBackupTTLData( + [void Function(GUpdateBackupTTLDataBuilder b) updates]) = + _$GUpdateBackupTTLData; + + static void _initializeBuilder(GUpdateBackupTTLDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateBackupTTLData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateBackupTTLDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupTTLData.serializer, + this, + ) as Map); + + static GUpdateBackupTTLData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupTTLData.serializer, + json, + ); +} + +abstract class GUpdateBackupTTLData_setSettings + implements + Built { + GUpdateBackupTTLData_setSettings._(); + + factory GUpdateBackupTTLData_setSettings( + [void Function(GUpdateBackupTTLData_setSettingsBuilder b) updates]) = + _$GUpdateBackupTTLData_setSettings; + + static void _initializeBuilder(GUpdateBackupTTLData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateBackupTTLData_setSettings_settings get settings; + static Serializer get serializer => + _$gUpdateBackupTTLDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupTTLData_setSettings.serializer, + this, + ) as Map); + + static GUpdateBackupTTLData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupTTLData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateBackupTTLData_setSettings_settings + implements + Built { + GUpdateBackupTTLData_setSettings_settings._(); + + factory GUpdateBackupTTLData_setSettings_settings( + [void Function(GUpdateBackupTTLData_setSettings_settingsBuilder b) + updates]) = _$GUpdateBackupTTLData_setSettings_settings; + + static void _initializeBuilder( + GUpdateBackupTTLData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + int get backupTTL; + static Serializer get serializer => + _$gUpdateBackupTTLDataSetSettingsSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupTTLData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateBackupTTLData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupTTLData_setSettings_settings.serializer, + json, + ); +} diff --git a/lib/src/features/settings/data/graphql/__generated__/settings_query.data.gql.g.dart b/lib/src/features/settings/data/graphql/__generated__/settings_query.data.gql.g.dart new file mode 100644 index 00000000..d4aed3b8 --- /dev/null +++ b/lib/src/features/settings/data/graphql/__generated__/settings_query.data.gql.g.dart @@ -0,0 +1,4493 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'settings_query.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gAutomaticBackupSettingsDataSerializer = + new _$GAutomaticBackupSettingsDataSerializer(); +Serializer + _$gAutomaticBackupSettingsDataSettingsSerializer = + new _$GAutomaticBackupSettingsData_settingsSerializer(); +Serializer _$gRestoreStatusDataSerializer = + new _$GRestoreStatusDataSerializer(); +Serializer + _$gRestoreStatusDataRestoreStatusSerializer = + new _$GRestoreStatusData_restoreStatusSerializer(); +Serializer _$gValidateBackupDataSerializer = + new _$GValidateBackupDataSerializer(); +Serializer + _$gValidateBackupDataValidateBackupSerializer = + new _$GValidateBackupData_validateBackupSerializer(); +Serializer + _$gValidateBackupDataValidateBackupMissingSourcesSerializer = + new _$GValidateBackupData_validateBackup_missingSourcesSerializer(); +Serializer _$gCreateBackupDataSerializer = + new _$GCreateBackupDataSerializer(); +Serializer + _$gCreateBackupDataCreateBackupSerializer = + new _$GCreateBackupData_createBackupSerializer(); +Serializer _$gRestoreBackupDataSerializer = + new _$GRestoreBackupDataSerializer(); +Serializer + _$gRestoreBackupDataRestoreBackupSerializer = + new _$GRestoreBackupData_restoreBackupSerializer(); +Serializer + _$gRestoreBackupDataRestoreBackupStatusSerializer = + new _$GRestoreBackupData_restoreBackup_statusSerializer(); +Serializer _$gUpdateBackupPathDataSerializer = + new _$GUpdateBackupPathDataSerializer(); +Serializer + _$gUpdateBackupPathDataSetSettingsSerializer = + new _$GUpdateBackupPathData_setSettingsSerializer(); +Serializer + _$gUpdateBackupPathDataSetSettingsSettingsSerializer = + new _$GUpdateBackupPathData_setSettings_settingsSerializer(); +Serializer _$gUpdateBackupTimeDataSerializer = + new _$GUpdateBackupTimeDataSerializer(); +Serializer + _$gUpdateBackupTimeDataSetSettingsSerializer = + new _$GUpdateBackupTimeData_setSettingsSerializer(); +Serializer + _$gUpdateBackupTimeDataSetSettingsSettingsSerializer = + new _$GUpdateBackupTimeData_setSettings_settingsSerializer(); +Serializer _$gUpdateBackupIntervalDataSerializer = + new _$GUpdateBackupIntervalDataSerializer(); +Serializer + _$gUpdateBackupIntervalDataSetSettingsSerializer = + new _$GUpdateBackupIntervalData_setSettingsSerializer(); +Serializer + _$gUpdateBackupIntervalDataSetSettingsSettingsSerializer = + new _$GUpdateBackupIntervalData_setSettings_settingsSerializer(); +Serializer _$gUpdateBackupTTLDataSerializer = + new _$GUpdateBackupTTLDataSerializer(); +Serializer + _$gUpdateBackupTTLDataSetSettingsSerializer = + new _$GUpdateBackupTTLData_setSettingsSerializer(); +Serializer + _$gUpdateBackupTTLDataSetSettingsSettingsSerializer = + new _$GUpdateBackupTTLData_setSettings_settingsSerializer(); + +class _$GAutomaticBackupSettingsDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GAutomaticBackupSettingsData, + _$GAutomaticBackupSettingsData + ]; + @override + final String wireName = 'GAutomaticBackupSettingsData'; + + @override + Iterable serialize( + Serializers serializers, GAutomaticBackupSettingsData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: const FullType(GAutomaticBackupSettingsData_settings)), + ]; + + return result; + } + + @override + GAutomaticBackupSettingsData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAutomaticBackupSettingsDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GAutomaticBackupSettingsData_settings))! + as GAutomaticBackupSettingsData_settings); + break; + } + } + + return result.build(); + } +} + +class _$GAutomaticBackupSettingsData_settingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GAutomaticBackupSettingsData_settings, + _$GAutomaticBackupSettingsData_settings + ]; + @override + final String wireName = 'GAutomaticBackupSettingsData_settings'; + + @override + Iterable serialize( + Serializers serializers, GAutomaticBackupSettingsData_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GAutomaticBackupSettingsData_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAutomaticBackupSettingsData_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GRestoreStatusDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GRestoreStatusData, _$GRestoreStatusData]; + @override + final String wireName = 'GRestoreStatusData'; + + @override + Iterable serialize( + Serializers serializers, GRestoreStatusData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + ]; + Object? value; + value = object.restoreStatus; + if (value != null) { + result + ..add('restoreStatus') + ..add(serializers.serialize(value, + specifiedType: const FullType(GRestoreStatusData_restoreStatus))); + } + return result; + } + + @override + GRestoreStatusData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GRestoreStatusDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'restoreStatus': + result.restoreStatus.replace(serializers.deserialize(value, + specifiedType: + const FullType(GRestoreStatusData_restoreStatus))! + as GRestoreStatusData_restoreStatus); + break; + } + } + + return result.build(); + } +} + +class _$GRestoreStatusData_restoreStatusSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GRestoreStatusData_restoreStatus, + _$GRestoreStatusData_restoreStatus + ]; + @override + final String wireName = 'GRestoreStatusData_restoreStatus'; + + @override + Iterable serialize( + Serializers serializers, GRestoreStatusData_restoreStatus object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'mangaProgress', + serializers.serialize(object.mangaProgress, + specifiedType: const FullType(int)), + 'state', + serializers.serialize(object.state, + specifiedType: const FullType(_i2.GBackupRestoreState)), + 'totalManga', + serializers.serialize(object.totalManga, + specifiedType: const FullType(int)), + ]; + + return result; + } + + @override + GRestoreStatusData_restoreStatus deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GRestoreStatusData_restoreStatusBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'mangaProgress': + result.mangaProgress = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'state': + result.state = serializers.deserialize(value, + specifiedType: const FullType(_i2.GBackupRestoreState))! + as _i2.GBackupRestoreState; + break; + case 'totalManga': + result.totalManga = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GValidateBackupDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GValidateBackupData, + _$GValidateBackupData + ]; + @override + final String wireName = 'GValidateBackupData'; + + @override + Iterable serialize( + Serializers serializers, GValidateBackupData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'validateBackup', + serializers.serialize(object.validateBackup, + specifiedType: const FullType(GValidateBackupData_validateBackup)), + ]; + + return result; + } + + @override + GValidateBackupData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GValidateBackupDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'validateBackup': + result.validateBackup.replace(serializers.deserialize(value, + specifiedType: + const FullType(GValidateBackupData_validateBackup))! + as GValidateBackupData_validateBackup); + break; + } + } + + return result.build(); + } +} + +class _$GValidateBackupData_validateBackupSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GValidateBackupData_validateBackup, + _$GValidateBackupData_validateBackup + ]; + @override + final String wireName = 'GValidateBackupData_validateBackup'; + + @override + Iterable serialize( + Serializers serializers, GValidateBackupData_validateBackup object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'missingSources', + serializers.serialize(object.missingSources, + specifiedType: const FullType(BuiltList, const [ + const FullType(GValidateBackupData_validateBackup_missingSources) + ])), + ]; + + return result; + } + + @override + GValidateBackupData_validateBackup deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GValidateBackupData_validateBackupBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'missingSources': + result.missingSources.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType( + GValidateBackupData_validateBackup_missingSources) + ]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GValidateBackupData_validateBackup_missingSourcesSerializer + implements + StructuredSerializer< + GValidateBackupData_validateBackup_missingSources> { + @override + final Iterable types = const [ + GValidateBackupData_validateBackup_missingSources, + _$GValidateBackupData_validateBackup_missingSources + ]; + @override + final String wireName = 'GValidateBackupData_validateBackup_missingSources'; + + @override + Iterable serialize(Serializers serializers, + GValidateBackupData_validateBackup_missingSources object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GValidateBackupData_validateBackup_missingSources deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GValidateBackupData_validateBackup_missingSourcesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GCreateBackupDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GCreateBackupData, _$GCreateBackupData]; + @override + final String wireName = 'GCreateBackupData'; + + @override + Iterable serialize(Serializers serializers, GCreateBackupData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'createBackup', + serializers.serialize(object.createBackup, + specifiedType: const FullType(GCreateBackupData_createBackup)), + ]; + + return result; + } + + @override + GCreateBackupData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GCreateBackupDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'createBackup': + result.createBackup.replace(serializers.deserialize(value, + specifiedType: + const FullType(GCreateBackupData_createBackup))! + as GCreateBackupData_createBackup); + break; + } + } + + return result.build(); + } +} + +class _$GCreateBackupData_createBackupSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GCreateBackupData_createBackup, + _$GCreateBackupData_createBackup + ]; + @override + final String wireName = 'GCreateBackupData_createBackup'; + + @override + Iterable serialize( + Serializers serializers, GCreateBackupData_createBackup object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'url', + serializers.serialize(object.url, specifiedType: const FullType(String)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GCreateBackupData_createBackup deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GCreateBackupData_createBackupBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'url': + result.url = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GRestoreBackupDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GRestoreBackupData, _$GRestoreBackupData]; + @override + final String wireName = 'GRestoreBackupData'; + + @override + Iterable serialize( + Serializers serializers, GRestoreBackupData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'restoreBackup', + serializers.serialize(object.restoreBackup, + specifiedType: const FullType(GRestoreBackupData_restoreBackup)), + ]; + + return result; + } + + @override + GRestoreBackupData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GRestoreBackupDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'restoreBackup': + result.restoreBackup.replace(serializers.deserialize(value, + specifiedType: + const FullType(GRestoreBackupData_restoreBackup))! + as GRestoreBackupData_restoreBackup); + break; + } + } + + return result.build(); + } +} + +class _$GRestoreBackupData_restoreBackupSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GRestoreBackupData_restoreBackup, + _$GRestoreBackupData_restoreBackup + ]; + @override + final String wireName = 'GRestoreBackupData_restoreBackup'; + + @override + Iterable serialize( + Serializers serializers, GRestoreBackupData_restoreBackup object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'id', + serializers.serialize(object.id, specifiedType: const FullType(String)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.status; + if (value != null) { + result + ..add('status') + ..add(serializers.serialize(value, + specifiedType: + const FullType(GRestoreBackupData_restoreBackup_status))); + } + return result; + } + + @override + GRestoreBackupData_restoreBackup deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GRestoreBackupData_restoreBackupBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'status': + result.status.replace(serializers.deserialize(value, + specifiedType: + const FullType(GRestoreBackupData_restoreBackup_status))! + as GRestoreBackupData_restoreBackup_status); + break; + } + } + + return result.build(); + } +} + +class _$GRestoreBackupData_restoreBackup_statusSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GRestoreBackupData_restoreBackup_status, + _$GRestoreBackupData_restoreBackup_status + ]; + @override + final String wireName = 'GRestoreBackupData_restoreBackup_status'; + + @override + Iterable serialize( + Serializers serializers, GRestoreBackupData_restoreBackup_status object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'mangaProgress', + serializers.serialize(object.mangaProgress, + specifiedType: const FullType(int)), + 'state', + serializers.serialize(object.state, + specifiedType: const FullType(_i2.GBackupRestoreState)), + 'totalManga', + serializers.serialize(object.totalManga, + specifiedType: const FullType(int)), + ]; + + return result; + } + + @override + GRestoreBackupData_restoreBackup_status deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GRestoreBackupData_restoreBackup_statusBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'mangaProgress': + result.mangaProgress = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'state': + result.state = serializers.deserialize(value, + specifiedType: const FullType(_i2.GBackupRestoreState))! + as _i2.GBackupRestoreState; + break; + case 'totalManga': + result.totalManga = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupPathDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupPathData, + _$GUpdateBackupPathData + ]; + @override + final String wireName = 'GUpdateBackupPathData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupPathData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GUpdateBackupPathData_setSettings)), + ]; + + return result; + } + + @override + GUpdateBackupPathData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupPathDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateBackupPathData_setSettings))! + as GUpdateBackupPathData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupPathData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupPathData_setSettings, + _$GUpdateBackupPathData_setSettings + ]; + @override + final String wireName = 'GUpdateBackupPathData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupPathData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GUpdateBackupPathData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateBackupPathData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupPathData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateBackupPathData_setSettings_settings))! + as GUpdateBackupPathData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupPathData_setSettings_settingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupPathData_setSettings_settings, + _$GUpdateBackupPathData_setSettings_settings + ]; + @override + final String wireName = 'GUpdateBackupPathData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateBackupPathData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GUpdateBackupPathData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupPathData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupTimeDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupTimeData, + _$GUpdateBackupTimeData + ]; + @override + final String wireName = 'GUpdateBackupTimeData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupTimeData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GUpdateBackupTimeData_setSettings)), + ]; + + return result; + } + + @override + GUpdateBackupTimeData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupTimeDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateBackupTimeData_setSettings))! + as GUpdateBackupTimeData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupTimeData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupTimeData_setSettings, + _$GUpdateBackupTimeData_setSettings + ]; + @override + final String wireName = 'GUpdateBackupTimeData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupTimeData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GUpdateBackupTimeData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateBackupTimeData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupTimeData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateBackupTimeData_setSettings_settings))! + as GUpdateBackupTimeData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupTimeData_setSettings_settingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupTimeData_setSettings_settings, + _$GUpdateBackupTimeData_setSettings_settings + ]; + @override + final String wireName = 'GUpdateBackupTimeData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateBackupTimeData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GUpdateBackupTimeData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupTimeData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupIntervalDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupIntervalData, + _$GUpdateBackupIntervalData + ]; + @override + final String wireName = 'GUpdateBackupIntervalData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupIntervalData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GUpdateBackupIntervalData_setSettings)), + ]; + + return result; + } + + @override + GUpdateBackupIntervalData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupIntervalDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateBackupIntervalData_setSettings))! + as GUpdateBackupIntervalData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupIntervalData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupIntervalData_setSettings, + _$GUpdateBackupIntervalData_setSettings + ]; + @override + final String wireName = 'GUpdateBackupIntervalData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupIntervalData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GUpdateBackupIntervalData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateBackupIntervalData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupIntervalData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateBackupIntervalData_setSettings_settings))! + as GUpdateBackupIntervalData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupIntervalData_setSettings_settingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupIntervalData_setSettings_settings, + _$GUpdateBackupIntervalData_setSettings_settings + ]; + @override + final String wireName = 'GUpdateBackupIntervalData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateBackupIntervalData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + ]; + + return result; + } + + @override + GUpdateBackupIntervalData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupIntervalData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupTTLDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupTTLData, + _$GUpdateBackupTTLData + ]; + @override + final String wireName = 'GUpdateBackupTTLData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupTTLData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GUpdateBackupTTLData_setSettings)), + ]; + + return result; + } + + @override + GUpdateBackupTTLData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupTTLDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateBackupTTLData_setSettings))! + as GUpdateBackupTTLData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupTTLData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupTTLData_setSettings, + _$GUpdateBackupTTLData_setSettings + ]; + @override + final String wireName = 'GUpdateBackupTTLData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupTTLData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GUpdateBackupTTLData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateBackupTTLData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupTTLData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateBackupTTLData_setSettings_settings))! + as GUpdateBackupTTLData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupTTLData_setSettings_settingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupTTLData_setSettings_settings, + _$GUpdateBackupTTLData_setSettings_settings + ]; + @override + final String wireName = 'GUpdateBackupTTLData_setSettings_settings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupTTLData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + ]; + + return result; + } + + @override + GUpdateBackupTTLData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupTTLData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GAutomaticBackupSettingsData extends GAutomaticBackupSettingsData { + @override + final String G__typename; + @override + final GAutomaticBackupSettingsData_settings settings; + + factory _$GAutomaticBackupSettingsData( + [void Function(GAutomaticBackupSettingsDataBuilder)? updates]) => + (new GAutomaticBackupSettingsDataBuilder()..update(updates))._build(); + + _$GAutomaticBackupSettingsData._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GAutomaticBackupSettingsData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GAutomaticBackupSettingsData', 'settings'); + } + + @override + GAutomaticBackupSettingsData rebuild( + void Function(GAutomaticBackupSettingsDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAutomaticBackupSettingsDataBuilder toBuilder() => + new GAutomaticBackupSettingsDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAutomaticBackupSettingsData && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GAutomaticBackupSettingsData') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GAutomaticBackupSettingsDataBuilder + implements + Builder { + _$GAutomaticBackupSettingsData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GAutomaticBackupSettingsData_settingsBuilder? _settings; + GAutomaticBackupSettingsData_settingsBuilder get settings => + _$this._settings ??= new GAutomaticBackupSettingsData_settingsBuilder(); + set settings(GAutomaticBackupSettingsData_settingsBuilder? settings) => + _$this._settings = settings; + + GAutomaticBackupSettingsDataBuilder() { + GAutomaticBackupSettingsData._initializeBuilder(this); + } + + GAutomaticBackupSettingsDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GAutomaticBackupSettingsData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAutomaticBackupSettingsData; + } + + @override + void update(void Function(GAutomaticBackupSettingsDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAutomaticBackupSettingsData build() => _build(); + + _$GAutomaticBackupSettingsData _build() { + _$GAutomaticBackupSettingsData _$result; + try { + _$result = _$v ?? + new _$GAutomaticBackupSettingsData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GAutomaticBackupSettingsData', 'G__typename'), + settings: settings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GAutomaticBackupSettingsData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GAutomaticBackupSettingsData_settings + extends GAutomaticBackupSettingsData_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + + factory _$GAutomaticBackupSettingsData_settings( + [void Function(GAutomaticBackupSettingsData_settingsBuilder)? + updates]) => + (new GAutomaticBackupSettingsData_settingsBuilder()..update(updates)) + ._build(); + + _$GAutomaticBackupSettingsData_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GAutomaticBackupSettingsData_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GAutomaticBackupSettingsData_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull( + backupPath, r'GAutomaticBackupSettingsData_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GAutomaticBackupSettingsData_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull( + backupTime, r'GAutomaticBackupSettingsData_settings', 'backupTime'); + } + + @override + GAutomaticBackupSettingsData_settings rebuild( + void Function(GAutomaticBackupSettingsData_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GAutomaticBackupSettingsData_settingsBuilder toBuilder() => + new GAutomaticBackupSettingsData_settingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAutomaticBackupSettingsData_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GAutomaticBackupSettingsData_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime)) + .toString(); + } +} + +class GAutomaticBackupSettingsData_settingsBuilder + implements + Builder { + _$GAutomaticBackupSettingsData_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + GAutomaticBackupSettingsData_settingsBuilder() { + GAutomaticBackupSettingsData_settings._initializeBuilder(this); + } + + GAutomaticBackupSettingsData_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _$v = null; + } + return this; + } + + @override + void replace(GAutomaticBackupSettingsData_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAutomaticBackupSettingsData_settings; + } + + @override + void update( + void Function(GAutomaticBackupSettingsData_settingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAutomaticBackupSettingsData_settings build() => _build(); + + _$GAutomaticBackupSettingsData_settings _build() { + final _$result = _$v ?? + new _$GAutomaticBackupSettingsData_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GAutomaticBackupSettingsData_settings', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GAutomaticBackupSettingsData_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull(backupPath, + r'GAutomaticBackupSettingsData_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GAutomaticBackupSettingsData_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull(backupTime, + r'GAutomaticBackupSettingsData_settings', 'backupTime')); + replace(_$result); + return _$result; + } +} + +class _$GRestoreStatusData extends GRestoreStatusData { + @override + final String G__typename; + @override + final GRestoreStatusData_restoreStatus? restoreStatus; + + factory _$GRestoreStatusData( + [void Function(GRestoreStatusDataBuilder)? updates]) => + (new GRestoreStatusDataBuilder()..update(updates))._build(); + + _$GRestoreStatusData._({required this.G__typename, this.restoreStatus}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GRestoreStatusData', 'G__typename'); + } + + @override + GRestoreStatusData rebuild( + void Function(GRestoreStatusDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GRestoreStatusDataBuilder toBuilder() => + new GRestoreStatusDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GRestoreStatusData && + G__typename == other.G__typename && + restoreStatus == other.restoreStatus; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, restoreStatus.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GRestoreStatusData') + ..add('G__typename', G__typename) + ..add('restoreStatus', restoreStatus)) + .toString(); + } +} + +class GRestoreStatusDataBuilder + implements Builder { + _$GRestoreStatusData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GRestoreStatusData_restoreStatusBuilder? _restoreStatus; + GRestoreStatusData_restoreStatusBuilder get restoreStatus => + _$this._restoreStatus ??= new GRestoreStatusData_restoreStatusBuilder(); + set restoreStatus(GRestoreStatusData_restoreStatusBuilder? restoreStatus) => + _$this._restoreStatus = restoreStatus; + + GRestoreStatusDataBuilder() { + GRestoreStatusData._initializeBuilder(this); + } + + GRestoreStatusDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _restoreStatus = $v.restoreStatus?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GRestoreStatusData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GRestoreStatusData; + } + + @override + void update(void Function(GRestoreStatusDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GRestoreStatusData build() => _build(); + + _$GRestoreStatusData _build() { + _$GRestoreStatusData _$result; + try { + _$result = _$v ?? + new _$GRestoreStatusData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GRestoreStatusData', 'G__typename'), + restoreStatus: _restoreStatus?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'restoreStatus'; + _restoreStatus?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GRestoreStatusData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GRestoreStatusData_restoreStatus + extends GRestoreStatusData_restoreStatus { + @override + final String G__typename; + @override + final int mangaProgress; + @override + final _i2.GBackupRestoreState state; + @override + final int totalManga; + + factory _$GRestoreStatusData_restoreStatus( + [void Function(GRestoreStatusData_restoreStatusBuilder)? updates]) => + (new GRestoreStatusData_restoreStatusBuilder()..update(updates))._build(); + + _$GRestoreStatusData_restoreStatus._( + {required this.G__typename, + required this.mangaProgress, + required this.state, + required this.totalManga}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GRestoreStatusData_restoreStatus', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + mangaProgress, r'GRestoreStatusData_restoreStatus', 'mangaProgress'); + BuiltValueNullFieldError.checkNotNull( + state, r'GRestoreStatusData_restoreStatus', 'state'); + BuiltValueNullFieldError.checkNotNull( + totalManga, r'GRestoreStatusData_restoreStatus', 'totalManga'); + } + + @override + GRestoreStatusData_restoreStatus rebuild( + void Function(GRestoreStatusData_restoreStatusBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GRestoreStatusData_restoreStatusBuilder toBuilder() => + new GRestoreStatusData_restoreStatusBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GRestoreStatusData_restoreStatus && + G__typename == other.G__typename && + mangaProgress == other.mangaProgress && + state == other.state && + totalManga == other.totalManga; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, mangaProgress.hashCode); + _$hash = $jc(_$hash, state.hashCode); + _$hash = $jc(_$hash, totalManga.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GRestoreStatusData_restoreStatus') + ..add('G__typename', G__typename) + ..add('mangaProgress', mangaProgress) + ..add('state', state) + ..add('totalManga', totalManga)) + .toString(); + } +} + +class GRestoreStatusData_restoreStatusBuilder + implements + Builder { + _$GRestoreStatusData_restoreStatus? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _mangaProgress; + int? get mangaProgress => _$this._mangaProgress; + set mangaProgress(int? mangaProgress) => + _$this._mangaProgress = mangaProgress; + + _i2.GBackupRestoreState? _state; + _i2.GBackupRestoreState? get state => _$this._state; + set state(_i2.GBackupRestoreState? state) => _$this._state = state; + + int? _totalManga; + int? get totalManga => _$this._totalManga; + set totalManga(int? totalManga) => _$this._totalManga = totalManga; + + GRestoreStatusData_restoreStatusBuilder() { + GRestoreStatusData_restoreStatus._initializeBuilder(this); + } + + GRestoreStatusData_restoreStatusBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _mangaProgress = $v.mangaProgress; + _state = $v.state; + _totalManga = $v.totalManga; + _$v = null; + } + return this; + } + + @override + void replace(GRestoreStatusData_restoreStatus other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GRestoreStatusData_restoreStatus; + } + + @override + void update(void Function(GRestoreStatusData_restoreStatusBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GRestoreStatusData_restoreStatus build() => _build(); + + _$GRestoreStatusData_restoreStatus _build() { + final _$result = _$v ?? + new _$GRestoreStatusData_restoreStatus._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GRestoreStatusData_restoreStatus', 'G__typename'), + mangaProgress: BuiltValueNullFieldError.checkNotNull(mangaProgress, + r'GRestoreStatusData_restoreStatus', 'mangaProgress'), + state: BuiltValueNullFieldError.checkNotNull( + state, r'GRestoreStatusData_restoreStatus', 'state'), + totalManga: BuiltValueNullFieldError.checkNotNull( + totalManga, r'GRestoreStatusData_restoreStatus', 'totalManga')); + replace(_$result); + return _$result; + } +} + +class _$GValidateBackupData extends GValidateBackupData { + @override + final String G__typename; + @override + final GValidateBackupData_validateBackup validateBackup; + + factory _$GValidateBackupData( + [void Function(GValidateBackupDataBuilder)? updates]) => + (new GValidateBackupDataBuilder()..update(updates))._build(); + + _$GValidateBackupData._( + {required this.G__typename, required this.validateBackup}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GValidateBackupData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + validateBackup, r'GValidateBackupData', 'validateBackup'); + } + + @override + GValidateBackupData rebuild( + void Function(GValidateBackupDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GValidateBackupDataBuilder toBuilder() => + new GValidateBackupDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GValidateBackupData && + G__typename == other.G__typename && + validateBackup == other.validateBackup; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, validateBackup.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GValidateBackupData') + ..add('G__typename', G__typename) + ..add('validateBackup', validateBackup)) + .toString(); + } +} + +class GValidateBackupDataBuilder + implements Builder { + _$GValidateBackupData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GValidateBackupData_validateBackupBuilder? _validateBackup; + GValidateBackupData_validateBackupBuilder get validateBackup => + _$this._validateBackup ??= + new GValidateBackupData_validateBackupBuilder(); + set validateBackup( + GValidateBackupData_validateBackupBuilder? validateBackup) => + _$this._validateBackup = validateBackup; + + GValidateBackupDataBuilder() { + GValidateBackupData._initializeBuilder(this); + } + + GValidateBackupDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _validateBackup = $v.validateBackup.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GValidateBackupData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GValidateBackupData; + } + + @override + void update(void Function(GValidateBackupDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GValidateBackupData build() => _build(); + + _$GValidateBackupData _build() { + _$GValidateBackupData _$result; + try { + _$result = _$v ?? + new _$GValidateBackupData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GValidateBackupData', 'G__typename'), + validateBackup: validateBackup.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'validateBackup'; + validateBackup.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GValidateBackupData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GValidateBackupData_validateBackup + extends GValidateBackupData_validateBackup { + @override + final String G__typename; + @override + final BuiltList + missingSources; + + factory _$GValidateBackupData_validateBackup( + [void Function(GValidateBackupData_validateBackupBuilder)? + updates]) => + (new GValidateBackupData_validateBackupBuilder()..update(updates)) + ._build(); + + _$GValidateBackupData_validateBackup._( + {required this.G__typename, required this.missingSources}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GValidateBackupData_validateBackup', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(missingSources, + r'GValidateBackupData_validateBackup', 'missingSources'); + } + + @override + GValidateBackupData_validateBackup rebuild( + void Function(GValidateBackupData_validateBackupBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GValidateBackupData_validateBackupBuilder toBuilder() => + new GValidateBackupData_validateBackupBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GValidateBackupData_validateBackup && + G__typename == other.G__typename && + missingSources == other.missingSources; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, missingSources.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GValidateBackupData_validateBackup') + ..add('G__typename', G__typename) + ..add('missingSources', missingSources)) + .toString(); + } +} + +class GValidateBackupData_validateBackupBuilder + implements + Builder { + _$GValidateBackupData_validateBackup? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + ListBuilder? + _missingSources; + ListBuilder + get missingSources => _$this._missingSources ??= + new ListBuilder(); + set missingSources( + ListBuilder? + missingSources) => + _$this._missingSources = missingSources; + + GValidateBackupData_validateBackupBuilder() { + GValidateBackupData_validateBackup._initializeBuilder(this); + } + + GValidateBackupData_validateBackupBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _missingSources = $v.missingSources.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GValidateBackupData_validateBackup other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GValidateBackupData_validateBackup; + } + + @override + void update( + void Function(GValidateBackupData_validateBackupBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GValidateBackupData_validateBackup build() => _build(); + + _$GValidateBackupData_validateBackup _build() { + _$GValidateBackupData_validateBackup _$result; + try { + _$result = _$v ?? + new _$GValidateBackupData_validateBackup._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GValidateBackupData_validateBackup', 'G__typename'), + missingSources: missingSources.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'missingSources'; + missingSources.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GValidateBackupData_validateBackup', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GValidateBackupData_validateBackup_missingSources + extends GValidateBackupData_validateBackup_missingSources { + @override + final String G__typename; + @override + final String name; + + factory _$GValidateBackupData_validateBackup_missingSources( + [void Function( + GValidateBackupData_validateBackup_missingSourcesBuilder)? + updates]) => + (new GValidateBackupData_validateBackup_missingSourcesBuilder() + ..update(updates)) + ._build(); + + _$GValidateBackupData_validateBackup_missingSources._( + {required this.G__typename, required this.name}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GValidateBackupData_validateBackup_missingSources', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + name, r'GValidateBackupData_validateBackup_missingSources', 'name'); + } + + @override + GValidateBackupData_validateBackup_missingSources rebuild( + void Function( + GValidateBackupData_validateBackup_missingSourcesBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GValidateBackupData_validateBackup_missingSourcesBuilder toBuilder() => + new GValidateBackupData_validateBackup_missingSourcesBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GValidateBackupData_validateBackup_missingSources && + G__typename == other.G__typename && + name == other.name; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GValidateBackupData_validateBackup_missingSources') + ..add('G__typename', G__typename) + ..add('name', name)) + .toString(); + } +} + +class GValidateBackupData_validateBackup_missingSourcesBuilder + implements + Builder { + _$GValidateBackupData_validateBackup_missingSources? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + GValidateBackupData_validateBackup_missingSourcesBuilder() { + GValidateBackupData_validateBackup_missingSources._initializeBuilder(this); + } + + GValidateBackupData_validateBackup_missingSourcesBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _name = $v.name; + _$v = null; + } + return this; + } + + @override + void replace(GValidateBackupData_validateBackup_missingSources other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GValidateBackupData_validateBackup_missingSources; + } + + @override + void update( + void Function(GValidateBackupData_validateBackup_missingSourcesBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GValidateBackupData_validateBackup_missingSources build() => _build(); + + _$GValidateBackupData_validateBackup_missingSources _build() { + final _$result = _$v ?? + new _$GValidateBackupData_validateBackup_missingSources._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GValidateBackupData_validateBackup_missingSources', + 'G__typename'), + name: BuiltValueNullFieldError.checkNotNull(name, + r'GValidateBackupData_validateBackup_missingSources', 'name')); + replace(_$result); + return _$result; + } +} + +class _$GCreateBackupData extends GCreateBackupData { + @override + final String G__typename; + @override + final GCreateBackupData_createBackup createBackup; + + factory _$GCreateBackupData( + [void Function(GCreateBackupDataBuilder)? updates]) => + (new GCreateBackupDataBuilder()..update(updates))._build(); + + _$GCreateBackupData._({required this.G__typename, required this.createBackup}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GCreateBackupData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + createBackup, r'GCreateBackupData', 'createBackup'); + } + + @override + GCreateBackupData rebuild(void Function(GCreateBackupDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCreateBackupDataBuilder toBuilder() => + new GCreateBackupDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCreateBackupData && + G__typename == other.G__typename && + createBackup == other.createBackup; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, createBackup.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GCreateBackupData') + ..add('G__typename', G__typename) + ..add('createBackup', createBackup)) + .toString(); + } +} + +class GCreateBackupDataBuilder + implements Builder { + _$GCreateBackupData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GCreateBackupData_createBackupBuilder? _createBackup; + GCreateBackupData_createBackupBuilder get createBackup => + _$this._createBackup ??= new GCreateBackupData_createBackupBuilder(); + set createBackup(GCreateBackupData_createBackupBuilder? createBackup) => + _$this._createBackup = createBackup; + + GCreateBackupDataBuilder() { + GCreateBackupData._initializeBuilder(this); + } + + GCreateBackupDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _createBackup = $v.createBackup.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GCreateBackupData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCreateBackupData; + } + + @override + void update(void Function(GCreateBackupDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCreateBackupData build() => _build(); + + _$GCreateBackupData _build() { + _$GCreateBackupData _$result; + try { + _$result = _$v ?? + new _$GCreateBackupData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GCreateBackupData', 'G__typename'), + createBackup: createBackup.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'createBackup'; + createBackup.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GCreateBackupData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GCreateBackupData_createBackup extends GCreateBackupData_createBackup { + @override + final String G__typename; + @override + final String? clientMutationId; + @override + final String url; + + factory _$GCreateBackupData_createBackup( + [void Function(GCreateBackupData_createBackupBuilder)? updates]) => + (new GCreateBackupData_createBackupBuilder()..update(updates))._build(); + + _$GCreateBackupData_createBackup._( + {required this.G__typename, this.clientMutationId, required this.url}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GCreateBackupData_createBackup', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + url, r'GCreateBackupData_createBackup', 'url'); + } + + @override + GCreateBackupData_createBackup rebuild( + void Function(GCreateBackupData_createBackupBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCreateBackupData_createBackupBuilder toBuilder() => + new GCreateBackupData_createBackupBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCreateBackupData_createBackup && + G__typename == other.G__typename && + clientMutationId == other.clientMutationId && + url == other.url; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GCreateBackupData_createBackup') + ..add('G__typename', G__typename) + ..add('clientMutationId', clientMutationId) + ..add('url', url)) + .toString(); + } +} + +class GCreateBackupData_createBackupBuilder + implements + Builder { + _$GCreateBackupData_createBackup? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + GCreateBackupData_createBackupBuilder() { + GCreateBackupData_createBackup._initializeBuilder(this); + } + + GCreateBackupData_createBackupBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _clientMutationId = $v.clientMutationId; + _url = $v.url; + _$v = null; + } + return this; + } + + @override + void replace(GCreateBackupData_createBackup other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCreateBackupData_createBackup; + } + + @override + void update(void Function(GCreateBackupData_createBackupBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCreateBackupData_createBackup build() => _build(); + + _$GCreateBackupData_createBackup _build() { + final _$result = _$v ?? + new _$GCreateBackupData_createBackup._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GCreateBackupData_createBackup', 'G__typename'), + clientMutationId: clientMutationId, + url: BuiltValueNullFieldError.checkNotNull( + url, r'GCreateBackupData_createBackup', 'url')); + replace(_$result); + return _$result; + } +} + +class _$GRestoreBackupData extends GRestoreBackupData { + @override + final String G__typename; + @override + final GRestoreBackupData_restoreBackup restoreBackup; + + factory _$GRestoreBackupData( + [void Function(GRestoreBackupDataBuilder)? updates]) => + (new GRestoreBackupDataBuilder()..update(updates))._build(); + + _$GRestoreBackupData._( + {required this.G__typename, required this.restoreBackup}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GRestoreBackupData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + restoreBackup, r'GRestoreBackupData', 'restoreBackup'); + } + + @override + GRestoreBackupData rebuild( + void Function(GRestoreBackupDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GRestoreBackupDataBuilder toBuilder() => + new GRestoreBackupDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GRestoreBackupData && + G__typename == other.G__typename && + restoreBackup == other.restoreBackup; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, restoreBackup.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GRestoreBackupData') + ..add('G__typename', G__typename) + ..add('restoreBackup', restoreBackup)) + .toString(); + } +} + +class GRestoreBackupDataBuilder + implements Builder { + _$GRestoreBackupData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GRestoreBackupData_restoreBackupBuilder? _restoreBackup; + GRestoreBackupData_restoreBackupBuilder get restoreBackup => + _$this._restoreBackup ??= new GRestoreBackupData_restoreBackupBuilder(); + set restoreBackup(GRestoreBackupData_restoreBackupBuilder? restoreBackup) => + _$this._restoreBackup = restoreBackup; + + GRestoreBackupDataBuilder() { + GRestoreBackupData._initializeBuilder(this); + } + + GRestoreBackupDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _restoreBackup = $v.restoreBackup.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GRestoreBackupData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GRestoreBackupData; + } + + @override + void update(void Function(GRestoreBackupDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GRestoreBackupData build() => _build(); + + _$GRestoreBackupData _build() { + _$GRestoreBackupData _$result; + try { + _$result = _$v ?? + new _$GRestoreBackupData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GRestoreBackupData', 'G__typename'), + restoreBackup: restoreBackup.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'restoreBackup'; + restoreBackup.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GRestoreBackupData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GRestoreBackupData_restoreBackup + extends GRestoreBackupData_restoreBackup { + @override + final String G__typename; + @override + final String? clientMutationId; + @override + final String id; + @override + final GRestoreBackupData_restoreBackup_status? status; + + factory _$GRestoreBackupData_restoreBackup( + [void Function(GRestoreBackupData_restoreBackupBuilder)? updates]) => + (new GRestoreBackupData_restoreBackupBuilder()..update(updates))._build(); + + _$GRestoreBackupData_restoreBackup._( + {required this.G__typename, + this.clientMutationId, + required this.id, + this.status}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GRestoreBackupData_restoreBackup', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + id, r'GRestoreBackupData_restoreBackup', 'id'); + } + + @override + GRestoreBackupData_restoreBackup rebuild( + void Function(GRestoreBackupData_restoreBackupBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GRestoreBackupData_restoreBackupBuilder toBuilder() => + new GRestoreBackupData_restoreBackupBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GRestoreBackupData_restoreBackup && + G__typename == other.G__typename && + clientMutationId == other.clientMutationId && + id == other.id && + status == other.status; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GRestoreBackupData_restoreBackup') + ..add('G__typename', G__typename) + ..add('clientMutationId', clientMutationId) + ..add('id', id) + ..add('status', status)) + .toString(); + } +} + +class GRestoreBackupData_restoreBackupBuilder + implements + Builder { + _$GRestoreBackupData_restoreBackup? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + GRestoreBackupData_restoreBackup_statusBuilder? _status; + GRestoreBackupData_restoreBackup_statusBuilder get status => + _$this._status ??= new GRestoreBackupData_restoreBackup_statusBuilder(); + set status(GRestoreBackupData_restoreBackup_statusBuilder? status) => + _$this._status = status; + + GRestoreBackupData_restoreBackupBuilder() { + GRestoreBackupData_restoreBackup._initializeBuilder(this); + } + + GRestoreBackupData_restoreBackupBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _clientMutationId = $v.clientMutationId; + _id = $v.id; + _status = $v.status?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GRestoreBackupData_restoreBackup other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GRestoreBackupData_restoreBackup; + } + + @override + void update(void Function(GRestoreBackupData_restoreBackupBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GRestoreBackupData_restoreBackup build() => _build(); + + _$GRestoreBackupData_restoreBackup _build() { + _$GRestoreBackupData_restoreBackup _$result; + try { + _$result = _$v ?? + new _$GRestoreBackupData_restoreBackup._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GRestoreBackupData_restoreBackup', 'G__typename'), + clientMutationId: clientMutationId, + id: BuiltValueNullFieldError.checkNotNull( + id, r'GRestoreBackupData_restoreBackup', 'id'), + status: _status?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'status'; + _status?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GRestoreBackupData_restoreBackup', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GRestoreBackupData_restoreBackup_status + extends GRestoreBackupData_restoreBackup_status { + @override + final String G__typename; + @override + final int mangaProgress; + @override + final _i2.GBackupRestoreState state; + @override + final int totalManga; + + factory _$GRestoreBackupData_restoreBackup_status( + [void Function(GRestoreBackupData_restoreBackup_statusBuilder)? + updates]) => + (new GRestoreBackupData_restoreBackup_statusBuilder()..update(updates)) + ._build(); + + _$GRestoreBackupData_restoreBackup_status._( + {required this.G__typename, + required this.mangaProgress, + required this.state, + required this.totalManga}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GRestoreBackupData_restoreBackup_status', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(mangaProgress, + r'GRestoreBackupData_restoreBackup_status', 'mangaProgress'); + BuiltValueNullFieldError.checkNotNull( + state, r'GRestoreBackupData_restoreBackup_status', 'state'); + BuiltValueNullFieldError.checkNotNull( + totalManga, r'GRestoreBackupData_restoreBackup_status', 'totalManga'); + } + + @override + GRestoreBackupData_restoreBackup_status rebuild( + void Function(GRestoreBackupData_restoreBackup_statusBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GRestoreBackupData_restoreBackup_statusBuilder toBuilder() => + new GRestoreBackupData_restoreBackup_statusBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GRestoreBackupData_restoreBackup_status && + G__typename == other.G__typename && + mangaProgress == other.mangaProgress && + state == other.state && + totalManga == other.totalManga; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, mangaProgress.hashCode); + _$hash = $jc(_$hash, state.hashCode); + _$hash = $jc(_$hash, totalManga.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GRestoreBackupData_restoreBackup_status') + ..add('G__typename', G__typename) + ..add('mangaProgress', mangaProgress) + ..add('state', state) + ..add('totalManga', totalManga)) + .toString(); + } +} + +class GRestoreBackupData_restoreBackup_statusBuilder + implements + Builder { + _$GRestoreBackupData_restoreBackup_status? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _mangaProgress; + int? get mangaProgress => _$this._mangaProgress; + set mangaProgress(int? mangaProgress) => + _$this._mangaProgress = mangaProgress; + + _i2.GBackupRestoreState? _state; + _i2.GBackupRestoreState? get state => _$this._state; + set state(_i2.GBackupRestoreState? state) => _$this._state = state; + + int? _totalManga; + int? get totalManga => _$this._totalManga; + set totalManga(int? totalManga) => _$this._totalManga = totalManga; + + GRestoreBackupData_restoreBackup_statusBuilder() { + GRestoreBackupData_restoreBackup_status._initializeBuilder(this); + } + + GRestoreBackupData_restoreBackup_statusBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _mangaProgress = $v.mangaProgress; + _state = $v.state; + _totalManga = $v.totalManga; + _$v = null; + } + return this; + } + + @override + void replace(GRestoreBackupData_restoreBackup_status other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GRestoreBackupData_restoreBackup_status; + } + + @override + void update( + void Function(GRestoreBackupData_restoreBackup_statusBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GRestoreBackupData_restoreBackup_status build() => _build(); + + _$GRestoreBackupData_restoreBackup_status _build() { + final _$result = _$v ?? + new _$GRestoreBackupData_restoreBackup_status._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GRestoreBackupData_restoreBackup_status', 'G__typename'), + mangaProgress: BuiltValueNullFieldError.checkNotNull(mangaProgress, + r'GRestoreBackupData_restoreBackup_status', 'mangaProgress'), + state: BuiltValueNullFieldError.checkNotNull( + state, r'GRestoreBackupData_restoreBackup_status', 'state'), + totalManga: BuiltValueNullFieldError.checkNotNull(totalManga, + r'GRestoreBackupData_restoreBackup_status', 'totalManga')); + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupPathData extends GUpdateBackupPathData { + @override + final String G__typename; + @override + final GUpdateBackupPathData_setSettings setSettings; + + factory _$GUpdateBackupPathData( + [void Function(GUpdateBackupPathDataBuilder)? updates]) => + (new GUpdateBackupPathDataBuilder()..update(updates))._build(); + + _$GUpdateBackupPathData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupPathData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateBackupPathData', 'setSettings'); + } + + @override + GUpdateBackupPathData rebuild( + void Function(GUpdateBackupPathDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupPathDataBuilder toBuilder() => + new GUpdateBackupPathDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupPathData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupPathData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateBackupPathDataBuilder + implements Builder { + _$GUpdateBackupPathData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateBackupPathData_setSettingsBuilder? _setSettings; + GUpdateBackupPathData_setSettingsBuilder get setSettings => + _$this._setSettings ??= new GUpdateBackupPathData_setSettingsBuilder(); + set setSettings(GUpdateBackupPathData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateBackupPathDataBuilder() { + GUpdateBackupPathData._initializeBuilder(this); + } + + GUpdateBackupPathDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupPathData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupPathData; + } + + @override + void update(void Function(GUpdateBackupPathDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupPathData build() => _build(); + + _$GUpdateBackupPathData _build() { + _$GUpdateBackupPathData _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupPathData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupPathData', 'G__typename'), + setSettings: setSettings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupPathData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupPathData_setSettings + extends GUpdateBackupPathData_setSettings { + @override + final String G__typename; + @override + final GUpdateBackupPathData_setSettings_settings settings; + + factory _$GUpdateBackupPathData_setSettings( + [void Function(GUpdateBackupPathData_setSettingsBuilder)? updates]) => + (new GUpdateBackupPathData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GUpdateBackupPathData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupPathData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateBackupPathData_setSettings', 'settings'); + } + + @override + GUpdateBackupPathData_setSettings rebuild( + void Function(GUpdateBackupPathData_setSettingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupPathData_setSettingsBuilder toBuilder() => + new GUpdateBackupPathData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupPathData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupPathData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateBackupPathData_setSettingsBuilder + implements + Builder { + _$GUpdateBackupPathData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateBackupPathData_setSettings_settingsBuilder? _settings; + GUpdateBackupPathData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateBackupPathData_setSettings_settingsBuilder(); + set settings(GUpdateBackupPathData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GUpdateBackupPathData_setSettingsBuilder() { + GUpdateBackupPathData_setSettings._initializeBuilder(this); + } + + GUpdateBackupPathData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupPathData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupPathData_setSettings; + } + + @override + void update( + void Function(GUpdateBackupPathData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupPathData_setSettings build() => _build(); + + _$GUpdateBackupPathData_setSettings _build() { + _$GUpdateBackupPathData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupPathData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateBackupPathData_setSettings', 'G__typename'), + settings: settings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupPathData_setSettings', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupPathData_setSettings_settings + extends GUpdateBackupPathData_setSettings_settings { + @override + final String G__typename; + @override + final String backupPath; + + factory _$GUpdateBackupPathData_setSettings_settings( + [void Function(GUpdateBackupPathData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateBackupPathData_setSettings_settingsBuilder()..update(updates)) + ._build(); + + _$GUpdateBackupPathData_setSettings_settings._( + {required this.G__typename, required this.backupPath}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateBackupPathData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateBackupPathData_setSettings_settings', 'backupPath'); + } + + @override + GUpdateBackupPathData_setSettings_settings rebuild( + void Function(GUpdateBackupPathData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupPathData_setSettings_settingsBuilder toBuilder() => + new GUpdateBackupPathData_setSettings_settingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupPathData_setSettings_settings && + G__typename == other.G__typename && + backupPath == other.backupPath; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateBackupPathData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupPath', backupPath)) + .toString(); + } +} + +class GUpdateBackupPathData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateBackupPathData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + GUpdateBackupPathData_setSettings_settingsBuilder() { + GUpdateBackupPathData_setSettings_settings._initializeBuilder(this); + } + + GUpdateBackupPathData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupPath = $v.backupPath; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupPathData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupPathData_setSettings_settings; + } + + @override + void update( + void Function(GUpdateBackupPathData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupPathData_setSettings_settings build() => _build(); + + _$GUpdateBackupPathData_setSettings_settings _build() { + final _$result = _$v ?? + new _$GUpdateBackupPathData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateBackupPathData_setSettings_settings', 'G__typename'), + backupPath: BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateBackupPathData_setSettings_settings', 'backupPath')); + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupTimeData extends GUpdateBackupTimeData { + @override + final String G__typename; + @override + final GUpdateBackupTimeData_setSettings setSettings; + + factory _$GUpdateBackupTimeData( + [void Function(GUpdateBackupTimeDataBuilder)? updates]) => + (new GUpdateBackupTimeDataBuilder()..update(updates))._build(); + + _$GUpdateBackupTimeData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupTimeData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateBackupTimeData', 'setSettings'); + } + + @override + GUpdateBackupTimeData rebuild( + void Function(GUpdateBackupTimeDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupTimeDataBuilder toBuilder() => + new GUpdateBackupTimeDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupTimeData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupTimeData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateBackupTimeDataBuilder + implements Builder { + _$GUpdateBackupTimeData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateBackupTimeData_setSettingsBuilder? _setSettings; + GUpdateBackupTimeData_setSettingsBuilder get setSettings => + _$this._setSettings ??= new GUpdateBackupTimeData_setSettingsBuilder(); + set setSettings(GUpdateBackupTimeData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateBackupTimeDataBuilder() { + GUpdateBackupTimeData._initializeBuilder(this); + } + + GUpdateBackupTimeDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupTimeData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupTimeData; + } + + @override + void update(void Function(GUpdateBackupTimeDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupTimeData build() => _build(); + + _$GUpdateBackupTimeData _build() { + _$GUpdateBackupTimeData _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupTimeData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupTimeData', 'G__typename'), + setSettings: setSettings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupTimeData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupTimeData_setSettings + extends GUpdateBackupTimeData_setSettings { + @override + final String G__typename; + @override + final GUpdateBackupTimeData_setSettings_settings settings; + + factory _$GUpdateBackupTimeData_setSettings( + [void Function(GUpdateBackupTimeData_setSettingsBuilder)? updates]) => + (new GUpdateBackupTimeData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GUpdateBackupTimeData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupTimeData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateBackupTimeData_setSettings', 'settings'); + } + + @override + GUpdateBackupTimeData_setSettings rebuild( + void Function(GUpdateBackupTimeData_setSettingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupTimeData_setSettingsBuilder toBuilder() => + new GUpdateBackupTimeData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupTimeData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupTimeData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateBackupTimeData_setSettingsBuilder + implements + Builder { + _$GUpdateBackupTimeData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateBackupTimeData_setSettings_settingsBuilder? _settings; + GUpdateBackupTimeData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateBackupTimeData_setSettings_settingsBuilder(); + set settings(GUpdateBackupTimeData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GUpdateBackupTimeData_setSettingsBuilder() { + GUpdateBackupTimeData_setSettings._initializeBuilder(this); + } + + GUpdateBackupTimeData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupTimeData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupTimeData_setSettings; + } + + @override + void update( + void Function(GUpdateBackupTimeData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupTimeData_setSettings build() => _build(); + + _$GUpdateBackupTimeData_setSettings _build() { + _$GUpdateBackupTimeData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupTimeData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateBackupTimeData_setSettings', 'G__typename'), + settings: settings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupTimeData_setSettings', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupTimeData_setSettings_settings + extends GUpdateBackupTimeData_setSettings_settings { + @override + final String G__typename; + @override + final String backupTime; + + factory _$GUpdateBackupTimeData_setSettings_settings( + [void Function(GUpdateBackupTimeData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateBackupTimeData_setSettings_settingsBuilder()..update(updates)) + ._build(); + + _$GUpdateBackupTimeData_setSettings_settings._( + {required this.G__typename, required this.backupTime}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateBackupTimeData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateBackupTimeData_setSettings_settings', 'backupTime'); + } + + @override + GUpdateBackupTimeData_setSettings_settings rebuild( + void Function(GUpdateBackupTimeData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupTimeData_setSettings_settingsBuilder toBuilder() => + new GUpdateBackupTimeData_setSettings_settingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupTimeData_setSettings_settings && + G__typename == other.G__typename && + backupTime == other.backupTime; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateBackupTimeData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupTime', backupTime)) + .toString(); + } +} + +class GUpdateBackupTimeData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateBackupTimeData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + GUpdateBackupTimeData_setSettings_settingsBuilder() { + GUpdateBackupTimeData_setSettings_settings._initializeBuilder(this); + } + + GUpdateBackupTimeData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupTime = $v.backupTime; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupTimeData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupTimeData_setSettings_settings; + } + + @override + void update( + void Function(GUpdateBackupTimeData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupTimeData_setSettings_settings build() => _build(); + + _$GUpdateBackupTimeData_setSettings_settings _build() { + final _$result = _$v ?? + new _$GUpdateBackupTimeData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateBackupTimeData_setSettings_settings', 'G__typename'), + backupTime: BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateBackupTimeData_setSettings_settings', 'backupTime')); + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupIntervalData extends GUpdateBackupIntervalData { + @override + final String G__typename; + @override + final GUpdateBackupIntervalData_setSettings setSettings; + + factory _$GUpdateBackupIntervalData( + [void Function(GUpdateBackupIntervalDataBuilder)? updates]) => + (new GUpdateBackupIntervalDataBuilder()..update(updates))._build(); + + _$GUpdateBackupIntervalData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupIntervalData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateBackupIntervalData', 'setSettings'); + } + + @override + GUpdateBackupIntervalData rebuild( + void Function(GUpdateBackupIntervalDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupIntervalDataBuilder toBuilder() => + new GUpdateBackupIntervalDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupIntervalData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupIntervalData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateBackupIntervalDataBuilder + implements + Builder { + _$GUpdateBackupIntervalData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateBackupIntervalData_setSettingsBuilder? _setSettings; + GUpdateBackupIntervalData_setSettingsBuilder get setSettings => + _$this._setSettings ??= + new GUpdateBackupIntervalData_setSettingsBuilder(); + set setSettings(GUpdateBackupIntervalData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateBackupIntervalDataBuilder() { + GUpdateBackupIntervalData._initializeBuilder(this); + } + + GUpdateBackupIntervalDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupIntervalData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupIntervalData; + } + + @override + void update(void Function(GUpdateBackupIntervalDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupIntervalData build() => _build(); + + _$GUpdateBackupIntervalData _build() { + _$GUpdateBackupIntervalData _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupIntervalData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupIntervalData', 'G__typename'), + setSettings: setSettings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupIntervalData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupIntervalData_setSettings + extends GUpdateBackupIntervalData_setSettings { + @override + final String G__typename; + @override + final GUpdateBackupIntervalData_setSettings_settings settings; + + factory _$GUpdateBackupIntervalData_setSettings( + [void Function(GUpdateBackupIntervalData_setSettingsBuilder)? + updates]) => + (new GUpdateBackupIntervalData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GUpdateBackupIntervalData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupIntervalData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateBackupIntervalData_setSettings', 'settings'); + } + + @override + GUpdateBackupIntervalData_setSettings rebuild( + void Function(GUpdateBackupIntervalData_setSettingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupIntervalData_setSettingsBuilder toBuilder() => + new GUpdateBackupIntervalData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupIntervalData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateBackupIntervalData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateBackupIntervalData_setSettingsBuilder + implements + Builder { + _$GUpdateBackupIntervalData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateBackupIntervalData_setSettings_settingsBuilder? _settings; + GUpdateBackupIntervalData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateBackupIntervalData_setSettings_settingsBuilder(); + set settings( + GUpdateBackupIntervalData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GUpdateBackupIntervalData_setSettingsBuilder() { + GUpdateBackupIntervalData_setSettings._initializeBuilder(this); + } + + GUpdateBackupIntervalData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupIntervalData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupIntervalData_setSettings; + } + + @override + void update( + void Function(GUpdateBackupIntervalData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupIntervalData_setSettings build() => _build(); + + _$GUpdateBackupIntervalData_setSettings _build() { + _$GUpdateBackupIntervalData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupIntervalData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateBackupIntervalData_setSettings', 'G__typename'), + settings: settings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupIntervalData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupIntervalData_setSettings_settings + extends GUpdateBackupIntervalData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + + factory _$GUpdateBackupIntervalData_setSettings_settings( + [void Function(GUpdateBackupIntervalData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateBackupIntervalData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GUpdateBackupIntervalData_setSettings_settings._( + {required this.G__typename, required this.backupInterval}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateBackupIntervalData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GUpdateBackupIntervalData_setSettings_settings', 'backupInterval'); + } + + @override + GUpdateBackupIntervalData_setSettings_settings rebuild( + void Function(GUpdateBackupIntervalData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupIntervalData_setSettings_settingsBuilder toBuilder() => + new GUpdateBackupIntervalData_setSettings_settingsBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupIntervalData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateBackupIntervalData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval)) + .toString(); + } +} + +class GUpdateBackupIntervalData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateBackupIntervalData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + GUpdateBackupIntervalData_setSettings_settingsBuilder() { + GUpdateBackupIntervalData_setSettings_settings._initializeBuilder(this); + } + + GUpdateBackupIntervalData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupIntervalData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupIntervalData_setSettings_settings; + } + + @override + void update( + void Function(GUpdateBackupIntervalData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupIntervalData_setSettings_settings build() => _build(); + + _$GUpdateBackupIntervalData_setSettings_settings _build() { + final _$result = _$v ?? + new _$GUpdateBackupIntervalData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GUpdateBackupIntervalData_setSettings_settings', + 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateBackupIntervalData_setSettings_settings', + 'backupInterval')); + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupTTLData extends GUpdateBackupTTLData { + @override + final String G__typename; + @override + final GUpdateBackupTTLData_setSettings setSettings; + + factory _$GUpdateBackupTTLData( + [void Function(GUpdateBackupTTLDataBuilder)? updates]) => + (new GUpdateBackupTTLDataBuilder()..update(updates))._build(); + + _$GUpdateBackupTTLData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupTTLData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateBackupTTLData', 'setSettings'); + } + + @override + GUpdateBackupTTLData rebuild( + void Function(GUpdateBackupTTLDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupTTLDataBuilder toBuilder() => + new GUpdateBackupTTLDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupTTLData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupTTLData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateBackupTTLDataBuilder + implements Builder { + _$GUpdateBackupTTLData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateBackupTTLData_setSettingsBuilder? _setSettings; + GUpdateBackupTTLData_setSettingsBuilder get setSettings => + _$this._setSettings ??= new GUpdateBackupTTLData_setSettingsBuilder(); + set setSettings(GUpdateBackupTTLData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateBackupTTLDataBuilder() { + GUpdateBackupTTLData._initializeBuilder(this); + } + + GUpdateBackupTTLDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupTTLData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupTTLData; + } + + @override + void update(void Function(GUpdateBackupTTLDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupTTLData build() => _build(); + + _$GUpdateBackupTTLData _build() { + _$GUpdateBackupTTLData _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupTTLData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupTTLData', 'G__typename'), + setSettings: setSettings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupTTLData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupTTLData_setSettings + extends GUpdateBackupTTLData_setSettings { + @override + final String G__typename; + @override + final GUpdateBackupTTLData_setSettings_settings settings; + + factory _$GUpdateBackupTTLData_setSettings( + [void Function(GUpdateBackupTTLData_setSettingsBuilder)? updates]) => + (new GUpdateBackupTTLData_setSettingsBuilder()..update(updates))._build(); + + _$GUpdateBackupTTLData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupTTLData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateBackupTTLData_setSettings', 'settings'); + } + + @override + GUpdateBackupTTLData_setSettings rebuild( + void Function(GUpdateBackupTTLData_setSettingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupTTLData_setSettingsBuilder toBuilder() => + new GUpdateBackupTTLData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupTTLData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupTTLData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateBackupTTLData_setSettingsBuilder + implements + Builder { + _$GUpdateBackupTTLData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateBackupTTLData_setSettings_settingsBuilder? _settings; + GUpdateBackupTTLData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateBackupTTLData_setSettings_settingsBuilder(); + set settings(GUpdateBackupTTLData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GUpdateBackupTTLData_setSettingsBuilder() { + GUpdateBackupTTLData_setSettings._initializeBuilder(this); + } + + GUpdateBackupTTLData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupTTLData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupTTLData_setSettings; + } + + @override + void update(void Function(GUpdateBackupTTLData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupTTLData_setSettings build() => _build(); + + _$GUpdateBackupTTLData_setSettings _build() { + _$GUpdateBackupTTLData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupTTLData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateBackupTTLData_setSettings', 'G__typename'), + settings: settings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupTTLData_setSettings', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupTTLData_setSettings_settings + extends GUpdateBackupTTLData_setSettings_settings { + @override + final String G__typename; + @override + final int backupTTL; + + factory _$GUpdateBackupTTLData_setSettings_settings( + [void Function(GUpdateBackupTTLData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateBackupTTLData_setSettings_settingsBuilder()..update(updates)) + ._build(); + + _$GUpdateBackupTTLData_setSettings_settings._( + {required this.G__typename, required this.backupTTL}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateBackupTTLData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GUpdateBackupTTLData_setSettings_settings', 'backupTTL'); + } + + @override + GUpdateBackupTTLData_setSettings_settings rebuild( + void Function(GUpdateBackupTTLData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupTTLData_setSettings_settingsBuilder toBuilder() => + new GUpdateBackupTTLData_setSettings_settingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupTTLData_setSettings_settings && + G__typename == other.G__typename && + backupTTL == other.backupTTL; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateBackupTTLData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupTTL', backupTTL)) + .toString(); + } +} + +class GUpdateBackupTTLData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateBackupTTLData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + GUpdateBackupTTLData_setSettings_settingsBuilder() { + GUpdateBackupTTLData_setSettings_settings._initializeBuilder(this); + } + + GUpdateBackupTTLData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupTTL = $v.backupTTL; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupTTLData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupTTLData_setSettings_settings; + } + + @override + void update( + void Function(GUpdateBackupTTLData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupTTLData_setSettings_settings build() => _build(); + + _$GUpdateBackupTTLData_setSettings_settings _build() { + final _$result = _$v ?? + new _$GUpdateBackupTTLData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateBackupTTLData_setSettings_settings', 'G__typename'), + backupTTL: BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateBackupTTLData_setSettings_settings', 'backupTTL')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/data/graphql/__generated__/settings_query.req.gql.dart b/lib/src/features/settings/data/graphql/__generated__/settings_query.req.gql.dart new file mode 100644 index 00000000..621828ee --- /dev/null +++ b/lib/src/features/settings/data/graphql/__generated__/settings_query.req.gql.dart @@ -0,0 +1,741 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/data/graphql/__generated__/settings_query.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/data/graphql/__generated__/settings_query.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/data/graphql/__generated__/settings_query.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'settings_query.req.gql.g.dart'; + +abstract class GAutomaticBackupSettingsReq + implements + Built, + _i1.OperationRequest<_i2.GAutomaticBackupSettingsData, + _i3.GAutomaticBackupSettingsVars> { + GAutomaticBackupSettingsReq._(); + + factory GAutomaticBackupSettingsReq( + [void Function(GAutomaticBackupSettingsReqBuilder b) updates]) = + _$GAutomaticBackupSettingsReq; + + static void _initializeBuilder(GAutomaticBackupSettingsReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'AutomaticBackupSettings', + ) + ..executeOnListen = true; + + @override + _i3.GAutomaticBackupSettingsVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GAutomaticBackupSettingsData? Function( + _i2.GAutomaticBackupSettingsData?, + _i2.GAutomaticBackupSettingsData?, + )? get updateResult; + @override + _i2.GAutomaticBackupSettingsData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GAutomaticBackupSettingsData? parseData(Map json) => + _i2.GAutomaticBackupSettingsData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GAutomaticBackupSettingsData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GAutomaticBackupSettingsData, + _i3.GAutomaticBackupSettingsVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gAutomaticBackupSettingsReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GAutomaticBackupSettingsReq.serializer, + this, + ) as Map); + + static GAutomaticBackupSettingsReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GAutomaticBackupSettingsReq.serializer, + json, + ); +} + +abstract class GRestoreStatusReq + implements + Built, + _i1.OperationRequest<_i2.GRestoreStatusData, _i3.GRestoreStatusVars> { + GRestoreStatusReq._(); + + factory GRestoreStatusReq( + [void Function(GRestoreStatusReqBuilder b) updates]) = + _$GRestoreStatusReq; + + static void _initializeBuilder(GRestoreStatusReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'RestoreStatus', + ) + ..executeOnListen = true; + + @override + _i3.GRestoreStatusVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GRestoreStatusData? Function( + _i2.GRestoreStatusData?, + _i2.GRestoreStatusData?, + )? get updateResult; + @override + _i2.GRestoreStatusData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GRestoreStatusData? parseData(Map json) => + _i2.GRestoreStatusData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GRestoreStatusData data) => data.toJson(); + + @override + _i1.OperationRequest<_i2.GRestoreStatusData, _i3.GRestoreStatusVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gRestoreStatusReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GRestoreStatusReq.serializer, + this, + ) as Map); + + static GRestoreStatusReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GRestoreStatusReq.serializer, + json, + ); +} + +abstract class GValidateBackupReq + implements + Built, + _i1.OperationRequest<_i2.GValidateBackupData, _i3.GValidateBackupVars> { + GValidateBackupReq._(); + + factory GValidateBackupReq( + [void Function(GValidateBackupReqBuilder b) updates]) = + _$GValidateBackupReq; + + static void _initializeBuilder(GValidateBackupReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'ValidateBackup', + ) + ..executeOnListen = true; + + @override + _i3.GValidateBackupVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GValidateBackupData? Function( + _i2.GValidateBackupData?, + _i2.GValidateBackupData?, + )? get updateResult; + @override + _i2.GValidateBackupData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GValidateBackupData? parseData(Map json) => + _i2.GValidateBackupData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GValidateBackupData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GValidateBackupData, _i3.GValidateBackupVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gValidateBackupReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GValidateBackupReq.serializer, + this, + ) as Map); + + static GValidateBackupReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GValidateBackupReq.serializer, + json, + ); +} + +abstract class GCreateBackupReq + implements + Built, + _i1.OperationRequest<_i2.GCreateBackupData, _i3.GCreateBackupVars> { + GCreateBackupReq._(); + + factory GCreateBackupReq([void Function(GCreateBackupReqBuilder b) updates]) = + _$GCreateBackupReq; + + static void _initializeBuilder(GCreateBackupReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'CreateBackup', + ) + ..executeOnListen = true; + + @override + _i3.GCreateBackupVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GCreateBackupData? Function( + _i2.GCreateBackupData?, + _i2.GCreateBackupData?, + )? get updateResult; + @override + _i2.GCreateBackupData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GCreateBackupData? parseData(Map json) => + _i2.GCreateBackupData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GCreateBackupData data) => data.toJson(); + + @override + _i1.OperationRequest<_i2.GCreateBackupData, _i3.GCreateBackupVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gCreateBackupReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GCreateBackupReq.serializer, + this, + ) as Map); + + static GCreateBackupReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GCreateBackupReq.serializer, + json, + ); +} + +abstract class GRestoreBackupReq + implements + Built, + _i1.OperationRequest<_i2.GRestoreBackupData, _i3.GRestoreBackupVars> { + GRestoreBackupReq._(); + + factory GRestoreBackupReq( + [void Function(GRestoreBackupReqBuilder b) updates]) = + _$GRestoreBackupReq; + + static void _initializeBuilder(GRestoreBackupReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'RestoreBackup', + ) + ..executeOnListen = true; + + @override + _i3.GRestoreBackupVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GRestoreBackupData? Function( + _i2.GRestoreBackupData?, + _i2.GRestoreBackupData?, + )? get updateResult; + @override + _i2.GRestoreBackupData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GRestoreBackupData? parseData(Map json) => + _i2.GRestoreBackupData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GRestoreBackupData data) => data.toJson(); + + @override + _i1.OperationRequest<_i2.GRestoreBackupData, _i3.GRestoreBackupVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gRestoreBackupReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GRestoreBackupReq.serializer, + this, + ) as Map); + + static GRestoreBackupReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GRestoreBackupReq.serializer, + json, + ); +} + +abstract class GUpdateBackupPathReq + implements + Built, + _i1.OperationRequest<_i2.GUpdateBackupPathData, + _i3.GUpdateBackupPathVars> { + GUpdateBackupPathReq._(); + + factory GUpdateBackupPathReq( + [void Function(GUpdateBackupPathReqBuilder b) updates]) = + _$GUpdateBackupPathReq; + + static void _initializeBuilder(GUpdateBackupPathReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateBackupPath', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateBackupPathVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateBackupPathData? Function( + _i2.GUpdateBackupPathData?, + _i2.GUpdateBackupPathData?, + )? get updateResult; + @override + _i2.GUpdateBackupPathData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateBackupPathData? parseData(Map json) => + _i2.GUpdateBackupPathData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateBackupPathData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateBackupPathData, _i3.GUpdateBackupPathVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateBackupPathReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateBackupPathReq.serializer, + this, + ) as Map); + + static GUpdateBackupPathReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateBackupPathReq.serializer, + json, + ); +} + +abstract class GUpdateBackupTimeReq + implements + Built, + _i1.OperationRequest<_i2.GUpdateBackupTimeData, + _i3.GUpdateBackupTimeVars> { + GUpdateBackupTimeReq._(); + + factory GUpdateBackupTimeReq( + [void Function(GUpdateBackupTimeReqBuilder b) updates]) = + _$GUpdateBackupTimeReq; + + static void _initializeBuilder(GUpdateBackupTimeReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateBackupTime', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateBackupTimeVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateBackupTimeData? Function( + _i2.GUpdateBackupTimeData?, + _i2.GUpdateBackupTimeData?, + )? get updateResult; + @override + _i2.GUpdateBackupTimeData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateBackupTimeData? parseData(Map json) => + _i2.GUpdateBackupTimeData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateBackupTimeData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateBackupTimeData, _i3.GUpdateBackupTimeVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateBackupTimeReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateBackupTimeReq.serializer, + this, + ) as Map); + + static GUpdateBackupTimeReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateBackupTimeReq.serializer, + json, + ); +} + +abstract class GUpdateBackupIntervalReq + implements + Built, + _i1.OperationRequest<_i2.GUpdateBackupIntervalData, + _i3.GUpdateBackupIntervalVars> { + GUpdateBackupIntervalReq._(); + + factory GUpdateBackupIntervalReq( + [void Function(GUpdateBackupIntervalReqBuilder b) updates]) = + _$GUpdateBackupIntervalReq; + + static void _initializeBuilder(GUpdateBackupIntervalReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateBackupInterval', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateBackupIntervalVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateBackupIntervalData? Function( + _i2.GUpdateBackupIntervalData?, + _i2.GUpdateBackupIntervalData?, + )? get updateResult; + @override + _i2.GUpdateBackupIntervalData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateBackupIntervalData? parseData(Map json) => + _i2.GUpdateBackupIntervalData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateBackupIntervalData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateBackupIntervalData, + _i3.GUpdateBackupIntervalVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateBackupIntervalReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateBackupIntervalReq.serializer, + this, + ) as Map); + + static GUpdateBackupIntervalReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateBackupIntervalReq.serializer, + json, + ); +} + +abstract class GUpdateBackupTTLReq + implements + Built, + _i1 + .OperationRequest<_i2.GUpdateBackupTTLData, _i3.GUpdateBackupTTLVars> { + GUpdateBackupTTLReq._(); + + factory GUpdateBackupTTLReq( + [void Function(GUpdateBackupTTLReqBuilder b) updates]) = + _$GUpdateBackupTTLReq; + + static void _initializeBuilder(GUpdateBackupTTLReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateBackupTTL', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateBackupTTLVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateBackupTTLData? Function( + _i2.GUpdateBackupTTLData?, + _i2.GUpdateBackupTTLData?, + )? get updateResult; + @override + _i2.GUpdateBackupTTLData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateBackupTTLData? parseData(Map json) => + _i2.GUpdateBackupTTLData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateBackupTTLData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateBackupTTLData, _i3.GUpdateBackupTTLVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateBackupTTLReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateBackupTTLReq.serializer, + this, + ) as Map); + + static GUpdateBackupTTLReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateBackupTTLReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/data/graphql/__generated__/settings_query.req.gql.g.dart b/lib/src/features/settings/data/graphql/__generated__/settings_query.req.gql.g.dart new file mode 100644 index 00000000..f099b52a --- /dev/null +++ b/lib/src/features/settings/data/graphql/__generated__/settings_query.req.gql.g.dart @@ -0,0 +1,3276 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'settings_query.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gAutomaticBackupSettingsReqSerializer = + new _$GAutomaticBackupSettingsReqSerializer(); +Serializer _$gRestoreStatusReqSerializer = + new _$GRestoreStatusReqSerializer(); +Serializer _$gValidateBackupReqSerializer = + new _$GValidateBackupReqSerializer(); +Serializer _$gCreateBackupReqSerializer = + new _$GCreateBackupReqSerializer(); +Serializer _$gRestoreBackupReqSerializer = + new _$GRestoreBackupReqSerializer(); +Serializer _$gUpdateBackupPathReqSerializer = + new _$GUpdateBackupPathReqSerializer(); +Serializer _$gUpdateBackupTimeReqSerializer = + new _$GUpdateBackupTimeReqSerializer(); +Serializer _$gUpdateBackupIntervalReqSerializer = + new _$GUpdateBackupIntervalReqSerializer(); +Serializer _$gUpdateBackupTTLReqSerializer = + new _$GUpdateBackupTTLReqSerializer(); + +class _$GAutomaticBackupSettingsReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GAutomaticBackupSettingsReq, + _$GAutomaticBackupSettingsReq + ]; + @override + final String wireName = 'GAutomaticBackupSettingsReq'; + + @override + Iterable serialize( + Serializers serializers, GAutomaticBackupSettingsReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GAutomaticBackupSettingsVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GAutomaticBackupSettingsData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GAutomaticBackupSettingsReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAutomaticBackupSettingsReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GAutomaticBackupSettingsVars))! + as _i3.GAutomaticBackupSettingsVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i2.GAutomaticBackupSettingsData))! + as _i2.GAutomaticBackupSettingsData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GRestoreStatusReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GRestoreStatusReq, _$GRestoreStatusReq]; + @override + final String wireName = 'GRestoreStatusReq'; + + @override + Iterable serialize(Serializers serializers, GRestoreStatusReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GRestoreStatusVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GRestoreStatusData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GRestoreStatusReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GRestoreStatusReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GRestoreStatusVars))! + as _i3.GRestoreStatusVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GRestoreStatusData))! + as _i2.GRestoreStatusData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GValidateBackupReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GValidateBackupReq, _$GValidateBackupReq]; + @override + final String wireName = 'GValidateBackupReq'; + + @override + Iterable serialize( + Serializers serializers, GValidateBackupReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GValidateBackupVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GValidateBackupData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GValidateBackupReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GValidateBackupReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GValidateBackupVars))! + as _i3.GValidateBackupVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GValidateBackupData))! + as _i2.GValidateBackupData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GCreateBackupReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GCreateBackupReq, _$GCreateBackupReq]; + @override + final String wireName = 'GCreateBackupReq'; + + @override + Iterable serialize(Serializers serializers, GCreateBackupReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GCreateBackupVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GCreateBackupData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GCreateBackupReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GCreateBackupReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GCreateBackupVars))! + as _i3.GCreateBackupVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GCreateBackupData))! + as _i2.GCreateBackupData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GRestoreBackupReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GRestoreBackupReq, _$GRestoreBackupReq]; + @override + final String wireName = 'GRestoreBackupReq'; + + @override + Iterable serialize(Serializers serializers, GRestoreBackupReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GRestoreBackupVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GRestoreBackupData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GRestoreBackupReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GRestoreBackupReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GRestoreBackupVars))! + as _i3.GRestoreBackupVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GRestoreBackupData))! + as _i2.GRestoreBackupData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupPathReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupPathReq, + _$GUpdateBackupPathReq + ]; + @override + final String wireName = 'GUpdateBackupPathReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupPathReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateBackupPathVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateBackupPathData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateBackupPathReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupPathReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GUpdateBackupPathVars))! + as _i3.GUpdateBackupPathVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GUpdateBackupPathData))! + as _i2.GUpdateBackupPathData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupTimeReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupTimeReq, + _$GUpdateBackupTimeReq + ]; + @override + final String wireName = 'GUpdateBackupTimeReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupTimeReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateBackupTimeVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateBackupTimeData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateBackupTimeReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupTimeReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GUpdateBackupTimeVars))! + as _i3.GUpdateBackupTimeVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GUpdateBackupTimeData))! + as _i2.GUpdateBackupTimeData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupIntervalReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupIntervalReq, + _$GUpdateBackupIntervalReq + ]; + @override + final String wireName = 'GUpdateBackupIntervalReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupIntervalReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateBackupIntervalVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateBackupIntervalData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateBackupIntervalReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupIntervalReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GUpdateBackupIntervalVars))! + as _i3.GUpdateBackupIntervalVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GUpdateBackupIntervalData))! + as _i2.GUpdateBackupIntervalData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupTTLReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupTTLReq, + _$GUpdateBackupTTLReq + ]; + @override + final String wireName = 'GUpdateBackupTTLReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupTTLReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateBackupTTLVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateBackupTTLData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateBackupTTLReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupTTLReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GUpdateBackupTTLVars))! + as _i3.GUpdateBackupTTLVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GUpdateBackupTTLData))! + as _i2.GUpdateBackupTTLData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GAutomaticBackupSettingsReq extends GAutomaticBackupSettingsReq { + @override + final _i3.GAutomaticBackupSettingsVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GAutomaticBackupSettingsData? Function( + _i2.GAutomaticBackupSettingsData?, _i2.GAutomaticBackupSettingsData?)? + updateResult; + @override + final _i2.GAutomaticBackupSettingsData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GAutomaticBackupSettingsReq( + [void Function(GAutomaticBackupSettingsReqBuilder)? updates]) => + (new GAutomaticBackupSettingsReqBuilder()..update(updates))._build(); + + _$GAutomaticBackupSettingsReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GAutomaticBackupSettingsReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GAutomaticBackupSettingsReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GAutomaticBackupSettingsReq', 'executeOnListen'); + } + + @override + GAutomaticBackupSettingsReq rebuild( + void Function(GAutomaticBackupSettingsReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAutomaticBackupSettingsReqBuilder toBuilder() => + new GAutomaticBackupSettingsReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GAutomaticBackupSettingsReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GAutomaticBackupSettingsReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GAutomaticBackupSettingsReqBuilder + implements + Builder { + _$GAutomaticBackupSettingsReq? _$v; + + _i3.GAutomaticBackupSettingsVarsBuilder? _vars; + _i3.GAutomaticBackupSettingsVarsBuilder get vars => + _$this._vars ??= new _i3.GAutomaticBackupSettingsVarsBuilder(); + set vars(_i3.GAutomaticBackupSettingsVarsBuilder? vars) => + _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GAutomaticBackupSettingsData? Function( + _i2.GAutomaticBackupSettingsData?, _i2.GAutomaticBackupSettingsData?)? + _updateResult; + _i2.GAutomaticBackupSettingsData? Function( + _i2.GAutomaticBackupSettingsData?, _i2.GAutomaticBackupSettingsData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GAutomaticBackupSettingsData? Function( + _i2.GAutomaticBackupSettingsData?, + _i2.GAutomaticBackupSettingsData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GAutomaticBackupSettingsDataBuilder? _optimisticResponse; + _i2.GAutomaticBackupSettingsDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= + new _i2.GAutomaticBackupSettingsDataBuilder(); + set optimisticResponse( + _i2.GAutomaticBackupSettingsDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GAutomaticBackupSettingsReqBuilder() { + GAutomaticBackupSettingsReq._initializeBuilder(this); + } + + GAutomaticBackupSettingsReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GAutomaticBackupSettingsReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAutomaticBackupSettingsReq; + } + + @override + void update(void Function(GAutomaticBackupSettingsReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAutomaticBackupSettingsReq build() => _build(); + + _$GAutomaticBackupSettingsReq _build() { + _$GAutomaticBackupSettingsReq _$result; + try { + _$result = _$v ?? + new _$GAutomaticBackupSettingsReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GAutomaticBackupSettingsReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GAutomaticBackupSettingsReq', + 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GAutomaticBackupSettingsReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GRestoreStatusReq extends GRestoreStatusReq { + @override + final _i3.GRestoreStatusVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GRestoreStatusData? Function( + _i2.GRestoreStatusData?, _i2.GRestoreStatusData?)? updateResult; + @override + final _i2.GRestoreStatusData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GRestoreStatusReq( + [void Function(GRestoreStatusReqBuilder)? updates]) => + (new GRestoreStatusReqBuilder()..update(updates))._build(); + + _$GRestoreStatusReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GRestoreStatusReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GRestoreStatusReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GRestoreStatusReq', 'executeOnListen'); + } + + @override + GRestoreStatusReq rebuild(void Function(GRestoreStatusReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GRestoreStatusReqBuilder toBuilder() => + new GRestoreStatusReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GRestoreStatusReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GRestoreStatusReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GRestoreStatusReqBuilder + implements Builder { + _$GRestoreStatusReq? _$v; + + _i3.GRestoreStatusVarsBuilder? _vars; + _i3.GRestoreStatusVarsBuilder get vars => + _$this._vars ??= new _i3.GRestoreStatusVarsBuilder(); + set vars(_i3.GRestoreStatusVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GRestoreStatusData? Function( + _i2.GRestoreStatusData?, _i2.GRestoreStatusData?)? _updateResult; + _i2.GRestoreStatusData? Function( + _i2.GRestoreStatusData?, _i2.GRestoreStatusData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GRestoreStatusData? Function( + _i2.GRestoreStatusData?, _i2.GRestoreStatusData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GRestoreStatusDataBuilder? _optimisticResponse; + _i2.GRestoreStatusDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GRestoreStatusDataBuilder(); + set optimisticResponse(_i2.GRestoreStatusDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GRestoreStatusReqBuilder() { + GRestoreStatusReq._initializeBuilder(this); + } + + GRestoreStatusReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GRestoreStatusReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GRestoreStatusReq; + } + + @override + void update(void Function(GRestoreStatusReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GRestoreStatusReq build() => _build(); + + _$GRestoreStatusReq _build() { + _$GRestoreStatusReq _$result; + try { + _$result = _$v ?? + new _$GRestoreStatusReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GRestoreStatusReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GRestoreStatusReq', 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GRestoreStatusReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GValidateBackupReq extends GValidateBackupReq { + @override + final _i3.GValidateBackupVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GValidateBackupData? Function( + _i2.GValidateBackupData?, _i2.GValidateBackupData?)? updateResult; + @override + final _i2.GValidateBackupData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GValidateBackupReq( + [void Function(GValidateBackupReqBuilder)? updates]) => + (new GValidateBackupReqBuilder()..update(updates))._build(); + + _$GValidateBackupReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GValidateBackupReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GValidateBackupReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GValidateBackupReq', 'executeOnListen'); + } + + @override + GValidateBackupReq rebuild( + void Function(GValidateBackupReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GValidateBackupReqBuilder toBuilder() => + new GValidateBackupReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GValidateBackupReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GValidateBackupReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GValidateBackupReqBuilder + implements Builder { + _$GValidateBackupReq? _$v; + + _i3.GValidateBackupVarsBuilder? _vars; + _i3.GValidateBackupVarsBuilder get vars => + _$this._vars ??= new _i3.GValidateBackupVarsBuilder(); + set vars(_i3.GValidateBackupVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GValidateBackupData? Function( + _i2.GValidateBackupData?, _i2.GValidateBackupData?)? _updateResult; + _i2.GValidateBackupData? Function( + _i2.GValidateBackupData?, _i2.GValidateBackupData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GValidateBackupData? Function( + _i2.GValidateBackupData?, _i2.GValidateBackupData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GValidateBackupDataBuilder? _optimisticResponse; + _i2.GValidateBackupDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GValidateBackupDataBuilder(); + set optimisticResponse(_i2.GValidateBackupDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GValidateBackupReqBuilder() { + GValidateBackupReq._initializeBuilder(this); + } + + GValidateBackupReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GValidateBackupReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GValidateBackupReq; + } + + @override + void update(void Function(GValidateBackupReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GValidateBackupReq build() => _build(); + + _$GValidateBackupReq _build() { + _$GValidateBackupReq _$result; + try { + _$result = _$v ?? + new _$GValidateBackupReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GValidateBackupReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GValidateBackupReq', 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GValidateBackupReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GCreateBackupReq extends GCreateBackupReq { + @override + final _i3.GCreateBackupVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GCreateBackupData? Function( + _i2.GCreateBackupData?, _i2.GCreateBackupData?)? updateResult; + @override + final _i2.GCreateBackupData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GCreateBackupReq( + [void Function(GCreateBackupReqBuilder)? updates]) => + (new GCreateBackupReqBuilder()..update(updates))._build(); + + _$GCreateBackupReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GCreateBackupReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GCreateBackupReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GCreateBackupReq', 'executeOnListen'); + } + + @override + GCreateBackupReq rebuild(void Function(GCreateBackupReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCreateBackupReqBuilder toBuilder() => + new GCreateBackupReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GCreateBackupReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GCreateBackupReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GCreateBackupReqBuilder + implements Builder { + _$GCreateBackupReq? _$v; + + _i3.GCreateBackupVarsBuilder? _vars; + _i3.GCreateBackupVarsBuilder get vars => + _$this._vars ??= new _i3.GCreateBackupVarsBuilder(); + set vars(_i3.GCreateBackupVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GCreateBackupData? Function( + _i2.GCreateBackupData?, _i2.GCreateBackupData?)? _updateResult; + _i2.GCreateBackupData? Function( + _i2.GCreateBackupData?, _i2.GCreateBackupData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GCreateBackupData? Function( + _i2.GCreateBackupData?, _i2.GCreateBackupData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GCreateBackupDataBuilder? _optimisticResponse; + _i2.GCreateBackupDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GCreateBackupDataBuilder(); + set optimisticResponse(_i2.GCreateBackupDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GCreateBackupReqBuilder() { + GCreateBackupReq._initializeBuilder(this); + } + + GCreateBackupReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GCreateBackupReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCreateBackupReq; + } + + @override + void update(void Function(GCreateBackupReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCreateBackupReq build() => _build(); + + _$GCreateBackupReq _build() { + _$GCreateBackupReq _$result; + try { + _$result = _$v ?? + new _$GCreateBackupReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GCreateBackupReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GCreateBackupReq', 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GCreateBackupReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GRestoreBackupReq extends GRestoreBackupReq { + @override + final _i3.GRestoreBackupVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GRestoreBackupData? Function( + _i2.GRestoreBackupData?, _i2.GRestoreBackupData?)? updateResult; + @override + final _i2.GRestoreBackupData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GRestoreBackupReq( + [void Function(GRestoreBackupReqBuilder)? updates]) => + (new GRestoreBackupReqBuilder()..update(updates))._build(); + + _$GRestoreBackupReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GRestoreBackupReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GRestoreBackupReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GRestoreBackupReq', 'executeOnListen'); + } + + @override + GRestoreBackupReq rebuild(void Function(GRestoreBackupReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GRestoreBackupReqBuilder toBuilder() => + new GRestoreBackupReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GRestoreBackupReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GRestoreBackupReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GRestoreBackupReqBuilder + implements Builder { + _$GRestoreBackupReq? _$v; + + _i3.GRestoreBackupVarsBuilder? _vars; + _i3.GRestoreBackupVarsBuilder get vars => + _$this._vars ??= new _i3.GRestoreBackupVarsBuilder(); + set vars(_i3.GRestoreBackupVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GRestoreBackupData? Function( + _i2.GRestoreBackupData?, _i2.GRestoreBackupData?)? _updateResult; + _i2.GRestoreBackupData? Function( + _i2.GRestoreBackupData?, _i2.GRestoreBackupData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GRestoreBackupData? Function( + _i2.GRestoreBackupData?, _i2.GRestoreBackupData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GRestoreBackupDataBuilder? _optimisticResponse; + _i2.GRestoreBackupDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GRestoreBackupDataBuilder(); + set optimisticResponse(_i2.GRestoreBackupDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GRestoreBackupReqBuilder() { + GRestoreBackupReq._initializeBuilder(this); + } + + GRestoreBackupReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GRestoreBackupReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GRestoreBackupReq; + } + + @override + void update(void Function(GRestoreBackupReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GRestoreBackupReq build() => _build(); + + _$GRestoreBackupReq _build() { + _$GRestoreBackupReq _$result; + try { + _$result = _$v ?? + new _$GRestoreBackupReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GRestoreBackupReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GRestoreBackupReq', 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GRestoreBackupReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupPathReq extends GUpdateBackupPathReq { + @override + final _i3.GUpdateBackupPathVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateBackupPathData? Function( + _i2.GUpdateBackupPathData?, _i2.GUpdateBackupPathData?)? updateResult; + @override + final _i2.GUpdateBackupPathData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateBackupPathReq( + [void Function(GUpdateBackupPathReqBuilder)? updates]) => + (new GUpdateBackupPathReqBuilder()..update(updates))._build(); + + _$GUpdateBackupPathReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GUpdateBackupPathReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateBackupPathReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateBackupPathReq', 'executeOnListen'); + } + + @override + GUpdateBackupPathReq rebuild( + void Function(GUpdateBackupPathReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupPathReqBuilder toBuilder() => + new GUpdateBackupPathReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateBackupPathReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupPathReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateBackupPathReqBuilder + implements Builder { + _$GUpdateBackupPathReq? _$v; + + _i3.GUpdateBackupPathVarsBuilder? _vars; + _i3.GUpdateBackupPathVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateBackupPathVarsBuilder(); + set vars(_i3.GUpdateBackupPathVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateBackupPathData? Function( + _i2.GUpdateBackupPathData?, _i2.GUpdateBackupPathData?)? _updateResult; + _i2.GUpdateBackupPathData? Function( + _i2.GUpdateBackupPathData?, _i2.GUpdateBackupPathData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateBackupPathData? Function( + _i2.GUpdateBackupPathData?, _i2.GUpdateBackupPathData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateBackupPathDataBuilder? _optimisticResponse; + _i2.GUpdateBackupPathDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GUpdateBackupPathDataBuilder(); + set optimisticResponse( + _i2.GUpdateBackupPathDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateBackupPathReqBuilder() { + GUpdateBackupPathReq._initializeBuilder(this); + } + + GUpdateBackupPathReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupPathReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupPathReq; + } + + @override + void update(void Function(GUpdateBackupPathReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupPathReq build() => _build(); + + _$GUpdateBackupPathReq _build() { + _$GUpdateBackupPathReq _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupPathReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateBackupPathReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateBackupPathReq', 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupPathReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupTimeReq extends GUpdateBackupTimeReq { + @override + final _i3.GUpdateBackupTimeVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateBackupTimeData? Function( + _i2.GUpdateBackupTimeData?, _i2.GUpdateBackupTimeData?)? updateResult; + @override + final _i2.GUpdateBackupTimeData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateBackupTimeReq( + [void Function(GUpdateBackupTimeReqBuilder)? updates]) => + (new GUpdateBackupTimeReqBuilder()..update(updates))._build(); + + _$GUpdateBackupTimeReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GUpdateBackupTimeReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateBackupTimeReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateBackupTimeReq', 'executeOnListen'); + } + + @override + GUpdateBackupTimeReq rebuild( + void Function(GUpdateBackupTimeReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupTimeReqBuilder toBuilder() => + new GUpdateBackupTimeReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateBackupTimeReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupTimeReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateBackupTimeReqBuilder + implements Builder { + _$GUpdateBackupTimeReq? _$v; + + _i3.GUpdateBackupTimeVarsBuilder? _vars; + _i3.GUpdateBackupTimeVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateBackupTimeVarsBuilder(); + set vars(_i3.GUpdateBackupTimeVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateBackupTimeData? Function( + _i2.GUpdateBackupTimeData?, _i2.GUpdateBackupTimeData?)? _updateResult; + _i2.GUpdateBackupTimeData? Function( + _i2.GUpdateBackupTimeData?, _i2.GUpdateBackupTimeData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateBackupTimeData? Function( + _i2.GUpdateBackupTimeData?, _i2.GUpdateBackupTimeData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateBackupTimeDataBuilder? _optimisticResponse; + _i2.GUpdateBackupTimeDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GUpdateBackupTimeDataBuilder(); + set optimisticResponse( + _i2.GUpdateBackupTimeDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateBackupTimeReqBuilder() { + GUpdateBackupTimeReq._initializeBuilder(this); + } + + GUpdateBackupTimeReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupTimeReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupTimeReq; + } + + @override + void update(void Function(GUpdateBackupTimeReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupTimeReq build() => _build(); + + _$GUpdateBackupTimeReq _build() { + _$GUpdateBackupTimeReq _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupTimeReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateBackupTimeReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateBackupTimeReq', 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupTimeReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupIntervalReq extends GUpdateBackupIntervalReq { + @override + final _i3.GUpdateBackupIntervalVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateBackupIntervalData? Function( + _i2.GUpdateBackupIntervalData?, _i2.GUpdateBackupIntervalData?)? + updateResult; + @override + final _i2.GUpdateBackupIntervalData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateBackupIntervalReq( + [void Function(GUpdateBackupIntervalReqBuilder)? updates]) => + (new GUpdateBackupIntervalReqBuilder()..update(updates))._build(); + + _$GUpdateBackupIntervalReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GUpdateBackupIntervalReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateBackupIntervalReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateBackupIntervalReq', 'executeOnListen'); + } + + @override + GUpdateBackupIntervalReq rebuild( + void Function(GUpdateBackupIntervalReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupIntervalReqBuilder toBuilder() => + new GUpdateBackupIntervalReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateBackupIntervalReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupIntervalReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateBackupIntervalReqBuilder + implements + Builder { + _$GUpdateBackupIntervalReq? _$v; + + _i3.GUpdateBackupIntervalVarsBuilder? _vars; + _i3.GUpdateBackupIntervalVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateBackupIntervalVarsBuilder(); + set vars(_i3.GUpdateBackupIntervalVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateBackupIntervalData? Function( + _i2.GUpdateBackupIntervalData?, _i2.GUpdateBackupIntervalData?)? + _updateResult; + _i2.GUpdateBackupIntervalData? Function( + _i2.GUpdateBackupIntervalData?, _i2.GUpdateBackupIntervalData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateBackupIntervalData? Function( + _i2.GUpdateBackupIntervalData?, + _i2.GUpdateBackupIntervalData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateBackupIntervalDataBuilder? _optimisticResponse; + _i2.GUpdateBackupIntervalDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GUpdateBackupIntervalDataBuilder(); + set optimisticResponse( + _i2.GUpdateBackupIntervalDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateBackupIntervalReqBuilder() { + GUpdateBackupIntervalReq._initializeBuilder(this); + } + + GUpdateBackupIntervalReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupIntervalReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupIntervalReq; + } + + @override + void update(void Function(GUpdateBackupIntervalReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupIntervalReq build() => _build(); + + _$GUpdateBackupIntervalReq _build() { + _$GUpdateBackupIntervalReq _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupIntervalReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateBackupIntervalReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GUpdateBackupIntervalReq', + 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupIntervalReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupTTLReq extends GUpdateBackupTTLReq { + @override + final _i3.GUpdateBackupTTLVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateBackupTTLData? Function( + _i2.GUpdateBackupTTLData?, _i2.GUpdateBackupTTLData?)? updateResult; + @override + final _i2.GUpdateBackupTTLData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateBackupTTLReq( + [void Function(GUpdateBackupTTLReqBuilder)? updates]) => + (new GUpdateBackupTTLReqBuilder()..update(updates))._build(); + + _$GUpdateBackupTTLReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GUpdateBackupTTLReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateBackupTTLReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateBackupTTLReq', 'executeOnListen'); + } + + @override + GUpdateBackupTTLReq rebuild( + void Function(GUpdateBackupTTLReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupTTLReqBuilder toBuilder() => + new GUpdateBackupTTLReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateBackupTTLReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupTTLReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateBackupTTLReqBuilder + implements Builder { + _$GUpdateBackupTTLReq? _$v; + + _i3.GUpdateBackupTTLVarsBuilder? _vars; + _i3.GUpdateBackupTTLVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateBackupTTLVarsBuilder(); + set vars(_i3.GUpdateBackupTTLVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateBackupTTLData? Function( + _i2.GUpdateBackupTTLData?, _i2.GUpdateBackupTTLData?)? _updateResult; + _i2.GUpdateBackupTTLData? Function( + _i2.GUpdateBackupTTLData?, _i2.GUpdateBackupTTLData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateBackupTTLData? Function( + _i2.GUpdateBackupTTLData?, _i2.GUpdateBackupTTLData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateBackupTTLDataBuilder? _optimisticResponse; + _i2.GUpdateBackupTTLDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GUpdateBackupTTLDataBuilder(); + set optimisticResponse(_i2.GUpdateBackupTTLDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateBackupTTLReqBuilder() { + GUpdateBackupTTLReq._initializeBuilder(this); + } + + GUpdateBackupTTLReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupTTLReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupTTLReq; + } + + @override + void update(void Function(GUpdateBackupTTLReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupTTLReq build() => _build(); + + _$GUpdateBackupTTLReq _build() { + _$GUpdateBackupTTLReq _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupTTLReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateBackupTTLReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateBackupTTLReq', 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupTTLReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/data/graphql/__generated__/settings_query.var.gql.dart b/lib/src/features/settings/data/graphql/__generated__/settings_query.var.gql.dart new file mode 100644 index 00000000..9ea27606 --- /dev/null +++ b/lib/src/features/settings/data/graphql/__generated__/settings_query.var.gql.dart @@ -0,0 +1,230 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:http/http.dart' as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'settings_query.var.gql.g.dart'; + +abstract class GAutomaticBackupSettingsVars + implements + Built { + GAutomaticBackupSettingsVars._(); + + factory GAutomaticBackupSettingsVars( + [void Function(GAutomaticBackupSettingsVarsBuilder b) updates]) = + _$GAutomaticBackupSettingsVars; + + static Serializer get serializer => + _$gAutomaticBackupSettingsVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GAutomaticBackupSettingsVars.serializer, + this, + ) as Map); + + static GAutomaticBackupSettingsVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GAutomaticBackupSettingsVars.serializer, + json, + ); +} + +abstract class GRestoreStatusVars + implements Built { + GRestoreStatusVars._(); + + factory GRestoreStatusVars( + [void Function(GRestoreStatusVarsBuilder b) updates]) = + _$GRestoreStatusVars; + + String get restoreId; + static Serializer get serializer => + _$gRestoreStatusVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GRestoreStatusVars.serializer, + this, + ) as Map); + + static GRestoreStatusVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GRestoreStatusVars.serializer, + json, + ); +} + +abstract class GValidateBackupVars + implements Built { + GValidateBackupVars._(); + + factory GValidateBackupVars( + [void Function(GValidateBackupVarsBuilder b) updates]) = + _$GValidateBackupVars; + + _i2.MultipartFile get backup; + static Serializer get serializer => + _$gValidateBackupVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GValidateBackupVars.serializer, + this, + ) as Map); + + static GValidateBackupVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GValidateBackupVars.serializer, + json, + ); +} + +abstract class GCreateBackupVars + implements Built { + GCreateBackupVars._(); + + factory GCreateBackupVars( + [void Function(GCreateBackupVarsBuilder b) updates]) = + _$GCreateBackupVars; + + bool? get includeCategories; + bool? get includeChapters; + static Serializer get serializer => + _$gCreateBackupVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GCreateBackupVars.serializer, + this, + ) as Map); + + static GCreateBackupVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GCreateBackupVars.serializer, + json, + ); +} + +abstract class GRestoreBackupVars + implements Built { + GRestoreBackupVars._(); + + factory GRestoreBackupVars( + [void Function(GRestoreBackupVarsBuilder b) updates]) = + _$GRestoreBackupVars; + + _i2.MultipartFile get backup; + static Serializer get serializer => + _$gRestoreBackupVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GRestoreBackupVars.serializer, + this, + ) as Map); + + static GRestoreBackupVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GRestoreBackupVars.serializer, + json, + ); +} + +abstract class GUpdateBackupPathVars + implements Built { + GUpdateBackupPathVars._(); + + factory GUpdateBackupPathVars( + [void Function(GUpdateBackupPathVarsBuilder b) updates]) = + _$GUpdateBackupPathVars; + + String? get backupPath; + static Serializer get serializer => + _$gUpdateBackupPathVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupPathVars.serializer, + this, + ) as Map); + + static GUpdateBackupPathVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupPathVars.serializer, + json, + ); +} + +abstract class GUpdateBackupTimeVars + implements Built { + GUpdateBackupTimeVars._(); + + factory GUpdateBackupTimeVars( + [void Function(GUpdateBackupTimeVarsBuilder b) updates]) = + _$GUpdateBackupTimeVars; + + String? get backupTime; + static Serializer get serializer => + _$gUpdateBackupTimeVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupTimeVars.serializer, + this, + ) as Map); + + static GUpdateBackupTimeVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupTimeVars.serializer, + json, + ); +} + +abstract class GUpdateBackupIntervalVars + implements + Built { + GUpdateBackupIntervalVars._(); + + factory GUpdateBackupIntervalVars( + [void Function(GUpdateBackupIntervalVarsBuilder b) updates]) = + _$GUpdateBackupIntervalVars; + + int? get backupInterval; + static Serializer get serializer => + _$gUpdateBackupIntervalVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupIntervalVars.serializer, + this, + ) as Map); + + static GUpdateBackupIntervalVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupIntervalVars.serializer, + json, + ); +} + +abstract class GUpdateBackupTTLVars + implements Built { + GUpdateBackupTTLVars._(); + + factory GUpdateBackupTTLVars( + [void Function(GUpdateBackupTTLVarsBuilder b) updates]) = + _$GUpdateBackupTTLVars; + + int? get backupTTL; + static Serializer get serializer => + _$gUpdateBackupTTLVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupTTLVars.serializer, + this, + ) as Map); + + static GUpdateBackupTTLVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupTTLVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/data/graphql/__generated__/settings_query.var.gql.g.dart b/lib/src/features/settings/data/graphql/__generated__/settings_query.var.gql.g.dart new file mode 100644 index 00000000..183cd987 --- /dev/null +++ b/lib/src/features/settings/data/graphql/__generated__/settings_query.var.gql.g.dart @@ -0,0 +1,1189 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'settings_query.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gAutomaticBackupSettingsVarsSerializer = + new _$GAutomaticBackupSettingsVarsSerializer(); +Serializer _$gRestoreStatusVarsSerializer = + new _$GRestoreStatusVarsSerializer(); +Serializer _$gValidateBackupVarsSerializer = + new _$GValidateBackupVarsSerializer(); +Serializer _$gCreateBackupVarsSerializer = + new _$GCreateBackupVarsSerializer(); +Serializer _$gRestoreBackupVarsSerializer = + new _$GRestoreBackupVarsSerializer(); +Serializer _$gUpdateBackupPathVarsSerializer = + new _$GUpdateBackupPathVarsSerializer(); +Serializer _$gUpdateBackupTimeVarsSerializer = + new _$GUpdateBackupTimeVarsSerializer(); +Serializer _$gUpdateBackupIntervalVarsSerializer = + new _$GUpdateBackupIntervalVarsSerializer(); +Serializer _$gUpdateBackupTTLVarsSerializer = + new _$GUpdateBackupTTLVarsSerializer(); + +class _$GAutomaticBackupSettingsVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GAutomaticBackupSettingsVars, + _$GAutomaticBackupSettingsVars + ]; + @override + final String wireName = 'GAutomaticBackupSettingsVars'; + + @override + Iterable serialize( + Serializers serializers, GAutomaticBackupSettingsVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GAutomaticBackupSettingsVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GAutomaticBackupSettingsVarsBuilder().build(); + } +} + +class _$GRestoreStatusVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GRestoreStatusVars, _$GRestoreStatusVars]; + @override + final String wireName = 'GRestoreStatusVars'; + + @override + Iterable serialize( + Serializers serializers, GRestoreStatusVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'restoreId', + serializers.serialize(object.restoreId, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GRestoreStatusVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GRestoreStatusVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'restoreId': + result.restoreId = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GValidateBackupVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GValidateBackupVars, + _$GValidateBackupVars + ]; + @override + final String wireName = 'GValidateBackupVars'; + + @override + Iterable serialize( + Serializers serializers, GValidateBackupVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'backup', + serializers.serialize(object.backup, + specifiedType: const FullType(_i2.MultipartFile)), + ]; + + return result; + } + + @override + GValidateBackupVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GValidateBackupVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'backup': + result.backup = serializers.deserialize(value, + specifiedType: const FullType(_i2.MultipartFile))! + as _i2.MultipartFile; + break; + } + } + + return result.build(); + } +} + +class _$GCreateBackupVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GCreateBackupVars, _$GCreateBackupVars]; + @override + final String wireName = 'GCreateBackupVars'; + + @override + Iterable serialize(Serializers serializers, GCreateBackupVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.includeCategories; + if (value != null) { + result + ..add('includeCategories') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.includeChapters; + if (value != null) { + result + ..add('includeChapters') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + GCreateBackupVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GCreateBackupVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'includeCategories': + result.includeCategories = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'includeChapters': + result.includeChapters = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$GRestoreBackupVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GRestoreBackupVars, _$GRestoreBackupVars]; + @override + final String wireName = 'GRestoreBackupVars'; + + @override + Iterable serialize( + Serializers serializers, GRestoreBackupVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'backup', + serializers.serialize(object.backup, + specifiedType: const FullType(_i2.MultipartFile)), + ]; + + return result; + } + + @override + GRestoreBackupVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GRestoreBackupVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'backup': + result.backup = serializers.deserialize(value, + specifiedType: const FullType(_i2.MultipartFile))! + as _i2.MultipartFile; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupPathVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupPathVars, + _$GUpdateBackupPathVars + ]; + @override + final String wireName = 'GUpdateBackupPathVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupPathVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.backupPath; + if (value != null) { + result + ..add('backupPath') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateBackupPathVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupPathVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupTimeVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupTimeVars, + _$GUpdateBackupTimeVars + ]; + @override + final String wireName = 'GUpdateBackupTimeVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupTimeVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.backupTime; + if (value != null) { + result + ..add('backupTime') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateBackupTimeVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupTimeVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupIntervalVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupIntervalVars, + _$GUpdateBackupIntervalVars + ]; + @override + final String wireName = 'GUpdateBackupIntervalVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupIntervalVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.backupInterval; + if (value != null) { + result + ..add('backupInterval') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + return result; + } + + @override + GUpdateBackupIntervalVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupIntervalVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupTTLVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupTTLVars, + _$GUpdateBackupTTLVars + ]; + @override + final String wireName = 'GUpdateBackupTTLVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupTTLVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.backupTTL; + if (value != null) { + result + ..add('backupTTL') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + return result; + } + + @override + GUpdateBackupTTLVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupTTLVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + } + } + + return result.build(); + } +} + +class _$GAutomaticBackupSettingsVars extends GAutomaticBackupSettingsVars { + factory _$GAutomaticBackupSettingsVars( + [void Function(GAutomaticBackupSettingsVarsBuilder)? updates]) => + (new GAutomaticBackupSettingsVarsBuilder()..update(updates))._build(); + + _$GAutomaticBackupSettingsVars._() : super._(); + + @override + GAutomaticBackupSettingsVars rebuild( + void Function(GAutomaticBackupSettingsVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAutomaticBackupSettingsVarsBuilder toBuilder() => + new GAutomaticBackupSettingsVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAutomaticBackupSettingsVars; + } + + @override + int get hashCode { + return 540121813; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GAutomaticBackupSettingsVars') + .toString(); + } +} + +class GAutomaticBackupSettingsVarsBuilder + implements + Builder { + _$GAutomaticBackupSettingsVars? _$v; + + GAutomaticBackupSettingsVarsBuilder(); + + @override + void replace(GAutomaticBackupSettingsVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAutomaticBackupSettingsVars; + } + + @override + void update(void Function(GAutomaticBackupSettingsVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAutomaticBackupSettingsVars build() => _build(); + + _$GAutomaticBackupSettingsVars _build() { + final _$result = _$v ?? new _$GAutomaticBackupSettingsVars._(); + replace(_$result); + return _$result; + } +} + +class _$GRestoreStatusVars extends GRestoreStatusVars { + @override + final String restoreId; + + factory _$GRestoreStatusVars( + [void Function(GRestoreStatusVarsBuilder)? updates]) => + (new GRestoreStatusVarsBuilder()..update(updates))._build(); + + _$GRestoreStatusVars._({required this.restoreId}) : super._() { + BuiltValueNullFieldError.checkNotNull( + restoreId, r'GRestoreStatusVars', 'restoreId'); + } + + @override + GRestoreStatusVars rebuild( + void Function(GRestoreStatusVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GRestoreStatusVarsBuilder toBuilder() => + new GRestoreStatusVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GRestoreStatusVars && restoreId == other.restoreId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, restoreId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GRestoreStatusVars') + ..add('restoreId', restoreId)) + .toString(); + } +} + +class GRestoreStatusVarsBuilder + implements Builder { + _$GRestoreStatusVars? _$v; + + String? _restoreId; + String? get restoreId => _$this._restoreId; + set restoreId(String? restoreId) => _$this._restoreId = restoreId; + + GRestoreStatusVarsBuilder(); + + GRestoreStatusVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _restoreId = $v.restoreId; + _$v = null; + } + return this; + } + + @override + void replace(GRestoreStatusVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GRestoreStatusVars; + } + + @override + void update(void Function(GRestoreStatusVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GRestoreStatusVars build() => _build(); + + _$GRestoreStatusVars _build() { + final _$result = _$v ?? + new _$GRestoreStatusVars._( + restoreId: BuiltValueNullFieldError.checkNotNull( + restoreId, r'GRestoreStatusVars', 'restoreId')); + replace(_$result); + return _$result; + } +} + +class _$GValidateBackupVars extends GValidateBackupVars { + @override + final _i2.MultipartFile backup; + + factory _$GValidateBackupVars( + [void Function(GValidateBackupVarsBuilder)? updates]) => + (new GValidateBackupVarsBuilder()..update(updates))._build(); + + _$GValidateBackupVars._({required this.backup}) : super._() { + BuiltValueNullFieldError.checkNotNull( + backup, r'GValidateBackupVars', 'backup'); + } + + @override + GValidateBackupVars rebuild( + void Function(GValidateBackupVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GValidateBackupVarsBuilder toBuilder() => + new GValidateBackupVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GValidateBackupVars && backup == other.backup; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, backup.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GValidateBackupVars') + ..add('backup', backup)) + .toString(); + } +} + +class GValidateBackupVarsBuilder + implements Builder { + _$GValidateBackupVars? _$v; + + _i2.MultipartFile? _backup; + _i2.MultipartFile? get backup => _$this._backup; + set backup(_i2.MultipartFile? backup) => _$this._backup = backup; + + GValidateBackupVarsBuilder(); + + GValidateBackupVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _backup = $v.backup; + _$v = null; + } + return this; + } + + @override + void replace(GValidateBackupVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GValidateBackupVars; + } + + @override + void update(void Function(GValidateBackupVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GValidateBackupVars build() => _build(); + + _$GValidateBackupVars _build() { + final _$result = _$v ?? + new _$GValidateBackupVars._( + backup: BuiltValueNullFieldError.checkNotNull( + backup, r'GValidateBackupVars', 'backup')); + replace(_$result); + return _$result; + } +} + +class _$GCreateBackupVars extends GCreateBackupVars { + @override + final bool? includeCategories; + @override + final bool? includeChapters; + + factory _$GCreateBackupVars( + [void Function(GCreateBackupVarsBuilder)? updates]) => + (new GCreateBackupVarsBuilder()..update(updates))._build(); + + _$GCreateBackupVars._({this.includeCategories, this.includeChapters}) + : super._(); + + @override + GCreateBackupVars rebuild(void Function(GCreateBackupVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCreateBackupVarsBuilder toBuilder() => + new GCreateBackupVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCreateBackupVars && + includeCategories == other.includeCategories && + includeChapters == other.includeChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, includeCategories.hashCode); + _$hash = $jc(_$hash, includeChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GCreateBackupVars') + ..add('includeCategories', includeCategories) + ..add('includeChapters', includeChapters)) + .toString(); + } +} + +class GCreateBackupVarsBuilder + implements Builder { + _$GCreateBackupVars? _$v; + + bool? _includeCategories; + bool? get includeCategories => _$this._includeCategories; + set includeCategories(bool? includeCategories) => + _$this._includeCategories = includeCategories; + + bool? _includeChapters; + bool? get includeChapters => _$this._includeChapters; + set includeChapters(bool? includeChapters) => + _$this._includeChapters = includeChapters; + + GCreateBackupVarsBuilder(); + + GCreateBackupVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _includeCategories = $v.includeCategories; + _includeChapters = $v.includeChapters; + _$v = null; + } + return this; + } + + @override + void replace(GCreateBackupVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCreateBackupVars; + } + + @override + void update(void Function(GCreateBackupVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCreateBackupVars build() => _build(); + + _$GCreateBackupVars _build() { + final _$result = _$v ?? + new _$GCreateBackupVars._( + includeCategories: includeCategories, + includeChapters: includeChapters); + replace(_$result); + return _$result; + } +} + +class _$GRestoreBackupVars extends GRestoreBackupVars { + @override + final _i2.MultipartFile backup; + + factory _$GRestoreBackupVars( + [void Function(GRestoreBackupVarsBuilder)? updates]) => + (new GRestoreBackupVarsBuilder()..update(updates))._build(); + + _$GRestoreBackupVars._({required this.backup}) : super._() { + BuiltValueNullFieldError.checkNotNull( + backup, r'GRestoreBackupVars', 'backup'); + } + + @override + GRestoreBackupVars rebuild( + void Function(GRestoreBackupVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GRestoreBackupVarsBuilder toBuilder() => + new GRestoreBackupVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GRestoreBackupVars && backup == other.backup; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, backup.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GRestoreBackupVars') + ..add('backup', backup)) + .toString(); + } +} + +class GRestoreBackupVarsBuilder + implements Builder { + _$GRestoreBackupVars? _$v; + + _i2.MultipartFile? _backup; + _i2.MultipartFile? get backup => _$this._backup; + set backup(_i2.MultipartFile? backup) => _$this._backup = backup; + + GRestoreBackupVarsBuilder(); + + GRestoreBackupVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _backup = $v.backup; + _$v = null; + } + return this; + } + + @override + void replace(GRestoreBackupVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GRestoreBackupVars; + } + + @override + void update(void Function(GRestoreBackupVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GRestoreBackupVars build() => _build(); + + _$GRestoreBackupVars _build() { + final _$result = _$v ?? + new _$GRestoreBackupVars._( + backup: BuiltValueNullFieldError.checkNotNull( + backup, r'GRestoreBackupVars', 'backup')); + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupPathVars extends GUpdateBackupPathVars { + @override + final String? backupPath; + + factory _$GUpdateBackupPathVars( + [void Function(GUpdateBackupPathVarsBuilder)? updates]) => + (new GUpdateBackupPathVarsBuilder()..update(updates))._build(); + + _$GUpdateBackupPathVars._({this.backupPath}) : super._(); + + @override + GUpdateBackupPathVars rebuild( + void Function(GUpdateBackupPathVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupPathVarsBuilder toBuilder() => + new GUpdateBackupPathVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupPathVars && backupPath == other.backupPath; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupPathVars') + ..add('backupPath', backupPath)) + .toString(); + } +} + +class GUpdateBackupPathVarsBuilder + implements Builder { + _$GUpdateBackupPathVars? _$v; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + GUpdateBackupPathVarsBuilder(); + + GUpdateBackupPathVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _backupPath = $v.backupPath; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupPathVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupPathVars; + } + + @override + void update(void Function(GUpdateBackupPathVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupPathVars build() => _build(); + + _$GUpdateBackupPathVars _build() { + final _$result = + _$v ?? new _$GUpdateBackupPathVars._(backupPath: backupPath); + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupTimeVars extends GUpdateBackupTimeVars { + @override + final String? backupTime; + + factory _$GUpdateBackupTimeVars( + [void Function(GUpdateBackupTimeVarsBuilder)? updates]) => + (new GUpdateBackupTimeVarsBuilder()..update(updates))._build(); + + _$GUpdateBackupTimeVars._({this.backupTime}) : super._(); + + @override + GUpdateBackupTimeVars rebuild( + void Function(GUpdateBackupTimeVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupTimeVarsBuilder toBuilder() => + new GUpdateBackupTimeVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupTimeVars && backupTime == other.backupTime; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupTimeVars') + ..add('backupTime', backupTime)) + .toString(); + } +} + +class GUpdateBackupTimeVarsBuilder + implements Builder { + _$GUpdateBackupTimeVars? _$v; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + GUpdateBackupTimeVarsBuilder(); + + GUpdateBackupTimeVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _backupTime = $v.backupTime; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupTimeVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupTimeVars; + } + + @override + void update(void Function(GUpdateBackupTimeVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupTimeVars build() => _build(); + + _$GUpdateBackupTimeVars _build() { + final _$result = + _$v ?? new _$GUpdateBackupTimeVars._(backupTime: backupTime); + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupIntervalVars extends GUpdateBackupIntervalVars { + @override + final int? backupInterval; + + factory _$GUpdateBackupIntervalVars( + [void Function(GUpdateBackupIntervalVarsBuilder)? updates]) => + (new GUpdateBackupIntervalVarsBuilder()..update(updates))._build(); + + _$GUpdateBackupIntervalVars._({this.backupInterval}) : super._(); + + @override + GUpdateBackupIntervalVars rebuild( + void Function(GUpdateBackupIntervalVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupIntervalVarsBuilder toBuilder() => + new GUpdateBackupIntervalVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupIntervalVars && + backupInterval == other.backupInterval; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupIntervalVars') + ..add('backupInterval', backupInterval)) + .toString(); + } +} + +class GUpdateBackupIntervalVarsBuilder + implements + Builder { + _$GUpdateBackupIntervalVars? _$v; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + GUpdateBackupIntervalVarsBuilder(); + + GUpdateBackupIntervalVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _backupInterval = $v.backupInterval; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupIntervalVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupIntervalVars; + } + + @override + void update(void Function(GUpdateBackupIntervalVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupIntervalVars build() => _build(); + + _$GUpdateBackupIntervalVars _build() { + final _$result = _$v ?? + new _$GUpdateBackupIntervalVars._(backupInterval: backupInterval); + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupTTLVars extends GUpdateBackupTTLVars { + @override + final int? backupTTL; + + factory _$GUpdateBackupTTLVars( + [void Function(GUpdateBackupTTLVarsBuilder)? updates]) => + (new GUpdateBackupTTLVarsBuilder()..update(updates))._build(); + + _$GUpdateBackupTTLVars._({this.backupTTL}) : super._(); + + @override + GUpdateBackupTTLVars rebuild( + void Function(GUpdateBackupTTLVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupTTLVarsBuilder toBuilder() => + new GUpdateBackupTTLVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupTTLVars && backupTTL == other.backupTTL; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupTTLVars') + ..add('backupTTL', backupTTL)) + .toString(); + } +} + +class GUpdateBackupTTLVarsBuilder + implements Builder { + _$GUpdateBackupTTLVars? _$v; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + GUpdateBackupTTLVarsBuilder(); + + GUpdateBackupTTLVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _backupTTL = $v.backupTTL; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupTTLVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupTTLVars; + } + + @override + void update(void Function(GUpdateBackupTTLVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupTTLVars build() => _build(); + + _$GUpdateBackupTTLVars _build() { + final _$result = _$v ?? new _$GUpdateBackupTTLVars._(backupTTL: backupTTL); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/data/graphql/settings_query.dart b/lib/src/features/settings/data/graphql/settings_query.dart new file mode 100644 index 00000000..df844bb7 --- /dev/null +++ b/lib/src/features/settings/data/graphql/settings_query.dart @@ -0,0 +1,55 @@ +import 'package:ferry/ferry.dart'; +import 'package:flutter/material.dart'; +import 'package:http/http.dart'; + +import '../../../../utils/extensions/custom_extensions.dart'; +import '__generated__/settings_query.req.gql.dart'; + +abstract class SettingsQuery { + static GRestoreBackupReq restoreBackup(MultipartFile? file) => + GRestoreBackupReq( + (req) => req + ..vars.backup = file + ..fetchPolicy = FetchPolicy.NoCache, + ); + + static GValidateBackupReq validateBackup(MultipartFile? file) => + GValidateBackupReq( + (req) => req + ..vars.backup = file + ..fetchPolicy = FetchPolicy.NoCache, + ); + + static GRestoreStatusReq restoreStatus(String restoreId) => GRestoreStatusReq( + (req) => req + ..vars.restoreId = restoreId + ..fetchPolicy = FetchPolicy.NoCache, + ); + + static GCreateBackupReq createBackup( + bool includeCategories, bool includeChapters) => + GCreateBackupReq( + (req) => req + ..vars.includeCategories = includeCategories + ..vars.includeChapters = includeChapters + ..fetchPolicy = FetchPolicy.NoCache, + ); + + static GAutomaticBackupSettingsReq automaticBackupSettings() => + GAutomaticBackupSettingsReq(); + + static GUpdateBackupPathReq updateBackupPath(String? backupPath) => + GUpdateBackupPathReq((req) => req..vars.backupPath = backupPath.ifNull()); + + static GUpdateBackupTimeReq updateBackupTime(TimeOfDay timeOfDay) { + final time = "${timeOfDay.hour.padLeft()}:${timeOfDay.minute.padLeft()}"; + return GUpdateBackupTimeReq((req) => req..vars.backupTime = time); + } + + static GUpdateBackupIntervalReq updateBackupInterval(int backupInterval) => + GUpdateBackupIntervalReq( + (req) => req..vars.backupInterval = backupInterval.ifNull(1)); + + static GUpdateBackupTTLReq updateBackupTTL(int backupTTL) => + GUpdateBackupTTLReq((req) => req..vars.backupTTL = backupTTL.ifNull(14)); +} diff --git a/lib/src/features/settings/data/graphql/settings_query.graphql b/lib/src/features/settings/data/graphql/settings_query.graphql new file mode 100644 index 00000000..20569f54 --- /dev/null +++ b/lib/src/features/settings/data/graphql/settings_query.graphql @@ -0,0 +1,77 @@ +query AutomaticBackupSettings { + settings { + backupInterval + backupPath + backupTTL + backupTime + } +} + +query RestoreStatus($restoreId: String!) { + restoreStatus(id: $restoreId) { + mangaProgress + state + totalManga + } +} + +query ValidateBackup($backup: Upload!) { + validateBackup(input: { backup: $backup }) { + missingSources { + name + } + } +} + +mutation CreateBackup($includeCategories: Boolean = true, $includeChapters: Boolean = true) { + createBackup( + input: {includeCategories: $includeCategories, includeChapters: $includeChapters} + ) { + clientMutationId + url + } +} + +mutation RestoreBackup($backup: Upload!) { + restoreBackup(input: { backup: $backup }) { + clientMutationId + id + status { + mangaProgress + state + totalManga + } + } +} + +mutation UpdateBackupPath($backupPath: String = "") { + setSettings(input: {settings: {backupPath: $backupPath}}) { + settings { + backupPath + } + } +} + +mutation UpdateBackupTime($backupTime: String = "12:00") { + setSettings(input: {settings: {backupTime: $backupTime}}) { + settings { + backupTime + } + } +} + +mutation UpdateBackupInterval($backupInterval: Int = 1) { + setSettings(input: {settings: {backupInterval: $backupInterval}}) { + settings { + backupInterval + } + } +} + +mutation UpdateBackupTTL($backupTTL: Int = 14) { + setSettings(input: {settings: {backupTTL: $backupTTL}}) { + settings { + backupTTL + } + } +} diff --git a/lib/src/features/settings/data/settings_repository.dart b/lib/src/features/settings/data/settings_repository.dart new file mode 100644 index 00000000..b5992881 --- /dev/null +++ b/lib/src/features/settings/data/settings_repository.dart @@ -0,0 +1,82 @@ +// Copyright (c) 2022 Contributors to the Suwayomi project +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + +import 'package:ferry/ferry.dart'; +import 'package:flutter/material.dart'; +import 'package:http/http.dart' show MultipartFile; +import 'package:riverpod_annotation/riverpod_annotation.dart'; + +import '../../../global_providers/global_providers.dart'; +import '../../../utils/extensions/custom_extensions.dart'; +import '../domain/automatic_backup_settings_dto.dart'; +import '../domain/restore_status.dart'; +import '../enums/restore_state.dart'; +import 'graphql/settings_query.dart'; + +part 'settings_repository.g.dart'; + +class SettingsRepository { + const SettingsRepository(this.ferryClient); + + final Client ferryClient; + + Stream restoreBackup(MultipartFile? file) => ferryClient.fetch( + SettingsQuery.restoreBackup(file), + (data) => data.restoreBackup.id, + ); + + Stream?> validateBackup(MultipartFile? file) => ferryClient.fetch( + SettingsQuery.validateBackup(file), + (data) => data.validateBackup.missingSources + .map((value) => value.name) + .toSet(), + ); + + Stream getRestoreStatus(String restoreId) => + ferryClient.fetch( + SettingsQuery.restoreStatus(restoreId), + (data) => data.restoreStatus != null + ? RestoreStatus( + mangaProgress: data.restoreStatus!.mangaProgress, + state: RestoreState.fromValue(data.restoreStatus!.state.name), + totalManga: data.restoreStatus!.totalManga, + ) + : null); + + Stream createBackup(bool includeCategories, bool includeChapters) => + ferryClient.fetch( + SettingsQuery.createBackup(includeCategories, includeChapters), + (data) => data.createBackup.url, + ); + + Stream getAutomaticBackupSettings() => + ferryClient.fetch( + SettingsQuery.automaticBackupSettings(), + (data) => AutomaticBackupSettingsDto( + backupInterval: data.settings.backupInterval, + backupPath: data.settings.backupPath, + backupTTL: data.settings.backupTTL, + backupTime: (data.settings.backupTime).toTimeOfDay, + ), + ); + + Future updateBackupLocation(String? backupPath) => + ferryClient.fetch(SettingsQuery.updateBackupPath(backupPath)).first; + + Future updateBackupTime(TimeOfDay backupTime) => + ferryClient.fetch(SettingsQuery.updateBackupTime(backupTime)).first; + + Future updateBackupInterval(int backupInterval) => ferryClient + .fetch(SettingsQuery.updateBackupInterval(backupInterval)) + .first; + + Future updateBackupTTL(int backupTTL) => + ferryClient.fetch(SettingsQuery.updateBackupTTL(backupTTL)).first; +} + +@riverpod +SettingsRepository settingsRepository(SettingsRepositoryRef ref) => + SettingsRepository(ref.watch(ferryClientProvider)); diff --git a/lib/src/features/settings/data/settings_repository.g.dart b/lib/src/features/settings/data/settings_repository.g.dart new file mode 100644 index 00000000..bd46b743 --- /dev/null +++ b/lib/src/features/settings/data/settings_repository.g.dart @@ -0,0 +1,27 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'settings_repository.dart'; + +// ************************************************************************** +// RiverpodGenerator +// ************************************************************************** + +String _$settingsRepositoryHash() => + r'899bd5aa00b7df34b746816532d17aba10aeb3cd'; + +/// See also [settingsRepository]. +@ProviderFor(settingsRepository) +final settingsRepositoryProvider = + AutoDisposeProvider.internal( + settingsRepository, + name: r'settingsRepositoryProvider', + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') + ? null + : _$settingsRepositoryHash, + dependencies: null, + allTransitiveDependencies: null, +); + +typedef SettingsRepositoryRef = AutoDisposeProviderRef; +// ignore_for_file: type=lint +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member diff --git a/lib/src/features/settings/domain/automatic_backup_settings_dto.dart b/lib/src/features/settings/domain/automatic_backup_settings_dto.dart new file mode 100644 index 00000000..e247aa4f --- /dev/null +++ b/lib/src/features/settings/domain/automatic_backup_settings_dto.dart @@ -0,0 +1,14 @@ +import 'package:flutter/material.dart'; +import 'package:freezed_annotation/freezed_annotation.dart'; + +part 'automatic_backup_settings_dto.freezed.dart'; + +@freezed +class AutomaticBackupSettingsDto with _$AutomaticBackupSettingsDto { + factory AutomaticBackupSettingsDto({ + int? backupInterval, + String? backupPath, + int? backupTTL, + TimeOfDay? backupTime, + }) = _AutomaticBackupSettingsDto; +} diff --git a/lib/src/features/settings/domain/automatic_backup_settings_dto.freezed.dart b/lib/src/features/settings/domain/automatic_backup_settings_dto.freezed.dart new file mode 100644 index 00000000..21ee2857 --- /dev/null +++ b/lib/src/features/settings/domain/automatic_backup_settings_dto.freezed.dart @@ -0,0 +1,205 @@ +// coverage:ignore-file +// GENERATED CODE - DO NOT MODIFY BY HAND +// 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 'automatic_backup_settings_dto.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +T _$identity(T value) => value; + +final _privateConstructorUsedError = UnsupportedError( + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); + +/// @nodoc +mixin _$AutomaticBackupSettingsDto { + int? get backupInterval => throw _privateConstructorUsedError; + String? get backupPath => throw _privateConstructorUsedError; + int? get backupTTL => throw _privateConstructorUsedError; + TimeOfDay? get backupTime => throw _privateConstructorUsedError; + + @JsonKey(ignore: true) + $AutomaticBackupSettingsDtoCopyWith + get copyWith => throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class $AutomaticBackupSettingsDtoCopyWith<$Res> { + factory $AutomaticBackupSettingsDtoCopyWith(AutomaticBackupSettingsDto value, + $Res Function(AutomaticBackupSettingsDto) then) = + _$AutomaticBackupSettingsDtoCopyWithImpl<$Res, + AutomaticBackupSettingsDto>; + @useResult + $Res call( + {int? backupInterval, + String? backupPath, + int? backupTTL, + TimeOfDay? backupTime}); +} + +/// @nodoc +class _$AutomaticBackupSettingsDtoCopyWithImpl<$Res, + $Val extends AutomaticBackupSettingsDto> + implements $AutomaticBackupSettingsDtoCopyWith<$Res> { + _$AutomaticBackupSettingsDtoCopyWithImpl(this._value, this._then); + + // ignore: unused_field + final $Val _value; + // ignore: unused_field + final $Res Function($Val) _then; + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? backupInterval = freezed, + Object? backupPath = freezed, + Object? backupTTL = freezed, + Object? backupTime = freezed, + }) { + return _then(_value.copyWith( + backupInterval: freezed == backupInterval + ? _value.backupInterval + : backupInterval // ignore: cast_nullable_to_non_nullable + as int?, + backupPath: freezed == backupPath + ? _value.backupPath + : backupPath // ignore: cast_nullable_to_non_nullable + as String?, + backupTTL: freezed == backupTTL + ? _value.backupTTL + : backupTTL // ignore: cast_nullable_to_non_nullable + as int?, + backupTime: freezed == backupTime + ? _value.backupTime + : backupTime // ignore: cast_nullable_to_non_nullable + as TimeOfDay?, + ) as $Val); + } +} + +/// @nodoc +abstract class _$$AutomaticBackupSettingsDtoImplCopyWith<$Res> + implements $AutomaticBackupSettingsDtoCopyWith<$Res> { + factory _$$AutomaticBackupSettingsDtoImplCopyWith( + _$AutomaticBackupSettingsDtoImpl value, + $Res Function(_$AutomaticBackupSettingsDtoImpl) then) = + __$$AutomaticBackupSettingsDtoImplCopyWithImpl<$Res>; + @override + @useResult + $Res call( + {int? backupInterval, + String? backupPath, + int? backupTTL, + TimeOfDay? backupTime}); +} + +/// @nodoc +class __$$AutomaticBackupSettingsDtoImplCopyWithImpl<$Res> + extends _$AutomaticBackupSettingsDtoCopyWithImpl<$Res, + _$AutomaticBackupSettingsDtoImpl> + implements _$$AutomaticBackupSettingsDtoImplCopyWith<$Res> { + __$$AutomaticBackupSettingsDtoImplCopyWithImpl( + _$AutomaticBackupSettingsDtoImpl _value, + $Res Function(_$AutomaticBackupSettingsDtoImpl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? backupInterval = freezed, + Object? backupPath = freezed, + Object? backupTTL = freezed, + Object? backupTime = freezed, + }) { + return _then(_$AutomaticBackupSettingsDtoImpl( + backupInterval: freezed == backupInterval + ? _value.backupInterval + : backupInterval // ignore: cast_nullable_to_non_nullable + as int?, + backupPath: freezed == backupPath + ? _value.backupPath + : backupPath // ignore: cast_nullable_to_non_nullable + as String?, + backupTTL: freezed == backupTTL + ? _value.backupTTL + : backupTTL // ignore: cast_nullable_to_non_nullable + as int?, + backupTime: freezed == backupTime + ? _value.backupTime + : backupTime // ignore: cast_nullable_to_non_nullable + as TimeOfDay?, + )); + } +} + +/// @nodoc + +class _$AutomaticBackupSettingsDtoImpl implements _AutomaticBackupSettingsDto { + _$AutomaticBackupSettingsDtoImpl( + {this.backupInterval, this.backupPath, this.backupTTL, this.backupTime}); + + @override + final int? backupInterval; + @override + final String? backupPath; + @override + final int? backupTTL; + @override + final TimeOfDay? backupTime; + + @override + String toString() { + return 'AutomaticBackupSettingsDto(backupInterval: $backupInterval, backupPath: $backupPath, backupTTL: $backupTTL, backupTime: $backupTime)'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$AutomaticBackupSettingsDtoImpl && + (identical(other.backupInterval, backupInterval) || + other.backupInterval == backupInterval) && + (identical(other.backupPath, backupPath) || + other.backupPath == backupPath) && + (identical(other.backupTTL, backupTTL) || + other.backupTTL == backupTTL) && + (identical(other.backupTime, backupTime) || + other.backupTime == backupTime)); + } + + @override + int get hashCode => Object.hash( + runtimeType, backupInterval, backupPath, backupTTL, backupTime); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$AutomaticBackupSettingsDtoImplCopyWith<_$AutomaticBackupSettingsDtoImpl> + get copyWith => __$$AutomaticBackupSettingsDtoImplCopyWithImpl< + _$AutomaticBackupSettingsDtoImpl>(this, _$identity); +} + +abstract class _AutomaticBackupSettingsDto + implements AutomaticBackupSettingsDto { + factory _AutomaticBackupSettingsDto( + {final int? backupInterval, + final String? backupPath, + final int? backupTTL, + final TimeOfDay? backupTime}) = _$AutomaticBackupSettingsDtoImpl; + + @override + int? get backupInterval; + @override + String? get backupPath; + @override + int? get backupTTL; + @override + TimeOfDay? get backupTime; + @override + @JsonKey(ignore: true) + _$$AutomaticBackupSettingsDtoImplCopyWith<_$AutomaticBackupSettingsDtoImpl> + get copyWith => throw _privateConstructorUsedError; +} diff --git a/lib/src/features/settings/domain/backup_missing/backup_missing.dart b/lib/src/features/settings/domain/backup_missing/backup_missing.dart deleted file mode 100644 index c517098c..00000000 --- a/lib/src/features/settings/domain/backup_missing/backup_missing.dart +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) 2022 Contributors to the Suwayomi project -// -// This Source Code Form is subject to the terms of the Mozilla Public -// License, v. 2.0. If a copy of the MPL was not distributed with this -// file, You can obtain one at http://mozilla.org/MPL/2.0/. - -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../../utils/extensions/custom_extensions.dart'; - -part 'backup_missing.freezed.dart'; -part 'backup_missing.g.dart'; - -@freezed -class BackupMissing with _$BackupMissing { - BackupMissing._(); - factory BackupMissing({ - List? missingSources, - List? missingTrackers, - List? mangasMissingSources, - }) = _BackupMissing; - - BackupMissing get filter => BackupMissing( - missingSources: [...?missingSources] - ..removeWhere((element) => element.isBlank), - missingTrackers: [...?missingTrackers] - ..removeWhere((element) => element.isBlank), - mangasMissingSources: [...?mangasMissingSources] - ..removeWhere((element) => element.isBlank), - ); - bool get isEmpty => - missingSources.isBlank && - missingTrackers.isBlank && - mangasMissingSources.isBlank; - - factory BackupMissing.fromJson(Map json) => - _$BackupMissingFromJson(json); -} diff --git a/lib/src/features/settings/domain/backup_missing/backup_missing.freezed.dart b/lib/src/features/settings/domain/backup_missing/backup_missing.freezed.dart deleted file mode 100644 index f16553a5..00000000 --- a/lib/src/features/settings/domain/backup_missing/backup_missing.freezed.dart +++ /dev/null @@ -1,231 +0,0 @@ -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// 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 'backup_missing.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -T _$identity(T value) => value; - -final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); - -BackupMissing _$BackupMissingFromJson(Map json) { - return _BackupMissing.fromJson(json); -} - -/// @nodoc -mixin _$BackupMissing { - List? get missingSources => throw _privateConstructorUsedError; - List? get missingTrackers => throw _privateConstructorUsedError; - List? get mangasMissingSources => throw _privateConstructorUsedError; - - Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) - $BackupMissingCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $BackupMissingCopyWith<$Res> { - factory $BackupMissingCopyWith( - BackupMissing value, $Res Function(BackupMissing) then) = - _$BackupMissingCopyWithImpl<$Res, BackupMissing>; - @useResult - $Res call( - {List? missingSources, - List? missingTrackers, - List? mangasMissingSources}); -} - -/// @nodoc -class _$BackupMissingCopyWithImpl<$Res, $Val extends BackupMissing> - implements $BackupMissingCopyWith<$Res> { - _$BackupMissingCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? missingSources = freezed, - Object? missingTrackers = freezed, - Object? mangasMissingSources = freezed, - }) { - return _then(_value.copyWith( - missingSources: freezed == missingSources - ? _value.missingSources - : missingSources // ignore: cast_nullable_to_non_nullable - as List?, - missingTrackers: freezed == missingTrackers - ? _value.missingTrackers - : missingTrackers // ignore: cast_nullable_to_non_nullable - as List?, - mangasMissingSources: freezed == mangasMissingSources - ? _value.mangasMissingSources - : mangasMissingSources // ignore: cast_nullable_to_non_nullable - as List?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$BackupMissingImplCopyWith<$Res> - implements $BackupMissingCopyWith<$Res> { - factory _$$BackupMissingImplCopyWith( - _$BackupMissingImpl value, $Res Function(_$BackupMissingImpl) then) = - __$$BackupMissingImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {List? missingSources, - List? missingTrackers, - List? mangasMissingSources}); -} - -/// @nodoc -class __$$BackupMissingImplCopyWithImpl<$Res> - extends _$BackupMissingCopyWithImpl<$Res, _$BackupMissingImpl> - implements _$$BackupMissingImplCopyWith<$Res> { - __$$BackupMissingImplCopyWithImpl( - _$BackupMissingImpl _value, $Res Function(_$BackupMissingImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? missingSources = freezed, - Object? missingTrackers = freezed, - Object? mangasMissingSources = freezed, - }) { - return _then(_$BackupMissingImpl( - missingSources: freezed == missingSources - ? _value._missingSources - : missingSources // ignore: cast_nullable_to_non_nullable - as List?, - missingTrackers: freezed == missingTrackers - ? _value._missingTrackers - : missingTrackers // ignore: cast_nullable_to_non_nullable - as List?, - mangasMissingSources: freezed == mangasMissingSources - ? _value._mangasMissingSources - : mangasMissingSources // ignore: cast_nullable_to_non_nullable - as List?, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$BackupMissingImpl extends _BackupMissing { - _$BackupMissingImpl( - {final List? missingSources, - final List? missingTrackers, - final List? mangasMissingSources}) - : _missingSources = missingSources, - _missingTrackers = missingTrackers, - _mangasMissingSources = mangasMissingSources, - super._(); - - factory _$BackupMissingImpl.fromJson(Map json) => - _$$BackupMissingImplFromJson(json); - - final List? _missingSources; - @override - List? get missingSources { - final value = _missingSources; - if (value == null) return null; - if (_missingSources is EqualUnmodifiableListView) return _missingSources; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(value); - } - - final List? _missingTrackers; - @override - List? get missingTrackers { - final value = _missingTrackers; - if (value == null) return null; - if (_missingTrackers is EqualUnmodifiableListView) return _missingTrackers; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(value); - } - - final List? _mangasMissingSources; - @override - List? get mangasMissingSources { - final value = _mangasMissingSources; - if (value == null) return null; - if (_mangasMissingSources is EqualUnmodifiableListView) - return _mangasMissingSources; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(value); - } - - @override - String toString() { - return 'BackupMissing(missingSources: $missingSources, missingTrackers: $missingTrackers, mangasMissingSources: $mangasMissingSources)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$BackupMissingImpl && - const DeepCollectionEquality() - .equals(other._missingSources, _missingSources) && - const DeepCollectionEquality() - .equals(other._missingTrackers, _missingTrackers) && - const DeepCollectionEquality() - .equals(other._mangasMissingSources, _mangasMissingSources)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => Object.hash( - runtimeType, - const DeepCollectionEquality().hash(_missingSources), - const DeepCollectionEquality().hash(_missingTrackers), - const DeepCollectionEquality().hash(_mangasMissingSources)); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$BackupMissingImplCopyWith<_$BackupMissingImpl> get copyWith => - __$$BackupMissingImplCopyWithImpl<_$BackupMissingImpl>(this, _$identity); - - @override - Map toJson() { - return _$$BackupMissingImplToJson( - this, - ); - } -} - -abstract class _BackupMissing extends BackupMissing { - factory _BackupMissing( - {final List? missingSources, - final List? missingTrackers, - final List? mangasMissingSources}) = _$BackupMissingImpl; - _BackupMissing._() : super._(); - - factory _BackupMissing.fromJson(Map json) = - _$BackupMissingImpl.fromJson; - - @override - List? get missingSources; - @override - List? get missingTrackers; - @override - List? get mangasMissingSources; - @override - @JsonKey(ignore: true) - _$$BackupMissingImplCopyWith<_$BackupMissingImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/features/settings/domain/backup_missing/backup_missing.g.dart b/lib/src/features/settings/domain/backup_missing/backup_missing.g.dart deleted file mode 100644 index f42017a6..00000000 --- a/lib/src/features/settings/domain/backup_missing/backup_missing.g.dart +++ /dev/null @@ -1,27 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'backup_missing.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$BackupMissingImpl _$$BackupMissingImplFromJson(Map json) => - _$BackupMissingImpl( - missingSources: (json['missingSources'] as List?) - ?.map((e) => e as String) - .toList(), - missingTrackers: (json['missingTrackers'] as List?) - ?.map((e) => e as String) - .toList(), - mangasMissingSources: (json['mangasMissingSources'] as List?) - ?.map((e) => e as String) - .toList(), - ); - -Map _$$BackupMissingImplToJson(_$BackupMissingImpl instance) => - { - 'missingSources': instance.missingSources, - 'missingTrackers': instance.missingTrackers, - 'mangasMissingSources': instance.mangasMissingSources, - }; diff --git a/lib/src/features/settings/domain/restore_status.dart b/lib/src/features/settings/domain/restore_status.dart new file mode 100644 index 00000000..4b33ab46 --- /dev/null +++ b/lib/src/features/settings/domain/restore_status.dart @@ -0,0 +1,18 @@ +import 'package:freezed_annotation/freezed_annotation.dart'; + +import '../enums/restore_state.dart'; + +part 'restore_status.freezed.dart'; +part 'restore_status.g.dart'; + +@freezed +class RestoreStatus with _$RestoreStatus { + factory RestoreStatus({ + int? mangaProgress, + RestoreState? state, + int? totalManga, + }) = _RestoreStatus; + + factory RestoreStatus.fromJson(Map json) => + _$RestoreStatusFromJson(json); +} diff --git a/lib/src/features/settings/domain/restore_status.freezed.dart b/lib/src/features/settings/domain/restore_status.freezed.dart new file mode 100644 index 00000000..8359a6ff --- /dev/null +++ b/lib/src/features/settings/domain/restore_status.freezed.dart @@ -0,0 +1,189 @@ +// coverage:ignore-file +// GENERATED CODE - DO NOT MODIFY BY HAND +// 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 'restore_status.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +T _$identity(T value) => value; + +final _privateConstructorUsedError = UnsupportedError( + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); + +RestoreStatus _$RestoreStatusFromJson(Map json) { + return _RestoreStatus.fromJson(json); +} + +/// @nodoc +mixin _$RestoreStatus { + int? get mangaProgress => throw _privateConstructorUsedError; + RestoreState? get state => throw _privateConstructorUsedError; + int? get totalManga => throw _privateConstructorUsedError; + + Map toJson() => throw _privateConstructorUsedError; + @JsonKey(ignore: true) + $RestoreStatusCopyWith get copyWith => + throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class $RestoreStatusCopyWith<$Res> { + factory $RestoreStatusCopyWith( + RestoreStatus value, $Res Function(RestoreStatus) then) = + _$RestoreStatusCopyWithImpl<$Res, RestoreStatus>; + @useResult + $Res call({int? mangaProgress, RestoreState? state, int? totalManga}); +} + +/// @nodoc +class _$RestoreStatusCopyWithImpl<$Res, $Val extends RestoreStatus> + implements $RestoreStatusCopyWith<$Res> { + _$RestoreStatusCopyWithImpl(this._value, this._then); + + // ignore: unused_field + final $Val _value; + // ignore: unused_field + final $Res Function($Val) _then; + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? mangaProgress = freezed, + Object? state = freezed, + Object? totalManga = freezed, + }) { + return _then(_value.copyWith( + mangaProgress: freezed == mangaProgress + ? _value.mangaProgress + : mangaProgress // ignore: cast_nullable_to_non_nullable + as int?, + state: freezed == state + ? _value.state + : state // ignore: cast_nullable_to_non_nullable + as RestoreState?, + totalManga: freezed == totalManga + ? _value.totalManga + : totalManga // ignore: cast_nullable_to_non_nullable + as int?, + ) as $Val); + } +} + +/// @nodoc +abstract class _$$RestoreStatusImplCopyWith<$Res> + implements $RestoreStatusCopyWith<$Res> { + factory _$$RestoreStatusImplCopyWith( + _$RestoreStatusImpl value, $Res Function(_$RestoreStatusImpl) then) = + __$$RestoreStatusImplCopyWithImpl<$Res>; + @override + @useResult + $Res call({int? mangaProgress, RestoreState? state, int? totalManga}); +} + +/// @nodoc +class __$$RestoreStatusImplCopyWithImpl<$Res> + extends _$RestoreStatusCopyWithImpl<$Res, _$RestoreStatusImpl> + implements _$$RestoreStatusImplCopyWith<$Res> { + __$$RestoreStatusImplCopyWithImpl( + _$RestoreStatusImpl _value, $Res Function(_$RestoreStatusImpl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? mangaProgress = freezed, + Object? state = freezed, + Object? totalManga = freezed, + }) { + return _then(_$RestoreStatusImpl( + mangaProgress: freezed == mangaProgress + ? _value.mangaProgress + : mangaProgress // ignore: cast_nullable_to_non_nullable + as int?, + state: freezed == state + ? _value.state + : state // ignore: cast_nullable_to_non_nullable + as RestoreState?, + totalManga: freezed == totalManga + ? _value.totalManga + : totalManga // ignore: cast_nullable_to_non_nullable + as int?, + )); + } +} + +/// @nodoc +@JsonSerializable() +class _$RestoreStatusImpl implements _RestoreStatus { + _$RestoreStatusImpl({this.mangaProgress, this.state, this.totalManga}); + + factory _$RestoreStatusImpl.fromJson(Map json) => + _$$RestoreStatusImplFromJson(json); + + @override + final int? mangaProgress; + @override + final RestoreState? state; + @override + final int? totalManga; + + @override + String toString() { + return 'RestoreStatus(mangaProgress: $mangaProgress, state: $state, totalManga: $totalManga)'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$RestoreStatusImpl && + (identical(other.mangaProgress, mangaProgress) || + other.mangaProgress == mangaProgress) && + (identical(other.state, state) || other.state == state) && + (identical(other.totalManga, totalManga) || + other.totalManga == totalManga)); + } + + @JsonKey(ignore: true) + @override + int get hashCode => + Object.hash(runtimeType, mangaProgress, state, totalManga); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$RestoreStatusImplCopyWith<_$RestoreStatusImpl> get copyWith => + __$$RestoreStatusImplCopyWithImpl<_$RestoreStatusImpl>(this, _$identity); + + @override + Map toJson() { + return _$$RestoreStatusImplToJson( + this, + ); + } +} + +abstract class _RestoreStatus implements RestoreStatus { + factory _RestoreStatus( + {final int? mangaProgress, + final RestoreState? state, + final int? totalManga}) = _$RestoreStatusImpl; + + factory _RestoreStatus.fromJson(Map json) = + _$RestoreStatusImpl.fromJson; + + @override + int? get mangaProgress; + @override + RestoreState? get state; + @override + int? get totalManga; + @override + @JsonKey(ignore: true) + _$$RestoreStatusImplCopyWith<_$RestoreStatusImpl> get copyWith => + throw _privateConstructorUsedError; +} diff --git a/lib/src/features/settings/domain/restore_status.g.dart b/lib/src/features/settings/domain/restore_status.g.dart new file mode 100644 index 00000000..f0aa0811 --- /dev/null +++ b/lib/src/features/settings/domain/restore_status.g.dart @@ -0,0 +1,29 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'restore_status.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +_$RestoreStatusImpl _$$RestoreStatusImplFromJson(Map json) => + _$RestoreStatusImpl( + mangaProgress: json['mangaProgress'] as int?, + state: $enumDecodeNullable(_$RestoreStateEnumMap, json['state']), + totalManga: json['totalManga'] as int?, + ); + +Map _$$RestoreStatusImplToJson(_$RestoreStatusImpl instance) => + { + 'mangaProgress': instance.mangaProgress, + 'state': _$RestoreStateEnumMap[instance.state], + 'totalManga': instance.totalManga, + }; + +const _$RestoreStateEnumMap = { + RestoreState.idle: 'IDLE', + RestoreState.success: 'SUCCESS', + RestoreState.failure: 'FAILURE', + RestoreState.restoringCategories: 'RESTORING_CATEGORIES', + RestoreState.restoringManga: 'RESTORING_MANGA', +}; diff --git a/lib/src/features/settings/enums/restore_state.dart b/lib/src/features/settings/enums/restore_state.dart new file mode 100644 index 00000000..9798cb86 --- /dev/null +++ b/lib/src/features/settings/enums/restore_state.dart @@ -0,0 +1,24 @@ +import 'package:freezed_annotation/freezed_annotation.dart'; + +import '../../../abstracts/value_enum.dart'; + +@JsonEnum(valueField: 'value') +enum RestoreState implements ValueEnum { + idle("IDLE"), + success("SUCCESS"), + failure("FAILURE"), + restoringCategories("RESTORING_CATEGORIES"), + restoringManga("RESTORING_MANGA"), + ; + + const RestoreState(this.value); + static final _valueMap = { + for (RestoreState state in RestoreState.values) state.value: state, + }; + static RestoreState? fromValue(String value) => _valueMap[value]; + + bool get isFinalState => this == success || this == failure; + + @override + final String value; +} diff --git a/lib/src/features/settings/presentation/appearance/appearance_screen.dart b/lib/src/features/settings/presentation/appearance/appearance_screen.dart index 30905e8c..0b77c7b6 100644 --- a/lib/src/features/settings/presentation/appearance/appearance_screen.dart +++ b/lib/src/features/settings/presentation/appearance/appearance_screen.dart @@ -20,7 +20,7 @@ class AppearanceScreen extends ConsumerWidget { Widget build(context, ref) { final themeMode = ref.watch(appThemeModeProvider); return Scaffold( - appBar: AppBar(title: Text(context.l10n!.appearance)), + appBar: AppBar(title: Text(context.l10n.appearance)), body: ListView( children: [ const AppThemeModeTile(), diff --git a/lib/src/features/settings/presentation/appearance/widgets/grid_cover_min_width.dart b/lib/src/features/settings/presentation/appearance/widgets/grid_cover_min_width.dart index fde5caaf..68029233 100644 --- a/lib/src/features/settings/presentation/appearance/widgets/grid_cover_min_width.dart +++ b/lib/src/features/settings/presentation/appearance/widgets/grid_cover_min_width.dart @@ -30,7 +30,7 @@ class GridCoverMinWidth extends ConsumerWidget { return SliderSettingTile( defaultValue: DBKeys.gridMangaCoverWidth.initial, getSliderLabel: (value) => value.round().toString(), - title: context.l10n!.mangaGridSize, + title: context.l10n.mangaGridSize, icon: Icons.grid_view_rounded, value: ref.watch(gridMinWidthProvider) ?? DBKeys.gridMangaCoverWidth.initial, diff --git a/lib/src/features/settings/presentation/appearance/widgets/is_true_black/is_true_black_tile.dart b/lib/src/features/settings/presentation/appearance/widgets/is_true_black/is_true_black_tile.dart index 19b63ded..b8022cef 100644 --- a/lib/src/features/settings/presentation/appearance/widgets/is_true_black/is_true_black_tile.dart +++ b/lib/src/features/settings/presentation/appearance/widgets/is_true_black/is_true_black_tile.dart @@ -27,7 +27,7 @@ class IsTrueBlackTile extends HookConsumerWidget { return SwitchListTile( controlAffinity: ListTileControlAffinity.trailing, secondary: const Icon(Icons.circle, color: Colors.black), - title: Text(context.l10n!.isTrueBlack), + title: Text(context.l10n.isTrueBlack), onChanged: ref.read(isTrueBlackProvider.notifier).update, value: ref.watch(isTrueBlackProvider).ifNull(), ); diff --git a/lib/src/features/settings/presentation/backup/automatic_backup/automatic_backup_section.dart b/lib/src/features/settings/presentation/backup/automatic_backup/automatic_backup_section.dart new file mode 100644 index 00000000..280a180a --- /dev/null +++ b/lib/src/features/settings/presentation/backup/automatic_backup/automatic_backup_section.dart @@ -0,0 +1,118 @@ +import 'package:flutter/material.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; + +import '../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../widgets/popup_widgets/slider_popup.dart'; +import '../../../../../widgets/popup_widgets/text_field_popup.dart'; +import '../../../../../widgets/section_title.dart'; +import '../../../controller/settings_controller.dart'; +import '../../../data/settings_repository.dart'; + +class AutomaticBackupSection extends ConsumerWidget { + const AutomaticBackupSection({super.key}); + + @override + Widget build(context, ref) { + final automaticBackupSettings = ref.watch(automaticBackupSettingsProvider); + final repository = ref.watch(settingsRepositoryProvider); + + reload() => ref.refresh(automaticBackupSettingsProvider.future); + + return automaticBackupSettings.showUiWhenData( + context, + (data) { + if (data == null) { + return const SizedBox.shrink(); + } + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + SectionTitle(title: context.l10n.automaticBackup), + ListTile( + leading: const Icon(Icons.folder_rounded), + title: Text(context.l10n.backupLocation), + subtitle: (data.backupPath).isNotBlank + ? Text(data.backupPath!) + : Text(context.l10n.backupLocationDescription), + onTap: () => showDialog( + context: context, + builder: (context) => TextFieldPopup( + title: context.l10n.backupLocation, + initialValue: data.backupPath, + subtitle: context.l10n.backupLocationDescription, + onChange: (value) async { + await repository.updateBackupLocation(value); + await reload(); + if (context.mounted) Navigator.pop(context); + }, + ), + ), + ), + ListTile( + leading: const Icon(Icons.access_alarm_rounded), + title: Text(context.l10n.backupTime), + subtitle: data.backupTime != null + ? Text(data.backupTime!.format(context)) + : null, + onTap: () async { + final backupTime = await showTimePicker( + initialTime: + data.backupTime ?? const TimeOfDay(hour: 0, minute: 0), + context: context, + ); + if (backupTime != null) { + await repository.updateBackupTime(backupTime); + await reload(); + } + }, + ), + ListTile( + leading: const Icon(Icons.folder_rounded), + title: Text(context.l10n.backupInterval), + subtitle: (data.backupInterval) != null + ? Text(context.l10n + .nDays(data.backupInterval.ifNullOrZero(1).compact()!)) + : null, + onTap: () => showDialog( + context: context, + builder: (context) => SliderPopup( + min: 1, + max: 31, + title: context.l10n.backupInterval, + initialValue: data.backupInterval.ifNull(1), + onChange: (value) async { + await repository.updateBackupInterval(value); + await reload(); + if (context.mounted) Navigator.pop(context); + }, + ), + ), + ), + ListTile( + leading: const Icon(Icons.cleaning_services_rounded), + title: Text(context.l10n.backupCleanup), + subtitle: (data.backupTTL) != null + ? Text(context.l10n.backupCleanupDescription( + data.backupTTL.ifNull(14).compact()!)) + : null, + onTap: () => showDialog( + context: context, + builder: (context) => SliderPopup( + min: 0, + max: 1000, + title: context.l10n.backupCleanup, + initialValue: data.backupTTL.ifNull(1), + onChange: (value) async { + await repository.updateBackupTTL(value); + await reload(); + if (context.mounted) Navigator.pop(context); + }, + ), + ), + ), + ], + ); + }, + ); + } +} diff --git a/lib/src/features/settings/presentation/backup/backup_and_restore/backup_and_restore_section.dart b/lib/src/features/settings/presentation/backup/backup_and_restore/backup_and_restore_section.dart new file mode 100644 index 00000000..2c1ce32c --- /dev/null +++ b/lib/src/features/settings/presentation/backup/backup_and_restore/backup_and_restore_section.dart @@ -0,0 +1,149 @@ +import 'package:file_picker/file_picker.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_hooks/flutter_hooks.dart'; +import 'package:gap/gap.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; + +import '../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../utils/misc/file_picker_utils.dart'; +import '../../../../../utils/misc/toast/toast.dart'; +import '../../../../../widgets/section_title.dart'; +import '../../../data/settings_repository.dart'; +import '../../../enums/restore_state.dart'; +import 'widgets/backup_missing_dialog.dart'; +import 'widgets/create_backup_dialog.dart'; +import 'widgets/restore_status_progress.dart'; + +class BackupAndRestoreSection extends HookConsumerWidget { + const BackupAndRestoreSection({super.key}); + + Future getBackupFile(BuildContext context, Toast toast) async { + final asyncPickedFile = + await AsyncValue.guard(() => FilePickerUtils.pickFile( + context: context, + extensions: ['gz', 'tachibk'], + )); + if (!context.mounted) { + return null; + } + if (asyncPickedFile.hasError || asyncPickedFile.value == null) { + toast.showError( + asyncPickedFile.error?.toString() ?? context.l10n.errorFilePick, + ); + return null; + } + return asyncPickedFile.value; + } + + Future backupFilePicker(WidgetRef ref, BuildContext context) async { + Toast toast = ref.read(toastProvider(context)); + + final pickedFile = await getBackupFile(context, toast); + if (pickedFile == null) return null; + + final asyncBackupFile = await AsyncValue.guard( + () => FilePickerUtils.convertToMultipartFile(pickedFile, "backup")); + + if (context.mounted && asyncBackupFile.hasError) { + asyncBackupFile.showToastOnError(toast); + return null; + } + + final backupFile = asyncBackupFile.value; + if (context.mounted) toast.show(context.l10n.validating); + + final validateResult = await AsyncValue.guard(() => + ref.read(settingsRepositoryProvider).validateBackup(backupFile).first); + + if (context.mounted && validateResult.hasError) { + validateResult.showToastOnError(toast); + return null; + } + + String? backupId; + bool restoreBackup = true; + if (validateResult.valueOrNull.isNotBlank && context.mounted) { + restoreBackup = (await showDialog( + context: context, + builder: (context) => + BackupMissingDialog(backupMissing: validateResult.valueOrNull!), + )) + .ifNull(); + } + + if (restoreBackup) { + final asyncBackupFile = await AsyncValue.guard( + () => FilePickerUtils.convertToMultipartFile(pickedFile, "backup")); + + if (context.mounted && asyncBackupFile.hasError) { + asyncBackupFile.showToastOnError(toast); + return null; + } + final backupResponse = (await AsyncValue.guard(() => ref + .read(settingsRepositoryProvider) + .restoreBackup(asyncBackupFile.value) + .first)); + + if (backupResponse.hasError) { + toast.showError(backupResponse.error.toString()); + } else { + if (backupResponse.hasValue) { + backupId = backupResponse.value; + } + if (context.mounted) { + toast.show(context.l10n.restoring, instantShow: true); + } + } + } + return backupId; + } + + @override + Widget build(context, ref) { + final restoreId = useState(null); + final toast = ref.watch(toastProvider(context)); + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + SectionTitle(title: context.l10n.backupAndRestore), + ListTile( + title: Text(context.l10n.createBackupTitle), + subtitle: Text(context.l10n.createBackupDescription), + leading: const Icon(Icons.backup_rounded), + onTap: () { + showDialog( + context: context, + builder: (context) => const CreateBackupDialog(), + ); + }, + ), + ListTile( + title: Text(context.l10n.restoreBackupTitle), + subtitle: Text(context.l10n.restoreBackupDescription), + leading: const Icon(Icons.restore_rounded), + trailing: restoreId.value != null + ? RestoreStatusProgress( + restoreRequestId: restoreId.value!, + onCompleted: (state) { + if (state == RestoreState.failure) { + toast.showError(context.l10n.errorBackupRestore, + withMicrotask: true); + } else { + toast.show( + context.l10n.restored, + withMicrotask: true, + instantShow: true, + ); + } + restoreId.value = null; + }, + ) + : null, + onTap: () async => + restoreId.value = await backupFilePicker(ref, context), + ), + const Gap(8), + ], + ); + } +} diff --git a/lib/src/features/settings/presentation/backup/backup_and_restore/widgets/backup_missing_dialog.dart b/lib/src/features/settings/presentation/backup/backup_and_restore/widgets/backup_missing_dialog.dart new file mode 100644 index 00000000..adcf54cf --- /dev/null +++ b/lib/src/features/settings/presentation/backup/backup_and_restore/widgets/backup_missing_dialog.dart @@ -0,0 +1,49 @@ +// Copyright (c) 2022 Contributors to the Suwayomi project +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + +import 'package:flutter/material.dart'; + +import '../../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../../widgets/popup_widgets/pop_button.dart'; + +class BackupMissingDialog extends StatelessWidget { + const BackupMissingDialog({ + super.key, + required this.backupMissing, + }); + final Set backupMissing; + @override + Widget build(BuildContext context) { + return AlertDialog( + content: SingleChildScrollView( + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + if (backupMissing.isNotBlank) ...[ + Text( + context.l10n.missingExtension, + style: context.textTheme.titleMedium, + ), + ...backupMissing.map( + (e) => ListTile( + leading: const Icon(Icons.extension_rounded), + title: Text(e), + ), + ), + ], + ], + ), + ), + actions: [ + PopButton(popText: context.l10n.cancel), + ElevatedButton( + onPressed: () => Navigator.of(context).pop(true), + child: Text(context.l10n.restore), + ), + ], + ); + } +} diff --git a/lib/src/features/settings/presentation/backup/backup_and_restore/widgets/create_backup_dialog.dart b/lib/src/features/settings/presentation/backup/backup_and_restore/widgets/create_backup_dialog.dart new file mode 100644 index 00000000..217ae422 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/backup_and_restore/widgets/create_backup_dialog.dart @@ -0,0 +1,79 @@ +import 'package:flutter/material.dart'; +import 'package:flutter_hooks/flutter_hooks.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; + +import '../../../../../../constants/endpoints.dart'; +import '../../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../../utils/launch_url_in_web.dart'; +import '../../../../../../utils/misc/toast/toast.dart'; +import '../../../../../../widgets/async_buttons/async_elevated_button.dart'; +import '../../../../../../widgets/popup_widgets/pop_button.dart'; +import '../../../../data/settings_repository.dart'; +import '../../../../widgets/server_port_tile/server_port_tile.dart'; +import '../../../../widgets/server_url_tile/server_url_tile.dart'; + +class CreateBackupDialog extends HookConsumerWidget { + const CreateBackupDialog({super.key}); + + @override + Widget build(context, ref) { + final includeCategory = useState(true); + final includeChapters = useState(true); + return AlertDialog( + title: Text(context.l10n.createBackupTitle), + content: SingleChildScrollView( + child: Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + CheckboxListTile( + title: Text(context.l10n.includeCategories), + value: includeCategory.value, + onChanged: (value) => includeCategory.value = value.ifNull(), + ), + CheckboxListTile( + title: Text(context.l10n.includeChapters), + value: includeChapters.value, + onChanged: (value) => includeChapters.value = value.ifNull(), + ), + ], + ), + ), + actions: [ + PopButton(popText: context.l10n.cancel), + AsyncElevatedButton( + onPressed: () async { + final toast = ref.read(toastProvider(context)); + final backupUrl = await AsyncValue.guard(() => ref + .read(settingsRepositoryProvider) + .createBackup(includeCategory.value, includeChapters.value) + .first); + if (!context.mounted) return; + if (backupUrl.hasError || backupUrl.valueOrNull.isBlank) { + { + toast.showError( + backupUrl.error?.toString() ?? context.l10n.errorBackupCreate, + ); + } + return; + } + + launchUrlInWeb( + context, + Endpoints.baseApi( + baseUrl: ref.read(serverUrlProvider), + port: ref.read(serverPortProvider), + addPort: ref.watch(serverPortToggleProvider).ifNull(), + appendApiToUrl: false, + ) + + backupUrl.value!, + toast, + ); + context.navPop(); + }, + child: Text(context.l10n.restore), + ), + ], + ); + } +} diff --git a/lib/src/features/settings/presentation/backup/backup_and_restore/widgets/restore_status_progress.dart b/lib/src/features/settings/presentation/backup/backup_and_restore/widgets/restore_status_progress.dart new file mode 100644 index 00000000..26f41201 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/backup_and_restore/widgets/restore_status_progress.dart @@ -0,0 +1,56 @@ +import 'package:flutter/material.dart'; +import 'package:flutter_hooks/flutter_hooks.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; + +import '../../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../../utils/hooks/polling_hook.dart'; +import '../../../../controller/settings_controller.dart'; +import '../../../../enums/restore_state.dart'; + +class RestoreStatusProgress extends HookConsumerWidget { + const RestoreStatusProgress({ + super.key, + required this.restoreRequestId, + required this.onCompleted, + }); + final String restoreRequestId; + final ValueChanged onCompleted; + @override + Widget build(context, ref) { + final statusProvider = RestoreStatusProvider(restoreRequestId); + final asyncRestoreStatus = ref.watch(statusProvider); + final restoreStatus = asyncRestoreStatus.valueOrNull; + + usePolling( + pollingInterval: const Duration(milliseconds: 500), + pollFunction: () { + if (context.mounted) { + ref.invalidate(statusProvider); + } + }, + delayedStart: true, + ); + + useEffect(() { + if (restoreStatus != null) { + if ((restoreStatus.state?.isFinalState).ifNull()) { + Future.microtask(() => onCompleted(restoreStatus.state!)); + } + } + return null; + }, [restoreStatus?.state]); + return Stack( + alignment: Alignment.center, + children: [ + CircularProgressIndicator( + value: restoreStatus != null + ? ((restoreStatus.mangaProgress).ifNull() / + (restoreStatus.totalManga).ifNullOrZero(1)) + : null, + ), + if ((restoreStatus?.mangaProgress).ifNull().compact() != null) + Text((restoreStatus?.mangaProgress).ifNull().compact()!), + ], + ); + } +} diff --git a/lib/src/features/settings/presentation/backup/backup_screen.dart b/lib/src/features/settings/presentation/backup/backup_screen.dart index 31bd17a5..b5d61506 100644 --- a/lib/src/features/settings/presentation/backup/backup_screen.dart +++ b/lib/src/features/settings/presentation/backup/backup_screen.dart @@ -4,91 +4,29 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -import 'package:file_picker/file_picker.dart'; import 'package:flutter/material.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; -import '../../../../constants/endpoints.dart'; - import '../../../../utils/extensions/custom_extensions.dart'; -import '../../../../utils/launch_url_in_web.dart'; -import '../../../../utils/misc/toast/toast.dart'; -import '../../data/backup/backup_repository.dart'; -import '../../widgets/server_port_tile/server_port_tile.dart'; -import '../../widgets/server_url_tile/server_url_tile.dart'; -import 'widgets/backup_missing_dialog.dart'; +import '../../controller/settings_controller.dart'; +import 'automatic_backup/automatic_backup_section.dart'; +import 'backup_and_restore/backup_and_restore_section.dart'; class BackupScreen extends ConsumerWidget { const BackupScreen({super.key}); - void backupFilePicker(WidgetRef ref, BuildContext context) async { - Toast getToast(context) => ref.read(toastProvider(context)); - final file = await FilePicker.platform.pickFiles( - type: FileType.custom, - allowedExtensions: ['gz'], - ); - if ((file?.files).isNotBlank) { - if (context.mounted) { - getToast(context).show(context.l10n!.restoring); - } - } - final result = await AsyncValue.guard(() => ref - .read(backupRepositoryProvider) - .restoreBackup(context, file?.files.single)); - result.whenOrNull( - error: (error, stackTrace) { - if (context.mounted) { - result.showToastOnError(getToast(context)); - } - }, - data: (data) { - final backupMissing = data?.filter; - if (context.mounted) { - getToast(context).instantShow(context.l10n!.restored); - } - if (backupMissing != null && !backupMissing.isEmpty) { - showDialog( - context: context, - builder: (context) => BackupMissingDialog( - backupMissing: backupMissing, - ), - ); - } - }, - ); - } - @override - Widget build(BuildContext context, WidgetRef ref) { + Widget build(context, ref) { return Scaffold( - appBar: AppBar(title: Text(context.l10n!.backup)), - body: ListView( - children: [ - ListTile( - title: Text(context.l10n!.createBackupTitle), - subtitle: Text(context.l10n!.createBackupDescription), - leading: const Icon(Icons.backup_rounded), - onTap: () async { - final toast = ref.read(toastProvider(context)); - launchUrlInWeb( - context, - Endpoints.baseApi( - baseUrl: ref.read(serverUrlProvider), - port: ref.read(serverPortProvider), - addPort: ref.watch(serverPortToggleProvider).ifNull(), - ) + - BackupUrl.export, - toast, - ); - }, - ), - ListTile( - title: Text(context.l10n!.restoreBackupTitle), - subtitle: Text(context.l10n!.restoreBackupDescription), - leading: const Icon(Icons.restore_rounded), - onTap: () => backupFilePicker(ref, context), - ), - ], + appBar: AppBar(title: Text(context.l10n.backup)), + body: RefreshIndicator( + onRefresh: () => ref.refresh(automaticBackupSettingsProvider.future), + child: ListView( + children: const [ + BackupAndRestoreSection(), + AutomaticBackupSection(), + ], + ), ), ); } diff --git a/lib/src/features/settings/presentation/backup/widgets/backup_missing_dialog.dart b/lib/src/features/settings/presentation/backup/widgets/backup_missing_dialog.dart deleted file mode 100644 index 69461272..00000000 --- a/lib/src/features/settings/presentation/backup/widgets/backup_missing_dialog.dart +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) 2022 Contributors to the Suwayomi project -// -// This Source Code Form is subject to the terms of the Mozilla Public -// License, v. 2.0. If a copy of the MPL was not distributed with this -// file, You can obtain one at http://mozilla.org/MPL/2.0/. - -import 'package:flutter/material.dart'; - -import '../../../../../utils/extensions/custom_extensions.dart'; -import '../../../../../widgets/pop_button.dart'; -import '../../../domain/backup_missing/backup_missing.dart'; - -class BackupMissingDialog extends StatelessWidget { - const BackupMissingDialog({ - super.key, - required this.backupMissing, - }); - final BackupMissing backupMissing; - @override - Widget build(BuildContext context) { - return AlertDialog( - content: SingleChildScrollView( - child: Column( - mainAxisSize: MainAxisSize.min, - children: [ - if (backupMissing.missingSources.isNotBlank) ...[ - Text( - context.l10n!.missingExtension, - style: context.textTheme.titleMedium, - ), - ...?backupMissing.missingSources?.map( - (e) => ListTile( - leading: const Icon(Icons.extension_rounded), - title: Text(e), - ), - ), - ], - if (backupMissing.missingTrackers.isNotBlank) ...[ - Text( - context.l10n!.missingTrackers, - style: context.textTheme.titleMedium, - ), - ...?backupMissing.missingTrackers?.map( - (e) => ListTile( - leading: const Icon(Icons.sync_rounded), - title: Text(e), - ), - ), - ], - if (backupMissing.mangasMissingSources.isNotBlank) ...[ - Text( - context.l10n!.mangaMissingSources, - style: context.textTheme.titleMedium, - ), - ...?backupMissing.mangasMissingSources?.map( - (e) => ListTile( - leading: const Icon(Icons.explore), - title: Text(e), - ), - ), - ] - ], - ), - ), - actions: [PopButton(popText: context.l10n!.close)], - ); - } -} diff --git a/lib/src/features/settings/presentation/browse/browse_settings_screen.dart b/lib/src/features/settings/presentation/browse/browse_settings_screen.dart index b5550d92..c18335bb 100644 --- a/lib/src/features/settings/presentation/browse/browse_settings_screen.dart +++ b/lib/src/features/settings/presentation/browse/browse_settings_screen.dart @@ -15,12 +15,12 @@ class BrowseSettingsScreen extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( - appBar: AppBar(title: Text(context.l10n!.browse)), + appBar: AppBar(title: Text(context.l10n.browse)), body: ListView( children: [ const ShowNSFWTile(), ListTile( - subtitle: Text(context.l10n!.nsfwInfo), + subtitle: Text(context.l10n.nsfwInfo), leading: const Icon(Icons.info_rounded), dense: true, ), diff --git a/lib/src/features/settings/presentation/browse/widgets/show_nsfw_switch/show_nsfw_switch.dart b/lib/src/features/settings/presentation/browse/widgets/show_nsfw_switch/show_nsfw_switch.dart index 24f38b21..8a510ab2 100644 --- a/lib/src/features/settings/presentation/browse/widgets/show_nsfw_switch/show_nsfw_switch.dart +++ b/lib/src/features/settings/presentation/browse/widgets/show_nsfw_switch/show_nsfw_switch.dart @@ -28,7 +28,7 @@ class ShowNSFWTile extends ConsumerWidget { controlAffinity: ListTileControlAffinity.trailing, secondary: const Icon(Icons.eighteen_up_rating_rounded), title: Text( - context.l10n!.nsfw, + context.l10n.nsfw, ), onChanged: ref.read(showNSFWProvider.notifier).update, value: ref.watch(showNSFWProvider).ifNull(), diff --git a/lib/src/features/settings/presentation/general/general_screen.dart b/lib/src/features/settings/presentation/general/general_screen.dart index 4f2d46bd..690ba555 100644 --- a/lib/src/features/settings/presentation/general/general_screen.dart +++ b/lib/src/features/settings/presentation/general/general_screen.dart @@ -13,7 +13,7 @@ import '../../../../constants/language_list.dart'; import '../../../../global_providers/global_providers.dart'; import '../../../../utils/extensions/custom_extensions.dart'; import '../../../../utils/misc/toast/toast.dart'; -import '../../../../widgets/radio_list_popup.dart'; +import '../../../../widgets/popup_widgets/radio_list_popup.dart'; import 'quick_search_toggle/quick_search_toggle_tile.dart'; class GeneralScreen extends ConsumerWidget { @@ -22,17 +22,17 @@ class GeneralScreen extends ConsumerWidget { @override Widget build(BuildContext context, WidgetRef ref) { return Scaffold( - appBar: AppBar(title: Text(context.l10n!.general)), + appBar: AppBar(title: Text(context.l10n.general)), body: ListView( children: [ ListTile( leading: const Icon(Icons.translate_rounded), - title: Text(context.l10n!.appLanguage), + title: Text(context.l10n.appLanguage), subtitle: Text(getLanguageNameFormLocale(context.currentLocale)), onTap: () => showDialog( context: context, builder: (context) => RadioListPopup( - title: context.l10n!.appLanguage, + title: context.l10n.appLanguage, optionList: AppLocalizations.supportedLocales, value: context.currentLocale, onChange: (locale) { @@ -46,14 +46,14 @@ class GeneralScreen extends ConsumerWidget { ), ListTile( leading: const Icon(Icons.cleaning_services_rounded), - title: Text(context.l10n!.clearCache), + title: Text(context.l10n.clearCache), onTap: () async { await ref.watch(hiveCacheStoreProvider).clean(); DefaultCacheManager().emptyCache(); if (context.mounted) { ref .read(toastProvider(context)) - .show(context.l10n!.cacheCleared); + .show(context.l10n.cacheCleared); } }, ), diff --git a/lib/src/features/settings/presentation/general/quick_search_toggle/quick_search_toggle_tile.dart b/lib/src/features/settings/presentation/general/quick_search_toggle/quick_search_toggle_tile.dart index e1c76583..bd112e25 100644 --- a/lib/src/features/settings/presentation/general/quick_search_toggle/quick_search_toggle_tile.dart +++ b/lib/src/features/settings/presentation/general/quick_search_toggle/quick_search_toggle_tile.dart @@ -28,7 +28,7 @@ class QuickSearchToggleTile extends HookConsumerWidget { return SwitchListTile( controlAffinity: ListTileControlAffinity.trailing, secondary: const Icon(Icons.search_rounded), - title: Text(context.l10n!.quickSearch), + title: Text(context.l10n.quickSearch), onChanged: ref.read(quickSearchToggleProvider.notifier).update, value: ref.watch(quickSearchToggleProvider).ifNull(), ); diff --git a/lib/src/features/settings/presentation/library/library_settings_screen.dart b/lib/src/features/settings/presentation/library/library_settings_screen.dart index 047b32c0..9a0aee2c 100644 --- a/lib/src/features/settings/presentation/library/library_settings_screen.dart +++ b/lib/src/features/settings/presentation/library/library_settings_screen.dart @@ -16,12 +16,12 @@ class LibrarySettingsScreen extends StatelessWidget { Widget build(BuildContext context) { return Scaffold( appBar: AppBar( - title: Text(context.l10n!.library), + title: Text(context.l10n.library), ), body: ListView( children: [ ListTile( - title: Text(context.l10n!.categories), + title: Text(context.l10n.categories), leading: const Icon(Icons.label_rounded), onTap: () => const EditCategoriesRoute().push(context), ), diff --git a/lib/src/features/settings/presentation/more/more_screen.dart b/lib/src/features/settings/presentation/more/more_screen.dart index aeb4f91d..ff389a68 100644 --- a/lib/src/features/settings/presentation/more/more_screen.dart +++ b/lib/src/features/settings/presentation/more/more_screen.dart @@ -23,7 +23,7 @@ class MoreScreen extends ConsumerWidget { Widget build(BuildContext context, WidgetRef ref) { return Scaffold( appBar: AppBar( - title: Text(context.l10n!.more), + title: Text(context.l10n.more), ), body: ListView( children: [ @@ -34,29 +34,29 @@ class MoreScreen extends ConsumerWidget { const Divider(), const ServerUrlTile(), ListTile( - title: Text(context.l10n!.categories), + title: Text(context.l10n.categories), leading: const Icon(Icons.label_rounded), onTap: () => const EditCategoriesRoute().push(context), ), const AppThemeModeTile(), ListTile( - title: Text(context.l10n!.backup), + title: Text(context.l10n.backup), leading: const Icon(Icons.settings_backup_restore_rounded), onTap: () => const BackupRoute().push(context), ), const Divider(), ListTile( - title: Text(context.l10n!.settings), + title: Text(context.l10n.settings), leading: const Icon(Icons.settings_rounded), onTap: () => const SettingsRoute().push(context), ), ListTile( - title: Text(context.l10n!.about), + title: Text(context.l10n.about), leading: const Icon(Icons.info_rounded), onTap: () => const AboutRoute().push(context), ), ListTile( - title: Text(context.l10n!.help), + title: Text(context.l10n.help), leading: const Icon(Icons.help_rounded), onTap: () => launchUrlInWeb( context, diff --git a/lib/src/features/settings/presentation/reader/reader_settings_screen.dart b/lib/src/features/settings/presentation/reader/reader_settings_screen.dart index 374386d4..b0fe87b0 100644 --- a/lib/src/features/settings/presentation/reader/reader_settings_screen.dart +++ b/lib/src/features/settings/presentation/reader/reader_settings_screen.dart @@ -31,7 +31,7 @@ class ReaderSettingsScreen extends ConsumerWidget { Widget build(BuildContext context, WidgetRef ref) { final isVolumeTapEnabled = ref.watch(volumeTapProvider).ifNull(); return Scaffold( - appBar: AppBar(title: Text(context.l10n!.reader)), + appBar: AppBar(title: Text(context.l10n.reader)), body: ListView( children: [ const ReaderModeTile(), diff --git a/lib/src/features/settings/presentation/reader/widgets/reader_initial_overlay_tile/reader_initial_overlay_tile.dart b/lib/src/features/settings/presentation/reader/widgets/reader_initial_overlay_tile/reader_initial_overlay_tile.dart index 0875d9c9..e0b83a79 100644 --- a/lib/src/features/settings/presentation/reader/widgets/reader_initial_overlay_tile/reader_initial_overlay_tile.dart +++ b/lib/src/features/settings/presentation/reader/widgets/reader_initial_overlay_tile/reader_initial_overlay_tile.dart @@ -28,8 +28,8 @@ class ReaderInitialOverlayTile extends HookConsumerWidget { return SwitchListTile( controlAffinity: ListTileControlAffinity.trailing, secondary: const Icon(Icons.layers_outlined), - title: Text(context.l10n!.readerOverlay), - subtitle: Text(context.l10n!.readerOverlaySubtitle), + title: Text(context.l10n.readerOverlay), + subtitle: Text(context.l10n.readerOverlaySubtitle), onChanged: ref.read(readerInitialOverlayProvider.notifier).update, value: ref.watch(readerInitialOverlayProvider).ifNull(), ); diff --git a/lib/src/features/settings/presentation/reader/widgets/reader_invert_tap_tile/reader_invert_tap_tile.dart b/lib/src/features/settings/presentation/reader/widgets/reader_invert_tap_tile/reader_invert_tap_tile.dart index fd09f8ff..dd0ab05a 100644 --- a/lib/src/features/settings/presentation/reader/widgets/reader_invert_tap_tile/reader_invert_tap_tile.dart +++ b/lib/src/features/settings/presentation/reader/widgets/reader_invert_tap_tile/reader_invert_tap_tile.dart @@ -27,7 +27,7 @@ class ReaderInvertTapTile extends HookConsumerWidget { return SwitchListTile( controlAffinity: ListTileControlAffinity.trailing, secondary: const Icon(Icons.switch_left_rounded), - title: Text(context.l10n!.readerNavigationLayoutInvert), + title: Text(context.l10n.readerNavigationLayoutInvert), onChanged: ref.read(invertTapProvider.notifier).update, value: ref.watch(invertTapProvider).ifNull(), ); diff --git a/lib/src/features/settings/presentation/reader/widgets/reader_magnifier_size_slider/reader_magnifier_size_slider.dart b/lib/src/features/settings/presentation/reader/widgets/reader_magnifier_size_slider/reader_magnifier_size_slider.dart index ee81bacb..1f2c7334 100644 --- a/lib/src/features/settings/presentation/reader/widgets/reader_magnifier_size_slider/reader_magnifier_size_slider.dart +++ b/lib/src/features/settings/presentation/reader/widgets/reader_magnifier_size_slider/reader_magnifier_size_slider.dart @@ -36,7 +36,7 @@ class ReaderMagnifierSizeSlider extends ConsumerWidget { DBKeys.readerMagnifierSize.initial; return SliderSettingTile( icon: Icons.search, - title: context.l10n!.readerMagnifierSize, + title: context.l10n.readerMagnifierSize, value: readerMagnifierSize, getSliderLabel: (val) => val.toStringAsFixed(2), onChanged: ref.read(readerMagnifierSizeKeyProvider.notifier).update, @@ -78,7 +78,7 @@ class AsyncReaderMagnifierSizeSlider extends HookConsumerWidget { ); return SliderSettingTile( icon: Icons.search, - title: context.l10n!.readerMagnifierSize, + title: context.l10n.readerMagnifierSize, value: readerMagnifierSize.value, getSliderLabel: (val) => val.toStringAsFixed(2), onChanged: onDebounceChanged, diff --git a/lib/src/features/settings/presentation/reader/widgets/reader_mode_tile/reader_mode_tile.dart b/lib/src/features/settings/presentation/reader/widgets/reader_mode_tile/reader_mode_tile.dart index 454133bd..61301551 100644 --- a/lib/src/features/settings/presentation/reader/widgets/reader_mode_tile/reader_mode_tile.dart +++ b/lib/src/features/settings/presentation/reader/widgets/reader_mode_tile/reader_mode_tile.dart @@ -12,7 +12,7 @@ import '../../../../../../constants/db_keys.dart'; import '../../../../../../constants/enum.dart'; import '../../../../../../utils/extensions/custom_extensions.dart'; import '../../../../../../utils/mixin/shared_preferences_client_mixin.dart'; -import '../../../../../../widgets/radio_list_popup.dart'; +import '../../../../../../widgets/popup_widgets/radio_list_popup.dart'; part 'reader_mode_tile.g.dart'; @@ -33,11 +33,11 @@ class ReaderModeTile extends ConsumerWidget { return ListTile( leading: const Icon(Icons.app_settings_alt_rounded), subtitle: readerMode != null ? Text(readerMode.toLocale(context)) : null, - title: Text(context.l10n!.readerMode), + title: Text(context.l10n.readerMode), onTap: () => showDialog( context: context, builder: (context) => RadioListPopup( - title: context.l10n!.readerMode, + title: context.l10n.readerMode, optionList: ReaderMode.values.sublist(1), getOptionTitle: (value) => value.toLocale(context), value: readerMode ?? ReaderMode.webtoon, diff --git a/lib/src/features/settings/presentation/reader/widgets/reader_navigation_layout_tile/reader_navigation_layout_tile.dart b/lib/src/features/settings/presentation/reader/widgets/reader_navigation_layout_tile/reader_navigation_layout_tile.dart index 659e3488..cb5704ca 100644 --- a/lib/src/features/settings/presentation/reader/widgets/reader_navigation_layout_tile/reader_navigation_layout_tile.dart +++ b/lib/src/features/settings/presentation/reader/widgets/reader_navigation_layout_tile/reader_navigation_layout_tile.dart @@ -12,7 +12,7 @@ import '../../../../../../constants/db_keys.dart'; import '../../../../../../constants/enum.dart'; import '../../../../../../utils/extensions/custom_extensions.dart'; import '../../../../../../utils/mixin/shared_preferences_client_mixin.dart'; -import '../../../../../../widgets/radio_list_popup.dart'; +import '../../../../../../widgets/popup_widgets/radio_list_popup.dart'; part 'reader_navigation_layout_tile.g.dart'; @@ -37,11 +37,11 @@ class ReaderNavigationLayoutTile extends ConsumerWidget { subtitle: readerNavigationLayout != null ? Text(readerNavigationLayout.toLocale(context)) : null, - title: Text(context.l10n!.readerNavigationLayout), + title: Text(context.l10n.readerNavigationLayout), onTap: () => showDialog( context: context, builder: (context) => RadioListPopup( - title: context.l10n!.readerNavigationLayout, + title: context.l10n.readerNavigationLayout, optionList: ReaderNavigationLayout.values.sublist(1), getOptionTitle: (value) => value.toLocale(context), value: readerNavigationLayout ?? ReaderNavigationLayout.disabled, diff --git a/lib/src/features/settings/presentation/reader/widgets/reader_padding_slider/reader_padding_slider.dart b/lib/src/features/settings/presentation/reader/widgets/reader_padding_slider/reader_padding_slider.dart index d292e7fb..62ffec6c 100644 --- a/lib/src/features/settings/presentation/reader/widgets/reader_padding_slider/reader_padding_slider.dart +++ b/lib/src/features/settings/presentation/reader/widgets/reader_padding_slider/reader_padding_slider.dart @@ -35,7 +35,7 @@ class ReaderPaddingSlider extends ConsumerWidget { ref.watch(readerPaddingKeyProvider) ?? DBKeys.readerPadding.initial; return SliderSettingTile( icon: Icons.width_wide_rounded, - title: context.l10n!.readerPadding, + title: context.l10n.readerPadding, value: readerPadding, getSliderLabel: (val) => (val * 2.5).toStringAsFixed(2), onChanged: ref.read(readerPaddingKeyProvider.notifier).update, @@ -77,7 +77,7 @@ class AsyncReaderPaddingSlider extends HookConsumerWidget { ); return SliderSettingTile( icon: Icons.width_wide_rounded, - title: context.l10n!.readerPadding, + title: context.l10n.readerPadding, value: readerPadding.value, getSliderLabel: (val) => (val * 2.5).toStringAsFixed(2), onChanged: onDebounceChanged, diff --git a/lib/src/features/settings/presentation/reader/widgets/reader_pinch_to_zoom/reader_pinch_to_zoom.dart b/lib/src/features/settings/presentation/reader/widgets/reader_pinch_to_zoom/reader_pinch_to_zoom.dart index 9c2cd2f3..8e7bf369 100644 --- a/lib/src/features/settings/presentation/reader/widgets/reader_pinch_to_zoom/reader_pinch_to_zoom.dart +++ b/lib/src/features/settings/presentation/reader/widgets/reader_pinch_to_zoom/reader_pinch_to_zoom.dart @@ -26,7 +26,7 @@ class ReaderPinchToZoom extends HookConsumerWidget { return SwitchListTile( controlAffinity: ListTileControlAffinity.trailing, secondary: const Icon(Icons.pinch_rounded), - title: Text(context.l10n!.pinchToZoom), + title: Text(context.l10n.pinchToZoom), onChanged: ref.read(pinchToZoomProvider.notifier).update, value: ref.watch(pinchToZoomProvider).ifNull(), ); diff --git a/lib/src/features/settings/presentation/reader/widgets/reader_scroll_animation_tile/reader_scroll_animation_tile.dart b/lib/src/features/settings/presentation/reader/widgets/reader_scroll_animation_tile/reader_scroll_animation_tile.dart index c1bda741..6cb8aa5f 100644 --- a/lib/src/features/settings/presentation/reader/widgets/reader_scroll_animation_tile/reader_scroll_animation_tile.dart +++ b/lib/src/features/settings/presentation/reader/widgets/reader_scroll_animation_tile/reader_scroll_animation_tile.dart @@ -28,7 +28,7 @@ class ReaderScrollAnimationTile extends HookConsumerWidget { return SwitchListTile( controlAffinity: ListTileControlAffinity.trailing, secondary: const Icon(Icons.animation_rounded), - title: Text(context.l10n!.readerScrollAnimation), + title: Text(context.l10n.readerScrollAnimation), onChanged: ref.read(readerScrollAnimationProvider.notifier).update, value: ref.watch(readerScrollAnimationProvider).ifNull(), ); diff --git a/lib/src/features/settings/presentation/reader/widgets/reader_swipe_toggle_tile/reader_swipe_chapter_toggle_tile.dart b/lib/src/features/settings/presentation/reader/widgets/reader_swipe_toggle_tile/reader_swipe_chapter_toggle_tile.dart index 75b19575..169128bb 100644 --- a/lib/src/features/settings/presentation/reader/widgets/reader_swipe_toggle_tile/reader_swipe_chapter_toggle_tile.dart +++ b/lib/src/features/settings/presentation/reader/widgets/reader_swipe_toggle_tile/reader_swipe_chapter_toggle_tile.dart @@ -28,8 +28,8 @@ class SwipeChapterToggleTile extends HookConsumerWidget { return SwitchListTile( controlAffinity: ListTileControlAffinity.trailing, secondary: const Icon(Icons.swipe_rounded), - title: Text(context.l10n!.readerSwipeChapterToggle), - subtitle: Text(context.l10n!.readerSwipeChapterToggleDescription), + title: Text(context.l10n.readerSwipeChapterToggle), + subtitle: Text(context.l10n.readerSwipeChapterToggleDescription), onChanged: ref.read(swipeChapterToggleProvider.notifier).update, value: ref.watch(swipeChapterToggleProvider).ifNull(), ); diff --git a/lib/src/features/settings/presentation/reader/widgets/reader_volume_tap_invert_tile/reader_volume_tap_invert_tile.dart b/lib/src/features/settings/presentation/reader/widgets/reader_volume_tap_invert_tile/reader_volume_tap_invert_tile.dart index d2e00afb..91f1f7d4 100644 --- a/lib/src/features/settings/presentation/reader/widgets/reader_volume_tap_invert_tile/reader_volume_tap_invert_tile.dart +++ b/lib/src/features/settings/presentation/reader/widgets/reader_volume_tap_invert_tile/reader_volume_tap_invert_tile.dart @@ -32,7 +32,7 @@ class ReaderVolumeTapInvertTile extends HookConsumerWidget { angle: -math.pi / 2, child: const Icon(Icons.switch_left_rounded), ), - title: Text(context.l10n!.readerVolumeTapInvert), + title: Text(context.l10n.readerVolumeTapInvert), onChanged: ref.read(volumeTapInvertProvider.notifier).update, value: ref.watch(volumeTapInvertProvider).ifNull(), ); diff --git a/lib/src/features/settings/presentation/reader/widgets/reader_volume_tap_tile/reader_volume_tap_tile.dart b/lib/src/features/settings/presentation/reader/widgets/reader_volume_tap_tile/reader_volume_tap_tile.dart index 892aca33..ca286de5 100644 --- a/lib/src/features/settings/presentation/reader/widgets/reader_volume_tap_tile/reader_volume_tap_tile.dart +++ b/lib/src/features/settings/presentation/reader/widgets/reader_volume_tap_tile/reader_volume_tap_tile.dart @@ -31,8 +31,8 @@ class ReaderVolumeTapTile extends HookConsumerWidget { angle: math.pi / 2, child: const Icon(Icons.switch_left_rounded), ), - title: Text(context.l10n!.readerVolumeTap), - subtitle: Text(context.l10n!.readerVolumeTapSubtitle), + title: Text(context.l10n.readerVolumeTap), + subtitle: Text(context.l10n.readerVolumeTapSubtitle), onChanged: ref.read(volumeTapProvider.notifier).update, value: ref.watch(volumeTapProvider).ifNull(), ); diff --git a/lib/src/features/settings/presentation/server/server_screen.dart b/lib/src/features/settings/presentation/server/server_screen.dart index 2e5fb366..0a606929 100644 --- a/lib/src/features/settings/presentation/server/server_screen.dart +++ b/lib/src/features/settings/presentation/server/server_screen.dart @@ -27,7 +27,7 @@ class ServerScreen extends ConsumerWidget { final authType = ref.watch(authTypeKeyProvider); return Scaffold( appBar: AppBar( - title: Text(context.l10n!.server), + title: Text(context.l10n.server), ), body: ListView( children: [ @@ -37,7 +37,7 @@ class ServerScreen extends ConsumerWidget { if (authType != null && authType != AuthType.none) ListTile( leading: const Icon(Icons.password_rounded), - title: Text(context.l10n!.credentials), + title: Text(context.l10n.credentials), onTap: () { showDialog( context: context, @@ -48,7 +48,7 @@ class ServerScreen extends ConsumerWidget { if (!kIsWeb) ListTile( leading: const Icon(Icons.web_rounded), - title: Text(context.l10n!.webUI), + title: Text(context.l10n.webUI), onTap: () { final url = Endpoints.baseApi( baseUrl: ref.read(serverUrlProvider), diff --git a/lib/src/features/settings/presentation/server/widget/auth_type_tile.dart b/lib/src/features/settings/presentation/server/widget/auth_type_tile.dart index adef0cdb..f753d74b 100644 --- a/lib/src/features/settings/presentation/server/widget/auth_type_tile.dart +++ b/lib/src/features/settings/presentation/server/widget/auth_type_tile.dart @@ -10,7 +10,7 @@ import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../../constants/enum.dart'; import '../../../../../global_providers/global_providers.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; -import '../../../../../widgets/radio_list_popup.dart'; +import '../../../../../widgets/popup_widgets/radio_list_popup.dart'; class AuthTypeTile extends ConsumerWidget { const AuthTypeTile({super.key}); @@ -22,11 +22,11 @@ class AuthTypeTile extends ConsumerWidget { return ListTile( leading: const Icon(Icons.security_rounded), subtitle: authType != null ? Text(authType.toLocale(context)) : null, - title: Text(context.l10n!.authType), + title: Text(context.l10n.authType), onTap: () => showDialog( context: context, builder: (context) => RadioListPopup( - title: context.l10n!.authType, + title: context.l10n.authType, optionList: AuthType.values, getOptionTitle: (value) => value.toLocale(context), value: authType ?? AuthType.none, diff --git a/lib/src/features/settings/presentation/server/widget/credential_popup/credentials_popup.dart b/lib/src/features/settings/presentation/server/widget/credential_popup/credentials_popup.dart index 7d065e37..88a14f7b 100644 --- a/lib/src/features/settings/presentation/server/widget/credential_popup/credentials_popup.dart +++ b/lib/src/features/settings/presentation/server/widget/credential_popup/credentials_popup.dart @@ -15,7 +15,7 @@ import 'package:riverpod_annotation/riverpod_annotation.dart'; import '../../../../../../constants/db_keys.dart'; import '../../../../../../utils/extensions/custom_extensions.dart'; import '../../../../../../utils/mixin/shared_preferences_client_mixin.dart'; -import '../../../../../../widgets/pop_button.dart'; +import '../../../../../../widgets/popup_widgets/pop_button.dart'; part 'credentials_popup.g.dart'; @@ -44,7 +44,7 @@ class CredentialsPopup extends HookConsumerWidget { final username = useTextEditingController(); final password = useTextEditingController(); return AlertDialog( - title: Text(context.l10n!.credentials), + title: Text(context.l10n.credentials), content: Form( key: formKey, child: Column( @@ -53,9 +53,9 @@ class CredentialsPopup extends HookConsumerWidget { TextFormField( controller: username, validator: (value) => - value.isBlank ? (context.l10n!.errorUserName) : null, + value.isBlank ? (context.l10n.errorUserName) : null, decoration: InputDecoration( - hintText: context.l10n!.userName, + hintText: context.l10n.userName, border: const OutlineInputBorder(), ), ), @@ -63,10 +63,10 @@ class CredentialsPopup extends HookConsumerWidget { TextFormField( controller: password, validator: (value) => - value.isBlank ? (context.l10n!.errorPassword) : null, + value.isBlank ? (context.l10n.errorPassword) : null, obscureText: true, decoration: InputDecoration( - hintText: context.l10n!.password, + hintText: context.l10n.password, border: const OutlineInputBorder(), ), ), @@ -87,7 +87,7 @@ class CredentialsPopup extends HookConsumerWidget { Navigator.pop(context); } }, - child: Text(context.l10n!.save), + child: Text(context.l10n.save), ), ], ); diff --git a/lib/src/features/settings/presentation/settings/settings_screen.dart b/lib/src/features/settings/presentation/settings/settings_screen.dart index 372b74b7..1009558a 100644 --- a/lib/src/features/settings/presentation/settings/settings_screen.dart +++ b/lib/src/features/settings/presentation/settings/settings_screen.dart @@ -16,42 +16,42 @@ class SettingsScreen extends StatelessWidget { Widget build(BuildContext context) { return Scaffold( appBar: AppBar( - title: Text(context.l10n!.settings), + title: Text(context.l10n.settings), ), body: ListView( children: [ ListTile( - title: Text(context.l10n!.general), + title: Text(context.l10n.general), leading: const Icon(Icons.tune_rounded), onTap: () => const GeneralSettingsRoute().push(context), ), ListTile( - title: Text(context.l10n!.appearance), + title: Text(context.l10n.appearance), leading: const Icon(Icons.color_lens_rounded), onTap: () => const AppearanceSettingsRoute().push(context), ), ListTile( - title: Text(context.l10n!.library), + title: Text(context.l10n.library), leading: const Icon(Icons.collections_bookmark_rounded), onTap: () => const LibrarySettingsRoute().push(context), ), ListTile( - title: Text(context.l10n!.reader), + title: Text(context.l10n.reader), leading: const Icon(Icons.chrome_reader_mode_rounded), onTap: () => const ReaderSettingsRoute().push(context), ), ListTile( - title: Text(context.l10n!.browse), + title: Text(context.l10n.browse), leading: const Icon(Icons.explore_rounded), onTap: () => const BrowseSettingsRoute().push(context), ), ListTile( - title: Text(context.l10n!.backup), + title: Text(context.l10n.backup), leading: const Icon(Icons.settings_backup_restore_rounded), onTap: () => const BackupRoute().push(context), ), ListTile( - title: Text(context.l10n!.server), + title: Text(context.l10n.server), leading: const Icon(Icons.computer_rounded), onTap: () => const ServerSettingsRoute().push(context), ), diff --git a/lib/src/features/settings/widgets/app_theme_mode_tile/app_theme_mode_tile.dart b/lib/src/features/settings/widgets/app_theme_mode_tile/app_theme_mode_tile.dart index c5a514e0..26e17f7c 100644 --- a/lib/src/features/settings/widgets/app_theme_mode_tile/app_theme_mode_tile.dart +++ b/lib/src/features/settings/widgets/app_theme_mode_tile/app_theme_mode_tile.dart @@ -11,7 +11,7 @@ import 'package:riverpod_annotation/riverpod_annotation.dart'; import '../../../../constants/db_keys.dart'; import '../../../../utils/extensions/custom_extensions.dart'; import '../../../../utils/mixin/shared_preferences_client_mixin.dart'; -import '../../../../widgets/radio_list_popup.dart'; +import '../../../../widgets/popup_widgets/radio_list_popup.dart'; part 'app_theme_mode_tile.g.dart'; @@ -27,9 +27,9 @@ class AppThemeMode extends _$AppThemeMode extension ThemeModeExtension on ThemeMode { String toLocale(BuildContext context) => switch (this) { - ThemeMode.system => context.l10n!.themeModeSystem, - ThemeMode.light => context.l10n!.themeModeLight, - ThemeMode.dark => context.l10n!.themeModeDark + ThemeMode.system => context.l10n.themeModeSystem, + ThemeMode.light => context.l10n.themeModeLight, + ThemeMode.dark => context.l10n.themeModeDark }; } @@ -44,11 +44,11 @@ class AppThemeModeTile extends ConsumerWidget { context.isDarkMode ? Icons.dark_mode_rounded : Icons.light_mode_rounded, ), subtitle: themeMode != null ? Text(themeMode.toLocale(context)) : null, - title: Text(context.l10n!.appTheme), + title: Text(context.l10n.appTheme), onTap: () => showDialog( context: context, builder: (context) => RadioListPopup( - title: context.l10n!.appTheme, + title: context.l10n.appTheme, optionList: ThemeMode.values, value: themeMode ?? ThemeMode.system, getOptionTitle: (value) => value.toLocale(context), diff --git a/lib/src/features/settings/widgets/server_port_tile/server_port_tile.dart b/lib/src/features/settings/widgets/server_port_tile/server_port_tile.dart index 3b249c56..52df4c82 100644 --- a/lib/src/features/settings/widgets/server_port_tile/server_port_tile.dart +++ b/lib/src/features/settings/widgets/server_port_tile/server_port_tile.dart @@ -14,7 +14,7 @@ import 'package:riverpod_annotation/riverpod_annotation.dart'; import '../../../../constants/db_keys.dart'; import '../../../../utils/extensions/custom_extensions.dart'; import '../../../../utils/mixin/shared_preferences_client_mixin.dart'; -import '../../../../widgets/pop_button.dart'; +import '../../../../widgets/popup_widgets/pop_button.dart'; part 'server_port_tile.g.dart'; @@ -43,7 +43,7 @@ class ServerPortTile extends ConsumerWidget { final serverToggle = ref.watch(serverPortToggleProvider).ifNull(); return ListTile( leading: const Icon(Icons.dns_rounded), - title: Text(context.l10n!.serverPort), + title: Text(context.l10n.serverPort), subtitle: (serverToggle && serverPort != null) ? (Text(serverPort.toString())) : null, @@ -80,7 +80,7 @@ class ServerPortField extends HookConsumerWidget { text: (initialPort ?? '').toString(), ); return AlertDialog( - title: Text(context.l10n!.serverPort), + title: Text(context.l10n.serverPort), content: TextField( autofocus: true, controller: controller, @@ -94,7 +94,7 @@ class ServerPortField extends HookConsumerWidget { decoration: InputDecoration( counter: const SizedBox.shrink(), border: const OutlineInputBorder(), - hintText: (context.l10n!.serverPortHintText), + hintText: (context.l10n.serverPortHintText), ), ), actions: [ @@ -104,7 +104,7 @@ class ServerPortField extends HookConsumerWidget { _update(int.tryParse(controller.text), ref); Navigator.pop(context); }, - child: Text(context.l10n!.save), + child: Text(context.l10n.save), ), ], ); diff --git a/lib/src/features/settings/widgets/server_url_tile/server_search_button.dart b/lib/src/features/settings/widgets/server_url_tile/server_search_button.dart index 99b88a60..7bd3bc1e 100644 --- a/lib/src/features/settings/widgets/server_url_tile/server_search_button.dart +++ b/lib/src/features/settings/widgets/server_url_tile/server_search_button.dart @@ -78,12 +78,12 @@ class ServerSearchButton extends ConsumerWidget { if (context.mounted) { ref .watch(toastProvider(context)) - .showError(context.l10n!.noServerFound); + .showError(context.l10n.noServerFound); } } } : null, - child: Text(context.l10n!.findServer), + child: Text(context.l10n.findServer), ); } } diff --git a/lib/src/features/settings/widgets/server_url_tile/server_url_tile.dart b/lib/src/features/settings/widgets/server_url_tile/server_url_tile.dart index 3d4668e9..6f861602 100644 --- a/lib/src/features/settings/widgets/server_url_tile/server_url_tile.dart +++ b/lib/src/features/settings/widgets/server_url_tile/server_url_tile.dart @@ -13,7 +13,7 @@ import 'package:riverpod_annotation/riverpod_annotation.dart'; import '../../../../constants/db_keys.dart'; import '../../../../utils/extensions/custom_extensions.dart'; import '../../../../utils/mixin/shared_preferences_client_mixin.dart'; -import '../../../../widgets/pop_button.dart'; +import '../../../../widgets/popup_widgets/pop_button.dart'; import 'server_search_button.dart'; part 'server_url_tile.g.dart'; @@ -35,7 +35,7 @@ class ServerUrlTile extends ConsumerWidget { final serverUrl = ref.watch(serverUrlProvider); return ListTile( leading: const Icon(Icons.computer_rounded), - title: Text(context.l10n!.serverUrl), + title: Text(context.l10n.serverUrl), subtitle: (serverUrl.isNotBlank) ? Text(serverUrl!) : null, trailing: !kIsWeb ? (const ServerSearchButton()) : null, onTap: () => showDialog( @@ -62,7 +62,7 @@ class ServerUrlField extends HookConsumerWidget { Widget build(BuildContext context, WidgetRef ref) { final controller = useTextEditingController(text: initialUrl); return AlertDialog( - title: Text(context.l10n!.serverUrl), + title: Text(context.l10n.serverUrl), content: TextField( autofocus: true, controller: controller, @@ -72,7 +72,7 @@ class ServerUrlField extends HookConsumerWidget { }, decoration: InputDecoration( border: const OutlineInputBorder(), - hintText: (context.l10n!.serverUrlHintText), + hintText: (context.l10n.serverUrlHintText), ), ), actions: [ @@ -82,7 +82,7 @@ class ServerUrlField extends HookConsumerWidget { _update(controller.text, ref); Navigator.pop(context); }, - child: Text(context.l10n!.save), + child: Text(context.l10n.save), ), ], ); diff --git a/lib/src/global_providers/global_providers.dart b/lib/src/global_providers/global_providers.dart index f51b87e9..715d0978 100644 --- a/lib/src/global_providers/global_providers.dart +++ b/lib/src/global_providers/global_providers.dart @@ -7,6 +7,8 @@ import 'dart:io'; import 'package:dio_cache_interceptor_hive_store/dio_cache_interceptor_hive_store.dart'; +import 'package:ferry/ferry.dart'; +import 'package:ferry_hive_store/ferry_hive_store.dart'; import 'package:flutter/material.dart'; import 'package:queue/queue.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; @@ -21,9 +23,22 @@ import '../utils/extensions/custom_extensions.dart'; import '../utils/mixin/shared_preferences_client_mixin.dart'; import '../utils/storage/dio/dio_client.dart'; import '../utils/storage/dio/network_module.dart'; +import '../utils/storage/ferry/network_module.dart'; part 'global_providers.g.dart'; +@riverpod +Client ferryClient(FerryClientRef ref) => + ref.watch(ferryNetworkModuleProvider).provideFerry( + baseUrl: ref.watch(serverUrlProvider) ?? DBKeys.serverUrl.initial, + port: ref.watch(serverPortProvider), + addPort: ref.watch(serverPortToggleProvider).ifNull(), + authType: ref.watch(authTypeKeyProvider) ?? DBKeys.authType.initial, + credentials: ref.watch(credentialsProvider), + hiveStore: ref.watch(hiveStoreProvider), + ); + +//TODO remove @riverpod DioClient dioClientKey(DioClientKeyRef ref) => DioClient( dio: ref.watch(networkModuleProvider).provideDio( @@ -72,13 +87,18 @@ class L10n extends _$L10n with SharedPreferenceClientMixin { @riverpod SharedPreferences sharedPreferences(ref) => throw UnimplementedError(); +//TODO remove @riverpod Directory? appDirectory(ref) => throw UnimplementedError(); +//TODO remove @riverpod HiveCacheStore hiveCacheStore(HiveCacheStoreRef ref) => HiveCacheStore(ref.watch(appDirectoryProvider)?.path); +@riverpod +HiveStore hiveStore(HiveStoreRef ref) => throw UnimplementedError(); + @riverpod Queue rateLimitQueue(RateLimitQueueRef ref, [String? query]) { final queue = Queue( diff --git a/lib/src/global_providers/global_providers.g.dart b/lib/src/global_providers/global_providers.g.dart index 8f316dfd..4e57600f 100644 --- a/lib/src/global_providers/global_providers.g.dart +++ b/lib/src/global_providers/global_providers.g.dart @@ -6,6 +6,20 @@ part of 'global_providers.dart'; // RiverpodGenerator // ************************************************************************** +String _$ferryClientHash() => r'15d9a64bdd3335f267ef28373a11ba2797a12cb6'; + +/// See also [ferryClient]. +@ProviderFor(ferryClient) +final ferryClientProvider = AutoDisposeProvider.internal( + ferryClient, + name: r'ferryClientProvider', + debugGetCreateSourceHash: + const bool.fromEnvironment('dart.vm.product') ? null : _$ferryClientHash, + dependencies: null, + allTransitiveDependencies: null, +); + +typedef FerryClientRef = AutoDisposeProviderRef; String _$dioClientKeyHash() => r'3c0bdf6561be103898cbba24855ca355c5dfba6b'; /// See also [dioClientKey]. @@ -65,6 +79,20 @@ final hiveCacheStoreProvider = AutoDisposeProvider.internal( ); typedef HiveCacheStoreRef = AutoDisposeProviderRef; +String _$hiveStoreHash() => r'8e3e2d81f8637373355ffb847cd35454af86a595'; + +/// See also [hiveStore]. +@ProviderFor(hiveStore) +final hiveStoreProvider = AutoDisposeProvider.internal( + hiveStore, + name: r'hiveStoreProvider', + debugGetCreateSourceHash: + const bool.fromEnvironment('dart.vm.product') ? null : _$hiveStoreHash, + dependencies: null, + allTransitiveDependencies: null, +); + +typedef HiveStoreRef = AutoDisposeProviderRef; String _$rateLimitQueueHash() => r'160a82b2737ac46d9dabad1f6ae8f59bfdcb24ca'; /// Copied from Dart SDK diff --git a/lib/src/graphql/__generated__/schema.ast.gql.dart b/lib/src/graphql/__generated__/schema.ast.gql.dart new file mode 100644 index 00000000..12ec63e6 --- /dev/null +++ b/lib/src/graphql/__generated__/schema.ast.gql.dart @@ -0,0 +1,14282 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const specifiedBy = _i1.DirectiveDefinitionNode( + name: _i1.NameNode(value: 'specifiedBy'), + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'url'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + locations: [_i1.DirectiveLocation.scalar], + repeatable: false, +); +const AboutServerPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'AboutServerPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'buildTime'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'buildType'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'discord'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'github'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'revision'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'version'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + ], +); +const AboutWebUI = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'AboutWebUI'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'channel'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'tag'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + ], +); +const BackupRestoreState = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'BackupRestoreState'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'IDLE'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'SUCCESS'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'FAILURE'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'RESTORING_CATEGORIES'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'RESTORING_MANGA'), + directives: [], + ), + ], +); +const BackupRestoreStatus = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'BackupRestoreStatus'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'mangaProgress'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'state'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'BackupRestoreState'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'totalManga'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + ], +); +const BindTrackInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'BindTrackInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'mangaId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'remoteId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'trackerId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const BindTrackPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'BindTrackPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'trackRecord'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackRecordType'), + isNonNull: true, + ), + ), + ], +); +const BooleanFilterInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'BooleanFilterInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'distinctFrom'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'equalTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'greaterThan'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'greaterThanOrEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'in'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isNull'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lessThan'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lessThanOrEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notDistinctFrom'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notIn'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const CategoryConditionInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'CategoryConditionInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'default'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'order'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const CategoryEdge = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'CategoryEdge'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Edge'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'cursor'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'node'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryType'), + isNonNull: true, + ), + ), + ], +); +const CategoryFilterInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'CategoryFilterInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'and'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryFilterInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'default'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'BooleanFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IntFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'not'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'or'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryFilterInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'order'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IntFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const CategoryMetaType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'CategoryMetaType'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MetaType'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'categoryId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'value'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'category'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryType'), + isNonNull: true, + ), + ), + ], +); +const CategoryMetaTypeInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'CategoryMetaTypeInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'categoryId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'value'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const CategoryNodeList = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'CategoryNodeList'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'NodeList'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'edges'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryEdge'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'nodes'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'pageInfo'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'PageInfo'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'totalCount'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + ], +); +const CategoryOrderBy = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'CategoryOrderBy'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'ID'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'NAME'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'ORDER'), + directives: [], + ), + ], +); +const CategoryType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'CategoryType'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'default'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'includeInDownload'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IncludeOrExclude'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'includeInUpdate'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IncludeOrExclude'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'order'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'mangas'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaNodeList'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryMetaType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + ], +); +const ChapterConditionInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ChapterConditionInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'chapterNumber'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'fetchedAt'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isBookmarked'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isDownloaded'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isRead'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lastPageRead'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lastReadAt'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'mangaId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'pageCount'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'realUrl'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'scanlator'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'sourceOrder'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'uploadDate'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'url'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const ChapterEdge = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ChapterEdge'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Edge'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'cursor'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'node'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterType'), + isNonNull: true, + ), + ), + ], +); +const ChapterFilterInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ChapterFilterInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'and'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterFilterInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'chapterNumber'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'FloatFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'fetchedAt'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IntFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'inLibrary'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'BooleanFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isBookmarked'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'BooleanFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isDownloaded'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'BooleanFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isRead'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'BooleanFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lastPageRead'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IntFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lastReadAt'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'mangaId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IntFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'not'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'or'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterFilterInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'pageCount'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IntFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'realUrl'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'scanlator'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'sourceOrder'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IntFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'uploadDate'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'url'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const ChapterMetaType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ChapterMetaType'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MetaType'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'chapterId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'value'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'chapter'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterType'), + isNonNull: true, + ), + ), + ], +); +const ChapterMetaTypeInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ChapterMetaTypeInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'chapterId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'value'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const ChapterNodeList = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ChapterNodeList'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'NodeList'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'edges'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterEdge'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'nodes'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'pageInfo'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'PageInfo'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'totalCount'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + ], +); +const ChapterOrderBy = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'ChapterOrderBy'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'ID'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'SOURCE_ORDER'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'NAME'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'UPLOAD_DATE'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'CHAPTER_NUMBER'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'LAST_READ_AT'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'FETCHED_AT'), + directives: [], + ), + ], +); +const ChapterType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ChapterType'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'chapterNumber'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'fetchedAt'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'isBookmarked'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'isDownloaded'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'isRead'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'lastPageRead'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'lastReadAt'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'mangaId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'pageCount'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'realUrl'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'scanlator'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'sourceOrder'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'uploadDate'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'url'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'manga'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterMetaType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + ], +); +const CheckBoxFilter = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'CheckBoxFilter'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'default'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + ], +); +const CheckBoxPreference = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'CheckBoxPreference'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'currentValue'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'default'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'summary'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'title'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'visible'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + ], +); +const CheckForServerUpdatesPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'CheckForServerUpdatesPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'channel'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'tag'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'url'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + ], +); +const ClearCachedImagesInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ClearCachedImagesInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'cachedPages'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'cachedThumbnails'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'downloadedThumbnails'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const ClearCachedImagesPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ClearCachedImagesPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'cachedPages'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'cachedThumbnails'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'downloadedThumbnails'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + ], +); +const ClearDownloaderInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ClearDownloaderInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ) + ], +); +const ClearDownloaderPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ClearDownloaderPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'downloadStatus'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadStatus'), + isNonNull: true, + ), + ), + ], +); +const CreateBackupInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'CreateBackupInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'includeCategories'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'includeChapters'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const CreateBackupPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'CreateBackupPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'url'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + ], +); +const CreateCategoryInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'CreateCategoryInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'default'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'includeInDownload'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IncludeOrExclude'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'includeInUpdate'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IncludeOrExclude'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'order'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const CreateCategoryPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'CreateCategoryPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'category'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + ], +); +const Cursor = _i1.ScalarTypeDefinitionNode( + name: _i1.NameNode(value: 'Cursor'), + directives: [], +); +const DeleteCategoryInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DeleteCategoryInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'categoryId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const DeleteCategoryMetaInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DeleteCategoryMetaInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'categoryId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const DeleteCategoryMetaPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DeleteCategoryMetaPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'category'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryMetaType'), + isNonNull: false, + ), + ), + ], +); +const DeleteCategoryPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DeleteCategoryPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'category'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryType'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'mangas'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + ], +); +const DeleteChapterMetaInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DeleteChapterMetaInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'chapterId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const DeleteChapterMetaPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DeleteChapterMetaPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'chapter'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterMetaType'), + isNonNull: false, + ), + ), + ], +); +const DeleteDownloadedChapterInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DeleteDownloadedChapterInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const DeleteDownloadedChapterPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DeleteDownloadedChapterPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'chapters'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + ], +); +const DeleteDownloadedChaptersInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DeleteDownloadedChaptersInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'ids'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const DeleteDownloadedChaptersPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DeleteDownloadedChaptersPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'chapters'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + ], +); +const DeleteGlobalMetaInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DeleteGlobalMetaInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const DeleteGlobalMetaPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DeleteGlobalMetaPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'GlobalMetaType'), + isNonNull: false, + ), + ), + ], +); +const DeleteMangaMetaInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DeleteMangaMetaInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'mangaId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const DeleteMangaMetaPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DeleteMangaMetaPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'manga'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaMetaType'), + isNonNull: false, + ), + ), + ], +); +const DeleteSourceMetaInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DeleteSourceMetaInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'sourceId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const DeleteSourceMetaPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DeleteSourceMetaPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceMetaType'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'source'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceType'), + isNonNull: false, + ), + ), + ], +); +const DequeueChapterDownloadInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DequeueChapterDownloadInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const DequeueChapterDownloadPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DequeueChapterDownloadPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'downloadStatus'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadStatus'), + isNonNull: true, + ), + ), + ], +); +const DequeueChapterDownloadsInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DequeueChapterDownloadsInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'ids'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const DequeueChapterDownloadsPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DequeueChapterDownloadsPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'downloadStatus'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadStatus'), + isNonNull: true, + ), + ), + ], +); +const DoubleFilterInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DoubleFilterInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'distinctFrom'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'equalTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'greaterThan'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'greaterThanOrEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'in'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isNull'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lessThan'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lessThanOrEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notDistinctFrom'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notIn'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const DownloadEdge = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DownloadEdge'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Edge'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'cursor'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'node'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadType'), + isNonNull: true, + ), + ), + ], +); +const DownloaderState = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'DownloaderState'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'STARTED'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'STOPPED'), + directives: [], + ), + ], +); +const DownloadNodeList = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DownloadNodeList'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'NodeList'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'edges'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadEdge'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'nodes'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'pageInfo'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'PageInfo'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'totalCount'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + ], +); +const DownloadState = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'DownloadState'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'QUEUED'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'DOWNLOADING'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'FINISHED'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'ERROR'), + directives: [], + ), + ], +); +const DownloadStatus = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DownloadStatus'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'queue'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'state'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloaderState'), + isNonNull: true, + ), + ), + ], +); +const DownloadType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DownloadType'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'progress'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'state'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadState'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'tries'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'chapter'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'manga'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaType'), + isNonNull: true, + ), + ), + ], +); +const Edge = _i1.InterfaceTypeDefinitionNode( + name: _i1.NameNode(value: 'Edge'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'cursor'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'node'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Node'), + isNonNull: true, + ), + ), + ], +); +const EditTextPreference = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'EditTextPreference'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'currentValue'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'default'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'dialogMessage'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'dialogTitle'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'summary'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'text'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'title'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'visible'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + ], +); +const EnqueueChapterDownloadInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'EnqueueChapterDownloadInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const EnqueueChapterDownloadPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'EnqueueChapterDownloadPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'downloadStatus'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadStatus'), + isNonNull: true, + ), + ), + ], +); +const EnqueueChapterDownloadsInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'EnqueueChapterDownloadsInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'ids'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const EnqueueChapterDownloadsPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'EnqueueChapterDownloadsPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'downloadStatus'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadStatus'), + isNonNull: true, + ), + ), + ], +); +const ExtensionConditionInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ExtensionConditionInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'apkName'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'hasUpdate'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'iconUrl'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isInstalled'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isNsfw'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isObsolete'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lang'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'pkgName'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'repo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'versionCode'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'versionName'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const ExtensionEdge = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ExtensionEdge'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Edge'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'cursor'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'node'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionType'), + isNonNull: true, + ), + ), + ], +); +const ExtensionFilterInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ExtensionFilterInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'and'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionFilterInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'apkName'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'hasUpdate'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'BooleanFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'iconUrl'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isInstalled'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'BooleanFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isNsfw'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'BooleanFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isObsolete'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'BooleanFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lang'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'not'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'or'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionFilterInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'pkgName'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'repo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'versionCode'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IntFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'versionName'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const ExtensionNodeList = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ExtensionNodeList'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'NodeList'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'edges'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionEdge'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'nodes'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'pageInfo'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'PageInfo'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'totalCount'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + ], +); +const ExtensionOrderBy = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'ExtensionOrderBy'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'PKG_NAME'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'NAME'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'APK_NAME'), + directives: [], + ), + ], +); +const ExtensionType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ExtensionType'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'apkName'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'hasUpdate'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'iconUrl'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'isInstalled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'isNsfw'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'isObsolete'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'lang'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'pkgName'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'repo'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'versionCode'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'versionName'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'source'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceNodeList'), + isNonNull: true, + ), + ), + ], +); +const FetchChapterPagesInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'FetchChapterPagesInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'chapterId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const FetchChapterPagesPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'FetchChapterPagesPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'chapter'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'pages'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + ], +); +const FetchChaptersInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'FetchChaptersInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'mangaId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const FetchChaptersPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'FetchChaptersPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'chapters'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + ], +); +const FetchExtensionsInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'FetchExtensionsInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ) + ], +); +const FetchExtensionsPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'FetchExtensionsPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'extensions'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + ], +); +const FetchMangaInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'FetchMangaInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const FetchMangaPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'FetchMangaPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'manga'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaType'), + isNonNull: true, + ), + ), + ], +); +const FetchSourceMangaInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'FetchSourceMangaInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'filters'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'FilterChangeInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'page'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'query'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'source'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'type'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'FetchSourceMangaType'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const FetchSourceMangaPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'FetchSourceMangaPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'hasNextPage'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'mangas'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + ], +); +const FetchSourceMangaType = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'FetchSourceMangaType'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'SEARCH'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'POPULAR'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'LATEST'), + directives: [], + ), + ], +); +const Filter = _i1.UnionTypeDefinitionNode( + name: _i1.NameNode(value: 'Filter'), + directives: [], + types: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CheckBoxFilter'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'GroupFilter'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'HeaderFilter'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SelectFilter'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SeparatorFilter'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SortFilter'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TextFilter'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TriStateFilter'), + isNonNull: false, + ), + ], +); +const FilterChangeInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'FilterChangeInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'checkBoxState'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'groupChange'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'FilterChangeInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'position'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'selectState'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'sortState'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SortSelectionInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'textState'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'triState'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TriState'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const FloatFilterInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'FloatFilterInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'distinctFrom'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'equalTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'greaterThan'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'greaterThanOrEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'in'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isNull'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lessThan'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lessThanOrEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notDistinctFrom'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notIn'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const GlobalMetaNodeList = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'GlobalMetaNodeList'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'NodeList'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'edges'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MetaEdge'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'nodes'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'GlobalMetaType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'pageInfo'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'PageInfo'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'totalCount'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + ], +); +const GlobalMetaType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'GlobalMetaType'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MetaType'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'value'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + ], +); +const GlobalMetaTypeInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'GlobalMetaTypeInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'value'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const GroupFilter = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'GroupFilter'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'filters'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Filter'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + ], +); +const HeaderFilter = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'HeaderFilter'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ) + ], +); +const IncludeOrExclude = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'IncludeOrExclude'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'EXCLUDE'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'INCLUDE'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'UNSET'), + directives: [], + ), + ], +); +const InstallExternalExtensionInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'InstallExternalExtensionInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'extensionFile'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Upload'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const InstallExternalExtensionPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'InstallExternalExtensionPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'extension'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionType'), + isNonNull: true, + ), + ), + ], +); +const IntFilterInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'IntFilterInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'distinctFrom'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'equalTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'greaterThan'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'greaterThanOrEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'in'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isNull'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lessThan'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lessThanOrEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notDistinctFrom'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notIn'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const LastUpdateTimestampPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'LastUpdateTimestampPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'timestamp'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + ) + ], +); +const ListPreference = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ListPreference'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'currentValue'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'default'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'entries'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'entryValues'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'summary'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'title'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'visible'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + ], +); +const LoginTrackerCredentialsInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'LoginTrackerCredentialsInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'password'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'trackerId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'username'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const LoginTrackerCredentialsPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'LoginTrackerCredentialsPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'isLoggedIn'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'tracker'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackerType'), + isNonNull: true, + ), + ), + ], +); +const LoginTrackerOAuthInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'LoginTrackerOAuthInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'callbackUrl'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'trackerId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const LoginTrackerOAuthPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'LoginTrackerOAuthPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'isLoggedIn'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'tracker'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackerType'), + isNonNull: true, + ), + ), + ], +); +const LogoutTrackerInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'LogoutTrackerInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'trackerId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const LogoutTrackerPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'LogoutTrackerPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'isLoggedIn'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'tracker'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackerType'), + isNonNull: true, + ), + ), + ], +); +const LongFilterInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'LongFilterInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'distinctFrom'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'equalTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'greaterThan'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'greaterThanOrEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'in'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isNull'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lessThan'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lessThanOrEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notDistinctFrom'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notIn'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const LongString = _i1.ScalarTypeDefinitionNode( + name: _i1.NameNode(value: 'LongString'), + directives: [], +); +const MangaConditionInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'MangaConditionInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'artist'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'author'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'categoryIds'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'chaptersLastFetchedAt'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'description'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'genre'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'inLibrary'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'inLibraryAt'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'initialized'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lastFetchedAt'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'realUrl'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'sourceId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'status'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaStatus'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'thumbnailUrl'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'title'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'url'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const MangaEdge = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'MangaEdge'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Edge'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'cursor'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'node'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaType'), + isNonNull: true, + ), + ), + ], +); +const MangaFilterInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'MangaFilterInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'and'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaFilterInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'artist'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'author'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'categoryId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IntFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'chaptersLastFetchedAt'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'description'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'genre'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IntFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'inLibrary'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'BooleanFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'inLibraryAt'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'initialized'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'BooleanFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lastFetchedAt'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'not'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'or'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaFilterInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'realUrl'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'sourceId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'status'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaStatusFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'thumbnailUrl'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'title'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'url'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const MangaMetaType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'MangaMetaType'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MetaType'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'mangaId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'value'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'manga'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaType'), + isNonNull: true, + ), + ), + ], +); +const MangaMetaTypeInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'MangaMetaTypeInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'mangaId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'value'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const MangaNodeList = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'MangaNodeList'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'NodeList'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'edges'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaEdge'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'nodes'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'pageInfo'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'PageInfo'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'totalCount'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + ], +); +const MangaOrderBy = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'MangaOrderBy'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'ID'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'TITLE'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'IN_LIBRARY_AT'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'LAST_FETCHED_AT'), + directives: [], + ), + ], +); +const MangaStatus = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'MangaStatus'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'UNKNOWN'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'ONGOING'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'COMPLETED'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'LICENSED'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'PUBLISHING_FINISHED'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'CANCELLED'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'ON_HIATUS'), + directives: [], + ), + ], +); +const MangaStatusFilterInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'MangaStatusFilterInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'distinctFrom'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaStatus'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'equalTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaStatus'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'greaterThan'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaStatus'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'greaterThanOrEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaStatus'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'in'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaStatus'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isNull'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lessThan'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaStatus'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lessThanOrEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaStatus'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notDistinctFrom'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaStatus'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaStatus'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notIn'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaStatus'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const MangaType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'MangaType'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'artist'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'author'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'chaptersLastFetchedAt'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'description'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'genre'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'inLibrary'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'inLibraryAt'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'initialized'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'lastFetchedAt'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'realUrl'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'sourceId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'status'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaStatus'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'thumbnailUrl'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'thumbnailUrlLastFetched'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'title'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateStrategy'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateStrategy'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'url'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'age'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'categories'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryNodeList'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'chapters'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterNodeList'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'chaptersAge'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'downloadCount'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'lastReadChapter'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterType'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'latestFetchedChapter'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterType'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'latestReadChapter'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterType'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'latestUploadedChapter'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterType'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaMetaType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'source'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceType'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'trackRecords'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackRecordNodeList'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'unreadCount'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + ], +); +const MetaConditionInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'MetaConditionInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'value'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const MetaEdge = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'MetaEdge'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Edge'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'cursor'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'node'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'GlobalMetaType'), + isNonNull: true, + ), + ), + ], +); +const MetaFilterInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'MetaFilterInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'and'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MetaFilterInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'not'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MetaFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'or'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MetaFilterInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'value'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const MetaOrderBy = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'MetaOrderBy'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'KEY'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'VALUE'), + directives: [], + ), + ], +); +const MetaType = _i1.InterfaceTypeDefinitionNode( + name: _i1.NameNode(value: 'MetaType'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'value'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + ], +); +const MultiSelectListPreference = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'MultiSelectListPreference'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'currentValue'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'default'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'dialogMessage'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'dialogTitle'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'entries'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'entryValues'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'summary'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'title'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'visible'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + ], +); +const Mutation = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'Mutation'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'createBackup'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CreateBackupInput'), + isNonNull: false, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CreateBackupPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'restoreBackup'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'RestoreBackupInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'RestoreBackupPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'createCategory'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CreateCategoryInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CreateCategoryPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'deleteCategory'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DeleteCategoryInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DeleteCategoryPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'deleteCategoryMeta'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DeleteCategoryMetaInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DeleteCategoryMetaPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'setCategoryMeta'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SetCategoryMetaInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SetCategoryMetaPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateCategories'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateCategoriesInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateCategoriesPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateCategory'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateCategoryInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateCategoryPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateCategoryOrder'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateCategoryOrderInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateCategoryOrderPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateMangaCategories'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateMangaCategoriesInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateMangaCategoriesPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateMangasCategories'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateMangasCategoriesInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateMangasCategoriesPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'deleteChapterMeta'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DeleteChapterMetaInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DeleteChapterMetaPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'fetchChapterPages'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'FetchChapterPagesInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'FetchChapterPagesPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'fetchChapters'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'FetchChaptersInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'FetchChaptersPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'setChapterMeta'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SetChapterMetaInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SetChapterMetaPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateChapter'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateChapterInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateChapterPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateChapters'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateChaptersInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateChaptersPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clearDownloader'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ClearDownloaderInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ClearDownloaderPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'deleteDownloadedChapter'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DeleteDownloadedChapterInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DeleteDownloadedChapterPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'deleteDownloadedChapters'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DeleteDownloadedChaptersInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DeleteDownloadedChaptersPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'dequeueChapterDownload'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DequeueChapterDownloadInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DequeueChapterDownloadPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'dequeueChapterDownloads'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DequeueChapterDownloadsInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DequeueChapterDownloadsPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'enqueueChapterDownload'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'EnqueueChapterDownloadInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'EnqueueChapterDownloadPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'enqueueChapterDownloads'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'EnqueueChapterDownloadsInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'EnqueueChapterDownloadsPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'reorderChapterDownload'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ReorderChapterDownloadInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ReorderChapterDownloadPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'startDownloader'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StartDownloaderInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StartDownloaderPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'stopDownloader'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StopDownloaderInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StopDownloaderPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'fetchExtensions'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'FetchExtensionsInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'FetchExtensionsPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'installExternalExtension'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'InstallExternalExtensionInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'InstallExternalExtensionPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateExtension'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateExtensionInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateExtensionPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateExtensions'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateExtensionsInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateExtensionsPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clearCachedImages'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ClearCachedImagesInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ClearCachedImagesPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'resetWebUIUpdateStatus'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIUpdateStatus'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateWebUI'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIUpdateInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIUpdatePayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'deleteMangaMeta'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DeleteMangaMetaInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DeleteMangaMetaPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'fetchManga'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'FetchMangaInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'FetchMangaPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'setMangaMeta'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SetMangaMetaInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SetMangaMetaPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateManga'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateMangaInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateMangaPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateMangas'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateMangasInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateMangasPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'deleteGlobalMeta'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DeleteGlobalMetaInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DeleteGlobalMetaPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'setGlobalMeta'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SetGlobalMetaInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SetGlobalMetaPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'resetSettings'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ResetSettingsInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ResetSettingsPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'setSettings'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SetSettingsInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SetSettingsPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'deleteSourceMeta'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DeleteSourceMetaInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DeleteSourceMetaPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'fetchSourceManga'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'FetchSourceMangaInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'FetchSourceMangaPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'setSourceMeta'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SetSourceMetaInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SetSourceMetaPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateSourcePreference'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateSourcePreferenceInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateSourcePreferencePayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'bindTrack'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'BindTrackInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'BindTrackPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'loginTrackerCredentials'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LoginTrackerCredentialsInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LoginTrackerCredentialsPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'loginTrackerOAuth'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LoginTrackerOAuthInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LoginTrackerOAuthPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'logoutTracker'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LogoutTrackerInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LogoutTrackerPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateTrack'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateTrackInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateTrackPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateCategoryManga'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateCategoryMangaInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateCategoryMangaPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateLibraryManga'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateLibraryMangaInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateLibraryMangaPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateStop'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateStopInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateStopPayload'), + isNonNull: true, + ), + ), + ], +); +const Node = _i1.UnionTypeDefinitionNode( + name: _i1.NameNode(value: 'Node'), + directives: [], + types: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryMetaType'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryType'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterMetaType'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterType'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadType'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionType'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'GlobalMetaType'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaMetaType'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaType'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'PartialSettingsType'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SettingsType'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceMetaType'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceType'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackRecordType'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackerType'), + isNonNull: false, + ), + ], +); +const NodeList = _i1.InterfaceTypeDefinitionNode( + name: _i1.NameNode(value: 'NodeList'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'edges'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Edge'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'nodes'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Node'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'pageInfo'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'PageInfo'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'totalCount'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + ], +); +const PageInfo = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'PageInfo'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'endCursor'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'hasNextPage'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'hasPreviousPage'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'startCursor'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: false, + ), + ), + ], +); +const PartialSettingsType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'PartialSettingsType'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Settings'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'autoDownloadAheadLimit'), + directives: [ + _i1.DirectiveNode( + name: _i1.NameNode(value: 'deprecated'), + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'reason'), + value: _i1.StringValueNode( + value: + 'Replaced with autoDownloadNewChaptersLimit, replace with autoDownloadNewChaptersLimit', + isBlock: false, + ), + ) + ], + ) + ], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'autoDownloadNewChapters'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'autoDownloadNewChaptersLimit'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'backupInterval'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'backupPath'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'backupTTL'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'backupTime'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'basicAuthEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'basicAuthPassword'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'basicAuthUsername'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'debugLogsEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'downloadAsCbz'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'downloadsPath'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'electronPath'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'excludeCompleted'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'excludeEntryWithUnreadChapters'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'excludeNotStarted'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'excludeUnreadChapters'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'extensionRepos'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrSessionName'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrSessionTtl'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrTimeout'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrUrl'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'globalUpdateInterval'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'gqlDebugLogsEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'initialOpenInBrowserEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'ip'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'localSourcePath'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'maxSourcesInParallel'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'port'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'socksProxyEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'socksProxyHost'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'socksProxyPassword'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'socksProxyPort'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'socksProxyUsername'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'socksProxyVersion'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'systemTrayEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateMangas'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'webUIChannel'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIChannel'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'webUIFlavor'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIFlavor'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'webUIInterface'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIInterface'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'webUIUpdateCheckInterval'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + ), + ], +); +const PartialSettingsTypeInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'PartialSettingsTypeInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'autoDownloadNewChapters'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'autoDownloadNewChaptersLimit'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'backupInterval'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'backupPath'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'backupTTL'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'backupTime'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'basicAuthEnabled'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'basicAuthPassword'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'basicAuthUsername'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'debugLogsEnabled'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'downloadAsCbz'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'downloadsPath'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'electronPath'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'excludeCompleted'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'excludeEntryWithUnreadChapters'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'excludeNotStarted'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'excludeUnreadChapters'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'extensionRepos'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrEnabled'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrSessionName'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrSessionTtl'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrTimeout'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrUrl'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'globalUpdateInterval'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'gqlDebugLogsEnabled'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'initialOpenInBrowserEnabled'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'ip'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'localSourcePath'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'maxSourcesInParallel'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'port'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'socksProxyEnabled'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'socksProxyHost'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'socksProxyPassword'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'socksProxyPort'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'socksProxyUsername'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'socksProxyVersion'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'systemTrayEnabled'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'updateMangas'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'webUIChannel'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIChannel'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'webUIFlavor'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIFlavor'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'webUIInterface'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIInterface'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'webUIUpdateCheckInterval'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const Preference = _i1.UnionTypeDefinitionNode( + name: _i1.NameNode(value: 'Preference'), + directives: [], + types: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CheckBoxPreference'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'EditTextPreference'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ListPreference'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MultiSelectListPreference'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SwitchPreference'), + isNonNull: false, + ), + ], +); +const Query = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'Query'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'restoreStatus'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'BackupRestoreStatus'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'validateBackup'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ValidateBackupInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ValidateBackupResult'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'categories'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'condition'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryConditionInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'filter'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'orderBy'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryOrderBy'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'orderByType'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SortOrder'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'before'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'after'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'first'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'last'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'offset'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryNodeList'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'category'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'chapter'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'chapters'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'condition'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterConditionInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'filter'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'orderBy'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterOrderBy'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'orderByType'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SortOrder'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'before'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'after'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'first'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'last'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'offset'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterNodeList'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'downloadStatus'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadStatus'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'extension'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'pkgName'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'extensions'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'condition'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionConditionInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'filter'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'orderBy'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionOrderBy'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'orderByType'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SortOrder'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'before'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'after'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'first'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'last'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'offset'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionNodeList'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'aboutServer'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'AboutServerPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'aboutWebUI'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'AboutWebUI'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'checkForServerUpdates'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CheckForServerUpdatesPayload'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'checkForWebUIUpdate'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIUpdateCheck'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'getWebUIUpdateStatus'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIUpdateStatus'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'manga'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'mangas'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'condition'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaConditionInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'filter'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'orderBy'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaOrderBy'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'orderByType'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SortOrder'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'before'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'after'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'first'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'last'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'offset'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaNodeList'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'GlobalMetaType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'metas'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'condition'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MetaConditionInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'filter'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MetaFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'orderBy'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MetaOrderBy'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'orderByType'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SortOrder'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'before'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'after'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'first'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'last'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'offset'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'GlobalMetaNodeList'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'settings'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SettingsType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'source'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'sources'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'condition'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceConditionInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'filter'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'orderBy'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceOrderBy'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'orderByType'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SortOrder'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'before'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'after'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'first'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'last'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'offset'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceNodeList'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'searchTracker'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SearchTrackerInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SearchTrackerPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'trackRecord'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackRecordType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'trackRecords'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'condition'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackRecordConditionInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'filter'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackRecordFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'orderBy'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackRecordOrderBy'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'orderByType'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SortOrder'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'before'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'after'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'first'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'last'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'offset'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackRecordNodeList'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'tracker'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackerType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'trackers'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'condition'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackerConditionInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'orderBy'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackerOrderBy'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'orderByType'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SortOrder'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'before'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'after'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'first'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'last'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'offset'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackerNodeList'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'lastUpdateTimestamp'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LastUpdateTimestampPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateStatus'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateStatus'), + isNonNull: true, + ), + ), + ], +); +const ReorderChapterDownloadInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ReorderChapterDownloadInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'chapterId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'to'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const ReorderChapterDownloadPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ReorderChapterDownloadPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'downloadStatus'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadStatus'), + isNonNull: true, + ), + ), + ], +); +const ResetSettingsInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ResetSettingsInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ) + ], +); +const ResetSettingsPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ResetSettingsPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'settings'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SettingsType'), + isNonNull: true, + ), + ), + ], +); +const RestoreBackupInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'RestoreBackupInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'backup'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Upload'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const RestoreBackupPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'RestoreBackupPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'status'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'BackupRestoreStatus'), + isNonNull: false, + ), + ), + ], +); +const SearchTrackerInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SearchTrackerInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'query'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'trackerId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const SearchTrackerPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SearchTrackerPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'trackSearches'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackSearchType'), + isNonNull: true, + ), + isNonNull: true, + ), + ) + ], +); +const SelectFilter = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SelectFilter'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'default'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'values'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + ], +); +const SeparatorFilter = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SeparatorFilter'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ) + ], +); +const SetCategoryMetaInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SetCategoryMetaInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryMetaTypeInput'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const SetCategoryMetaPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SetCategoryMetaPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryMetaType'), + isNonNull: true, + ), + ), + ], +); +const SetChapterMetaInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SetChapterMetaInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterMetaTypeInput'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const SetChapterMetaPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SetChapterMetaPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterMetaType'), + isNonNull: true, + ), + ), + ], +); +const SetGlobalMetaInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SetGlobalMetaInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'GlobalMetaTypeInput'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const SetGlobalMetaPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SetGlobalMetaPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'GlobalMetaType'), + isNonNull: true, + ), + ), + ], +); +const SetMangaMetaInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SetMangaMetaInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaMetaTypeInput'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const SetMangaMetaPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SetMangaMetaPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaMetaType'), + isNonNull: true, + ), + ), + ], +); +const SetSettingsInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SetSettingsInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'settings'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'PartialSettingsTypeInput'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const SetSettingsPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SetSettingsPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'settings'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SettingsType'), + isNonNull: true, + ), + ), + ], +); +const SetSourceMetaInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SetSourceMetaInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceMetaTypeInput'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const SetSourceMetaPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SetSourceMetaPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceMetaType'), + isNonNull: true, + ), + ), + ], +); +const Settings = _i1.InterfaceTypeDefinitionNode( + name: _i1.NameNode(value: 'Settings'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'autoDownloadAheadLimit'), + directives: [ + _i1.DirectiveNode( + name: _i1.NameNode(value: 'deprecated'), + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'reason'), + value: _i1.StringValueNode( + value: + 'Replaced with autoDownloadNewChaptersLimit, replace with autoDownloadNewChaptersLimit', + isBlock: false, + ), + ) + ], + ) + ], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'autoDownloadNewChapters'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'autoDownloadNewChaptersLimit'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'backupInterval'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'backupPath'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'backupTTL'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'backupTime'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'basicAuthEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'basicAuthPassword'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'basicAuthUsername'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'debugLogsEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'downloadAsCbz'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'downloadsPath'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'electronPath'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'excludeCompleted'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'excludeEntryWithUnreadChapters'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'excludeNotStarted'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'excludeUnreadChapters'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'extensionRepos'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrSessionName'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrSessionTtl'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrTimeout'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrUrl'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'globalUpdateInterval'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'gqlDebugLogsEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'initialOpenInBrowserEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'ip'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'localSourcePath'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'maxSourcesInParallel'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'port'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'socksProxyEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'socksProxyHost'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'socksProxyPassword'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'socksProxyPort'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'socksProxyUsername'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'socksProxyVersion'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'systemTrayEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateMangas'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'webUIChannel'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIChannel'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'webUIFlavor'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIFlavor'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'webUIInterface'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIInterface'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'webUIUpdateCheckInterval'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + ), + ], +); +const SettingsType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SettingsType'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Settings'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'autoDownloadAheadLimit'), + directives: [ + _i1.DirectiveNode( + name: _i1.NameNode(value: 'deprecated'), + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'reason'), + value: _i1.StringValueNode( + value: + 'Replaced with autoDownloadNewChaptersLimit, replace with autoDownloadNewChaptersLimit', + isBlock: false, + ), + ) + ], + ) + ], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'autoDownloadNewChapters'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'autoDownloadNewChaptersLimit'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'backupInterval'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'backupPath'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'backupTTL'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'backupTime'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'basicAuthEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'basicAuthPassword'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'basicAuthUsername'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'debugLogsEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'downloadAsCbz'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'downloadsPath'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'electronPath'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'excludeCompleted'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'excludeEntryWithUnreadChapters'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'excludeNotStarted'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'excludeUnreadChapters'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'extensionRepos'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrSessionName'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrSessionTtl'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrTimeout'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrUrl'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'globalUpdateInterval'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'gqlDebugLogsEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'initialOpenInBrowserEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'ip'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'localSourcePath'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'maxSourcesInParallel'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'port'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'socksProxyEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'socksProxyHost'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'socksProxyPassword'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'socksProxyPort'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'socksProxyUsername'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'socksProxyVersion'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'systemTrayEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateMangas'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'webUIChannel'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIChannel'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'webUIFlavor'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIFlavor'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'webUIInterface'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIInterface'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'webUIUpdateCheckInterval'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: true, + ), + ), + ], +); +const SortFilter = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SortFilter'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'default'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SortSelection'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'values'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + ], +); +const SortOrder = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'SortOrder'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'ASC'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'DESC'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'ASC_NULLS_FIRST'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'DESC_NULLS_FIRST'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'ASC_NULLS_LAST'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'DESC_NULLS_LAST'), + directives: [], + ), + ], +); +const SortSelection = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SortSelection'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'ascending'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'index'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + ], +); +const SortSelectionInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SortSelectionInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'ascending'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'index'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const SourceConditionInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SourceConditionInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isNsfw'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lang'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const SourceEdge = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SourceEdge'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Edge'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'cursor'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'node'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceType'), + isNonNull: true, + ), + ), + ], +); +const SourceFilterInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SourceFilterInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'and'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceFilterInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isNsfw'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'BooleanFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lang'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'not'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'or'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceFilterInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const SourceMetaType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SourceMetaType'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MetaType'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'sourceId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'value'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'source'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceType'), + isNonNull: true, + ), + ), + ], +); +const SourceMetaTypeInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SourceMetaTypeInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'sourceId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'value'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const SourceNodeList = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SourceNodeList'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'NodeList'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'edges'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceEdge'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'nodes'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'pageInfo'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'PageInfo'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'totalCount'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + ], +); +const SourceOrderBy = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'SourceOrderBy'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'ID'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'NAME'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'LANG'), + directives: [], + ), + ], +); +const SourcePreferenceChangeInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SourcePreferenceChangeInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'checkBoxState'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'editTextState'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'listState'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'multiSelectState'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'position'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'switchState'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const SourceType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SourceType'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'displayName'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'iconUrl'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'isConfigurable'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'isNsfw'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'lang'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'supportsLatest'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'extension'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'filters'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Filter'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'manga'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaNodeList'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceMetaType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'preferences'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Preference'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + ], +); +const StartDownloaderInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'StartDownloaderInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ) + ], +); +const StartDownloaderPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'StartDownloaderPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'downloadStatus'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadStatus'), + isNonNull: true, + ), + ), + ], +); +const StopDownloaderInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'StopDownloaderInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ) + ], +); +const StopDownloaderPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'StopDownloaderPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'downloadStatus'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadStatus'), + isNonNull: true, + ), + ), + ], +); +const StringFilterInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'StringFilterInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'distinctFrom'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'distinctFromInsensitive'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'endsWith'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'endsWithInsensitive'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'equalTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'greaterThan'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'greaterThanInsensitive'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'greaterThanOrEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'greaterThanOrEqualToInsensitive'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'in'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'inInsensitive'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'includes'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'includesInsensitive'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isNull'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lessThan'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lessThanInsensitive'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lessThanOrEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lessThanOrEqualToInsensitive'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'like'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'likeInsensitive'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notDistinctFrom'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notDistinctFromInsensitive'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notEndsWith'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notEndsWithInsensitive'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notIn'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notInInsensitive'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notIncludes'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notIncludesInsensitive'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notLike'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notLikeInsensitive'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notStartsWith'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notStartsWithInsensitive'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'startsWith'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'startsWithInsensitive'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const Subscription = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'Subscription'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'downloadChanged'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadStatus'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'webUIUpdateStatusChange'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIUpdateStatus'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateStatusChanged'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateStatus'), + isNonNull: true, + ), + ), + ], +); +const SwitchPreference = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SwitchPreference'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'currentValue'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'default'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'summary'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'title'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'visible'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + ], +); +const TextFilter = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'TextFilter'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'default'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + ], +); +const TrackerConditionInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'TrackerConditionInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'icon'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isLoggedIn'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const TrackerEdge = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'TrackerEdge'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Edge'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'cursor'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'node'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackerType'), + isNonNull: true, + ), + ), + ], +); +const TrackerNodeList = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'TrackerNodeList'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'NodeList'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'edges'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackerEdge'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'nodes'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackerType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'pageInfo'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'PageInfo'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'totalCount'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + ], +); +const TrackerOrderBy = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'TrackerOrderBy'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'ID'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'NAME'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'IS_LOGGED_IN'), + directives: [], + ), + ], +); +const TrackerType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'TrackerType'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'authUrl'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'icon'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'isLoggedIn'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'isTokenExpired'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'scores'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'statuses'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackStatusType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'trackRecords'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackRecordNodeList'), + isNonNull: true, + ), + ), + ], +); +const TrackRecordConditionInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'TrackRecordConditionInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'finishDate'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lastChapterRead'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'libraryId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'mangaId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'remoteId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'remoteUrl'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'score'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'startDate'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'status'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'title'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'totalChapters'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'trackerId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const TrackRecordEdge = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'TrackRecordEdge'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Edge'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'cursor'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'node'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackRecordType'), + isNonNull: true, + ), + ), + ], +); +const TrackRecordFilterInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'TrackRecordFilterInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'and'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackRecordFilterInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'finishDate'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IntFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lastChapterRead'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DoubleFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'libraryId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'mangaId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IntFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'not'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackRecordFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'or'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackRecordFilterInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'remoteId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'remoteUrl'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'score'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DoubleFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'startDate'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'status'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IntFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'title'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'totalChapters'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IntFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'trackerId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IntFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const TrackRecordNodeList = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'TrackRecordNodeList'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'NodeList'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'edges'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackRecordEdge'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'nodes'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackRecordType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'pageInfo'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'PageInfo'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'totalCount'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + ], +); +const TrackRecordOrderBy = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'TrackRecordOrderBy'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'ID'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'MANGA_ID'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'TRACKER_ID'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'REMOTE_ID'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'TITLE'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'LAST_CHAPTER_READ'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'TOTAL_CHAPTERS'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'SCORE'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'START_DATE'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'FINISH_DATE'), + directives: [], + ), + ], +); +const TrackRecordType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'TrackRecordType'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'finishDate'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'lastChapterRead'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'libraryId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'mangaId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'remoteId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'remoteUrl'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'score'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'startDate'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'status'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'title'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'totalChapters'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'trackerId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'displayScore'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'manga'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'tracker'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackerType'), + isNonNull: true, + ), + ), + ], +); +const TrackSearchType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'TrackSearchType'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'coverUrl'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'publishingStatus'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'publishingType'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'remoteId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'startDate'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'summary'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'title'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'totalChapters'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'trackerId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'trackingUrl'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'tracker'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackerType'), + isNonNull: true, + ), + ), + ], +); +const TrackStatusType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'TrackStatusType'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'value'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + ], +); +const TriState = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'TriState'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'IGNORE'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'INCLUDE'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'EXCLUDE'), + directives: [], + ), + ], +); +const TriStateFilter = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'TriStateFilter'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'default'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TriState'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + ], +); +const UpdateCategoriesInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateCategoriesInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'ids'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'patch'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateCategoryPatchInput'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const UpdateCategoriesPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateCategoriesPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'categories'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + ], +); +const UpdateCategoryInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateCategoryInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'patch'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateCategoryPatchInput'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const UpdateCategoryMangaInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateCategoryMangaInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'categories'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const UpdateCategoryMangaPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateCategoryMangaPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateStatus'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateStatus'), + isNonNull: true, + ), + ), + ], +); +const UpdateCategoryOrderInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateCategoryOrderInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'position'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const UpdateCategoryOrderPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateCategoryOrderPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'categories'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + ], +); +const UpdateCategoryPatchInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateCategoryPatchInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'default'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'includeInDownload'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IncludeOrExclude'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'includeInUpdate'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IncludeOrExclude'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const UpdateCategoryPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateCategoryPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'category'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + ], +); +const UpdateChapterInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateChapterInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'patch'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateChapterPatchInput'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const UpdateChapterPatchInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateChapterPatchInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isBookmarked'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isRead'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lastPageRead'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const UpdateChapterPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateChapterPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'chapter'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + ], +); +const UpdateChaptersInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateChaptersInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'ids'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'patch'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateChapterPatchInput'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const UpdateChaptersPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateChaptersPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'chapters'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + ], +); +const UpdateExtensionInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateExtensionInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'patch'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateExtensionPatchInput'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const UpdateExtensionPatchInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateExtensionPatchInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'install'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'uninstall'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'update'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const UpdateExtensionPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateExtensionPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'extension'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionType'), + isNonNull: false, + ), + ), + ], +); +const UpdateExtensionsInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateExtensionsInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'ids'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'patch'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateExtensionPatchInput'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const UpdateExtensionsPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateExtensionsPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'extensions'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + ], +); +const UpdateLibraryMangaInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateLibraryMangaInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ) + ], +); +const UpdateLibraryMangaPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateLibraryMangaPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateStatus'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateStatus'), + isNonNull: true, + ), + ), + ], +); +const UpdateMangaCategoriesInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateMangaCategoriesInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'patch'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateMangaCategoriesPatchInput'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const UpdateMangaCategoriesPatchInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateMangaCategoriesPatchInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'addToCategories'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clearCategories'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'removeFromCategories'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const UpdateMangaCategoriesPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateMangaCategoriesPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'manga'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaType'), + isNonNull: true, + ), + ), + ], +); +const UpdateMangaInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateMangaInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'patch'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateMangaPatchInput'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const UpdateMangaPatchInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateMangaPatchInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'inLibrary'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ) + ], +); +const UpdateMangaPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateMangaPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'manga'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaType'), + isNonNull: true, + ), + ), + ], +); +const UpdateMangasCategoriesInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateMangasCategoriesInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'ids'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'patch'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateMangaCategoriesPatchInput'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const UpdateMangasCategoriesPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateMangasCategoriesPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'mangas'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + ], +); +const UpdateMangasInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateMangasInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'ids'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'patch'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateMangaPatchInput'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const UpdateMangasPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateMangasPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'mangas'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + ], +); +const UpdateSourcePreferenceInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateSourcePreferenceInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'change'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourcePreferenceChangeInput'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'source'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const UpdateSourcePreferencePayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateSourcePreferencePayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'preferences'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Preference'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'source'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceType'), + isNonNull: true, + ), + ), + ], +); +const UpdateState = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateState'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'IDLE'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'DOWNLOADING'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'FINISHED'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'ERROR'), + directives: [], + ), + ], +); +const UpdateStatus = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateStatus'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'completeJobs'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateStatusType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'failedJobs'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateStatusType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'isRunning'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'pendingJobs'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateStatusType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'runningJobs'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateStatusType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'skippedCategories'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateStatusCategoryType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'skippedJobs'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateStatusType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updatingCategories'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateStatusCategoryType'), + isNonNull: true, + ), + ), + ], +); +const UpdateStatusCategoryType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateStatusCategoryType'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'categories'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryNodeList'), + isNonNull: true, + ), + ) + ], +); +const UpdateStatusType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateStatusType'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'mangas'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaNodeList'), + isNonNull: true, + ), + ) + ], +); +const UpdateStopInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateStopInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ) + ], +); +const UpdateStopPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateStopPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ) + ], +); +const UpdateStrategy = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateStrategy'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'ALWAYS_UPDATE'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'ONLY_FETCH_ONCE'), + directives: [], + ), + ], +); +const UpdateTrackInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateTrackInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'finishDate'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lastChapterRead'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'recordId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'scoreString'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'startDate'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'status'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'unbind'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const UpdateTrackPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateTrackPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'trackRecord'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackRecordType'), + isNonNull: false, + ), + ), + ], +); +const Upload = _i1.ScalarTypeDefinitionNode( + name: _i1.NameNode(value: 'Upload'), + directives: [], +); +const ValidateBackupInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ValidateBackupInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'backup'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Upload'), + isNonNull: true, + ), + defaultValue: null, + ) + ], +); +const ValidateBackupResult = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ValidateBackupResult'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'missingSources'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ValidateBackupSource'), + isNonNull: true, + ), + isNonNull: true, + ), + ) + ], +); +const ValidateBackupSource = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ValidateBackupSource'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + ], +); +const WebUIChannel = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'WebUIChannel'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'BUNDLED'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'STABLE'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'PREVIEW'), + directives: [], + ), + ], +); +const WebUIFlavor = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'WebUIFlavor'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'WEBUI'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'VUI'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'CUSTOM'), + directives: [], + ), + ], +); +const WebUIInterface = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'WebUIInterface'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'BROWSER'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'ELECTRON'), + directives: [], + ), + ], +); +const WebUIUpdateCheck = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'WebUIUpdateCheck'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'channel'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'tag'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateAvailable'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + ], +); +const WebUIUpdateInfo = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'WebUIUpdateInfo'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'channel'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'tag'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + ], +); +const WebUIUpdateInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'WebUIUpdateInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ) + ], +); +const WebUIUpdatePayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'WebUIUpdatePayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateStatus'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIUpdateStatus'), + isNonNull: true, + ), + ), + ], +); +const WebUIUpdateStatus = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'WebUIUpdateStatus'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'info'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIUpdateInfo'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'progress'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'state'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateState'), + isNonNull: true, + ), + ), + ], +); +const document = _i1.DocumentNode(definitions: [ + specifiedBy, + AboutServerPayload, + AboutWebUI, + BackupRestoreState, + BackupRestoreStatus, + BindTrackInput, + BindTrackPayload, + BooleanFilterInput, + CategoryConditionInput, + CategoryEdge, + CategoryFilterInput, + CategoryMetaType, + CategoryMetaTypeInput, + CategoryNodeList, + CategoryOrderBy, + CategoryType, + ChapterConditionInput, + ChapterEdge, + ChapterFilterInput, + ChapterMetaType, + ChapterMetaTypeInput, + ChapterNodeList, + ChapterOrderBy, + ChapterType, + CheckBoxFilter, + CheckBoxPreference, + CheckForServerUpdatesPayload, + ClearCachedImagesInput, + ClearCachedImagesPayload, + ClearDownloaderInput, + ClearDownloaderPayload, + CreateBackupInput, + CreateBackupPayload, + CreateCategoryInput, + CreateCategoryPayload, + Cursor, + DeleteCategoryInput, + DeleteCategoryMetaInput, + DeleteCategoryMetaPayload, + DeleteCategoryPayload, + DeleteChapterMetaInput, + DeleteChapterMetaPayload, + DeleteDownloadedChapterInput, + DeleteDownloadedChapterPayload, + DeleteDownloadedChaptersInput, + DeleteDownloadedChaptersPayload, + DeleteGlobalMetaInput, + DeleteGlobalMetaPayload, + DeleteMangaMetaInput, + DeleteMangaMetaPayload, + DeleteSourceMetaInput, + DeleteSourceMetaPayload, + DequeueChapterDownloadInput, + DequeueChapterDownloadPayload, + DequeueChapterDownloadsInput, + DequeueChapterDownloadsPayload, + DoubleFilterInput, + DownloadEdge, + DownloaderState, + DownloadNodeList, + DownloadState, + DownloadStatus, + DownloadType, + Edge, + EditTextPreference, + EnqueueChapterDownloadInput, + EnqueueChapterDownloadPayload, + EnqueueChapterDownloadsInput, + EnqueueChapterDownloadsPayload, + ExtensionConditionInput, + ExtensionEdge, + ExtensionFilterInput, + ExtensionNodeList, + ExtensionOrderBy, + ExtensionType, + FetchChapterPagesInput, + FetchChapterPagesPayload, + FetchChaptersInput, + FetchChaptersPayload, + FetchExtensionsInput, + FetchExtensionsPayload, + FetchMangaInput, + FetchMangaPayload, + FetchSourceMangaInput, + FetchSourceMangaPayload, + FetchSourceMangaType, + Filter, + FilterChangeInput, + FloatFilterInput, + GlobalMetaNodeList, + GlobalMetaType, + GlobalMetaTypeInput, + GroupFilter, + HeaderFilter, + IncludeOrExclude, + InstallExternalExtensionInput, + InstallExternalExtensionPayload, + IntFilterInput, + LastUpdateTimestampPayload, + ListPreference, + LoginTrackerCredentialsInput, + LoginTrackerCredentialsPayload, + LoginTrackerOAuthInput, + LoginTrackerOAuthPayload, + LogoutTrackerInput, + LogoutTrackerPayload, + LongFilterInput, + LongString, + MangaConditionInput, + MangaEdge, + MangaFilterInput, + MangaMetaType, + MangaMetaTypeInput, + MangaNodeList, + MangaOrderBy, + MangaStatus, + MangaStatusFilterInput, + MangaType, + MetaConditionInput, + MetaEdge, + MetaFilterInput, + MetaOrderBy, + MetaType, + MultiSelectListPreference, + Mutation, + Node, + NodeList, + PageInfo, + PartialSettingsType, + PartialSettingsTypeInput, + Preference, + Query, + ReorderChapterDownloadInput, + ReorderChapterDownloadPayload, + ResetSettingsInput, + ResetSettingsPayload, + RestoreBackupInput, + RestoreBackupPayload, + SearchTrackerInput, + SearchTrackerPayload, + SelectFilter, + SeparatorFilter, + SetCategoryMetaInput, + SetCategoryMetaPayload, + SetChapterMetaInput, + SetChapterMetaPayload, + SetGlobalMetaInput, + SetGlobalMetaPayload, + SetMangaMetaInput, + SetMangaMetaPayload, + SetSettingsInput, + SetSettingsPayload, + SetSourceMetaInput, + SetSourceMetaPayload, + Settings, + SettingsType, + SortFilter, + SortOrder, + SortSelection, + SortSelectionInput, + SourceConditionInput, + SourceEdge, + SourceFilterInput, + SourceMetaType, + SourceMetaTypeInput, + SourceNodeList, + SourceOrderBy, + SourcePreferenceChangeInput, + SourceType, + StartDownloaderInput, + StartDownloaderPayload, + StopDownloaderInput, + StopDownloaderPayload, + StringFilterInput, + Subscription, + SwitchPreference, + TextFilter, + TrackerConditionInput, + TrackerEdge, + TrackerNodeList, + TrackerOrderBy, + TrackerType, + TrackRecordConditionInput, + TrackRecordEdge, + TrackRecordFilterInput, + TrackRecordNodeList, + TrackRecordOrderBy, + TrackRecordType, + TrackSearchType, + TrackStatusType, + TriState, + TriStateFilter, + UpdateCategoriesInput, + UpdateCategoriesPayload, + UpdateCategoryInput, + UpdateCategoryMangaInput, + UpdateCategoryMangaPayload, + UpdateCategoryOrderInput, + UpdateCategoryOrderPayload, + UpdateCategoryPatchInput, + UpdateCategoryPayload, + UpdateChapterInput, + UpdateChapterPatchInput, + UpdateChapterPayload, + UpdateChaptersInput, + UpdateChaptersPayload, + UpdateExtensionInput, + UpdateExtensionPatchInput, + UpdateExtensionPayload, + UpdateExtensionsInput, + UpdateExtensionsPayload, + UpdateLibraryMangaInput, + UpdateLibraryMangaPayload, + UpdateMangaCategoriesInput, + UpdateMangaCategoriesPatchInput, + UpdateMangaCategoriesPayload, + UpdateMangaInput, + UpdateMangaPatchInput, + UpdateMangaPayload, + UpdateMangasCategoriesInput, + UpdateMangasCategoriesPayload, + UpdateMangasInput, + UpdateMangasPayload, + UpdateSourcePreferenceInput, + UpdateSourcePreferencePayload, + UpdateState, + UpdateStatus, + UpdateStatusCategoryType, + UpdateStatusType, + UpdateStopInput, + UpdateStopPayload, + UpdateStrategy, + UpdateTrackInput, + UpdateTrackPayload, + Upload, + ValidateBackupInput, + ValidateBackupResult, + ValidateBackupSource, + WebUIChannel, + WebUIFlavor, + WebUIInterface, + WebUIUpdateCheck, + WebUIUpdateInfo, + WebUIUpdateInput, + WebUIUpdatePayload, + WebUIUpdateStatus, +]); diff --git a/lib/src/graphql/__generated__/schema.schema.gql.dart b/lib/src/graphql/__generated__/schema.schema.gql.dart new file mode 100644 index 00000000..43826fde --- /dev/null +++ b/lib/src/graphql/__generated__/schema.schema.gql.dart @@ -0,0 +1,3164 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:gql_code_builder/src/serializers/default_scalar_serializer.dart' + as _i2; +import 'package:http/http.dart' as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'schema.schema.gql.g.dart'; + +class GBackupRestoreState extends EnumClass { + const GBackupRestoreState._(String name) : super(name); + + static const GBackupRestoreState IDLE = _$gBackupRestoreStateIDLE; + + static const GBackupRestoreState SUCCESS = _$gBackupRestoreStateSUCCESS; + + static const GBackupRestoreState FAILURE = _$gBackupRestoreStateFAILURE; + + static const GBackupRestoreState RESTORING_CATEGORIES = + _$gBackupRestoreStateRESTORING_CATEGORIES; + + static const GBackupRestoreState RESTORING_MANGA = + _$gBackupRestoreStateRESTORING_MANGA; + + static Serializer get serializer => + _$gBackupRestoreStateSerializer; + + static BuiltSet get values => + _$gBackupRestoreStateValues; + + static GBackupRestoreState valueOf(String name) => + _$gBackupRestoreStateValueOf(name); +} + +abstract class GBindTrackInput + implements Built { + GBindTrackInput._(); + + factory GBindTrackInput([void Function(GBindTrackInputBuilder b) updates]) = + _$GBindTrackInput; + + String? get clientMutationId; + int get mangaId; + GLongString get remoteId; + int get trackerId; + static Serializer get serializer => + _$gBindTrackInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GBindTrackInput.serializer, + this, + ) as Map); + + static GBindTrackInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GBindTrackInput.serializer, + json, + ); +} + +abstract class GBooleanFilterInput + implements Built { + GBooleanFilterInput._(); + + factory GBooleanFilterInput( + [void Function(GBooleanFilterInputBuilder b) updates]) = + _$GBooleanFilterInput; + + bool? get distinctFrom; + bool? get equalTo; + bool? get greaterThan; + bool? get greaterThanOrEqualTo; + @BuiltValueField(wireName: 'in') + BuiltList? get Gin; + bool? get isNull; + bool? get lessThan; + bool? get lessThanOrEqualTo; + bool? get notDistinctFrom; + bool? get notEqualTo; + BuiltList? get notIn; + static Serializer get serializer => + _$gBooleanFilterInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GBooleanFilterInput.serializer, + this, + ) as Map); + + static GBooleanFilterInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GBooleanFilterInput.serializer, + json, + ); +} + +abstract class GCategoryConditionInput + implements Built { + GCategoryConditionInput._(); + + factory GCategoryConditionInput( + [void Function(GCategoryConditionInputBuilder b) updates]) = + _$GCategoryConditionInput; + + @BuiltValueField(wireName: 'default') + bool? get Gdefault; + int? get id; + String? get name; + int? get order; + static Serializer get serializer => + _$gCategoryConditionInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GCategoryConditionInput.serializer, + this, + ) as Map); + + static GCategoryConditionInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GCategoryConditionInput.serializer, + json, + ); +} + +abstract class GCategoryFilterInput + implements Built { + GCategoryFilterInput._(); + + factory GCategoryFilterInput( + [void Function(GCategoryFilterInputBuilder b) updates]) = + _$GCategoryFilterInput; + + BuiltList? get and; + @BuiltValueField(wireName: 'default') + GBooleanFilterInput? get Gdefault; + GIntFilterInput? get id; + GStringFilterInput? get name; + GCategoryFilterInput? get not; + BuiltList? get or; + GIntFilterInput? get order; + static Serializer get serializer => + _$gCategoryFilterInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GCategoryFilterInput.serializer, + this, + ) as Map); + + static GCategoryFilterInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GCategoryFilterInput.serializer, + json, + ); +} + +abstract class GCategoryMetaTypeInput + implements Built { + GCategoryMetaTypeInput._(); + + factory GCategoryMetaTypeInput( + [void Function(GCategoryMetaTypeInputBuilder b) updates]) = + _$GCategoryMetaTypeInput; + + int get categoryId; + String get key; + String get value; + static Serializer get serializer => + _$gCategoryMetaTypeInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GCategoryMetaTypeInput.serializer, + this, + ) as Map); + + static GCategoryMetaTypeInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GCategoryMetaTypeInput.serializer, + json, + ); +} + +class GCategoryOrderBy extends EnumClass { + const GCategoryOrderBy._(String name) : super(name); + + static const GCategoryOrderBy ID = _$gCategoryOrderByID; + + static const GCategoryOrderBy NAME = _$gCategoryOrderByNAME; + + static const GCategoryOrderBy ORDER = _$gCategoryOrderByORDER; + + static Serializer get serializer => + _$gCategoryOrderBySerializer; + + static BuiltSet get values => _$gCategoryOrderByValues; + + static GCategoryOrderBy valueOf(String name) => + _$gCategoryOrderByValueOf(name); +} + +abstract class GChapterConditionInput + implements Built { + GChapterConditionInput._(); + + factory GChapterConditionInput( + [void Function(GChapterConditionInputBuilder b) updates]) = + _$GChapterConditionInput; + + double? get chapterNumber; + GLongString? get fetchedAt; + int? get id; + bool? get isBookmarked; + bool? get isDownloaded; + bool? get isRead; + int? get lastPageRead; + GLongString? get lastReadAt; + int? get mangaId; + String? get name; + int? get pageCount; + String? get realUrl; + String? get scanlator; + int? get sourceOrder; + GLongString? get uploadDate; + String? get url; + static Serializer get serializer => + _$gChapterConditionInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GChapterConditionInput.serializer, + this, + ) as Map); + + static GChapterConditionInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GChapterConditionInput.serializer, + json, + ); +} + +abstract class GChapterFilterInput + implements Built { + GChapterFilterInput._(); + + factory GChapterFilterInput( + [void Function(GChapterFilterInputBuilder b) updates]) = + _$GChapterFilterInput; + + BuiltList? get and; + GFloatFilterInput? get chapterNumber; + GLongFilterInput? get fetchedAt; + GIntFilterInput? get id; + GBooleanFilterInput? get inLibrary; + GBooleanFilterInput? get isBookmarked; + GBooleanFilterInput? get isDownloaded; + GBooleanFilterInput? get isRead; + GIntFilterInput? get lastPageRead; + GLongFilterInput? get lastReadAt; + GIntFilterInput? get mangaId; + GStringFilterInput? get name; + GChapterFilterInput? get not; + BuiltList? get or; + GIntFilterInput? get pageCount; + GStringFilterInput? get realUrl; + GStringFilterInput? get scanlator; + GIntFilterInput? get sourceOrder; + GLongFilterInput? get uploadDate; + GStringFilterInput? get url; + static Serializer get serializer => + _$gChapterFilterInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GChapterFilterInput.serializer, + this, + ) as Map); + + static GChapterFilterInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GChapterFilterInput.serializer, + json, + ); +} + +abstract class GChapterMetaTypeInput + implements Built { + GChapterMetaTypeInput._(); + + factory GChapterMetaTypeInput( + [void Function(GChapterMetaTypeInputBuilder b) updates]) = + _$GChapterMetaTypeInput; + + int get chapterId; + String get key; + String get value; + static Serializer get serializer => + _$gChapterMetaTypeInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GChapterMetaTypeInput.serializer, + this, + ) as Map); + + static GChapterMetaTypeInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GChapterMetaTypeInput.serializer, + json, + ); +} + +class GChapterOrderBy extends EnumClass { + const GChapterOrderBy._(String name) : super(name); + + static const GChapterOrderBy ID = _$gChapterOrderByID; + + static const GChapterOrderBy SOURCE_ORDER = _$gChapterOrderBySOURCE_ORDER; + + static const GChapterOrderBy NAME = _$gChapterOrderByNAME; + + static const GChapterOrderBy UPLOAD_DATE = _$gChapterOrderByUPLOAD_DATE; + + static const GChapterOrderBy CHAPTER_NUMBER = _$gChapterOrderByCHAPTER_NUMBER; + + static const GChapterOrderBy LAST_READ_AT = _$gChapterOrderByLAST_READ_AT; + + static const GChapterOrderBy FETCHED_AT = _$gChapterOrderByFETCHED_AT; + + static Serializer get serializer => + _$gChapterOrderBySerializer; + + static BuiltSet get values => _$gChapterOrderByValues; + + static GChapterOrderBy valueOf(String name) => _$gChapterOrderByValueOf(name); +} + +abstract class GClearCachedImagesInput + implements Built { + GClearCachedImagesInput._(); + + factory GClearCachedImagesInput( + [void Function(GClearCachedImagesInputBuilder b) updates]) = + _$GClearCachedImagesInput; + + bool? get cachedPages; + bool? get cachedThumbnails; + String? get clientMutationId; + bool? get downloadedThumbnails; + static Serializer get serializer => + _$gClearCachedImagesInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GClearCachedImagesInput.serializer, + this, + ) as Map); + + static GClearCachedImagesInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GClearCachedImagesInput.serializer, + json, + ); +} + +abstract class GClearDownloaderInput + implements Built { + GClearDownloaderInput._(); + + factory GClearDownloaderInput( + [void Function(GClearDownloaderInputBuilder b) updates]) = + _$GClearDownloaderInput; + + String? get clientMutationId; + static Serializer get serializer => + _$gClearDownloaderInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GClearDownloaderInput.serializer, + this, + ) as Map); + + static GClearDownloaderInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GClearDownloaderInput.serializer, + json, + ); +} + +abstract class GCreateBackupInput + implements Built { + GCreateBackupInput._(); + + factory GCreateBackupInput( + [void Function(GCreateBackupInputBuilder b) updates]) = + _$GCreateBackupInput; + + String? get clientMutationId; + bool? get includeCategories; + bool? get includeChapters; + static Serializer get serializer => + _$gCreateBackupInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GCreateBackupInput.serializer, + this, + ) as Map); + + static GCreateBackupInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GCreateBackupInput.serializer, + json, + ); +} + +abstract class GCreateCategoryInput + implements Built { + GCreateCategoryInput._(); + + factory GCreateCategoryInput( + [void Function(GCreateCategoryInputBuilder b) updates]) = + _$GCreateCategoryInput; + + String? get clientMutationId; + @BuiltValueField(wireName: 'default') + bool? get Gdefault; + GIncludeOrExclude? get includeInDownload; + GIncludeOrExclude? get includeInUpdate; + String get name; + int? get order; + static Serializer get serializer => + _$gCreateCategoryInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GCreateCategoryInput.serializer, + this, + ) as Map); + + static GCreateCategoryInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GCreateCategoryInput.serializer, + json, + ); +} + +abstract class GCursor implements Built { + GCursor._(); + + factory GCursor([String? value]) => + _$GCursor((b) => value != null ? (b..value = value) : b); + + String get value; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + _i2.DefaultScalarSerializer( + (Object serialized) => GCursor((serialized as String?))); +} + +abstract class GDeleteCategoryInput + implements Built { + GDeleteCategoryInput._(); + + factory GDeleteCategoryInput( + [void Function(GDeleteCategoryInputBuilder b) updates]) = + _$GDeleteCategoryInput; + + int get categoryId; + String? get clientMutationId; + static Serializer get serializer => + _$gDeleteCategoryInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GDeleteCategoryInput.serializer, + this, + ) as Map); + + static GDeleteCategoryInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GDeleteCategoryInput.serializer, + json, + ); +} + +abstract class GDeleteCategoryMetaInput + implements + Built { + GDeleteCategoryMetaInput._(); + + factory GDeleteCategoryMetaInput( + [void Function(GDeleteCategoryMetaInputBuilder b) updates]) = + _$GDeleteCategoryMetaInput; + + int get categoryId; + String? get clientMutationId; + String get key; + static Serializer get serializer => + _$gDeleteCategoryMetaInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GDeleteCategoryMetaInput.serializer, + this, + ) as Map); + + static GDeleteCategoryMetaInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GDeleteCategoryMetaInput.serializer, + json, + ); +} + +abstract class GDeleteChapterMetaInput + implements Built { + GDeleteChapterMetaInput._(); + + factory GDeleteChapterMetaInput( + [void Function(GDeleteChapterMetaInputBuilder b) updates]) = + _$GDeleteChapterMetaInput; + + int get chapterId; + String? get clientMutationId; + String get key; + static Serializer get serializer => + _$gDeleteChapterMetaInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GDeleteChapterMetaInput.serializer, + this, + ) as Map); + + static GDeleteChapterMetaInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GDeleteChapterMetaInput.serializer, + json, + ); +} + +abstract class GDeleteDownloadedChapterInput + implements + Built { + GDeleteDownloadedChapterInput._(); + + factory GDeleteDownloadedChapterInput( + [void Function(GDeleteDownloadedChapterInputBuilder b) updates]) = + _$GDeleteDownloadedChapterInput; + + String? get clientMutationId; + int get id; + static Serializer get serializer => + _$gDeleteDownloadedChapterInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GDeleteDownloadedChapterInput.serializer, + this, + ) as Map); + + static GDeleteDownloadedChapterInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GDeleteDownloadedChapterInput.serializer, + json, + ); +} + +abstract class GDeleteDownloadedChaptersInput + implements + Built { + GDeleteDownloadedChaptersInput._(); + + factory GDeleteDownloadedChaptersInput( + [void Function(GDeleteDownloadedChaptersInputBuilder b) updates]) = + _$GDeleteDownloadedChaptersInput; + + String? get clientMutationId; + BuiltList get ids; + static Serializer get serializer => + _$gDeleteDownloadedChaptersInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GDeleteDownloadedChaptersInput.serializer, + this, + ) as Map); + + static GDeleteDownloadedChaptersInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GDeleteDownloadedChaptersInput.serializer, + json, + ); +} + +abstract class GDeleteGlobalMetaInput + implements Built { + GDeleteGlobalMetaInput._(); + + factory GDeleteGlobalMetaInput( + [void Function(GDeleteGlobalMetaInputBuilder b) updates]) = + _$GDeleteGlobalMetaInput; + + String? get clientMutationId; + String get key; + static Serializer get serializer => + _$gDeleteGlobalMetaInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GDeleteGlobalMetaInput.serializer, + this, + ) as Map); + + static GDeleteGlobalMetaInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GDeleteGlobalMetaInput.serializer, + json, + ); +} + +abstract class GDeleteMangaMetaInput + implements Built { + GDeleteMangaMetaInput._(); + + factory GDeleteMangaMetaInput( + [void Function(GDeleteMangaMetaInputBuilder b) updates]) = + _$GDeleteMangaMetaInput; + + String? get clientMutationId; + String get key; + int get mangaId; + static Serializer get serializer => + _$gDeleteMangaMetaInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GDeleteMangaMetaInput.serializer, + this, + ) as Map); + + static GDeleteMangaMetaInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GDeleteMangaMetaInput.serializer, + json, + ); +} + +abstract class GDeleteSourceMetaInput + implements Built { + GDeleteSourceMetaInput._(); + + factory GDeleteSourceMetaInput( + [void Function(GDeleteSourceMetaInputBuilder b) updates]) = + _$GDeleteSourceMetaInput; + + String? get clientMutationId; + String get key; + GLongString get sourceId; + static Serializer get serializer => + _$gDeleteSourceMetaInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GDeleteSourceMetaInput.serializer, + this, + ) as Map); + + static GDeleteSourceMetaInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GDeleteSourceMetaInput.serializer, + json, + ); +} + +abstract class GDequeueChapterDownloadInput + implements + Built { + GDequeueChapterDownloadInput._(); + + factory GDequeueChapterDownloadInput( + [void Function(GDequeueChapterDownloadInputBuilder b) updates]) = + _$GDequeueChapterDownloadInput; + + String? get clientMutationId; + int get id; + static Serializer get serializer => + _$gDequeueChapterDownloadInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GDequeueChapterDownloadInput.serializer, + this, + ) as Map); + + static GDequeueChapterDownloadInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GDequeueChapterDownloadInput.serializer, + json, + ); +} + +abstract class GDequeueChapterDownloadsInput + implements + Built { + GDequeueChapterDownloadsInput._(); + + factory GDequeueChapterDownloadsInput( + [void Function(GDequeueChapterDownloadsInputBuilder b) updates]) = + _$GDequeueChapterDownloadsInput; + + String? get clientMutationId; + BuiltList get ids; + static Serializer get serializer => + _$gDequeueChapterDownloadsInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GDequeueChapterDownloadsInput.serializer, + this, + ) as Map); + + static GDequeueChapterDownloadsInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GDequeueChapterDownloadsInput.serializer, + json, + ); +} + +abstract class GDoubleFilterInput + implements Built { + GDoubleFilterInput._(); + + factory GDoubleFilterInput( + [void Function(GDoubleFilterInputBuilder b) updates]) = + _$GDoubleFilterInput; + + double? get distinctFrom; + double? get equalTo; + double? get greaterThan; + double? get greaterThanOrEqualTo; + @BuiltValueField(wireName: 'in') + BuiltList? get Gin; + bool? get isNull; + double? get lessThan; + double? get lessThanOrEqualTo; + double? get notDistinctFrom; + double? get notEqualTo; + BuiltList? get notIn; + static Serializer get serializer => + _$gDoubleFilterInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GDoubleFilterInput.serializer, + this, + ) as Map); + + static GDoubleFilterInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GDoubleFilterInput.serializer, + json, + ); +} + +class GDownloaderState extends EnumClass { + const GDownloaderState._(String name) : super(name); + + static const GDownloaderState STARTED = _$gDownloaderStateSTARTED; + + static const GDownloaderState STOPPED = _$gDownloaderStateSTOPPED; + + static Serializer get serializer => + _$gDownloaderStateSerializer; + + static BuiltSet get values => _$gDownloaderStateValues; + + static GDownloaderState valueOf(String name) => + _$gDownloaderStateValueOf(name); +} + +class GDownloadState extends EnumClass { + const GDownloadState._(String name) : super(name); + + static const GDownloadState QUEUED = _$gDownloadStateQUEUED; + + static const GDownloadState DOWNLOADING = _$gDownloadStateDOWNLOADING; + + static const GDownloadState FINISHED = _$gDownloadStateFINISHED; + + static const GDownloadState ERROR = _$gDownloadStateERROR; + + static Serializer get serializer => + _$gDownloadStateSerializer; + + static BuiltSet get values => _$gDownloadStateValues; + + static GDownloadState valueOf(String name) => _$gDownloadStateValueOf(name); +} + +abstract class GEnqueueChapterDownloadInput + implements + Built { + GEnqueueChapterDownloadInput._(); + + factory GEnqueueChapterDownloadInput( + [void Function(GEnqueueChapterDownloadInputBuilder b) updates]) = + _$GEnqueueChapterDownloadInput; + + String? get clientMutationId; + int get id; + static Serializer get serializer => + _$gEnqueueChapterDownloadInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GEnqueueChapterDownloadInput.serializer, + this, + ) as Map); + + static GEnqueueChapterDownloadInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GEnqueueChapterDownloadInput.serializer, + json, + ); +} + +abstract class GEnqueueChapterDownloadsInput + implements + Built { + GEnqueueChapterDownloadsInput._(); + + factory GEnqueueChapterDownloadsInput( + [void Function(GEnqueueChapterDownloadsInputBuilder b) updates]) = + _$GEnqueueChapterDownloadsInput; + + String? get clientMutationId; + BuiltList get ids; + static Serializer get serializer => + _$gEnqueueChapterDownloadsInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GEnqueueChapterDownloadsInput.serializer, + this, + ) as Map); + + static GEnqueueChapterDownloadsInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GEnqueueChapterDownloadsInput.serializer, + json, + ); +} + +abstract class GExtensionConditionInput + implements + Built { + GExtensionConditionInput._(); + + factory GExtensionConditionInput( + [void Function(GExtensionConditionInputBuilder b) updates]) = + _$GExtensionConditionInput; + + String? get apkName; + bool? get hasUpdate; + String? get iconUrl; + bool? get isInstalled; + bool? get isNsfw; + bool? get isObsolete; + String? get lang; + String? get name; + String? get pkgName; + String? get repo; + int? get versionCode; + String? get versionName; + static Serializer get serializer => + _$gExtensionConditionInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GExtensionConditionInput.serializer, + this, + ) as Map); + + static GExtensionConditionInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GExtensionConditionInput.serializer, + json, + ); +} + +abstract class GExtensionFilterInput + implements Built { + GExtensionFilterInput._(); + + factory GExtensionFilterInput( + [void Function(GExtensionFilterInputBuilder b) updates]) = + _$GExtensionFilterInput; + + BuiltList? get and; + GStringFilterInput? get apkName; + GBooleanFilterInput? get hasUpdate; + GStringFilterInput? get iconUrl; + GBooleanFilterInput? get isInstalled; + GBooleanFilterInput? get isNsfw; + GBooleanFilterInput? get isObsolete; + GStringFilterInput? get lang; + GStringFilterInput? get name; + GExtensionFilterInput? get not; + BuiltList? get or; + GStringFilterInput? get pkgName; + GStringFilterInput? get repo; + GIntFilterInput? get versionCode; + GStringFilterInput? get versionName; + static Serializer get serializer => + _$gExtensionFilterInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GExtensionFilterInput.serializer, + this, + ) as Map); + + static GExtensionFilterInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GExtensionFilterInput.serializer, + json, + ); +} + +class GExtensionOrderBy extends EnumClass { + const GExtensionOrderBy._(String name) : super(name); + + static const GExtensionOrderBy PKG_NAME = _$gExtensionOrderByPKG_NAME; + + static const GExtensionOrderBy NAME = _$gExtensionOrderByNAME; + + static const GExtensionOrderBy APK_NAME = _$gExtensionOrderByAPK_NAME; + + static Serializer get serializer => + _$gExtensionOrderBySerializer; + + static BuiltSet get values => _$gExtensionOrderByValues; + + static GExtensionOrderBy valueOf(String name) => + _$gExtensionOrderByValueOf(name); +} + +abstract class GFetchChapterPagesInput + implements Built { + GFetchChapterPagesInput._(); + + factory GFetchChapterPagesInput( + [void Function(GFetchChapterPagesInputBuilder b) updates]) = + _$GFetchChapterPagesInput; + + int get chapterId; + String? get clientMutationId; + static Serializer get serializer => + _$gFetchChapterPagesInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GFetchChapterPagesInput.serializer, + this, + ) as Map); + + static GFetchChapterPagesInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GFetchChapterPagesInput.serializer, + json, + ); +} + +abstract class GFetchChaptersInput + implements Built { + GFetchChaptersInput._(); + + factory GFetchChaptersInput( + [void Function(GFetchChaptersInputBuilder b) updates]) = + _$GFetchChaptersInput; + + String? get clientMutationId; + int get mangaId; + static Serializer get serializer => + _$gFetchChaptersInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GFetchChaptersInput.serializer, + this, + ) as Map); + + static GFetchChaptersInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GFetchChaptersInput.serializer, + json, + ); +} + +abstract class GFetchExtensionsInput + implements Built { + GFetchExtensionsInput._(); + + factory GFetchExtensionsInput( + [void Function(GFetchExtensionsInputBuilder b) updates]) = + _$GFetchExtensionsInput; + + String? get clientMutationId; + static Serializer get serializer => + _$gFetchExtensionsInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GFetchExtensionsInput.serializer, + this, + ) as Map); + + static GFetchExtensionsInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GFetchExtensionsInput.serializer, + json, + ); +} + +abstract class GFetchMangaInput + implements Built { + GFetchMangaInput._(); + + factory GFetchMangaInput([void Function(GFetchMangaInputBuilder b) updates]) = + _$GFetchMangaInput; + + String? get clientMutationId; + int get id; + static Serializer get serializer => + _$gFetchMangaInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GFetchMangaInput.serializer, + this, + ) as Map); + + static GFetchMangaInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GFetchMangaInput.serializer, + json, + ); +} + +abstract class GFetchSourceMangaInput + implements Built { + GFetchSourceMangaInput._(); + + factory GFetchSourceMangaInput( + [void Function(GFetchSourceMangaInputBuilder b) updates]) = + _$GFetchSourceMangaInput; + + String? get clientMutationId; + BuiltList? get filters; + int get page; + String? get query; + GLongString get source; + GFetchSourceMangaType get type; + static Serializer get serializer => + _$gFetchSourceMangaInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GFetchSourceMangaInput.serializer, + this, + ) as Map); + + static GFetchSourceMangaInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GFetchSourceMangaInput.serializer, + json, + ); +} + +class GFetchSourceMangaType extends EnumClass { + const GFetchSourceMangaType._(String name) : super(name); + + static const GFetchSourceMangaType SEARCH = _$gFetchSourceMangaTypeSEARCH; + + static const GFetchSourceMangaType POPULAR = _$gFetchSourceMangaTypePOPULAR; + + static const GFetchSourceMangaType LATEST = _$gFetchSourceMangaTypeLATEST; + + static Serializer get serializer => + _$gFetchSourceMangaTypeSerializer; + + static BuiltSet get values => + _$gFetchSourceMangaTypeValues; + + static GFetchSourceMangaType valueOf(String name) => + _$gFetchSourceMangaTypeValueOf(name); +} + +abstract class GFilterChangeInput + implements Built { + GFilterChangeInput._(); + + factory GFilterChangeInput( + [void Function(GFilterChangeInputBuilder b) updates]) = + _$GFilterChangeInput; + + bool? get checkBoxState; + GFilterChangeInput? get groupChange; + int get position; + int? get selectState; + GSortSelectionInput? get sortState; + String? get textState; + GTriState? get triState; + static Serializer get serializer => + _$gFilterChangeInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GFilterChangeInput.serializer, + this, + ) as Map); + + static GFilterChangeInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GFilterChangeInput.serializer, + json, + ); +} + +abstract class GFloatFilterInput + implements Built { + GFloatFilterInput._(); + + factory GFloatFilterInput( + [void Function(GFloatFilterInputBuilder b) updates]) = + _$GFloatFilterInput; + + double? get distinctFrom; + double? get equalTo; + double? get greaterThan; + double? get greaterThanOrEqualTo; + @BuiltValueField(wireName: 'in') + BuiltList? get Gin; + bool? get isNull; + double? get lessThan; + double? get lessThanOrEqualTo; + double? get notDistinctFrom; + double? get notEqualTo; + BuiltList? get notIn; + static Serializer get serializer => + _$gFloatFilterInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GFloatFilterInput.serializer, + this, + ) as Map); + + static GFloatFilterInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GFloatFilterInput.serializer, + json, + ); +} + +abstract class GGlobalMetaTypeInput + implements Built { + GGlobalMetaTypeInput._(); + + factory GGlobalMetaTypeInput( + [void Function(GGlobalMetaTypeInputBuilder b) updates]) = + _$GGlobalMetaTypeInput; + + String get key; + String get value; + static Serializer get serializer => + _$gGlobalMetaTypeInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GGlobalMetaTypeInput.serializer, + this, + ) as Map); + + static GGlobalMetaTypeInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GGlobalMetaTypeInput.serializer, + json, + ); +} + +class GIncludeOrExclude extends EnumClass { + const GIncludeOrExclude._(String name) : super(name); + + static const GIncludeOrExclude EXCLUDE = _$gIncludeOrExcludeEXCLUDE; + + static const GIncludeOrExclude INCLUDE = _$gIncludeOrExcludeINCLUDE; + + static const GIncludeOrExclude UNSET = _$gIncludeOrExcludeUNSET; + + static Serializer get serializer => + _$gIncludeOrExcludeSerializer; + + static BuiltSet get values => _$gIncludeOrExcludeValues; + + static GIncludeOrExclude valueOf(String name) => + _$gIncludeOrExcludeValueOf(name); +} + +abstract class GInstallExternalExtensionInput + implements + Built { + GInstallExternalExtensionInput._(); + + factory GInstallExternalExtensionInput( + [void Function(GInstallExternalExtensionInputBuilder b) updates]) = + _$GInstallExternalExtensionInput; + + String? get clientMutationId; + _i3.MultipartFile get extensionFile; + static Serializer get serializer => + _$gInstallExternalExtensionInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GInstallExternalExtensionInput.serializer, + this, + ) as Map); + + static GInstallExternalExtensionInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GInstallExternalExtensionInput.serializer, + json, + ); +} + +abstract class GIntFilterInput + implements Built { + GIntFilterInput._(); + + factory GIntFilterInput([void Function(GIntFilterInputBuilder b) updates]) = + _$GIntFilterInput; + + int? get distinctFrom; + int? get equalTo; + int? get greaterThan; + int? get greaterThanOrEqualTo; + @BuiltValueField(wireName: 'in') + BuiltList? get Gin; + bool? get isNull; + int? get lessThan; + int? get lessThanOrEqualTo; + int? get notDistinctFrom; + int? get notEqualTo; + BuiltList? get notIn; + static Serializer get serializer => + _$gIntFilterInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GIntFilterInput.serializer, + this, + ) as Map); + + static GIntFilterInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GIntFilterInput.serializer, + json, + ); +} + +abstract class GLoginTrackerCredentialsInput + implements + Built { + GLoginTrackerCredentialsInput._(); + + factory GLoginTrackerCredentialsInput( + [void Function(GLoginTrackerCredentialsInputBuilder b) updates]) = + _$GLoginTrackerCredentialsInput; + + String? get clientMutationId; + String get password; + int get trackerId; + String get username; + static Serializer get serializer => + _$gLoginTrackerCredentialsInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GLoginTrackerCredentialsInput.serializer, + this, + ) as Map); + + static GLoginTrackerCredentialsInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GLoginTrackerCredentialsInput.serializer, + json, + ); +} + +abstract class GLoginTrackerOAuthInput + implements Built { + GLoginTrackerOAuthInput._(); + + factory GLoginTrackerOAuthInput( + [void Function(GLoginTrackerOAuthInputBuilder b) updates]) = + _$GLoginTrackerOAuthInput; + + String get callbackUrl; + String? get clientMutationId; + int get trackerId; + static Serializer get serializer => + _$gLoginTrackerOAuthInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GLoginTrackerOAuthInput.serializer, + this, + ) as Map); + + static GLoginTrackerOAuthInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GLoginTrackerOAuthInput.serializer, + json, + ); +} + +abstract class GLogoutTrackerInput + implements Built { + GLogoutTrackerInput._(); + + factory GLogoutTrackerInput( + [void Function(GLogoutTrackerInputBuilder b) updates]) = + _$GLogoutTrackerInput; + + String? get clientMutationId; + int get trackerId; + static Serializer get serializer => + _$gLogoutTrackerInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GLogoutTrackerInput.serializer, + this, + ) as Map); + + static GLogoutTrackerInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GLogoutTrackerInput.serializer, + json, + ); +} + +abstract class GLongFilterInput + implements Built { + GLongFilterInput._(); + + factory GLongFilterInput([void Function(GLongFilterInputBuilder b) updates]) = + _$GLongFilterInput; + + GLongString? get distinctFrom; + GLongString? get equalTo; + GLongString? get greaterThan; + GLongString? get greaterThanOrEqualTo; + @BuiltValueField(wireName: 'in') + BuiltList? get Gin; + bool? get isNull; + GLongString? get lessThan; + GLongString? get lessThanOrEqualTo; + GLongString? get notDistinctFrom; + GLongString? get notEqualTo; + BuiltList? get notIn; + static Serializer get serializer => + _$gLongFilterInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GLongFilterInput.serializer, + this, + ) as Map); + + static GLongFilterInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GLongFilterInput.serializer, + json, + ); +} + +abstract class GLongString implements Built { + GLongString._(); + + factory GLongString([String? value]) => + _$GLongString((b) => value != null ? (b..value = value) : b); + + String get value; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + _i2.DefaultScalarSerializer( + (Object serialized) => GLongString((serialized as String?))); +} + +abstract class GMangaConditionInput + implements Built { + GMangaConditionInput._(); + + factory GMangaConditionInput( + [void Function(GMangaConditionInputBuilder b) updates]) = + _$GMangaConditionInput; + + String? get artist; + String? get author; + BuiltList? get categoryIds; + GLongString? get chaptersLastFetchedAt; + String? get description; + BuiltList? get genre; + int? get id; + bool? get inLibrary; + GLongString? get inLibraryAt; + bool? get initialized; + GLongString? get lastFetchedAt; + String? get realUrl; + GLongString? get sourceId; + GMangaStatus? get status; + String? get thumbnailUrl; + String? get title; + String? get url; + static Serializer get serializer => + _$gMangaConditionInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GMangaConditionInput.serializer, + this, + ) as Map); + + static GMangaConditionInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GMangaConditionInput.serializer, + json, + ); +} + +abstract class GMangaFilterInput + implements Built { + GMangaFilterInput._(); + + factory GMangaFilterInput( + [void Function(GMangaFilterInputBuilder b) updates]) = + _$GMangaFilterInput; + + BuiltList? get and; + GStringFilterInput? get artist; + GStringFilterInput? get author; + GIntFilterInput? get categoryId; + GLongFilterInput? get chaptersLastFetchedAt; + GStringFilterInput? get description; + GStringFilterInput? get genre; + GIntFilterInput? get id; + GBooleanFilterInput? get inLibrary; + GLongFilterInput? get inLibraryAt; + GBooleanFilterInput? get initialized; + GLongFilterInput? get lastFetchedAt; + GMangaFilterInput? get not; + BuiltList? get or; + GStringFilterInput? get realUrl; + GLongFilterInput? get sourceId; + GMangaStatusFilterInput? get status; + GStringFilterInput? get thumbnailUrl; + GStringFilterInput? get title; + GStringFilterInput? get url; + static Serializer get serializer => + _$gMangaFilterInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GMangaFilterInput.serializer, + this, + ) as Map); + + static GMangaFilterInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GMangaFilterInput.serializer, + json, + ); +} + +abstract class GMangaMetaTypeInput + implements Built { + GMangaMetaTypeInput._(); + + factory GMangaMetaTypeInput( + [void Function(GMangaMetaTypeInputBuilder b) updates]) = + _$GMangaMetaTypeInput; + + String get key; + int get mangaId; + String get value; + static Serializer get serializer => + _$gMangaMetaTypeInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GMangaMetaTypeInput.serializer, + this, + ) as Map); + + static GMangaMetaTypeInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GMangaMetaTypeInput.serializer, + json, + ); +} + +class GMangaOrderBy extends EnumClass { + const GMangaOrderBy._(String name) : super(name); + + static const GMangaOrderBy ID = _$gMangaOrderByID; + + static const GMangaOrderBy TITLE = _$gMangaOrderByTITLE; + + static const GMangaOrderBy IN_LIBRARY_AT = _$gMangaOrderByIN_LIBRARY_AT; + + static const GMangaOrderBy LAST_FETCHED_AT = _$gMangaOrderByLAST_FETCHED_AT; + + static Serializer get serializer => _$gMangaOrderBySerializer; + + static BuiltSet get values => _$gMangaOrderByValues; + + static GMangaOrderBy valueOf(String name) => _$gMangaOrderByValueOf(name); +} + +class GMangaStatus extends EnumClass { + const GMangaStatus._(String name) : super(name); + + static const GMangaStatus UNKNOWN = _$gMangaStatusUNKNOWN; + + static const GMangaStatus ONGOING = _$gMangaStatusONGOING; + + static const GMangaStatus COMPLETED = _$gMangaStatusCOMPLETED; + + static const GMangaStatus LICENSED = _$gMangaStatusLICENSED; + + static const GMangaStatus PUBLISHING_FINISHED = + _$gMangaStatusPUBLISHING_FINISHED; + + static const GMangaStatus CANCELLED = _$gMangaStatusCANCELLED; + + static const GMangaStatus ON_HIATUS = _$gMangaStatusON_HIATUS; + + static Serializer get serializer => _$gMangaStatusSerializer; + + static BuiltSet get values => _$gMangaStatusValues; + + static GMangaStatus valueOf(String name) => _$gMangaStatusValueOf(name); +} + +abstract class GMangaStatusFilterInput + implements Built { + GMangaStatusFilterInput._(); + + factory GMangaStatusFilterInput( + [void Function(GMangaStatusFilterInputBuilder b) updates]) = + _$GMangaStatusFilterInput; + + GMangaStatus? get distinctFrom; + GMangaStatus? get equalTo; + GMangaStatus? get greaterThan; + GMangaStatus? get greaterThanOrEqualTo; + @BuiltValueField(wireName: 'in') + BuiltList? get Gin; + bool? get isNull; + GMangaStatus? get lessThan; + GMangaStatus? get lessThanOrEqualTo; + GMangaStatus? get notDistinctFrom; + GMangaStatus? get notEqualTo; + BuiltList? get notIn; + static Serializer get serializer => + _$gMangaStatusFilterInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GMangaStatusFilterInput.serializer, + this, + ) as Map); + + static GMangaStatusFilterInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GMangaStatusFilterInput.serializer, + json, + ); +} + +abstract class GMetaConditionInput + implements Built { + GMetaConditionInput._(); + + factory GMetaConditionInput( + [void Function(GMetaConditionInputBuilder b) updates]) = + _$GMetaConditionInput; + + String? get key; + String? get value; + static Serializer get serializer => + _$gMetaConditionInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GMetaConditionInput.serializer, + this, + ) as Map); + + static GMetaConditionInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GMetaConditionInput.serializer, + json, + ); +} + +abstract class GMetaFilterInput + implements Built { + GMetaFilterInput._(); + + factory GMetaFilterInput([void Function(GMetaFilterInputBuilder b) updates]) = + _$GMetaFilterInput; + + BuiltList? get and; + GStringFilterInput? get key; + GMetaFilterInput? get not; + BuiltList? get or; + GStringFilterInput? get value; + static Serializer get serializer => + _$gMetaFilterInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GMetaFilterInput.serializer, + this, + ) as Map); + + static GMetaFilterInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GMetaFilterInput.serializer, + json, + ); +} + +class GMetaOrderBy extends EnumClass { + const GMetaOrderBy._(String name) : super(name); + + static const GMetaOrderBy KEY = _$gMetaOrderByKEY; + + static const GMetaOrderBy VALUE = _$gMetaOrderByVALUE; + + static Serializer get serializer => _$gMetaOrderBySerializer; + + static BuiltSet get values => _$gMetaOrderByValues; + + static GMetaOrderBy valueOf(String name) => _$gMetaOrderByValueOf(name); +} + +abstract class GPartialSettingsTypeInput + implements + Built { + GPartialSettingsTypeInput._(); + + factory GPartialSettingsTypeInput( + [void Function(GPartialSettingsTypeInputBuilder b) updates]) = + _$GPartialSettingsTypeInput; + + bool? get autoDownloadNewChapters; + int? get autoDownloadNewChaptersLimit; + int? get backupInterval; + String? get backupPath; + int? get backupTTL; + String? get backupTime; + bool? get basicAuthEnabled; + String? get basicAuthPassword; + String? get basicAuthUsername; + bool? get debugLogsEnabled; + bool? get downloadAsCbz; + String? get downloadsPath; + String? get electronPath; + bool? get excludeCompleted; + bool? get excludeEntryWithUnreadChapters; + bool? get excludeNotStarted; + bool? get excludeUnreadChapters; + BuiltList? get extensionRepos; + bool? get flareSolverrEnabled; + String? get flareSolverrSessionName; + int? get flareSolverrSessionTtl; + int? get flareSolverrTimeout; + String? get flareSolverrUrl; + double? get globalUpdateInterval; + bool? get gqlDebugLogsEnabled; + bool? get initialOpenInBrowserEnabled; + String? get ip; + String? get localSourcePath; + int? get maxSourcesInParallel; + int? get port; + bool? get socksProxyEnabled; + String? get socksProxyHost; + String? get socksProxyPassword; + String? get socksProxyPort; + String? get socksProxyUsername; + int? get socksProxyVersion; + bool? get systemTrayEnabled; + bool? get updateMangas; + GWebUIChannel? get webUIChannel; + GWebUIFlavor? get webUIFlavor; + GWebUIInterface? get webUIInterface; + double? get webUIUpdateCheckInterval; + static Serializer get serializer => + _$gPartialSettingsTypeInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GPartialSettingsTypeInput.serializer, + this, + ) as Map); + + static GPartialSettingsTypeInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GPartialSettingsTypeInput.serializer, + json, + ); +} + +abstract class GReorderChapterDownloadInput + implements + Built { + GReorderChapterDownloadInput._(); + + factory GReorderChapterDownloadInput( + [void Function(GReorderChapterDownloadInputBuilder b) updates]) = + _$GReorderChapterDownloadInput; + + int get chapterId; + String? get clientMutationId; + int get to; + static Serializer get serializer => + _$gReorderChapterDownloadInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GReorderChapterDownloadInput.serializer, + this, + ) as Map); + + static GReorderChapterDownloadInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GReorderChapterDownloadInput.serializer, + json, + ); +} + +abstract class GResetSettingsInput + implements Built { + GResetSettingsInput._(); + + factory GResetSettingsInput( + [void Function(GResetSettingsInputBuilder b) updates]) = + _$GResetSettingsInput; + + String? get clientMutationId; + static Serializer get serializer => + _$gResetSettingsInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GResetSettingsInput.serializer, + this, + ) as Map); + + static GResetSettingsInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GResetSettingsInput.serializer, + json, + ); +} + +abstract class GRestoreBackupInput + implements Built { + GRestoreBackupInput._(); + + factory GRestoreBackupInput( + [void Function(GRestoreBackupInputBuilder b) updates]) = + _$GRestoreBackupInput; + + _i3.MultipartFile get backup; + String? get clientMutationId; + static Serializer get serializer => + _$gRestoreBackupInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GRestoreBackupInput.serializer, + this, + ) as Map); + + static GRestoreBackupInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GRestoreBackupInput.serializer, + json, + ); +} + +abstract class GSearchTrackerInput + implements Built { + GSearchTrackerInput._(); + + factory GSearchTrackerInput( + [void Function(GSearchTrackerInputBuilder b) updates]) = + _$GSearchTrackerInput; + + String get query; + int get trackerId; + static Serializer get serializer => + _$gSearchTrackerInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSearchTrackerInput.serializer, + this, + ) as Map); + + static GSearchTrackerInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSearchTrackerInput.serializer, + json, + ); +} + +abstract class GSetCategoryMetaInput + implements Built { + GSetCategoryMetaInput._(); + + factory GSetCategoryMetaInput( + [void Function(GSetCategoryMetaInputBuilder b) updates]) = + _$GSetCategoryMetaInput; + + String? get clientMutationId; + GCategoryMetaTypeInput get meta; + static Serializer get serializer => + _$gSetCategoryMetaInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSetCategoryMetaInput.serializer, + this, + ) as Map); + + static GSetCategoryMetaInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSetCategoryMetaInput.serializer, + json, + ); +} + +abstract class GSetChapterMetaInput + implements Built { + GSetChapterMetaInput._(); + + factory GSetChapterMetaInput( + [void Function(GSetChapterMetaInputBuilder b) updates]) = + _$GSetChapterMetaInput; + + String? get clientMutationId; + GChapterMetaTypeInput get meta; + static Serializer get serializer => + _$gSetChapterMetaInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSetChapterMetaInput.serializer, + this, + ) as Map); + + static GSetChapterMetaInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSetChapterMetaInput.serializer, + json, + ); +} + +abstract class GSetGlobalMetaInput + implements Built { + GSetGlobalMetaInput._(); + + factory GSetGlobalMetaInput( + [void Function(GSetGlobalMetaInputBuilder b) updates]) = + _$GSetGlobalMetaInput; + + String? get clientMutationId; + GGlobalMetaTypeInput get meta; + static Serializer get serializer => + _$gSetGlobalMetaInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSetGlobalMetaInput.serializer, + this, + ) as Map); + + static GSetGlobalMetaInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSetGlobalMetaInput.serializer, + json, + ); +} + +abstract class GSetMangaMetaInput + implements Built { + GSetMangaMetaInput._(); + + factory GSetMangaMetaInput( + [void Function(GSetMangaMetaInputBuilder b) updates]) = + _$GSetMangaMetaInput; + + String? get clientMutationId; + GMangaMetaTypeInput get meta; + static Serializer get serializer => + _$gSetMangaMetaInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSetMangaMetaInput.serializer, + this, + ) as Map); + + static GSetMangaMetaInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSetMangaMetaInput.serializer, + json, + ); +} + +abstract class GSetSettingsInput + implements Built { + GSetSettingsInput._(); + + factory GSetSettingsInput( + [void Function(GSetSettingsInputBuilder b) updates]) = + _$GSetSettingsInput; + + String? get clientMutationId; + GPartialSettingsTypeInput get settings; + static Serializer get serializer => + _$gSetSettingsInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSetSettingsInput.serializer, + this, + ) as Map); + + static GSetSettingsInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSetSettingsInput.serializer, + json, + ); +} + +abstract class GSetSourceMetaInput + implements Built { + GSetSourceMetaInput._(); + + factory GSetSourceMetaInput( + [void Function(GSetSourceMetaInputBuilder b) updates]) = + _$GSetSourceMetaInput; + + String? get clientMutationId; + GSourceMetaTypeInput get meta; + static Serializer get serializer => + _$gSetSourceMetaInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSetSourceMetaInput.serializer, + this, + ) as Map); + + static GSetSourceMetaInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSetSourceMetaInput.serializer, + json, + ); +} + +class GSortOrder extends EnumClass { + const GSortOrder._(String name) : super(name); + + static const GSortOrder ASC = _$gSortOrderASC; + + static const GSortOrder DESC = _$gSortOrderDESC; + + static const GSortOrder ASC_NULLS_FIRST = _$gSortOrderASC_NULLS_FIRST; + + static const GSortOrder DESC_NULLS_FIRST = _$gSortOrderDESC_NULLS_FIRST; + + static const GSortOrder ASC_NULLS_LAST = _$gSortOrderASC_NULLS_LAST; + + static const GSortOrder DESC_NULLS_LAST = _$gSortOrderDESC_NULLS_LAST; + + static Serializer get serializer => _$gSortOrderSerializer; + + static BuiltSet get values => _$gSortOrderValues; + + static GSortOrder valueOf(String name) => _$gSortOrderValueOf(name); +} + +abstract class GSortSelectionInput + implements Built { + GSortSelectionInput._(); + + factory GSortSelectionInput( + [void Function(GSortSelectionInputBuilder b) updates]) = + _$GSortSelectionInput; + + bool get ascending; + int get index; + static Serializer get serializer => + _$gSortSelectionInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSortSelectionInput.serializer, + this, + ) as Map); + + static GSortSelectionInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSortSelectionInput.serializer, + json, + ); +} + +abstract class GSourceConditionInput + implements Built { + GSourceConditionInput._(); + + factory GSourceConditionInput( + [void Function(GSourceConditionInputBuilder b) updates]) = + _$GSourceConditionInput; + + GLongString? get id; + bool? get isNsfw; + String? get lang; + String? get name; + static Serializer get serializer => + _$gSourceConditionInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSourceConditionInput.serializer, + this, + ) as Map); + + static GSourceConditionInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSourceConditionInput.serializer, + json, + ); +} + +abstract class GSourceFilterInput + implements Built { + GSourceFilterInput._(); + + factory GSourceFilterInput( + [void Function(GSourceFilterInputBuilder b) updates]) = + _$GSourceFilterInput; + + BuiltList? get and; + GLongFilterInput? get id; + GBooleanFilterInput? get isNsfw; + GStringFilterInput? get lang; + GStringFilterInput? get name; + GSourceFilterInput? get not; + BuiltList? get or; + static Serializer get serializer => + _$gSourceFilterInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSourceFilterInput.serializer, + this, + ) as Map); + + static GSourceFilterInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSourceFilterInput.serializer, + json, + ); +} + +abstract class GSourceMetaTypeInput + implements Built { + GSourceMetaTypeInput._(); + + factory GSourceMetaTypeInput( + [void Function(GSourceMetaTypeInputBuilder b) updates]) = + _$GSourceMetaTypeInput; + + String get key; + GLongString get sourceId; + String get value; + static Serializer get serializer => + _$gSourceMetaTypeInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSourceMetaTypeInput.serializer, + this, + ) as Map); + + static GSourceMetaTypeInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSourceMetaTypeInput.serializer, + json, + ); +} + +class GSourceOrderBy extends EnumClass { + const GSourceOrderBy._(String name) : super(name); + + static const GSourceOrderBy ID = _$gSourceOrderByID; + + static const GSourceOrderBy NAME = _$gSourceOrderByNAME; + + static const GSourceOrderBy LANG = _$gSourceOrderByLANG; + + static Serializer get serializer => + _$gSourceOrderBySerializer; + + static BuiltSet get values => _$gSourceOrderByValues; + + static GSourceOrderBy valueOf(String name) => _$gSourceOrderByValueOf(name); +} + +abstract class GSourcePreferenceChangeInput + implements + Built { + GSourcePreferenceChangeInput._(); + + factory GSourcePreferenceChangeInput( + [void Function(GSourcePreferenceChangeInputBuilder b) updates]) = + _$GSourcePreferenceChangeInput; + + bool? get checkBoxState; + String? get editTextState; + String? get listState; + BuiltList? get multiSelectState; + int get position; + bool? get switchState; + static Serializer get serializer => + _$gSourcePreferenceChangeInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSourcePreferenceChangeInput.serializer, + this, + ) as Map); + + static GSourcePreferenceChangeInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSourcePreferenceChangeInput.serializer, + json, + ); +} + +abstract class GStartDownloaderInput + implements Built { + GStartDownloaderInput._(); + + factory GStartDownloaderInput( + [void Function(GStartDownloaderInputBuilder b) updates]) = + _$GStartDownloaderInput; + + String? get clientMutationId; + static Serializer get serializer => + _$gStartDownloaderInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GStartDownloaderInput.serializer, + this, + ) as Map); + + static GStartDownloaderInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GStartDownloaderInput.serializer, + json, + ); +} + +abstract class GStopDownloaderInput + implements Built { + GStopDownloaderInput._(); + + factory GStopDownloaderInput( + [void Function(GStopDownloaderInputBuilder b) updates]) = + _$GStopDownloaderInput; + + String? get clientMutationId; + static Serializer get serializer => + _$gStopDownloaderInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GStopDownloaderInput.serializer, + this, + ) as Map); + + static GStopDownloaderInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GStopDownloaderInput.serializer, + json, + ); +} + +abstract class GStringFilterInput + implements Built { + GStringFilterInput._(); + + factory GStringFilterInput( + [void Function(GStringFilterInputBuilder b) updates]) = + _$GStringFilterInput; + + String? get distinctFrom; + String? get distinctFromInsensitive; + String? get endsWith; + String? get endsWithInsensitive; + String? get equalTo; + String? get greaterThan; + String? get greaterThanInsensitive; + String? get greaterThanOrEqualTo; + String? get greaterThanOrEqualToInsensitive; + @BuiltValueField(wireName: 'in') + BuiltList? get Gin; + BuiltList? get inInsensitive; + String? get includes; + String? get includesInsensitive; + bool? get isNull; + String? get lessThan; + String? get lessThanInsensitive; + String? get lessThanOrEqualTo; + String? get lessThanOrEqualToInsensitive; + String? get like; + String? get likeInsensitive; + String? get notDistinctFrom; + String? get notDistinctFromInsensitive; + String? get notEndsWith; + String? get notEndsWithInsensitive; + String? get notEqualTo; + BuiltList? get notIn; + BuiltList? get notInInsensitive; + String? get notIncludes; + String? get notIncludesInsensitive; + String? get notLike; + String? get notLikeInsensitive; + String? get notStartsWith; + String? get notStartsWithInsensitive; + String? get startsWith; + String? get startsWithInsensitive; + static Serializer get serializer => + _$gStringFilterInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GStringFilterInput.serializer, + this, + ) as Map); + + static GStringFilterInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GStringFilterInput.serializer, + json, + ); +} + +abstract class GTrackerConditionInput + implements Built { + GTrackerConditionInput._(); + + factory GTrackerConditionInput( + [void Function(GTrackerConditionInputBuilder b) updates]) = + _$GTrackerConditionInput; + + String? get icon; + int? get id; + bool? get isLoggedIn; + String? get name; + static Serializer get serializer => + _$gTrackerConditionInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GTrackerConditionInput.serializer, + this, + ) as Map); + + static GTrackerConditionInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GTrackerConditionInput.serializer, + json, + ); +} + +class GTrackerOrderBy extends EnumClass { + const GTrackerOrderBy._(String name) : super(name); + + static const GTrackerOrderBy ID = _$gTrackerOrderByID; + + static const GTrackerOrderBy NAME = _$gTrackerOrderByNAME; + + static const GTrackerOrderBy IS_LOGGED_IN = _$gTrackerOrderByIS_LOGGED_IN; + + static Serializer get serializer => + _$gTrackerOrderBySerializer; + + static BuiltSet get values => _$gTrackerOrderByValues; + + static GTrackerOrderBy valueOf(String name) => _$gTrackerOrderByValueOf(name); +} + +abstract class GTrackRecordConditionInput + implements + Built { + GTrackRecordConditionInput._(); + + factory GTrackRecordConditionInput( + [void Function(GTrackRecordConditionInputBuilder b) updates]) = + _$GTrackRecordConditionInput; + + GLongString? get finishDate; + int? get id; + double? get lastChapterRead; + GLongString? get libraryId; + int? get mangaId; + GLongString? get remoteId; + String? get remoteUrl; + double? get score; + GLongString? get startDate; + int? get status; + String? get title; + int? get totalChapters; + int? get trackerId; + static Serializer get serializer => + _$gTrackRecordConditionInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GTrackRecordConditionInput.serializer, + this, + ) as Map); + + static GTrackRecordConditionInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GTrackRecordConditionInput.serializer, + json, + ); +} + +abstract class GTrackRecordFilterInput + implements Built { + GTrackRecordFilterInput._(); + + factory GTrackRecordFilterInput( + [void Function(GTrackRecordFilterInputBuilder b) updates]) = + _$GTrackRecordFilterInput; + + BuiltList? get and; + GLongFilterInput? get finishDate; + GIntFilterInput? get id; + GDoubleFilterInput? get lastChapterRead; + GLongFilterInput? get libraryId; + GIntFilterInput? get mangaId; + GTrackRecordFilterInput? get not; + BuiltList? get or; + GLongFilterInput? get remoteId; + GStringFilterInput? get remoteUrl; + GDoubleFilterInput? get score; + GLongFilterInput? get startDate; + GIntFilterInput? get status; + GStringFilterInput? get title; + GIntFilterInput? get totalChapters; + GIntFilterInput? get trackerId; + static Serializer get serializer => + _$gTrackRecordFilterInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GTrackRecordFilterInput.serializer, + this, + ) as Map); + + static GTrackRecordFilterInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GTrackRecordFilterInput.serializer, + json, + ); +} + +class GTrackRecordOrderBy extends EnumClass { + const GTrackRecordOrderBy._(String name) : super(name); + + static const GTrackRecordOrderBy ID = _$gTrackRecordOrderByID; + + static const GTrackRecordOrderBy MANGA_ID = _$gTrackRecordOrderByMANGA_ID; + + static const GTrackRecordOrderBy TRACKER_ID = _$gTrackRecordOrderByTRACKER_ID; + + static const GTrackRecordOrderBy REMOTE_ID = _$gTrackRecordOrderByREMOTE_ID; + + static const GTrackRecordOrderBy TITLE = _$gTrackRecordOrderByTITLE; + + static const GTrackRecordOrderBy LAST_CHAPTER_READ = + _$gTrackRecordOrderByLAST_CHAPTER_READ; + + static const GTrackRecordOrderBy TOTAL_CHAPTERS = + _$gTrackRecordOrderByTOTAL_CHAPTERS; + + static const GTrackRecordOrderBy SCORE = _$gTrackRecordOrderBySCORE; + + static const GTrackRecordOrderBy START_DATE = _$gTrackRecordOrderBySTART_DATE; + + static const GTrackRecordOrderBy FINISH_DATE = + _$gTrackRecordOrderByFINISH_DATE; + + static Serializer get serializer => + _$gTrackRecordOrderBySerializer; + + static BuiltSet get values => + _$gTrackRecordOrderByValues; + + static GTrackRecordOrderBy valueOf(String name) => + _$gTrackRecordOrderByValueOf(name); +} + +class GTriState extends EnumClass { + const GTriState._(String name) : super(name); + + static const GTriState IGNORE = _$gTriStateIGNORE; + + static const GTriState INCLUDE = _$gTriStateINCLUDE; + + static const GTriState EXCLUDE = _$gTriStateEXCLUDE; + + static Serializer get serializer => _$gTriStateSerializer; + + static BuiltSet get values => _$gTriStateValues; + + static GTriState valueOf(String name) => _$gTriStateValueOf(name); +} + +abstract class GUpdateCategoriesInput + implements Built { + GUpdateCategoriesInput._(); + + factory GUpdateCategoriesInput( + [void Function(GUpdateCategoriesInputBuilder b) updates]) = + _$GUpdateCategoriesInput; + + String? get clientMutationId; + BuiltList get ids; + GUpdateCategoryPatchInput get patch; + static Serializer get serializer => + _$gUpdateCategoriesInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateCategoriesInput.serializer, + this, + ) as Map); + + static GUpdateCategoriesInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateCategoriesInput.serializer, + json, + ); +} + +abstract class GUpdateCategoryInput + implements Built { + GUpdateCategoryInput._(); + + factory GUpdateCategoryInput( + [void Function(GUpdateCategoryInputBuilder b) updates]) = + _$GUpdateCategoryInput; + + String? get clientMutationId; + int get id; + GUpdateCategoryPatchInput get patch; + static Serializer get serializer => + _$gUpdateCategoryInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateCategoryInput.serializer, + this, + ) as Map); + + static GUpdateCategoryInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateCategoryInput.serializer, + json, + ); +} + +abstract class GUpdateCategoryMangaInput + implements + Built { + GUpdateCategoryMangaInput._(); + + factory GUpdateCategoryMangaInput( + [void Function(GUpdateCategoryMangaInputBuilder b) updates]) = + _$GUpdateCategoryMangaInput; + + BuiltList get categories; + String? get clientMutationId; + static Serializer get serializer => + _$gUpdateCategoryMangaInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateCategoryMangaInput.serializer, + this, + ) as Map); + + static GUpdateCategoryMangaInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateCategoryMangaInput.serializer, + json, + ); +} + +abstract class GUpdateCategoryOrderInput + implements + Built { + GUpdateCategoryOrderInput._(); + + factory GUpdateCategoryOrderInput( + [void Function(GUpdateCategoryOrderInputBuilder b) updates]) = + _$GUpdateCategoryOrderInput; + + String? get clientMutationId; + int get id; + int get position; + static Serializer get serializer => + _$gUpdateCategoryOrderInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateCategoryOrderInput.serializer, + this, + ) as Map); + + static GUpdateCategoryOrderInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateCategoryOrderInput.serializer, + json, + ); +} + +abstract class GUpdateCategoryPatchInput + implements + Built { + GUpdateCategoryPatchInput._(); + + factory GUpdateCategoryPatchInput( + [void Function(GUpdateCategoryPatchInputBuilder b) updates]) = + _$GUpdateCategoryPatchInput; + + @BuiltValueField(wireName: 'default') + bool? get Gdefault; + GIncludeOrExclude? get includeInDownload; + GIncludeOrExclude? get includeInUpdate; + String? get name; + static Serializer get serializer => + _$gUpdateCategoryPatchInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateCategoryPatchInput.serializer, + this, + ) as Map); + + static GUpdateCategoryPatchInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateCategoryPatchInput.serializer, + json, + ); +} + +abstract class GUpdateChapterInput + implements Built { + GUpdateChapterInput._(); + + factory GUpdateChapterInput( + [void Function(GUpdateChapterInputBuilder b) updates]) = + _$GUpdateChapterInput; + + String? get clientMutationId; + int get id; + GUpdateChapterPatchInput get patch; + static Serializer get serializer => + _$gUpdateChapterInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateChapterInput.serializer, + this, + ) as Map); + + static GUpdateChapterInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateChapterInput.serializer, + json, + ); +} + +abstract class GUpdateChapterPatchInput + implements + Built { + GUpdateChapterPatchInput._(); + + factory GUpdateChapterPatchInput( + [void Function(GUpdateChapterPatchInputBuilder b) updates]) = + _$GUpdateChapterPatchInput; + + bool? get isBookmarked; + bool? get isRead; + int? get lastPageRead; + static Serializer get serializer => + _$gUpdateChapterPatchInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateChapterPatchInput.serializer, + this, + ) as Map); + + static GUpdateChapterPatchInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateChapterPatchInput.serializer, + json, + ); +} + +abstract class GUpdateChaptersInput + implements Built { + GUpdateChaptersInput._(); + + factory GUpdateChaptersInput( + [void Function(GUpdateChaptersInputBuilder b) updates]) = + _$GUpdateChaptersInput; + + String? get clientMutationId; + BuiltList get ids; + GUpdateChapterPatchInput get patch; + static Serializer get serializer => + _$gUpdateChaptersInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateChaptersInput.serializer, + this, + ) as Map); + + static GUpdateChaptersInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateChaptersInput.serializer, + json, + ); +} + +abstract class GUpdateExtensionInput + implements Built { + GUpdateExtensionInput._(); + + factory GUpdateExtensionInput( + [void Function(GUpdateExtensionInputBuilder b) updates]) = + _$GUpdateExtensionInput; + + String? get clientMutationId; + String get id; + GUpdateExtensionPatchInput get patch; + static Serializer get serializer => + _$gUpdateExtensionInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateExtensionInput.serializer, + this, + ) as Map); + + static GUpdateExtensionInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateExtensionInput.serializer, + json, + ); +} + +abstract class GUpdateExtensionPatchInput + implements + Built { + GUpdateExtensionPatchInput._(); + + factory GUpdateExtensionPatchInput( + [void Function(GUpdateExtensionPatchInputBuilder b) updates]) = + _$GUpdateExtensionPatchInput; + + bool? get install; + bool? get uninstall; + @BuiltValueField(wireName: 'update') + bool? get Gupdate; + static Serializer get serializer => + _$gUpdateExtensionPatchInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateExtensionPatchInput.serializer, + this, + ) as Map); + + static GUpdateExtensionPatchInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateExtensionPatchInput.serializer, + json, + ); +} + +abstract class GUpdateExtensionsInput + implements Built { + GUpdateExtensionsInput._(); + + factory GUpdateExtensionsInput( + [void Function(GUpdateExtensionsInputBuilder b) updates]) = + _$GUpdateExtensionsInput; + + String? get clientMutationId; + BuiltList get ids; + GUpdateExtensionPatchInput get patch; + static Serializer get serializer => + _$gUpdateExtensionsInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateExtensionsInput.serializer, + this, + ) as Map); + + static GUpdateExtensionsInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateExtensionsInput.serializer, + json, + ); +} + +abstract class GUpdateLibraryMangaInput + implements + Built { + GUpdateLibraryMangaInput._(); + + factory GUpdateLibraryMangaInput( + [void Function(GUpdateLibraryMangaInputBuilder b) updates]) = + _$GUpdateLibraryMangaInput; + + String? get clientMutationId; + static Serializer get serializer => + _$gUpdateLibraryMangaInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateLibraryMangaInput.serializer, + this, + ) as Map); + + static GUpdateLibraryMangaInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateLibraryMangaInput.serializer, + json, + ); +} + +abstract class GUpdateMangaCategoriesInput + implements + Built { + GUpdateMangaCategoriesInput._(); + + factory GUpdateMangaCategoriesInput( + [void Function(GUpdateMangaCategoriesInputBuilder b) updates]) = + _$GUpdateMangaCategoriesInput; + + String? get clientMutationId; + int get id; + GUpdateMangaCategoriesPatchInput get patch; + static Serializer get serializer => + _$gUpdateMangaCategoriesInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateMangaCategoriesInput.serializer, + this, + ) as Map); + + static GUpdateMangaCategoriesInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateMangaCategoriesInput.serializer, + json, + ); +} + +abstract class GUpdateMangaCategoriesPatchInput + implements + Built { + GUpdateMangaCategoriesPatchInput._(); + + factory GUpdateMangaCategoriesPatchInput( + [void Function(GUpdateMangaCategoriesPatchInputBuilder b) updates]) = + _$GUpdateMangaCategoriesPatchInput; + + BuiltList? get addToCategories; + bool? get clearCategories; + BuiltList? get removeFromCategories; + static Serializer get serializer => + _$gUpdateMangaCategoriesPatchInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateMangaCategoriesPatchInput.serializer, + this, + ) as Map); + + static GUpdateMangaCategoriesPatchInput? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateMangaCategoriesPatchInput.serializer, + json, + ); +} + +abstract class GUpdateMangaInput + implements Built { + GUpdateMangaInput._(); + + factory GUpdateMangaInput( + [void Function(GUpdateMangaInputBuilder b) updates]) = + _$GUpdateMangaInput; + + String? get clientMutationId; + int get id; + GUpdateMangaPatchInput get patch; + static Serializer get serializer => + _$gUpdateMangaInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateMangaInput.serializer, + this, + ) as Map); + + static GUpdateMangaInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateMangaInput.serializer, + json, + ); +} + +abstract class GUpdateMangaPatchInput + implements Built { + GUpdateMangaPatchInput._(); + + factory GUpdateMangaPatchInput( + [void Function(GUpdateMangaPatchInputBuilder b) updates]) = + _$GUpdateMangaPatchInput; + + bool? get inLibrary; + static Serializer get serializer => + _$gUpdateMangaPatchInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateMangaPatchInput.serializer, + this, + ) as Map); + + static GUpdateMangaPatchInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateMangaPatchInput.serializer, + json, + ); +} + +abstract class GUpdateMangasCategoriesInput + implements + Built { + GUpdateMangasCategoriesInput._(); + + factory GUpdateMangasCategoriesInput( + [void Function(GUpdateMangasCategoriesInputBuilder b) updates]) = + _$GUpdateMangasCategoriesInput; + + String? get clientMutationId; + BuiltList get ids; + GUpdateMangaCategoriesPatchInput get patch; + static Serializer get serializer => + _$gUpdateMangasCategoriesInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateMangasCategoriesInput.serializer, + this, + ) as Map); + + static GUpdateMangasCategoriesInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateMangasCategoriesInput.serializer, + json, + ); +} + +abstract class GUpdateMangasInput + implements Built { + GUpdateMangasInput._(); + + factory GUpdateMangasInput( + [void Function(GUpdateMangasInputBuilder b) updates]) = + _$GUpdateMangasInput; + + String? get clientMutationId; + BuiltList get ids; + GUpdateMangaPatchInput get patch; + static Serializer get serializer => + _$gUpdateMangasInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateMangasInput.serializer, + this, + ) as Map); + + static GUpdateMangasInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateMangasInput.serializer, + json, + ); +} + +abstract class GUpdateSourcePreferenceInput + implements + Built { + GUpdateSourcePreferenceInput._(); + + factory GUpdateSourcePreferenceInput( + [void Function(GUpdateSourcePreferenceInputBuilder b) updates]) = + _$GUpdateSourcePreferenceInput; + + GSourcePreferenceChangeInput get change; + String? get clientMutationId; + GLongString get source; + static Serializer get serializer => + _$gUpdateSourcePreferenceInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSourcePreferenceInput.serializer, + this, + ) as Map); + + static GUpdateSourcePreferenceInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateSourcePreferenceInput.serializer, + json, + ); +} + +class GUpdateState extends EnumClass { + const GUpdateState._(String name) : super(name); + + static const GUpdateState IDLE = _$gUpdateStateIDLE; + + static const GUpdateState DOWNLOADING = _$gUpdateStateDOWNLOADING; + + static const GUpdateState FINISHED = _$gUpdateStateFINISHED; + + static const GUpdateState ERROR = _$gUpdateStateERROR; + + static Serializer get serializer => _$gUpdateStateSerializer; + + static BuiltSet get values => _$gUpdateStateValues; + + static GUpdateState valueOf(String name) => _$gUpdateStateValueOf(name); +} + +abstract class GUpdateStopInput + implements Built { + GUpdateStopInput._(); + + factory GUpdateStopInput([void Function(GUpdateStopInputBuilder b) updates]) = + _$GUpdateStopInput; + + String? get clientMutationId; + static Serializer get serializer => + _$gUpdateStopInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateStopInput.serializer, + this, + ) as Map); + + static GUpdateStopInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateStopInput.serializer, + json, + ); +} + +class GUpdateStrategy extends EnumClass { + const GUpdateStrategy._(String name) : super(name); + + static const GUpdateStrategy ALWAYS_UPDATE = _$gUpdateStrategyALWAYS_UPDATE; + + static const GUpdateStrategy ONLY_FETCH_ONCE = + _$gUpdateStrategyONLY_FETCH_ONCE; + + static Serializer get serializer => + _$gUpdateStrategySerializer; + + static BuiltSet get values => _$gUpdateStrategyValues; + + static GUpdateStrategy valueOf(String name) => _$gUpdateStrategyValueOf(name); +} + +abstract class GUpdateTrackInput + implements Built { + GUpdateTrackInput._(); + + factory GUpdateTrackInput( + [void Function(GUpdateTrackInputBuilder b) updates]) = + _$GUpdateTrackInput; + + String? get clientMutationId; + GLongString? get finishDate; + double? get lastChapterRead; + int get recordId; + String? get scoreString; + GLongString? get startDate; + int? get status; + bool? get unbind; + static Serializer get serializer => + _$gUpdateTrackInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateTrackInput.serializer, + this, + ) as Map); + + static GUpdateTrackInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateTrackInput.serializer, + json, + ); +} + +abstract class GValidateBackupInput + implements Built { + GValidateBackupInput._(); + + factory GValidateBackupInput( + [void Function(GValidateBackupInputBuilder b) updates]) = + _$GValidateBackupInput; + + _i3.MultipartFile get backup; + static Serializer get serializer => + _$gValidateBackupInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GValidateBackupInput.serializer, + this, + ) as Map); + + static GValidateBackupInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GValidateBackupInput.serializer, + json, + ); +} + +class GWebUIChannel extends EnumClass { + const GWebUIChannel._(String name) : super(name); + + static const GWebUIChannel BUNDLED = _$gWebUIChannelBUNDLED; + + static const GWebUIChannel STABLE = _$gWebUIChannelSTABLE; + + static const GWebUIChannel PREVIEW = _$gWebUIChannelPREVIEW; + + static Serializer get serializer => _$gWebUIChannelSerializer; + + static BuiltSet get values => _$gWebUIChannelValues; + + static GWebUIChannel valueOf(String name) => _$gWebUIChannelValueOf(name); +} + +class GWebUIFlavor extends EnumClass { + const GWebUIFlavor._(String name) : super(name); + + static const GWebUIFlavor WEBUI = _$gWebUIFlavorWEBUI; + + static const GWebUIFlavor VUI = _$gWebUIFlavorVUI; + + static const GWebUIFlavor CUSTOM = _$gWebUIFlavorCUSTOM; + + static Serializer get serializer => _$gWebUIFlavorSerializer; + + static BuiltSet get values => _$gWebUIFlavorValues; + + static GWebUIFlavor valueOf(String name) => _$gWebUIFlavorValueOf(name); +} + +class GWebUIInterface extends EnumClass { + const GWebUIInterface._(String name) : super(name); + + static const GWebUIInterface BROWSER = _$gWebUIInterfaceBROWSER; + + static const GWebUIInterface ELECTRON = _$gWebUIInterfaceELECTRON; + + static Serializer get serializer => + _$gWebUIInterfaceSerializer; + + static BuiltSet get values => _$gWebUIInterfaceValues; + + static GWebUIInterface valueOf(String name) => _$gWebUIInterfaceValueOf(name); +} + +abstract class GWebUIUpdateInput + implements Built { + GWebUIUpdateInput._(); + + factory GWebUIUpdateInput( + [void Function(GWebUIUpdateInputBuilder b) updates]) = + _$GWebUIUpdateInput; + + String? get clientMutationId; + static Serializer get serializer => + _$gWebUIUpdateInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GWebUIUpdateInput.serializer, + this, + ) as Map); + + static GWebUIUpdateInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GWebUIUpdateInput.serializer, + json, + ); +} + +const Map> possibleTypesMap = { + 'Edge': { + 'CategoryEdge', + 'ChapterEdge', + 'DownloadEdge', + 'ExtensionEdge', + 'MangaEdge', + 'MetaEdge', + 'SourceEdge', + 'TrackerEdge', + 'TrackRecordEdge', + }, + 'MetaType': { + 'CategoryMetaType', + 'ChapterMetaType', + 'GlobalMetaType', + 'MangaMetaType', + 'SourceMetaType', + }, + 'NodeList': { + 'CategoryNodeList', + 'ChapterNodeList', + 'DownloadNodeList', + 'ExtensionNodeList', + 'GlobalMetaNodeList', + 'MangaNodeList', + 'SourceNodeList', + 'TrackerNodeList', + 'TrackRecordNodeList', + }, + 'Filter': { + 'CheckBoxFilter', + 'GroupFilter', + 'HeaderFilter', + 'SelectFilter', + 'SeparatorFilter', + 'SortFilter', + 'TextFilter', + 'TriStateFilter', + }, + 'Node': { + 'CategoryMetaType', + 'CategoryType', + 'ChapterMetaType', + 'ChapterType', + 'DownloadType', + 'ExtensionType', + 'GlobalMetaType', + 'MangaMetaType', + 'MangaType', + 'PartialSettingsType', + 'SettingsType', + 'SourceMetaType', + 'SourceType', + 'TrackRecordType', + 'TrackerType', + }, + 'Settings': { + 'PartialSettingsType', + 'SettingsType', + }, + 'Preference': { + 'CheckBoxPreference', + 'EditTextPreference', + 'ListPreference', + 'MultiSelectListPreference', + 'SwitchPreference', + }, +}; diff --git a/lib/src/graphql/__generated__/schema.schema.gql.g.dart b/lib/src/graphql/__generated__/schema.schema.gql.g.dart new file mode 100644 index 00000000..fcfcbb2a --- /dev/null +++ b/lib/src/graphql/__generated__/schema.schema.gql.g.dart @@ -0,0 +1,24155 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'schema.schema.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +const GBackupRestoreState _$gBackupRestoreStateIDLE = + const GBackupRestoreState._('IDLE'); +const GBackupRestoreState _$gBackupRestoreStateSUCCESS = + const GBackupRestoreState._('SUCCESS'); +const GBackupRestoreState _$gBackupRestoreStateFAILURE = + const GBackupRestoreState._('FAILURE'); +const GBackupRestoreState _$gBackupRestoreStateRESTORING_CATEGORIES = + const GBackupRestoreState._('RESTORING_CATEGORIES'); +const GBackupRestoreState _$gBackupRestoreStateRESTORING_MANGA = + const GBackupRestoreState._('RESTORING_MANGA'); + +GBackupRestoreState _$gBackupRestoreStateValueOf(String name) { + switch (name) { + case 'IDLE': + return _$gBackupRestoreStateIDLE; + case 'SUCCESS': + return _$gBackupRestoreStateSUCCESS; + case 'FAILURE': + return _$gBackupRestoreStateFAILURE; + case 'RESTORING_CATEGORIES': + return _$gBackupRestoreStateRESTORING_CATEGORIES; + case 'RESTORING_MANGA': + return _$gBackupRestoreStateRESTORING_MANGA; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gBackupRestoreStateValues = + new BuiltSet(const [ + _$gBackupRestoreStateIDLE, + _$gBackupRestoreStateSUCCESS, + _$gBackupRestoreStateFAILURE, + _$gBackupRestoreStateRESTORING_CATEGORIES, + _$gBackupRestoreStateRESTORING_MANGA, +]); + +const GCategoryOrderBy _$gCategoryOrderByID = const GCategoryOrderBy._('ID'); +const GCategoryOrderBy _$gCategoryOrderByNAME = + const GCategoryOrderBy._('NAME'); +const GCategoryOrderBy _$gCategoryOrderByORDER = + const GCategoryOrderBy._('ORDER'); + +GCategoryOrderBy _$gCategoryOrderByValueOf(String name) { + switch (name) { + case 'ID': + return _$gCategoryOrderByID; + case 'NAME': + return _$gCategoryOrderByNAME; + case 'ORDER': + return _$gCategoryOrderByORDER; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gCategoryOrderByValues = + new BuiltSet(const [ + _$gCategoryOrderByID, + _$gCategoryOrderByNAME, + _$gCategoryOrderByORDER, +]); + +const GChapterOrderBy _$gChapterOrderByID = const GChapterOrderBy._('ID'); +const GChapterOrderBy _$gChapterOrderBySOURCE_ORDER = + const GChapterOrderBy._('SOURCE_ORDER'); +const GChapterOrderBy _$gChapterOrderByNAME = const GChapterOrderBy._('NAME'); +const GChapterOrderBy _$gChapterOrderByUPLOAD_DATE = + const GChapterOrderBy._('UPLOAD_DATE'); +const GChapterOrderBy _$gChapterOrderByCHAPTER_NUMBER = + const GChapterOrderBy._('CHAPTER_NUMBER'); +const GChapterOrderBy _$gChapterOrderByLAST_READ_AT = + const GChapterOrderBy._('LAST_READ_AT'); +const GChapterOrderBy _$gChapterOrderByFETCHED_AT = + const GChapterOrderBy._('FETCHED_AT'); + +GChapterOrderBy _$gChapterOrderByValueOf(String name) { + switch (name) { + case 'ID': + return _$gChapterOrderByID; + case 'SOURCE_ORDER': + return _$gChapterOrderBySOURCE_ORDER; + case 'NAME': + return _$gChapterOrderByNAME; + case 'UPLOAD_DATE': + return _$gChapterOrderByUPLOAD_DATE; + case 'CHAPTER_NUMBER': + return _$gChapterOrderByCHAPTER_NUMBER; + case 'LAST_READ_AT': + return _$gChapterOrderByLAST_READ_AT; + case 'FETCHED_AT': + return _$gChapterOrderByFETCHED_AT; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gChapterOrderByValues = + new BuiltSet(const [ + _$gChapterOrderByID, + _$gChapterOrderBySOURCE_ORDER, + _$gChapterOrderByNAME, + _$gChapterOrderByUPLOAD_DATE, + _$gChapterOrderByCHAPTER_NUMBER, + _$gChapterOrderByLAST_READ_AT, + _$gChapterOrderByFETCHED_AT, +]); + +const GDownloaderState _$gDownloaderStateSTARTED = + const GDownloaderState._('STARTED'); +const GDownloaderState _$gDownloaderStateSTOPPED = + const GDownloaderState._('STOPPED'); + +GDownloaderState _$gDownloaderStateValueOf(String name) { + switch (name) { + case 'STARTED': + return _$gDownloaderStateSTARTED; + case 'STOPPED': + return _$gDownloaderStateSTOPPED; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gDownloaderStateValues = + new BuiltSet(const [ + _$gDownloaderStateSTARTED, + _$gDownloaderStateSTOPPED, +]); + +const GDownloadState _$gDownloadStateQUEUED = const GDownloadState._('QUEUED'); +const GDownloadState _$gDownloadStateDOWNLOADING = + const GDownloadState._('DOWNLOADING'); +const GDownloadState _$gDownloadStateFINISHED = + const GDownloadState._('FINISHED'); +const GDownloadState _$gDownloadStateERROR = const GDownloadState._('ERROR'); + +GDownloadState _$gDownloadStateValueOf(String name) { + switch (name) { + case 'QUEUED': + return _$gDownloadStateQUEUED; + case 'DOWNLOADING': + return _$gDownloadStateDOWNLOADING; + case 'FINISHED': + return _$gDownloadStateFINISHED; + case 'ERROR': + return _$gDownloadStateERROR; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gDownloadStateValues = + new BuiltSet(const [ + _$gDownloadStateQUEUED, + _$gDownloadStateDOWNLOADING, + _$gDownloadStateFINISHED, + _$gDownloadStateERROR, +]); + +const GExtensionOrderBy _$gExtensionOrderByPKG_NAME = + const GExtensionOrderBy._('PKG_NAME'); +const GExtensionOrderBy _$gExtensionOrderByNAME = + const GExtensionOrderBy._('NAME'); +const GExtensionOrderBy _$gExtensionOrderByAPK_NAME = + const GExtensionOrderBy._('APK_NAME'); + +GExtensionOrderBy _$gExtensionOrderByValueOf(String name) { + switch (name) { + case 'PKG_NAME': + return _$gExtensionOrderByPKG_NAME; + case 'NAME': + return _$gExtensionOrderByNAME; + case 'APK_NAME': + return _$gExtensionOrderByAPK_NAME; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gExtensionOrderByValues = + new BuiltSet(const [ + _$gExtensionOrderByPKG_NAME, + _$gExtensionOrderByNAME, + _$gExtensionOrderByAPK_NAME, +]); + +const GFetchSourceMangaType _$gFetchSourceMangaTypeSEARCH = + const GFetchSourceMangaType._('SEARCH'); +const GFetchSourceMangaType _$gFetchSourceMangaTypePOPULAR = + const GFetchSourceMangaType._('POPULAR'); +const GFetchSourceMangaType _$gFetchSourceMangaTypeLATEST = + const GFetchSourceMangaType._('LATEST'); + +GFetchSourceMangaType _$gFetchSourceMangaTypeValueOf(String name) { + switch (name) { + case 'SEARCH': + return _$gFetchSourceMangaTypeSEARCH; + case 'POPULAR': + return _$gFetchSourceMangaTypePOPULAR; + case 'LATEST': + return _$gFetchSourceMangaTypeLATEST; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gFetchSourceMangaTypeValues = + new BuiltSet(const [ + _$gFetchSourceMangaTypeSEARCH, + _$gFetchSourceMangaTypePOPULAR, + _$gFetchSourceMangaTypeLATEST, +]); + +const GIncludeOrExclude _$gIncludeOrExcludeEXCLUDE = + const GIncludeOrExclude._('EXCLUDE'); +const GIncludeOrExclude _$gIncludeOrExcludeINCLUDE = + const GIncludeOrExclude._('INCLUDE'); +const GIncludeOrExclude _$gIncludeOrExcludeUNSET = + const GIncludeOrExclude._('UNSET'); + +GIncludeOrExclude _$gIncludeOrExcludeValueOf(String name) { + switch (name) { + case 'EXCLUDE': + return _$gIncludeOrExcludeEXCLUDE; + case 'INCLUDE': + return _$gIncludeOrExcludeINCLUDE; + case 'UNSET': + return _$gIncludeOrExcludeUNSET; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gIncludeOrExcludeValues = + new BuiltSet(const [ + _$gIncludeOrExcludeEXCLUDE, + _$gIncludeOrExcludeINCLUDE, + _$gIncludeOrExcludeUNSET, +]); + +const GMangaOrderBy _$gMangaOrderByID = const GMangaOrderBy._('ID'); +const GMangaOrderBy _$gMangaOrderByTITLE = const GMangaOrderBy._('TITLE'); +const GMangaOrderBy _$gMangaOrderByIN_LIBRARY_AT = + const GMangaOrderBy._('IN_LIBRARY_AT'); +const GMangaOrderBy _$gMangaOrderByLAST_FETCHED_AT = + const GMangaOrderBy._('LAST_FETCHED_AT'); + +GMangaOrderBy _$gMangaOrderByValueOf(String name) { + switch (name) { + case 'ID': + return _$gMangaOrderByID; + case 'TITLE': + return _$gMangaOrderByTITLE; + case 'IN_LIBRARY_AT': + return _$gMangaOrderByIN_LIBRARY_AT; + case 'LAST_FETCHED_AT': + return _$gMangaOrderByLAST_FETCHED_AT; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gMangaOrderByValues = + new BuiltSet(const [ + _$gMangaOrderByID, + _$gMangaOrderByTITLE, + _$gMangaOrderByIN_LIBRARY_AT, + _$gMangaOrderByLAST_FETCHED_AT, +]); + +const GMangaStatus _$gMangaStatusUNKNOWN = const GMangaStatus._('UNKNOWN'); +const GMangaStatus _$gMangaStatusONGOING = const GMangaStatus._('ONGOING'); +const GMangaStatus _$gMangaStatusCOMPLETED = const GMangaStatus._('COMPLETED'); +const GMangaStatus _$gMangaStatusLICENSED = const GMangaStatus._('LICENSED'); +const GMangaStatus _$gMangaStatusPUBLISHING_FINISHED = + const GMangaStatus._('PUBLISHING_FINISHED'); +const GMangaStatus _$gMangaStatusCANCELLED = const GMangaStatus._('CANCELLED'); +const GMangaStatus _$gMangaStatusON_HIATUS = const GMangaStatus._('ON_HIATUS'); + +GMangaStatus _$gMangaStatusValueOf(String name) { + switch (name) { + case 'UNKNOWN': + return _$gMangaStatusUNKNOWN; + case 'ONGOING': + return _$gMangaStatusONGOING; + case 'COMPLETED': + return _$gMangaStatusCOMPLETED; + case 'LICENSED': + return _$gMangaStatusLICENSED; + case 'PUBLISHING_FINISHED': + return _$gMangaStatusPUBLISHING_FINISHED; + case 'CANCELLED': + return _$gMangaStatusCANCELLED; + case 'ON_HIATUS': + return _$gMangaStatusON_HIATUS; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gMangaStatusValues = + new BuiltSet(const [ + _$gMangaStatusUNKNOWN, + _$gMangaStatusONGOING, + _$gMangaStatusCOMPLETED, + _$gMangaStatusLICENSED, + _$gMangaStatusPUBLISHING_FINISHED, + _$gMangaStatusCANCELLED, + _$gMangaStatusON_HIATUS, +]); + +const GMetaOrderBy _$gMetaOrderByKEY = const GMetaOrderBy._('KEY'); +const GMetaOrderBy _$gMetaOrderByVALUE = const GMetaOrderBy._('VALUE'); + +GMetaOrderBy _$gMetaOrderByValueOf(String name) { + switch (name) { + case 'KEY': + return _$gMetaOrderByKEY; + case 'VALUE': + return _$gMetaOrderByVALUE; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gMetaOrderByValues = + new BuiltSet(const [ + _$gMetaOrderByKEY, + _$gMetaOrderByVALUE, +]); + +const GSortOrder _$gSortOrderASC = const GSortOrder._('ASC'); +const GSortOrder _$gSortOrderDESC = const GSortOrder._('DESC'); +const GSortOrder _$gSortOrderASC_NULLS_FIRST = + const GSortOrder._('ASC_NULLS_FIRST'); +const GSortOrder _$gSortOrderDESC_NULLS_FIRST = + const GSortOrder._('DESC_NULLS_FIRST'); +const GSortOrder _$gSortOrderASC_NULLS_LAST = + const GSortOrder._('ASC_NULLS_LAST'); +const GSortOrder _$gSortOrderDESC_NULLS_LAST = + const GSortOrder._('DESC_NULLS_LAST'); + +GSortOrder _$gSortOrderValueOf(String name) { + switch (name) { + case 'ASC': + return _$gSortOrderASC; + case 'DESC': + return _$gSortOrderDESC; + case 'ASC_NULLS_FIRST': + return _$gSortOrderASC_NULLS_FIRST; + case 'DESC_NULLS_FIRST': + return _$gSortOrderDESC_NULLS_FIRST; + case 'ASC_NULLS_LAST': + return _$gSortOrderASC_NULLS_LAST; + case 'DESC_NULLS_LAST': + return _$gSortOrderDESC_NULLS_LAST; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gSortOrderValues = + new BuiltSet(const [ + _$gSortOrderASC, + _$gSortOrderDESC, + _$gSortOrderASC_NULLS_FIRST, + _$gSortOrderDESC_NULLS_FIRST, + _$gSortOrderASC_NULLS_LAST, + _$gSortOrderDESC_NULLS_LAST, +]); + +const GSourceOrderBy _$gSourceOrderByID = const GSourceOrderBy._('ID'); +const GSourceOrderBy _$gSourceOrderByNAME = const GSourceOrderBy._('NAME'); +const GSourceOrderBy _$gSourceOrderByLANG = const GSourceOrderBy._('LANG'); + +GSourceOrderBy _$gSourceOrderByValueOf(String name) { + switch (name) { + case 'ID': + return _$gSourceOrderByID; + case 'NAME': + return _$gSourceOrderByNAME; + case 'LANG': + return _$gSourceOrderByLANG; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gSourceOrderByValues = + new BuiltSet(const [ + _$gSourceOrderByID, + _$gSourceOrderByNAME, + _$gSourceOrderByLANG, +]); + +const GTrackerOrderBy _$gTrackerOrderByID = const GTrackerOrderBy._('ID'); +const GTrackerOrderBy _$gTrackerOrderByNAME = const GTrackerOrderBy._('NAME'); +const GTrackerOrderBy _$gTrackerOrderByIS_LOGGED_IN = + const GTrackerOrderBy._('IS_LOGGED_IN'); + +GTrackerOrderBy _$gTrackerOrderByValueOf(String name) { + switch (name) { + case 'ID': + return _$gTrackerOrderByID; + case 'NAME': + return _$gTrackerOrderByNAME; + case 'IS_LOGGED_IN': + return _$gTrackerOrderByIS_LOGGED_IN; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gTrackerOrderByValues = + new BuiltSet(const [ + _$gTrackerOrderByID, + _$gTrackerOrderByNAME, + _$gTrackerOrderByIS_LOGGED_IN, +]); + +const GTrackRecordOrderBy _$gTrackRecordOrderByID = + const GTrackRecordOrderBy._('ID'); +const GTrackRecordOrderBy _$gTrackRecordOrderByMANGA_ID = + const GTrackRecordOrderBy._('MANGA_ID'); +const GTrackRecordOrderBy _$gTrackRecordOrderByTRACKER_ID = + const GTrackRecordOrderBy._('TRACKER_ID'); +const GTrackRecordOrderBy _$gTrackRecordOrderByREMOTE_ID = + const GTrackRecordOrderBy._('REMOTE_ID'); +const GTrackRecordOrderBy _$gTrackRecordOrderByTITLE = + const GTrackRecordOrderBy._('TITLE'); +const GTrackRecordOrderBy _$gTrackRecordOrderByLAST_CHAPTER_READ = + const GTrackRecordOrderBy._('LAST_CHAPTER_READ'); +const GTrackRecordOrderBy _$gTrackRecordOrderByTOTAL_CHAPTERS = + const GTrackRecordOrderBy._('TOTAL_CHAPTERS'); +const GTrackRecordOrderBy _$gTrackRecordOrderBySCORE = + const GTrackRecordOrderBy._('SCORE'); +const GTrackRecordOrderBy _$gTrackRecordOrderBySTART_DATE = + const GTrackRecordOrderBy._('START_DATE'); +const GTrackRecordOrderBy _$gTrackRecordOrderByFINISH_DATE = + const GTrackRecordOrderBy._('FINISH_DATE'); + +GTrackRecordOrderBy _$gTrackRecordOrderByValueOf(String name) { + switch (name) { + case 'ID': + return _$gTrackRecordOrderByID; + case 'MANGA_ID': + return _$gTrackRecordOrderByMANGA_ID; + case 'TRACKER_ID': + return _$gTrackRecordOrderByTRACKER_ID; + case 'REMOTE_ID': + return _$gTrackRecordOrderByREMOTE_ID; + case 'TITLE': + return _$gTrackRecordOrderByTITLE; + case 'LAST_CHAPTER_READ': + return _$gTrackRecordOrderByLAST_CHAPTER_READ; + case 'TOTAL_CHAPTERS': + return _$gTrackRecordOrderByTOTAL_CHAPTERS; + case 'SCORE': + return _$gTrackRecordOrderBySCORE; + case 'START_DATE': + return _$gTrackRecordOrderBySTART_DATE; + case 'FINISH_DATE': + return _$gTrackRecordOrderByFINISH_DATE; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gTrackRecordOrderByValues = + new BuiltSet(const [ + _$gTrackRecordOrderByID, + _$gTrackRecordOrderByMANGA_ID, + _$gTrackRecordOrderByTRACKER_ID, + _$gTrackRecordOrderByREMOTE_ID, + _$gTrackRecordOrderByTITLE, + _$gTrackRecordOrderByLAST_CHAPTER_READ, + _$gTrackRecordOrderByTOTAL_CHAPTERS, + _$gTrackRecordOrderBySCORE, + _$gTrackRecordOrderBySTART_DATE, + _$gTrackRecordOrderByFINISH_DATE, +]); + +const GTriState _$gTriStateIGNORE = const GTriState._('IGNORE'); +const GTriState _$gTriStateINCLUDE = const GTriState._('INCLUDE'); +const GTriState _$gTriStateEXCLUDE = const GTriState._('EXCLUDE'); + +GTriState _$gTriStateValueOf(String name) { + switch (name) { + case 'IGNORE': + return _$gTriStateIGNORE; + case 'INCLUDE': + return _$gTriStateINCLUDE; + case 'EXCLUDE': + return _$gTriStateEXCLUDE; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gTriStateValues = + new BuiltSet(const [ + _$gTriStateIGNORE, + _$gTriStateINCLUDE, + _$gTriStateEXCLUDE, +]); + +const GUpdateState _$gUpdateStateIDLE = const GUpdateState._('IDLE'); +const GUpdateState _$gUpdateStateDOWNLOADING = + const GUpdateState._('DOWNLOADING'); +const GUpdateState _$gUpdateStateFINISHED = const GUpdateState._('FINISHED'); +const GUpdateState _$gUpdateStateERROR = const GUpdateState._('ERROR'); + +GUpdateState _$gUpdateStateValueOf(String name) { + switch (name) { + case 'IDLE': + return _$gUpdateStateIDLE; + case 'DOWNLOADING': + return _$gUpdateStateDOWNLOADING; + case 'FINISHED': + return _$gUpdateStateFINISHED; + case 'ERROR': + return _$gUpdateStateERROR; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gUpdateStateValues = + new BuiltSet(const [ + _$gUpdateStateIDLE, + _$gUpdateStateDOWNLOADING, + _$gUpdateStateFINISHED, + _$gUpdateStateERROR, +]); + +const GUpdateStrategy _$gUpdateStrategyALWAYS_UPDATE = + const GUpdateStrategy._('ALWAYS_UPDATE'); +const GUpdateStrategy _$gUpdateStrategyONLY_FETCH_ONCE = + const GUpdateStrategy._('ONLY_FETCH_ONCE'); + +GUpdateStrategy _$gUpdateStrategyValueOf(String name) { + switch (name) { + case 'ALWAYS_UPDATE': + return _$gUpdateStrategyALWAYS_UPDATE; + case 'ONLY_FETCH_ONCE': + return _$gUpdateStrategyONLY_FETCH_ONCE; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gUpdateStrategyValues = + new BuiltSet(const [ + _$gUpdateStrategyALWAYS_UPDATE, + _$gUpdateStrategyONLY_FETCH_ONCE, +]); + +const GWebUIChannel _$gWebUIChannelBUNDLED = const GWebUIChannel._('BUNDLED'); +const GWebUIChannel _$gWebUIChannelSTABLE = const GWebUIChannel._('STABLE'); +const GWebUIChannel _$gWebUIChannelPREVIEW = const GWebUIChannel._('PREVIEW'); + +GWebUIChannel _$gWebUIChannelValueOf(String name) { + switch (name) { + case 'BUNDLED': + return _$gWebUIChannelBUNDLED; + case 'STABLE': + return _$gWebUIChannelSTABLE; + case 'PREVIEW': + return _$gWebUIChannelPREVIEW; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gWebUIChannelValues = + new BuiltSet(const [ + _$gWebUIChannelBUNDLED, + _$gWebUIChannelSTABLE, + _$gWebUIChannelPREVIEW, +]); + +const GWebUIFlavor _$gWebUIFlavorWEBUI = const GWebUIFlavor._('WEBUI'); +const GWebUIFlavor _$gWebUIFlavorVUI = const GWebUIFlavor._('VUI'); +const GWebUIFlavor _$gWebUIFlavorCUSTOM = const GWebUIFlavor._('CUSTOM'); + +GWebUIFlavor _$gWebUIFlavorValueOf(String name) { + switch (name) { + case 'WEBUI': + return _$gWebUIFlavorWEBUI; + case 'VUI': + return _$gWebUIFlavorVUI; + case 'CUSTOM': + return _$gWebUIFlavorCUSTOM; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gWebUIFlavorValues = + new BuiltSet(const [ + _$gWebUIFlavorWEBUI, + _$gWebUIFlavorVUI, + _$gWebUIFlavorCUSTOM, +]); + +const GWebUIInterface _$gWebUIInterfaceBROWSER = + const GWebUIInterface._('BROWSER'); +const GWebUIInterface _$gWebUIInterfaceELECTRON = + const GWebUIInterface._('ELECTRON'); + +GWebUIInterface _$gWebUIInterfaceValueOf(String name) { + switch (name) { + case 'BROWSER': + return _$gWebUIInterfaceBROWSER; + case 'ELECTRON': + return _$gWebUIInterfaceELECTRON; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gWebUIInterfaceValues = + new BuiltSet(const [ + _$gWebUIInterfaceBROWSER, + _$gWebUIInterfaceELECTRON, +]); + +Serializer _$gBackupRestoreStateSerializer = + new _$GBackupRestoreStateSerializer(); +Serializer _$gBindTrackInputSerializer = + new _$GBindTrackInputSerializer(); +Serializer _$gBooleanFilterInputSerializer = + new _$GBooleanFilterInputSerializer(); +Serializer _$gCategoryConditionInputSerializer = + new _$GCategoryConditionInputSerializer(); +Serializer _$gCategoryFilterInputSerializer = + new _$GCategoryFilterInputSerializer(); +Serializer _$gCategoryMetaTypeInputSerializer = + new _$GCategoryMetaTypeInputSerializer(); +Serializer _$gCategoryOrderBySerializer = + new _$GCategoryOrderBySerializer(); +Serializer _$gChapterConditionInputSerializer = + new _$GChapterConditionInputSerializer(); +Serializer _$gChapterFilterInputSerializer = + new _$GChapterFilterInputSerializer(); +Serializer _$gChapterMetaTypeInputSerializer = + new _$GChapterMetaTypeInputSerializer(); +Serializer _$gChapterOrderBySerializer = + new _$GChapterOrderBySerializer(); +Serializer _$gClearCachedImagesInputSerializer = + new _$GClearCachedImagesInputSerializer(); +Serializer _$gClearDownloaderInputSerializer = + new _$GClearDownloaderInputSerializer(); +Serializer _$gCreateBackupInputSerializer = + new _$GCreateBackupInputSerializer(); +Serializer _$gCreateCategoryInputSerializer = + new _$GCreateCategoryInputSerializer(); +Serializer _$gDeleteCategoryInputSerializer = + new _$GDeleteCategoryInputSerializer(); +Serializer _$gDeleteCategoryMetaInputSerializer = + new _$GDeleteCategoryMetaInputSerializer(); +Serializer _$gDeleteChapterMetaInputSerializer = + new _$GDeleteChapterMetaInputSerializer(); +Serializer + _$gDeleteDownloadedChapterInputSerializer = + new _$GDeleteDownloadedChapterInputSerializer(); +Serializer + _$gDeleteDownloadedChaptersInputSerializer = + new _$GDeleteDownloadedChaptersInputSerializer(); +Serializer _$gDeleteGlobalMetaInputSerializer = + new _$GDeleteGlobalMetaInputSerializer(); +Serializer _$gDeleteMangaMetaInputSerializer = + new _$GDeleteMangaMetaInputSerializer(); +Serializer _$gDeleteSourceMetaInputSerializer = + new _$GDeleteSourceMetaInputSerializer(); +Serializer + _$gDequeueChapterDownloadInputSerializer = + new _$GDequeueChapterDownloadInputSerializer(); +Serializer + _$gDequeueChapterDownloadsInputSerializer = + new _$GDequeueChapterDownloadsInputSerializer(); +Serializer _$gDoubleFilterInputSerializer = + new _$GDoubleFilterInputSerializer(); +Serializer _$gDownloaderStateSerializer = + new _$GDownloaderStateSerializer(); +Serializer _$gDownloadStateSerializer = + new _$GDownloadStateSerializer(); +Serializer + _$gEnqueueChapterDownloadInputSerializer = + new _$GEnqueueChapterDownloadInputSerializer(); +Serializer + _$gEnqueueChapterDownloadsInputSerializer = + new _$GEnqueueChapterDownloadsInputSerializer(); +Serializer _$gExtensionConditionInputSerializer = + new _$GExtensionConditionInputSerializer(); +Serializer _$gExtensionFilterInputSerializer = + new _$GExtensionFilterInputSerializer(); +Serializer _$gExtensionOrderBySerializer = + new _$GExtensionOrderBySerializer(); +Serializer _$gFetchChapterPagesInputSerializer = + new _$GFetchChapterPagesInputSerializer(); +Serializer _$gFetchChaptersInputSerializer = + new _$GFetchChaptersInputSerializer(); +Serializer _$gFetchExtensionsInputSerializer = + new _$GFetchExtensionsInputSerializer(); +Serializer _$gFetchMangaInputSerializer = + new _$GFetchMangaInputSerializer(); +Serializer _$gFetchSourceMangaInputSerializer = + new _$GFetchSourceMangaInputSerializer(); +Serializer _$gFetchSourceMangaTypeSerializer = + new _$GFetchSourceMangaTypeSerializer(); +Serializer _$gFilterChangeInputSerializer = + new _$GFilterChangeInputSerializer(); +Serializer _$gFloatFilterInputSerializer = + new _$GFloatFilterInputSerializer(); +Serializer _$gGlobalMetaTypeInputSerializer = + new _$GGlobalMetaTypeInputSerializer(); +Serializer _$gIncludeOrExcludeSerializer = + new _$GIncludeOrExcludeSerializer(); +Serializer + _$gInstallExternalExtensionInputSerializer = + new _$GInstallExternalExtensionInputSerializer(); +Serializer _$gIntFilterInputSerializer = + new _$GIntFilterInputSerializer(); +Serializer + _$gLoginTrackerCredentialsInputSerializer = + new _$GLoginTrackerCredentialsInputSerializer(); +Serializer _$gLoginTrackerOAuthInputSerializer = + new _$GLoginTrackerOAuthInputSerializer(); +Serializer _$gLogoutTrackerInputSerializer = + new _$GLogoutTrackerInputSerializer(); +Serializer _$gLongFilterInputSerializer = + new _$GLongFilterInputSerializer(); +Serializer _$gMangaConditionInputSerializer = + new _$GMangaConditionInputSerializer(); +Serializer _$gMangaFilterInputSerializer = + new _$GMangaFilterInputSerializer(); +Serializer _$gMangaMetaTypeInputSerializer = + new _$GMangaMetaTypeInputSerializer(); +Serializer _$gMangaOrderBySerializer = + new _$GMangaOrderBySerializer(); +Serializer _$gMangaStatusSerializer = + new _$GMangaStatusSerializer(); +Serializer _$gMangaStatusFilterInputSerializer = + new _$GMangaStatusFilterInputSerializer(); +Serializer _$gMetaConditionInputSerializer = + new _$GMetaConditionInputSerializer(); +Serializer _$gMetaFilterInputSerializer = + new _$GMetaFilterInputSerializer(); +Serializer _$gMetaOrderBySerializer = + new _$GMetaOrderBySerializer(); +Serializer _$gPartialSettingsTypeInputSerializer = + new _$GPartialSettingsTypeInputSerializer(); +Serializer + _$gReorderChapterDownloadInputSerializer = + new _$GReorderChapterDownloadInputSerializer(); +Serializer _$gResetSettingsInputSerializer = + new _$GResetSettingsInputSerializer(); +Serializer _$gRestoreBackupInputSerializer = + new _$GRestoreBackupInputSerializer(); +Serializer _$gSearchTrackerInputSerializer = + new _$GSearchTrackerInputSerializer(); +Serializer _$gSetCategoryMetaInputSerializer = + new _$GSetCategoryMetaInputSerializer(); +Serializer _$gSetChapterMetaInputSerializer = + new _$GSetChapterMetaInputSerializer(); +Serializer _$gSetGlobalMetaInputSerializer = + new _$GSetGlobalMetaInputSerializer(); +Serializer _$gSetMangaMetaInputSerializer = + new _$GSetMangaMetaInputSerializer(); +Serializer _$gSetSettingsInputSerializer = + new _$GSetSettingsInputSerializer(); +Serializer _$gSetSourceMetaInputSerializer = + new _$GSetSourceMetaInputSerializer(); +Serializer _$gSortOrderSerializer = new _$GSortOrderSerializer(); +Serializer _$gSortSelectionInputSerializer = + new _$GSortSelectionInputSerializer(); +Serializer _$gSourceConditionInputSerializer = + new _$GSourceConditionInputSerializer(); +Serializer _$gSourceFilterInputSerializer = + new _$GSourceFilterInputSerializer(); +Serializer _$gSourceMetaTypeInputSerializer = + new _$GSourceMetaTypeInputSerializer(); +Serializer _$gSourceOrderBySerializer = + new _$GSourceOrderBySerializer(); +Serializer + _$gSourcePreferenceChangeInputSerializer = + new _$GSourcePreferenceChangeInputSerializer(); +Serializer _$gStartDownloaderInputSerializer = + new _$GStartDownloaderInputSerializer(); +Serializer _$gStopDownloaderInputSerializer = + new _$GStopDownloaderInputSerializer(); +Serializer _$gStringFilterInputSerializer = + new _$GStringFilterInputSerializer(); +Serializer _$gTrackerConditionInputSerializer = + new _$GTrackerConditionInputSerializer(); +Serializer _$gTrackerOrderBySerializer = + new _$GTrackerOrderBySerializer(); +Serializer _$gTrackRecordConditionInputSerializer = + new _$GTrackRecordConditionInputSerializer(); +Serializer _$gTrackRecordFilterInputSerializer = + new _$GTrackRecordFilterInputSerializer(); +Serializer _$gTrackRecordOrderBySerializer = + new _$GTrackRecordOrderBySerializer(); +Serializer _$gTriStateSerializer = new _$GTriStateSerializer(); +Serializer _$gUpdateCategoriesInputSerializer = + new _$GUpdateCategoriesInputSerializer(); +Serializer _$gUpdateCategoryInputSerializer = + new _$GUpdateCategoryInputSerializer(); +Serializer _$gUpdateCategoryMangaInputSerializer = + new _$GUpdateCategoryMangaInputSerializer(); +Serializer _$gUpdateCategoryOrderInputSerializer = + new _$GUpdateCategoryOrderInputSerializer(); +Serializer _$gUpdateCategoryPatchInputSerializer = + new _$GUpdateCategoryPatchInputSerializer(); +Serializer _$gUpdateChapterInputSerializer = + new _$GUpdateChapterInputSerializer(); +Serializer _$gUpdateChapterPatchInputSerializer = + new _$GUpdateChapterPatchInputSerializer(); +Serializer _$gUpdateChaptersInputSerializer = + new _$GUpdateChaptersInputSerializer(); +Serializer _$gUpdateExtensionInputSerializer = + new _$GUpdateExtensionInputSerializer(); +Serializer _$gUpdateExtensionPatchInputSerializer = + new _$GUpdateExtensionPatchInputSerializer(); +Serializer _$gUpdateExtensionsInputSerializer = + new _$GUpdateExtensionsInputSerializer(); +Serializer _$gUpdateLibraryMangaInputSerializer = + new _$GUpdateLibraryMangaInputSerializer(); +Serializer + _$gUpdateMangaCategoriesInputSerializer = + new _$GUpdateMangaCategoriesInputSerializer(); +Serializer + _$gUpdateMangaCategoriesPatchInputSerializer = + new _$GUpdateMangaCategoriesPatchInputSerializer(); +Serializer _$gUpdateMangaInputSerializer = + new _$GUpdateMangaInputSerializer(); +Serializer _$gUpdateMangaPatchInputSerializer = + new _$GUpdateMangaPatchInputSerializer(); +Serializer + _$gUpdateMangasCategoriesInputSerializer = + new _$GUpdateMangasCategoriesInputSerializer(); +Serializer _$gUpdateMangasInputSerializer = + new _$GUpdateMangasInputSerializer(); +Serializer + _$gUpdateSourcePreferenceInputSerializer = + new _$GUpdateSourcePreferenceInputSerializer(); +Serializer _$gUpdateStateSerializer = + new _$GUpdateStateSerializer(); +Serializer _$gUpdateStopInputSerializer = + new _$GUpdateStopInputSerializer(); +Serializer _$gUpdateStrategySerializer = + new _$GUpdateStrategySerializer(); +Serializer _$gUpdateTrackInputSerializer = + new _$GUpdateTrackInputSerializer(); +Serializer _$gValidateBackupInputSerializer = + new _$GValidateBackupInputSerializer(); +Serializer _$gWebUIChannelSerializer = + new _$GWebUIChannelSerializer(); +Serializer _$gWebUIFlavorSerializer = + new _$GWebUIFlavorSerializer(); +Serializer _$gWebUIInterfaceSerializer = + new _$GWebUIInterfaceSerializer(); +Serializer _$gWebUIUpdateInputSerializer = + new _$GWebUIUpdateInputSerializer(); + +class _$GBackupRestoreStateSerializer + implements PrimitiveSerializer { + @override + final Iterable types = const [GBackupRestoreState]; + @override + final String wireName = 'GBackupRestoreState'; + + @override + Object serialize(Serializers serializers, GBackupRestoreState object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GBackupRestoreState deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GBackupRestoreState.valueOf(serialized as String); +} + +class _$GBindTrackInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GBindTrackInput, _$GBindTrackInput]; + @override + final String wireName = 'GBindTrackInput'; + + @override + Iterable serialize(Serializers serializers, GBindTrackInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'mangaId', + serializers.serialize(object.mangaId, specifiedType: const FullType(int)), + 'remoteId', + serializers.serialize(object.remoteId, + specifiedType: const FullType(GLongString)), + 'trackerId', + serializers.serialize(object.trackerId, + specifiedType: const FullType(int)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GBindTrackInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GBindTrackInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'mangaId': + result.mangaId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'remoteId': + result.remoteId.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'trackerId': + result.trackerId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GBooleanFilterInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GBooleanFilterInput, + _$GBooleanFilterInput + ]; + @override + final String wireName = 'GBooleanFilterInput'; + + @override + Iterable serialize( + Serializers serializers, GBooleanFilterInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.distinctFrom; + if (value != null) { + result + ..add('distinctFrom') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.equalTo; + if (value != null) { + result + ..add('equalTo') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.greaterThan; + if (value != null) { + result + ..add('greaterThan') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.greaterThanOrEqualTo; + if (value != null) { + result + ..add('greaterThanOrEqualTo') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.Gin; + if (value != null) { + result + ..add('in') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(bool)]))); + } + value = object.isNull; + if (value != null) { + result + ..add('isNull') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.lessThan; + if (value != null) { + result + ..add('lessThan') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.lessThanOrEqualTo; + if (value != null) { + result + ..add('lessThanOrEqualTo') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.notDistinctFrom; + if (value != null) { + result + ..add('notDistinctFrom') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.notEqualTo; + if (value != null) { + result + ..add('notEqualTo') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.notIn; + if (value != null) { + result + ..add('notIn') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(bool)]))); + } + return result; + } + + @override + GBooleanFilterInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GBooleanFilterInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'distinctFrom': + result.distinctFrom = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'equalTo': + result.equalTo = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'greaterThan': + result.greaterThan = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'greaterThanOrEqualTo': + result.greaterThanOrEqualTo = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'in': + result.Gin.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(bool)]))! + as BuiltList); + break; + case 'isNull': + result.isNull = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'lessThan': + result.lessThan = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'lessThanOrEqualTo': + result.lessThanOrEqualTo = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'notDistinctFrom': + result.notDistinctFrom = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'notEqualTo': + result.notEqualTo = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'notIn': + result.notIn.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(bool)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GCategoryConditionInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GCategoryConditionInput, + _$GCategoryConditionInput + ]; + @override + final String wireName = 'GCategoryConditionInput'; + + @override + Iterable serialize( + Serializers serializers, GCategoryConditionInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.Gdefault; + if (value != null) { + result + ..add('default') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.id; + if (value != null) { + result + ..add('id') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.name; + if (value != null) { + result + ..add('name') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.order; + if (value != null) { + result + ..add('order') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + return result; + } + + @override + GCategoryConditionInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GCategoryConditionInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'default': + result.Gdefault = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'order': + result.order = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + } + } + + return result.build(); + } +} + +class _$GCategoryFilterInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GCategoryFilterInput, + _$GCategoryFilterInput + ]; + @override + final String wireName = 'GCategoryFilterInput'; + + @override + Iterable serialize( + Serializers serializers, GCategoryFilterInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.and; + if (value != null) { + result + ..add('and') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GCategoryFilterInput)]))); + } + value = object.Gdefault; + if (value != null) { + result + ..add('default') + ..add(serializers.serialize(value, + specifiedType: const FullType(GBooleanFilterInput))); + } + value = object.id; + if (value != null) { + result + ..add('id') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIntFilterInput))); + } + value = object.name; + if (value != null) { + result + ..add('name') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.not; + if (value != null) { + result + ..add('not') + ..add(serializers.serialize(value, + specifiedType: const FullType(GCategoryFilterInput))); + } + value = object.or; + if (value != null) { + result + ..add('or') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GCategoryFilterInput)]))); + } + value = object.order; + if (value != null) { + result + ..add('order') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIntFilterInput))); + } + return result; + } + + @override + GCategoryFilterInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GCategoryFilterInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'and': + result.and.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GCategoryFilterInput)]))! + as BuiltList); + break; + case 'default': + result.Gdefault.replace(serializers.deserialize(value, + specifiedType: const FullType(GBooleanFilterInput))! + as GBooleanFilterInput); + break; + case 'id': + result.id.replace(serializers.deserialize(value, + specifiedType: const FullType(GIntFilterInput))! + as GIntFilterInput); + break; + case 'name': + result.name.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'not': + result.not.replace(serializers.deserialize(value, + specifiedType: const FullType(GCategoryFilterInput))! + as GCategoryFilterInput); + break; + case 'or': + result.or.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GCategoryFilterInput)]))! + as BuiltList); + break; + case 'order': + result.order.replace(serializers.deserialize(value, + specifiedType: const FullType(GIntFilterInput))! + as GIntFilterInput); + break; + } + } + + return result.build(); + } +} + +class _$GCategoryMetaTypeInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GCategoryMetaTypeInput, + _$GCategoryMetaTypeInput + ]; + @override + final String wireName = 'GCategoryMetaTypeInput'; + + @override + Iterable serialize( + Serializers serializers, GCategoryMetaTypeInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'categoryId', + serializers.serialize(object.categoryId, + specifiedType: const FullType(int)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'value', + serializers.serialize(object.value, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GCategoryMetaTypeInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GCategoryMetaTypeInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'categoryId': + result.categoryId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GCategoryOrderBySerializer + implements PrimitiveSerializer { + @override + final Iterable types = const [GCategoryOrderBy]; + @override + final String wireName = 'GCategoryOrderBy'; + + @override + Object serialize(Serializers serializers, GCategoryOrderBy object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GCategoryOrderBy deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GCategoryOrderBy.valueOf(serialized as String); +} + +class _$GChapterConditionInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GChapterConditionInput, + _$GChapterConditionInput + ]; + @override + final String wireName = 'GChapterConditionInput'; + + @override + Iterable serialize( + Serializers serializers, GChapterConditionInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.chapterNumber; + if (value != null) { + result + ..add('chapterNumber') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.fetchedAt; + if (value != null) { + result + ..add('fetchedAt') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.id; + if (value != null) { + result + ..add('id') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.isBookmarked; + if (value != null) { + result + ..add('isBookmarked') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.isDownloaded; + if (value != null) { + result + ..add('isDownloaded') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.isRead; + if (value != null) { + result + ..add('isRead') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.lastPageRead; + if (value != null) { + result + ..add('lastPageRead') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.lastReadAt; + if (value != null) { + result + ..add('lastReadAt') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.mangaId; + if (value != null) { + result + ..add('mangaId') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.name; + if (value != null) { + result + ..add('name') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.pageCount; + if (value != null) { + result + ..add('pageCount') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.realUrl; + if (value != null) { + result + ..add('realUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.scanlator; + if (value != null) { + result + ..add('scanlator') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.sourceOrder; + if (value != null) { + result + ..add('sourceOrder') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.uploadDate; + if (value != null) { + result + ..add('uploadDate') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.url; + if (value != null) { + result + ..add('url') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GChapterConditionInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GChapterConditionInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'chapterNumber': + result.chapterNumber = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'fetchedAt': + result.fetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'isBookmarked': + result.isBookmarked = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'isDownloaded': + result.isDownloaded = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'isRead': + result.isRead = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'lastPageRead': + result.lastPageRead = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'lastReadAt': + result.lastReadAt.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'mangaId': + result.mangaId = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'pageCount': + result.pageCount = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'realUrl': + result.realUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'scanlator': + result.scanlator = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'sourceOrder': + result.sourceOrder = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'uploadDate': + result.uploadDate.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'url': + result.url = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GChapterFilterInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GChapterFilterInput, + _$GChapterFilterInput + ]; + @override + final String wireName = 'GChapterFilterInput'; + + @override + Iterable serialize( + Serializers serializers, GChapterFilterInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.and; + if (value != null) { + result + ..add('and') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GChapterFilterInput)]))); + } + value = object.chapterNumber; + if (value != null) { + result + ..add('chapterNumber') + ..add(serializers.serialize(value, + specifiedType: const FullType(GFloatFilterInput))); + } + value = object.fetchedAt; + if (value != null) { + result + ..add('fetchedAt') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongFilterInput))); + } + value = object.id; + if (value != null) { + result + ..add('id') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIntFilterInput))); + } + value = object.inLibrary; + if (value != null) { + result + ..add('inLibrary') + ..add(serializers.serialize(value, + specifiedType: const FullType(GBooleanFilterInput))); + } + value = object.isBookmarked; + if (value != null) { + result + ..add('isBookmarked') + ..add(serializers.serialize(value, + specifiedType: const FullType(GBooleanFilterInput))); + } + value = object.isDownloaded; + if (value != null) { + result + ..add('isDownloaded') + ..add(serializers.serialize(value, + specifiedType: const FullType(GBooleanFilterInput))); + } + value = object.isRead; + if (value != null) { + result + ..add('isRead') + ..add(serializers.serialize(value, + specifiedType: const FullType(GBooleanFilterInput))); + } + value = object.lastPageRead; + if (value != null) { + result + ..add('lastPageRead') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIntFilterInput))); + } + value = object.lastReadAt; + if (value != null) { + result + ..add('lastReadAt') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongFilterInput))); + } + value = object.mangaId; + if (value != null) { + result + ..add('mangaId') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIntFilterInput))); + } + value = object.name; + if (value != null) { + result + ..add('name') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.not; + if (value != null) { + result + ..add('not') + ..add(serializers.serialize(value, + specifiedType: const FullType(GChapterFilterInput))); + } + value = object.or; + if (value != null) { + result + ..add('or') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GChapterFilterInput)]))); + } + value = object.pageCount; + if (value != null) { + result + ..add('pageCount') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIntFilterInput))); + } + value = object.realUrl; + if (value != null) { + result + ..add('realUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.scanlator; + if (value != null) { + result + ..add('scanlator') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.sourceOrder; + if (value != null) { + result + ..add('sourceOrder') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIntFilterInput))); + } + value = object.uploadDate; + if (value != null) { + result + ..add('uploadDate') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongFilterInput))); + } + value = object.url; + if (value != null) { + result + ..add('url') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + return result; + } + + @override + GChapterFilterInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GChapterFilterInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'and': + result.and.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GChapterFilterInput)]))! + as BuiltList); + break; + case 'chapterNumber': + result.chapterNumber.replace(serializers.deserialize(value, + specifiedType: const FullType(GFloatFilterInput))! + as GFloatFilterInput); + break; + case 'fetchedAt': + result.fetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongFilterInput))! + as GLongFilterInput); + break; + case 'id': + result.id.replace(serializers.deserialize(value, + specifiedType: const FullType(GIntFilterInput))! + as GIntFilterInput); + break; + case 'inLibrary': + result.inLibrary.replace(serializers.deserialize(value, + specifiedType: const FullType(GBooleanFilterInput))! + as GBooleanFilterInput); + break; + case 'isBookmarked': + result.isBookmarked.replace(serializers.deserialize(value, + specifiedType: const FullType(GBooleanFilterInput))! + as GBooleanFilterInput); + break; + case 'isDownloaded': + result.isDownloaded.replace(serializers.deserialize(value, + specifiedType: const FullType(GBooleanFilterInput))! + as GBooleanFilterInput); + break; + case 'isRead': + result.isRead.replace(serializers.deserialize(value, + specifiedType: const FullType(GBooleanFilterInput))! + as GBooleanFilterInput); + break; + case 'lastPageRead': + result.lastPageRead.replace(serializers.deserialize(value, + specifiedType: const FullType(GIntFilterInput))! + as GIntFilterInput); + break; + case 'lastReadAt': + result.lastReadAt.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongFilterInput))! + as GLongFilterInput); + break; + case 'mangaId': + result.mangaId.replace(serializers.deserialize(value, + specifiedType: const FullType(GIntFilterInput))! + as GIntFilterInput); + break; + case 'name': + result.name.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'not': + result.not.replace(serializers.deserialize(value, + specifiedType: const FullType(GChapterFilterInput))! + as GChapterFilterInput); + break; + case 'or': + result.or.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GChapterFilterInput)]))! + as BuiltList); + break; + case 'pageCount': + result.pageCount.replace(serializers.deserialize(value, + specifiedType: const FullType(GIntFilterInput))! + as GIntFilterInput); + break; + case 'realUrl': + result.realUrl.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'scanlator': + result.scanlator.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'sourceOrder': + result.sourceOrder.replace(serializers.deserialize(value, + specifiedType: const FullType(GIntFilterInput))! + as GIntFilterInput); + break; + case 'uploadDate': + result.uploadDate.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongFilterInput))! + as GLongFilterInput); + break; + case 'url': + result.url.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + } + } + + return result.build(); + } +} + +class _$GChapterMetaTypeInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GChapterMetaTypeInput, + _$GChapterMetaTypeInput + ]; + @override + final String wireName = 'GChapterMetaTypeInput'; + + @override + Iterable serialize( + Serializers serializers, GChapterMetaTypeInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'chapterId', + serializers.serialize(object.chapterId, + specifiedType: const FullType(int)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'value', + serializers.serialize(object.value, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GChapterMetaTypeInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GChapterMetaTypeInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'chapterId': + result.chapterId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GChapterOrderBySerializer + implements PrimitiveSerializer { + @override + final Iterable types = const [GChapterOrderBy]; + @override + final String wireName = 'GChapterOrderBy'; + + @override + Object serialize(Serializers serializers, GChapterOrderBy object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GChapterOrderBy deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GChapterOrderBy.valueOf(serialized as String); +} + +class _$GClearCachedImagesInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GClearCachedImagesInput, + _$GClearCachedImagesInput + ]; + @override + final String wireName = 'GClearCachedImagesInput'; + + @override + Iterable serialize( + Serializers serializers, GClearCachedImagesInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.cachedPages; + if (value != null) { + result + ..add('cachedPages') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.cachedThumbnails; + if (value != null) { + result + ..add('cachedThumbnails') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.downloadedThumbnails; + if (value != null) { + result + ..add('downloadedThumbnails') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + GClearCachedImagesInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GClearCachedImagesInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'cachedPages': + result.cachedPages = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'cachedThumbnails': + result.cachedThumbnails = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'downloadedThumbnails': + result.downloadedThumbnails = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$GClearDownloaderInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GClearDownloaderInput, + _$GClearDownloaderInput + ]; + @override + final String wireName = 'GClearDownloaderInput'; + + @override + Iterable serialize( + Serializers serializers, GClearDownloaderInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GClearDownloaderInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GClearDownloaderInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GCreateBackupInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GCreateBackupInput, _$GCreateBackupInput]; + @override + final String wireName = 'GCreateBackupInput'; + + @override + Iterable serialize( + Serializers serializers, GCreateBackupInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.includeCategories; + if (value != null) { + result + ..add('includeCategories') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.includeChapters; + if (value != null) { + result + ..add('includeChapters') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + GCreateBackupInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GCreateBackupInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'includeCategories': + result.includeCategories = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'includeChapters': + result.includeChapters = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$GCreateCategoryInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GCreateCategoryInput, + _$GCreateCategoryInput + ]; + @override + final String wireName = 'GCreateCategoryInput'; + + @override + Iterable serialize( + Serializers serializers, GCreateCategoryInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.Gdefault; + if (value != null) { + result + ..add('default') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.includeInDownload; + if (value != null) { + result + ..add('includeInDownload') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIncludeOrExclude))); + } + value = object.includeInUpdate; + if (value != null) { + result + ..add('includeInUpdate') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIncludeOrExclude))); + } + value = object.order; + if (value != null) { + result + ..add('order') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + return result; + } + + @override + GCreateCategoryInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GCreateCategoryInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'default': + result.Gdefault = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'includeInDownload': + result.includeInDownload = serializers.deserialize(value, + specifiedType: const FullType(GIncludeOrExclude)) + as GIncludeOrExclude?; + break; + case 'includeInUpdate': + result.includeInUpdate = serializers.deserialize(value, + specifiedType: const FullType(GIncludeOrExclude)) + as GIncludeOrExclude?; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'order': + result.order = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + } + } + + return result.build(); + } +} + +class _$GDeleteCategoryInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GDeleteCategoryInput, + _$GDeleteCategoryInput + ]; + @override + final String wireName = 'GDeleteCategoryInput'; + + @override + Iterable serialize( + Serializers serializers, GDeleteCategoryInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'categoryId', + serializers.serialize(object.categoryId, + specifiedType: const FullType(int)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GDeleteCategoryInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GDeleteCategoryInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'categoryId': + result.categoryId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GDeleteCategoryMetaInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GDeleteCategoryMetaInput, + _$GDeleteCategoryMetaInput + ]; + @override + final String wireName = 'GDeleteCategoryMetaInput'; + + @override + Iterable serialize( + Serializers serializers, GDeleteCategoryMetaInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'categoryId', + serializers.serialize(object.categoryId, + specifiedType: const FullType(int)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GDeleteCategoryMetaInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GDeleteCategoryMetaInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'categoryId': + result.categoryId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GDeleteChapterMetaInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GDeleteChapterMetaInput, + _$GDeleteChapterMetaInput + ]; + @override + final String wireName = 'GDeleteChapterMetaInput'; + + @override + Iterable serialize( + Serializers serializers, GDeleteChapterMetaInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'chapterId', + serializers.serialize(object.chapterId, + specifiedType: const FullType(int)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GDeleteChapterMetaInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GDeleteChapterMetaInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'chapterId': + result.chapterId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GDeleteDownloadedChapterInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GDeleteDownloadedChapterInput, + _$GDeleteDownloadedChapterInput + ]; + @override + final String wireName = 'GDeleteDownloadedChapterInput'; + + @override + Iterable serialize( + Serializers serializers, GDeleteDownloadedChapterInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GDeleteDownloadedChapterInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GDeleteDownloadedChapterInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GDeleteDownloadedChaptersInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GDeleteDownloadedChaptersInput, + _$GDeleteDownloadedChaptersInput + ]; + @override + final String wireName = 'GDeleteDownloadedChaptersInput'; + + @override + Iterable serialize( + Serializers serializers, GDeleteDownloadedChaptersInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'ids', + serializers.serialize(object.ids, + specifiedType: + const FullType(BuiltList, const [const FullType(int)])), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GDeleteDownloadedChaptersInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GDeleteDownloadedChaptersInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'ids': + result.ids.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GDeleteGlobalMetaInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GDeleteGlobalMetaInput, + _$GDeleteGlobalMetaInput + ]; + @override + final String wireName = 'GDeleteGlobalMetaInput'; + + @override + Iterable serialize( + Serializers serializers, GDeleteGlobalMetaInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GDeleteGlobalMetaInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GDeleteGlobalMetaInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GDeleteMangaMetaInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GDeleteMangaMetaInput, + _$GDeleteMangaMetaInput + ]; + @override + final String wireName = 'GDeleteMangaMetaInput'; + + @override + Iterable serialize( + Serializers serializers, GDeleteMangaMetaInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'mangaId', + serializers.serialize(object.mangaId, specifiedType: const FullType(int)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GDeleteMangaMetaInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GDeleteMangaMetaInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'mangaId': + result.mangaId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GDeleteSourceMetaInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GDeleteSourceMetaInput, + _$GDeleteSourceMetaInput + ]; + @override + final String wireName = 'GDeleteSourceMetaInput'; + + @override + Iterable serialize( + Serializers serializers, GDeleteSourceMetaInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'sourceId', + serializers.serialize(object.sourceId, + specifiedType: const FullType(GLongString)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GDeleteSourceMetaInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GDeleteSourceMetaInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'sourceId': + result.sourceId.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + } + } + + return result.build(); + } +} + +class _$GDequeueChapterDownloadInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GDequeueChapterDownloadInput, + _$GDequeueChapterDownloadInput + ]; + @override + final String wireName = 'GDequeueChapterDownloadInput'; + + @override + Iterable serialize( + Serializers serializers, GDequeueChapterDownloadInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GDequeueChapterDownloadInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GDequeueChapterDownloadInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GDequeueChapterDownloadsInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GDequeueChapterDownloadsInput, + _$GDequeueChapterDownloadsInput + ]; + @override + final String wireName = 'GDequeueChapterDownloadsInput'; + + @override + Iterable serialize( + Serializers serializers, GDequeueChapterDownloadsInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'ids', + serializers.serialize(object.ids, + specifiedType: + const FullType(BuiltList, const [const FullType(int)])), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GDequeueChapterDownloadsInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GDequeueChapterDownloadsInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'ids': + result.ids.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GDoubleFilterInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GDoubleFilterInput, _$GDoubleFilterInput]; + @override + final String wireName = 'GDoubleFilterInput'; + + @override + Iterable serialize( + Serializers serializers, GDoubleFilterInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.distinctFrom; + if (value != null) { + result + ..add('distinctFrom') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.equalTo; + if (value != null) { + result + ..add('equalTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.greaterThan; + if (value != null) { + result + ..add('greaterThan') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.greaterThanOrEqualTo; + if (value != null) { + result + ..add('greaterThanOrEqualTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.Gin; + if (value != null) { + result + ..add('in') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(double)]))); + } + value = object.isNull; + if (value != null) { + result + ..add('isNull') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.lessThan; + if (value != null) { + result + ..add('lessThan') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.lessThanOrEqualTo; + if (value != null) { + result + ..add('lessThanOrEqualTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.notDistinctFrom; + if (value != null) { + result + ..add('notDistinctFrom') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.notEqualTo; + if (value != null) { + result + ..add('notEqualTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.notIn; + if (value != null) { + result + ..add('notIn') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(double)]))); + } + return result; + } + + @override + GDoubleFilterInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GDoubleFilterInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'distinctFrom': + result.distinctFrom = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'equalTo': + result.equalTo = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'greaterThan': + result.greaterThan = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'greaterThanOrEqualTo': + result.greaterThanOrEqualTo = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'in': + result.Gin.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(double)]))! + as BuiltList); + break; + case 'isNull': + result.isNull = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'lessThan': + result.lessThan = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'lessThanOrEqualTo': + result.lessThanOrEqualTo = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'notDistinctFrom': + result.notDistinctFrom = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'notEqualTo': + result.notEqualTo = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'notIn': + result.notIn.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(double)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GDownloaderStateSerializer + implements PrimitiveSerializer { + @override + final Iterable types = const [GDownloaderState]; + @override + final String wireName = 'GDownloaderState'; + + @override + Object serialize(Serializers serializers, GDownloaderState object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GDownloaderState deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GDownloaderState.valueOf(serialized as String); +} + +class _$GDownloadStateSerializer + implements PrimitiveSerializer { + @override + final Iterable types = const [GDownloadState]; + @override + final String wireName = 'GDownloadState'; + + @override + Object serialize(Serializers serializers, GDownloadState object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GDownloadState deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GDownloadState.valueOf(serialized as String); +} + +class _$GEnqueueChapterDownloadInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GEnqueueChapterDownloadInput, + _$GEnqueueChapterDownloadInput + ]; + @override + final String wireName = 'GEnqueueChapterDownloadInput'; + + @override + Iterable serialize( + Serializers serializers, GEnqueueChapterDownloadInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GEnqueueChapterDownloadInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GEnqueueChapterDownloadInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GEnqueueChapterDownloadsInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GEnqueueChapterDownloadsInput, + _$GEnqueueChapterDownloadsInput + ]; + @override + final String wireName = 'GEnqueueChapterDownloadsInput'; + + @override + Iterable serialize( + Serializers serializers, GEnqueueChapterDownloadsInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'ids', + serializers.serialize(object.ids, + specifiedType: + const FullType(BuiltList, const [const FullType(int)])), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GEnqueueChapterDownloadsInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GEnqueueChapterDownloadsInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'ids': + result.ids.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GExtensionConditionInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GExtensionConditionInput, + _$GExtensionConditionInput + ]; + @override + final String wireName = 'GExtensionConditionInput'; + + @override + Iterable serialize( + Serializers serializers, GExtensionConditionInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.apkName; + if (value != null) { + result + ..add('apkName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.hasUpdate; + if (value != null) { + result + ..add('hasUpdate') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.iconUrl; + if (value != null) { + result + ..add('iconUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.isInstalled; + if (value != null) { + result + ..add('isInstalled') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.isNsfw; + if (value != null) { + result + ..add('isNsfw') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.isObsolete; + if (value != null) { + result + ..add('isObsolete') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.lang; + if (value != null) { + result + ..add('lang') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.name; + if (value != null) { + result + ..add('name') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.pkgName; + if (value != null) { + result + ..add('pkgName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.repo; + if (value != null) { + result + ..add('repo') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.versionCode; + if (value != null) { + result + ..add('versionCode') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.versionName; + if (value != null) { + result + ..add('versionName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GExtensionConditionInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GExtensionConditionInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'apkName': + result.apkName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'hasUpdate': + result.hasUpdate = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'iconUrl': + result.iconUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'isInstalled': + result.isInstalled = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'isNsfw': + result.isNsfw = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'isObsolete': + result.isObsolete = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'lang': + result.lang = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'pkgName': + result.pkgName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'repo': + result.repo = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'versionCode': + result.versionCode = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'versionName': + result.versionName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GExtensionFilterInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GExtensionFilterInput, + _$GExtensionFilterInput + ]; + @override + final String wireName = 'GExtensionFilterInput'; + + @override + Iterable serialize( + Serializers serializers, GExtensionFilterInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.and; + if (value != null) { + result + ..add('and') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GExtensionFilterInput)]))); + } + value = object.apkName; + if (value != null) { + result + ..add('apkName') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.hasUpdate; + if (value != null) { + result + ..add('hasUpdate') + ..add(serializers.serialize(value, + specifiedType: const FullType(GBooleanFilterInput))); + } + value = object.iconUrl; + if (value != null) { + result + ..add('iconUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.isInstalled; + if (value != null) { + result + ..add('isInstalled') + ..add(serializers.serialize(value, + specifiedType: const FullType(GBooleanFilterInput))); + } + value = object.isNsfw; + if (value != null) { + result + ..add('isNsfw') + ..add(serializers.serialize(value, + specifiedType: const FullType(GBooleanFilterInput))); + } + value = object.isObsolete; + if (value != null) { + result + ..add('isObsolete') + ..add(serializers.serialize(value, + specifiedType: const FullType(GBooleanFilterInput))); + } + value = object.lang; + if (value != null) { + result + ..add('lang') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.name; + if (value != null) { + result + ..add('name') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.not; + if (value != null) { + result + ..add('not') + ..add(serializers.serialize(value, + specifiedType: const FullType(GExtensionFilterInput))); + } + value = object.or; + if (value != null) { + result + ..add('or') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GExtensionFilterInput)]))); + } + value = object.pkgName; + if (value != null) { + result + ..add('pkgName') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.repo; + if (value != null) { + result + ..add('repo') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.versionCode; + if (value != null) { + result + ..add('versionCode') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIntFilterInput))); + } + value = object.versionName; + if (value != null) { + result + ..add('versionName') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + return result; + } + + @override + GExtensionFilterInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GExtensionFilterInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'and': + result.and.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GExtensionFilterInput) + ]))! as BuiltList); + break; + case 'apkName': + result.apkName.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'hasUpdate': + result.hasUpdate.replace(serializers.deserialize(value, + specifiedType: const FullType(GBooleanFilterInput))! + as GBooleanFilterInput); + break; + case 'iconUrl': + result.iconUrl.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'isInstalled': + result.isInstalled.replace(serializers.deserialize(value, + specifiedType: const FullType(GBooleanFilterInput))! + as GBooleanFilterInput); + break; + case 'isNsfw': + result.isNsfw.replace(serializers.deserialize(value, + specifiedType: const FullType(GBooleanFilterInput))! + as GBooleanFilterInput); + break; + case 'isObsolete': + result.isObsolete.replace(serializers.deserialize(value, + specifiedType: const FullType(GBooleanFilterInput))! + as GBooleanFilterInput); + break; + case 'lang': + result.lang.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'name': + result.name.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'not': + result.not.replace(serializers.deserialize(value, + specifiedType: const FullType(GExtensionFilterInput))! + as GExtensionFilterInput); + break; + case 'or': + result.or.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GExtensionFilterInput) + ]))! as BuiltList); + break; + case 'pkgName': + result.pkgName.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'repo': + result.repo.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'versionCode': + result.versionCode.replace(serializers.deserialize(value, + specifiedType: const FullType(GIntFilterInput))! + as GIntFilterInput); + break; + case 'versionName': + result.versionName.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + } + } + + return result.build(); + } +} + +class _$GExtensionOrderBySerializer + implements PrimitiveSerializer { + @override + final Iterable types = const [GExtensionOrderBy]; + @override + final String wireName = 'GExtensionOrderBy'; + + @override + Object serialize(Serializers serializers, GExtensionOrderBy object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GExtensionOrderBy deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GExtensionOrderBy.valueOf(serialized as String); +} + +class _$GFetchChapterPagesInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GFetchChapterPagesInput, + _$GFetchChapterPagesInput + ]; + @override + final String wireName = 'GFetchChapterPagesInput'; + + @override + Iterable serialize( + Serializers serializers, GFetchChapterPagesInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'chapterId', + serializers.serialize(object.chapterId, + specifiedType: const FullType(int)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GFetchChapterPagesInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GFetchChapterPagesInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'chapterId': + result.chapterId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GFetchChaptersInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GFetchChaptersInput, + _$GFetchChaptersInput + ]; + @override + final String wireName = 'GFetchChaptersInput'; + + @override + Iterable serialize( + Serializers serializers, GFetchChaptersInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'mangaId', + serializers.serialize(object.mangaId, specifiedType: const FullType(int)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GFetchChaptersInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GFetchChaptersInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'mangaId': + result.mangaId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GFetchExtensionsInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GFetchExtensionsInput, + _$GFetchExtensionsInput + ]; + @override + final String wireName = 'GFetchExtensionsInput'; + + @override + Iterable serialize( + Serializers serializers, GFetchExtensionsInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GFetchExtensionsInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GFetchExtensionsInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GFetchMangaInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GFetchMangaInput, _$GFetchMangaInput]; + @override + final String wireName = 'GFetchMangaInput'; + + @override + Iterable serialize(Serializers serializers, GFetchMangaInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GFetchMangaInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GFetchMangaInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GFetchSourceMangaInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GFetchSourceMangaInput, + _$GFetchSourceMangaInput + ]; + @override + final String wireName = 'GFetchSourceMangaInput'; + + @override + Iterable serialize( + Serializers serializers, GFetchSourceMangaInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'page', + serializers.serialize(object.page, specifiedType: const FullType(int)), + 'source', + serializers.serialize(object.source, + specifiedType: const FullType(GLongString)), + 'type', + serializers.serialize(object.type, + specifiedType: const FullType(GFetchSourceMangaType)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.filters; + if (value != null) { + result + ..add('filters') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GFilterChangeInput)]))); + } + value = object.query; + if (value != null) { + result + ..add('query') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GFetchSourceMangaInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GFetchSourceMangaInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'filters': + result.filters.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GFilterChangeInput)]))! + as BuiltList); + break; + case 'page': + result.page = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'query': + result.query = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'source': + result.source.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'type': + result.type = serializers.deserialize(value, + specifiedType: const FullType(GFetchSourceMangaType))! + as GFetchSourceMangaType; + break; + } + } + + return result.build(); + } +} + +class _$GFetchSourceMangaTypeSerializer + implements PrimitiveSerializer { + @override + final Iterable types = const [GFetchSourceMangaType]; + @override + final String wireName = 'GFetchSourceMangaType'; + + @override + Object serialize(Serializers serializers, GFetchSourceMangaType object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GFetchSourceMangaType deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GFetchSourceMangaType.valueOf(serialized as String); +} + +class _$GFilterChangeInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GFilterChangeInput, _$GFilterChangeInput]; + @override + final String wireName = 'GFilterChangeInput'; + + @override + Iterable serialize( + Serializers serializers, GFilterChangeInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'position', + serializers.serialize(object.position, + specifiedType: const FullType(int)), + ]; + Object? value; + value = object.checkBoxState; + if (value != null) { + result + ..add('checkBoxState') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.groupChange; + if (value != null) { + result + ..add('groupChange') + ..add(serializers.serialize(value, + specifiedType: const FullType(GFilterChangeInput))); + } + value = object.selectState; + if (value != null) { + result + ..add('selectState') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.sortState; + if (value != null) { + result + ..add('sortState') + ..add(serializers.serialize(value, + specifiedType: const FullType(GSortSelectionInput))); + } + value = object.textState; + if (value != null) { + result + ..add('textState') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.triState; + if (value != null) { + result + ..add('triState') + ..add(serializers.serialize(value, + specifiedType: const FullType(GTriState))); + } + return result; + } + + @override + GFilterChangeInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GFilterChangeInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'checkBoxState': + result.checkBoxState = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'groupChange': + result.groupChange.replace(serializers.deserialize(value, + specifiedType: const FullType(GFilterChangeInput))! + as GFilterChangeInput); + break; + case 'position': + result.position = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'selectState': + result.selectState = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'sortState': + result.sortState.replace(serializers.deserialize(value, + specifiedType: const FullType(GSortSelectionInput))! + as GSortSelectionInput); + break; + case 'textState': + result.textState = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'triState': + result.triState = serializers.deserialize(value, + specifiedType: const FullType(GTriState)) as GTriState?; + break; + } + } + + return result.build(); + } +} + +class _$GFloatFilterInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GFloatFilterInput, _$GFloatFilterInput]; + @override + final String wireName = 'GFloatFilterInput'; + + @override + Iterable serialize(Serializers serializers, GFloatFilterInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.distinctFrom; + if (value != null) { + result + ..add('distinctFrom') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.equalTo; + if (value != null) { + result + ..add('equalTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.greaterThan; + if (value != null) { + result + ..add('greaterThan') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.greaterThanOrEqualTo; + if (value != null) { + result + ..add('greaterThanOrEqualTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.Gin; + if (value != null) { + result + ..add('in') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(double)]))); + } + value = object.isNull; + if (value != null) { + result + ..add('isNull') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.lessThan; + if (value != null) { + result + ..add('lessThan') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.lessThanOrEqualTo; + if (value != null) { + result + ..add('lessThanOrEqualTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.notDistinctFrom; + if (value != null) { + result + ..add('notDistinctFrom') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.notEqualTo; + if (value != null) { + result + ..add('notEqualTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.notIn; + if (value != null) { + result + ..add('notIn') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(double)]))); + } + return result; + } + + @override + GFloatFilterInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GFloatFilterInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'distinctFrom': + result.distinctFrom = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'equalTo': + result.equalTo = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'greaterThan': + result.greaterThan = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'greaterThanOrEqualTo': + result.greaterThanOrEqualTo = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'in': + result.Gin.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(double)]))! + as BuiltList); + break; + case 'isNull': + result.isNull = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'lessThan': + result.lessThan = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'lessThanOrEqualTo': + result.lessThanOrEqualTo = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'notDistinctFrom': + result.notDistinctFrom = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'notEqualTo': + result.notEqualTo = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'notIn': + result.notIn.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(double)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GGlobalMetaTypeInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GGlobalMetaTypeInput, + _$GGlobalMetaTypeInput + ]; + @override + final String wireName = 'GGlobalMetaTypeInput'; + + @override + Iterable serialize( + Serializers serializers, GGlobalMetaTypeInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'value', + serializers.serialize(object.value, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GGlobalMetaTypeInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GGlobalMetaTypeInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GIncludeOrExcludeSerializer + implements PrimitiveSerializer { + @override + final Iterable types = const [GIncludeOrExclude]; + @override + final String wireName = 'GIncludeOrExclude'; + + @override + Object serialize(Serializers serializers, GIncludeOrExclude object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GIncludeOrExclude deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GIncludeOrExclude.valueOf(serialized as String); +} + +class _$GInstallExternalExtensionInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GInstallExternalExtensionInput, + _$GInstallExternalExtensionInput + ]; + @override + final String wireName = 'GInstallExternalExtensionInput'; + + @override + Iterable serialize( + Serializers serializers, GInstallExternalExtensionInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'extensionFile', + serializers.serialize(object.extensionFile, + specifiedType: const FullType(_i3.MultipartFile)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GInstallExternalExtensionInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GInstallExternalExtensionInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'extensionFile': + result.extensionFile = serializers.deserialize(value, + specifiedType: const FullType(_i3.MultipartFile))! + as _i3.MultipartFile; + break; + } + } + + return result.build(); + } +} + +class _$GIntFilterInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GIntFilterInput, _$GIntFilterInput]; + @override + final String wireName = 'GIntFilterInput'; + + @override + Iterable serialize(Serializers serializers, GIntFilterInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.distinctFrom; + if (value != null) { + result + ..add('distinctFrom') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.equalTo; + if (value != null) { + result + ..add('equalTo') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.greaterThan; + if (value != null) { + result + ..add('greaterThan') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.greaterThanOrEqualTo; + if (value != null) { + result + ..add('greaterThanOrEqualTo') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.Gin; + if (value != null) { + result + ..add('in') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))); + } + value = object.isNull; + if (value != null) { + result + ..add('isNull') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.lessThan; + if (value != null) { + result + ..add('lessThan') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.lessThanOrEqualTo; + if (value != null) { + result + ..add('lessThanOrEqualTo') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.notDistinctFrom; + if (value != null) { + result + ..add('notDistinctFrom') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.notEqualTo; + if (value != null) { + result + ..add('notEqualTo') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.notIn; + if (value != null) { + result + ..add('notIn') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))); + } + return result; + } + + @override + GIntFilterInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GIntFilterInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'distinctFrom': + result.distinctFrom = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'equalTo': + result.equalTo = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'greaterThan': + result.greaterThan = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'greaterThanOrEqualTo': + result.greaterThanOrEqualTo = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'in': + result.Gin.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))! + as BuiltList); + break; + case 'isNull': + result.isNull = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'lessThan': + result.lessThan = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'lessThanOrEqualTo': + result.lessThanOrEqualTo = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'notDistinctFrom': + result.notDistinctFrom = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'notEqualTo': + result.notEqualTo = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'notIn': + result.notIn.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GLoginTrackerCredentialsInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GLoginTrackerCredentialsInput, + _$GLoginTrackerCredentialsInput + ]; + @override + final String wireName = 'GLoginTrackerCredentialsInput'; + + @override + Iterable serialize( + Serializers serializers, GLoginTrackerCredentialsInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'password', + serializers.serialize(object.password, + specifiedType: const FullType(String)), + 'trackerId', + serializers.serialize(object.trackerId, + specifiedType: const FullType(int)), + 'username', + serializers.serialize(object.username, + specifiedType: const FullType(String)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GLoginTrackerCredentialsInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GLoginTrackerCredentialsInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'password': + result.password = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'trackerId': + result.trackerId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'username': + result.username = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GLoginTrackerOAuthInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GLoginTrackerOAuthInput, + _$GLoginTrackerOAuthInput + ]; + @override + final String wireName = 'GLoginTrackerOAuthInput'; + + @override + Iterable serialize( + Serializers serializers, GLoginTrackerOAuthInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'callbackUrl', + serializers.serialize(object.callbackUrl, + specifiedType: const FullType(String)), + 'trackerId', + serializers.serialize(object.trackerId, + specifiedType: const FullType(int)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GLoginTrackerOAuthInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GLoginTrackerOAuthInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'callbackUrl': + result.callbackUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'trackerId': + result.trackerId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GLogoutTrackerInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GLogoutTrackerInput, + _$GLogoutTrackerInput + ]; + @override + final String wireName = 'GLogoutTrackerInput'; + + @override + Iterable serialize( + Serializers serializers, GLogoutTrackerInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'trackerId', + serializers.serialize(object.trackerId, + specifiedType: const FullType(int)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GLogoutTrackerInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GLogoutTrackerInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'trackerId': + result.trackerId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GLongFilterInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GLongFilterInput, _$GLongFilterInput]; + @override + final String wireName = 'GLongFilterInput'; + + @override + Iterable serialize(Serializers serializers, GLongFilterInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.distinctFrom; + if (value != null) { + result + ..add('distinctFrom') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.equalTo; + if (value != null) { + result + ..add('equalTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.greaterThan; + if (value != null) { + result + ..add('greaterThan') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.greaterThanOrEqualTo; + if (value != null) { + result + ..add('greaterThanOrEqualTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.Gin; + if (value != null) { + result + ..add('in') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GLongString)]))); + } + value = object.isNull; + if (value != null) { + result + ..add('isNull') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.lessThan; + if (value != null) { + result + ..add('lessThan') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.lessThanOrEqualTo; + if (value != null) { + result + ..add('lessThanOrEqualTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.notDistinctFrom; + if (value != null) { + result + ..add('notDistinctFrom') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.notEqualTo; + if (value != null) { + result + ..add('notEqualTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.notIn; + if (value != null) { + result + ..add('notIn') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GLongString)]))); + } + return result; + } + + @override + GLongFilterInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GLongFilterInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'distinctFrom': + result.distinctFrom.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'equalTo': + result.equalTo.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'greaterThan': + result.greaterThan.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'greaterThanOrEqualTo': + result.greaterThanOrEqualTo.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'in': + result.Gin.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GLongString)]))! + as BuiltList); + break; + case 'isNull': + result.isNull = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'lessThan': + result.lessThan.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'lessThanOrEqualTo': + result.lessThanOrEqualTo.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'notDistinctFrom': + result.notDistinctFrom.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'notEqualTo': + result.notEqualTo.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'notIn': + result.notIn.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GLongString)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GMangaConditionInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GMangaConditionInput, + _$GMangaConditionInput + ]; + @override + final String wireName = 'GMangaConditionInput'; + + @override + Iterable serialize( + Serializers serializers, GMangaConditionInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.artist; + if (value != null) { + result + ..add('artist') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.author; + if (value != null) { + result + ..add('author') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.categoryIds; + if (value != null) { + result + ..add('categoryIds') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))); + } + value = object.chaptersLastFetchedAt; + if (value != null) { + result + ..add('chaptersLastFetchedAt') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.description; + if (value != null) { + result + ..add('description') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.genre; + if (value != null) { + result + ..add('genre') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.id; + if (value != null) { + result + ..add('id') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.inLibrary; + if (value != null) { + result + ..add('inLibrary') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.inLibraryAt; + if (value != null) { + result + ..add('inLibraryAt') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.initialized; + if (value != null) { + result + ..add('initialized') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.lastFetchedAt; + if (value != null) { + result + ..add('lastFetchedAt') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.realUrl; + if (value != null) { + result + ..add('realUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.sourceId; + if (value != null) { + result + ..add('sourceId') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.status; + if (value != null) { + result + ..add('status') + ..add(serializers.serialize(value, + specifiedType: const FullType(GMangaStatus))); + } + value = object.thumbnailUrl; + if (value != null) { + result + ..add('thumbnailUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.title; + if (value != null) { + result + ..add('title') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.url; + if (value != null) { + result + ..add('url') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GMangaConditionInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMangaConditionInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'artist': + result.artist = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'author': + result.author = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'categoryIds': + result.categoryIds.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))! + as BuiltList); + break; + case 'chaptersLastFetchedAt': + result.chaptersLastFetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'description': + result.description = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'genre': + result.genre.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'inLibrary': + result.inLibrary = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'inLibraryAt': + result.inLibraryAt.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'initialized': + result.initialized = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'lastFetchedAt': + result.lastFetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'realUrl': + result.realUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'sourceId': + result.sourceId.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'status': + result.status = serializers.deserialize(value, + specifiedType: const FullType(GMangaStatus)) as GMangaStatus?; + break; + case 'thumbnailUrl': + result.thumbnailUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'title': + result.title = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'url': + result.url = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GMangaFilterInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GMangaFilterInput, _$GMangaFilterInput]; + @override + final String wireName = 'GMangaFilterInput'; + + @override + Iterable serialize(Serializers serializers, GMangaFilterInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.and; + if (value != null) { + result + ..add('and') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GMangaFilterInput)]))); + } + value = object.artist; + if (value != null) { + result + ..add('artist') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.author; + if (value != null) { + result + ..add('author') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.categoryId; + if (value != null) { + result + ..add('categoryId') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIntFilterInput))); + } + value = object.chaptersLastFetchedAt; + if (value != null) { + result + ..add('chaptersLastFetchedAt') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongFilterInput))); + } + value = object.description; + if (value != null) { + result + ..add('description') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.genre; + if (value != null) { + result + ..add('genre') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.id; + if (value != null) { + result + ..add('id') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIntFilterInput))); + } + value = object.inLibrary; + if (value != null) { + result + ..add('inLibrary') + ..add(serializers.serialize(value, + specifiedType: const FullType(GBooleanFilterInput))); + } + value = object.inLibraryAt; + if (value != null) { + result + ..add('inLibraryAt') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongFilterInput))); + } + value = object.initialized; + if (value != null) { + result + ..add('initialized') + ..add(serializers.serialize(value, + specifiedType: const FullType(GBooleanFilterInput))); + } + value = object.lastFetchedAt; + if (value != null) { + result + ..add('lastFetchedAt') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongFilterInput))); + } + value = object.not; + if (value != null) { + result + ..add('not') + ..add(serializers.serialize(value, + specifiedType: const FullType(GMangaFilterInput))); + } + value = object.or; + if (value != null) { + result + ..add('or') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GMangaFilterInput)]))); + } + value = object.realUrl; + if (value != null) { + result + ..add('realUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.sourceId; + if (value != null) { + result + ..add('sourceId') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongFilterInput))); + } + value = object.status; + if (value != null) { + result + ..add('status') + ..add(serializers.serialize(value, + specifiedType: const FullType(GMangaStatusFilterInput))); + } + value = object.thumbnailUrl; + if (value != null) { + result + ..add('thumbnailUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.title; + if (value != null) { + result + ..add('title') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.url; + if (value != null) { + result + ..add('url') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + return result; + } + + @override + GMangaFilterInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMangaFilterInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'and': + result.and.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GMangaFilterInput)]))! + as BuiltList); + break; + case 'artist': + result.artist.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'author': + result.author.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'categoryId': + result.categoryId.replace(serializers.deserialize(value, + specifiedType: const FullType(GIntFilterInput))! + as GIntFilterInput); + break; + case 'chaptersLastFetchedAt': + result.chaptersLastFetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongFilterInput))! + as GLongFilterInput); + break; + case 'description': + result.description.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'genre': + result.genre.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'id': + result.id.replace(serializers.deserialize(value, + specifiedType: const FullType(GIntFilterInput))! + as GIntFilterInput); + break; + case 'inLibrary': + result.inLibrary.replace(serializers.deserialize(value, + specifiedType: const FullType(GBooleanFilterInput))! + as GBooleanFilterInput); + break; + case 'inLibraryAt': + result.inLibraryAt.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongFilterInput))! + as GLongFilterInput); + break; + case 'initialized': + result.initialized.replace(serializers.deserialize(value, + specifiedType: const FullType(GBooleanFilterInput))! + as GBooleanFilterInput); + break; + case 'lastFetchedAt': + result.lastFetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongFilterInput))! + as GLongFilterInput); + break; + case 'not': + result.not.replace(serializers.deserialize(value, + specifiedType: const FullType(GMangaFilterInput))! + as GMangaFilterInput); + break; + case 'or': + result.or.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GMangaFilterInput)]))! + as BuiltList); + break; + case 'realUrl': + result.realUrl.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'sourceId': + result.sourceId.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongFilterInput))! + as GLongFilterInput); + break; + case 'status': + result.status.replace(serializers.deserialize(value, + specifiedType: const FullType(GMangaStatusFilterInput))! + as GMangaStatusFilterInput); + break; + case 'thumbnailUrl': + result.thumbnailUrl.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'title': + result.title.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'url': + result.url.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + } + } + + return result.build(); + } +} + +class _$GMangaMetaTypeInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GMangaMetaTypeInput, + _$GMangaMetaTypeInput + ]; + @override + final String wireName = 'GMangaMetaTypeInput'; + + @override + Iterable serialize( + Serializers serializers, GMangaMetaTypeInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'mangaId', + serializers.serialize(object.mangaId, specifiedType: const FullType(int)), + 'value', + serializers.serialize(object.value, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GMangaMetaTypeInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMangaMetaTypeInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'mangaId': + result.mangaId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GMangaOrderBySerializer implements PrimitiveSerializer { + @override + final Iterable types = const [GMangaOrderBy]; + @override + final String wireName = 'GMangaOrderBy'; + + @override + Object serialize(Serializers serializers, GMangaOrderBy object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GMangaOrderBy deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GMangaOrderBy.valueOf(serialized as String); +} + +class _$GMangaStatusSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [GMangaStatus]; + @override + final String wireName = 'GMangaStatus'; + + @override + Object serialize(Serializers serializers, GMangaStatus object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GMangaStatus deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GMangaStatus.valueOf(serialized as String); +} + +class _$GMangaStatusFilterInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GMangaStatusFilterInput, + _$GMangaStatusFilterInput + ]; + @override + final String wireName = 'GMangaStatusFilterInput'; + + @override + Iterable serialize( + Serializers serializers, GMangaStatusFilterInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.distinctFrom; + if (value != null) { + result + ..add('distinctFrom') + ..add(serializers.serialize(value, + specifiedType: const FullType(GMangaStatus))); + } + value = object.equalTo; + if (value != null) { + result + ..add('equalTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(GMangaStatus))); + } + value = object.greaterThan; + if (value != null) { + result + ..add('greaterThan') + ..add(serializers.serialize(value, + specifiedType: const FullType(GMangaStatus))); + } + value = object.greaterThanOrEqualTo; + if (value != null) { + result + ..add('greaterThanOrEqualTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(GMangaStatus))); + } + value = object.Gin; + if (value != null) { + result + ..add('in') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GMangaStatus)]))); + } + value = object.isNull; + if (value != null) { + result + ..add('isNull') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.lessThan; + if (value != null) { + result + ..add('lessThan') + ..add(serializers.serialize(value, + specifiedType: const FullType(GMangaStatus))); + } + value = object.lessThanOrEqualTo; + if (value != null) { + result + ..add('lessThanOrEqualTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(GMangaStatus))); + } + value = object.notDistinctFrom; + if (value != null) { + result + ..add('notDistinctFrom') + ..add(serializers.serialize(value, + specifiedType: const FullType(GMangaStatus))); + } + value = object.notEqualTo; + if (value != null) { + result + ..add('notEqualTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(GMangaStatus))); + } + value = object.notIn; + if (value != null) { + result + ..add('notIn') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GMangaStatus)]))); + } + return result; + } + + @override + GMangaStatusFilterInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMangaStatusFilterInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'distinctFrom': + result.distinctFrom = serializers.deserialize(value, + specifiedType: const FullType(GMangaStatus)) as GMangaStatus?; + break; + case 'equalTo': + result.equalTo = serializers.deserialize(value, + specifiedType: const FullType(GMangaStatus)) as GMangaStatus?; + break; + case 'greaterThan': + result.greaterThan = serializers.deserialize(value, + specifiedType: const FullType(GMangaStatus)) as GMangaStatus?; + break; + case 'greaterThanOrEqualTo': + result.greaterThanOrEqualTo = serializers.deserialize(value, + specifiedType: const FullType(GMangaStatus)) as GMangaStatus?; + break; + case 'in': + result.Gin.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GMangaStatus)]))! + as BuiltList); + break; + case 'isNull': + result.isNull = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'lessThan': + result.lessThan = serializers.deserialize(value, + specifiedType: const FullType(GMangaStatus)) as GMangaStatus?; + break; + case 'lessThanOrEqualTo': + result.lessThanOrEqualTo = serializers.deserialize(value, + specifiedType: const FullType(GMangaStatus)) as GMangaStatus?; + break; + case 'notDistinctFrom': + result.notDistinctFrom = serializers.deserialize(value, + specifiedType: const FullType(GMangaStatus)) as GMangaStatus?; + break; + case 'notEqualTo': + result.notEqualTo = serializers.deserialize(value, + specifiedType: const FullType(GMangaStatus)) as GMangaStatus?; + break; + case 'notIn': + result.notIn.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GMangaStatus)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GMetaConditionInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GMetaConditionInput, + _$GMetaConditionInput + ]; + @override + final String wireName = 'GMetaConditionInput'; + + @override + Iterable serialize( + Serializers serializers, GMetaConditionInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.key; + if (value != null) { + result + ..add('key') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.value; + if (value != null) { + result + ..add('value') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GMetaConditionInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMetaConditionInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GMetaFilterInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GMetaFilterInput, _$GMetaFilterInput]; + @override + final String wireName = 'GMetaFilterInput'; + + @override + Iterable serialize(Serializers serializers, GMetaFilterInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.and; + if (value != null) { + result + ..add('and') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GMetaFilterInput)]))); + } + value = object.key; + if (value != null) { + result + ..add('key') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.not; + if (value != null) { + result + ..add('not') + ..add(serializers.serialize(value, + specifiedType: const FullType(GMetaFilterInput))); + } + value = object.or; + if (value != null) { + result + ..add('or') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GMetaFilterInput)]))); + } + value = object.value; + if (value != null) { + result + ..add('value') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + return result; + } + + @override + GMetaFilterInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMetaFilterInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'and': + result.and.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GMetaFilterInput)]))! + as BuiltList); + break; + case 'key': + result.key.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'not': + result.not.replace(serializers.deserialize(value, + specifiedType: const FullType(GMetaFilterInput))! + as GMetaFilterInput); + break; + case 'or': + result.or.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GMetaFilterInput)]))! + as BuiltList); + break; + case 'value': + result.value.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + } + } + + return result.build(); + } +} + +class _$GMetaOrderBySerializer implements PrimitiveSerializer { + @override + final Iterable types = const [GMetaOrderBy]; + @override + final String wireName = 'GMetaOrderBy'; + + @override + Object serialize(Serializers serializers, GMetaOrderBy object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GMetaOrderBy deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GMetaOrderBy.valueOf(serialized as String); +} + +class _$GPartialSettingsTypeInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GPartialSettingsTypeInput, + _$GPartialSettingsTypeInput + ]; + @override + final String wireName = 'GPartialSettingsTypeInput'; + + @override + Iterable serialize( + Serializers serializers, GPartialSettingsTypeInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.autoDownloadNewChapters; + if (value != null) { + result + ..add('autoDownloadNewChapters') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.autoDownloadNewChaptersLimit; + if (value != null) { + result + ..add('autoDownloadNewChaptersLimit') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.backupInterval; + if (value != null) { + result + ..add('backupInterval') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.backupPath; + if (value != null) { + result + ..add('backupPath') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.backupTTL; + if (value != null) { + result + ..add('backupTTL') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.backupTime; + if (value != null) { + result + ..add('backupTime') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.basicAuthEnabled; + if (value != null) { + result + ..add('basicAuthEnabled') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.basicAuthPassword; + if (value != null) { + result + ..add('basicAuthPassword') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.basicAuthUsername; + if (value != null) { + result + ..add('basicAuthUsername') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.debugLogsEnabled; + if (value != null) { + result + ..add('debugLogsEnabled') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.downloadAsCbz; + if (value != null) { + result + ..add('downloadAsCbz') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.downloadsPath; + if (value != null) { + result + ..add('downloadsPath') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.electronPath; + if (value != null) { + result + ..add('electronPath') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.excludeCompleted; + if (value != null) { + result + ..add('excludeCompleted') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.excludeEntryWithUnreadChapters; + if (value != null) { + result + ..add('excludeEntryWithUnreadChapters') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.excludeNotStarted; + if (value != null) { + result + ..add('excludeNotStarted') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.excludeUnreadChapters; + if (value != null) { + result + ..add('excludeUnreadChapters') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.extensionRepos; + if (value != null) { + result + ..add('extensionRepos') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.flareSolverrEnabled; + if (value != null) { + result + ..add('flareSolverrEnabled') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.flareSolverrSessionName; + if (value != null) { + result + ..add('flareSolverrSessionName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.flareSolverrSessionTtl; + if (value != null) { + result + ..add('flareSolverrSessionTtl') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.flareSolverrTimeout; + if (value != null) { + result + ..add('flareSolverrTimeout') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.flareSolverrUrl; + if (value != null) { + result + ..add('flareSolverrUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.globalUpdateInterval; + if (value != null) { + result + ..add('globalUpdateInterval') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.gqlDebugLogsEnabled; + if (value != null) { + result + ..add('gqlDebugLogsEnabled') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.initialOpenInBrowserEnabled; + if (value != null) { + result + ..add('initialOpenInBrowserEnabled') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.ip; + if (value != null) { + result + ..add('ip') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.localSourcePath; + if (value != null) { + result + ..add('localSourcePath') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.maxSourcesInParallel; + if (value != null) { + result + ..add('maxSourcesInParallel') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.port; + if (value != null) { + result + ..add('port') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.socksProxyEnabled; + if (value != null) { + result + ..add('socksProxyEnabled') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.socksProxyHost; + if (value != null) { + result + ..add('socksProxyHost') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.socksProxyPassword; + if (value != null) { + result + ..add('socksProxyPassword') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.socksProxyPort; + if (value != null) { + result + ..add('socksProxyPort') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.socksProxyUsername; + if (value != null) { + result + ..add('socksProxyUsername') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.socksProxyVersion; + if (value != null) { + result + ..add('socksProxyVersion') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.systemTrayEnabled; + if (value != null) { + result + ..add('systemTrayEnabled') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.updateMangas; + if (value != null) { + result + ..add('updateMangas') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.webUIChannel; + if (value != null) { + result + ..add('webUIChannel') + ..add(serializers.serialize(value, + specifiedType: const FullType(GWebUIChannel))); + } + value = object.webUIFlavor; + if (value != null) { + result + ..add('webUIFlavor') + ..add(serializers.serialize(value, + specifiedType: const FullType(GWebUIFlavor))); + } + value = object.webUIInterface; + if (value != null) { + result + ..add('webUIInterface') + ..add(serializers.serialize(value, + specifiedType: const FullType(GWebUIInterface))); + } + value = object.webUIUpdateCheckInterval; + if (value != null) { + result + ..add('webUIUpdateCheckInterval') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + return result; + } + + @override + GPartialSettingsTypeInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GPartialSettingsTypeInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'basicAuthEnabled': + result.basicAuthEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'basicAuthPassword': + result.basicAuthPassword = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'basicAuthUsername': + result.basicAuthUsername = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'electronPath': + result.electronPath = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'initialOpenInBrowserEnabled': + result.initialOpenInBrowserEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'webUIChannel': + result.webUIChannel = serializers.deserialize(value, + specifiedType: const FullType(GWebUIChannel)) as GWebUIChannel?; + break; + case 'webUIFlavor': + result.webUIFlavor = serializers.deserialize(value, + specifiedType: const FullType(GWebUIFlavor)) as GWebUIFlavor?; + break; + case 'webUIInterface': + result.webUIInterface = serializers.deserialize(value, + specifiedType: const FullType(GWebUIInterface)) + as GWebUIInterface?; + break; + case 'webUIUpdateCheckInterval': + result.webUIUpdateCheckInterval = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + } + } + + return result.build(); + } +} + +class _$GReorderChapterDownloadInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GReorderChapterDownloadInput, + _$GReorderChapterDownloadInput + ]; + @override + final String wireName = 'GReorderChapterDownloadInput'; + + @override + Iterable serialize( + Serializers serializers, GReorderChapterDownloadInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'chapterId', + serializers.serialize(object.chapterId, + specifiedType: const FullType(int)), + 'to', + serializers.serialize(object.to, specifiedType: const FullType(int)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GReorderChapterDownloadInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GReorderChapterDownloadInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'chapterId': + result.chapterId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'to': + result.to = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GResetSettingsInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GResetSettingsInput, + _$GResetSettingsInput + ]; + @override + final String wireName = 'GResetSettingsInput'; + + @override + Iterable serialize( + Serializers serializers, GResetSettingsInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GResetSettingsInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GResetSettingsInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GRestoreBackupInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GRestoreBackupInput, + _$GRestoreBackupInput + ]; + @override + final String wireName = 'GRestoreBackupInput'; + + @override + Iterable serialize( + Serializers serializers, GRestoreBackupInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'backup', + serializers.serialize(object.backup, + specifiedType: const FullType(_i3.MultipartFile)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GRestoreBackupInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GRestoreBackupInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'backup': + result.backup = serializers.deserialize(value, + specifiedType: const FullType(_i3.MultipartFile))! + as _i3.MultipartFile; + break; + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GSearchTrackerInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSearchTrackerInput, + _$GSearchTrackerInput + ]; + @override + final String wireName = 'GSearchTrackerInput'; + + @override + Iterable serialize( + Serializers serializers, GSearchTrackerInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'query', + serializers.serialize(object.query, + specifiedType: const FullType(String)), + 'trackerId', + serializers.serialize(object.trackerId, + specifiedType: const FullType(int)), + ]; + + return result; + } + + @override + GSearchTrackerInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSearchTrackerInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'query': + result.query = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'trackerId': + result.trackerId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GSetCategoryMetaInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSetCategoryMetaInput, + _$GSetCategoryMetaInput + ]; + @override + final String wireName = 'GSetCategoryMetaInput'; + + @override + Iterable serialize( + Serializers serializers, GSetCategoryMetaInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'meta', + serializers.serialize(object.meta, + specifiedType: const FullType(GCategoryMetaTypeInput)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSetCategoryMetaInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSetCategoryMetaInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'meta': + result.meta.replace(serializers.deserialize(value, + specifiedType: const FullType(GCategoryMetaTypeInput))! + as GCategoryMetaTypeInput); + break; + } + } + + return result.build(); + } +} + +class _$GSetChapterMetaInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSetChapterMetaInput, + _$GSetChapterMetaInput + ]; + @override + final String wireName = 'GSetChapterMetaInput'; + + @override + Iterable serialize( + Serializers serializers, GSetChapterMetaInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'meta', + serializers.serialize(object.meta, + specifiedType: const FullType(GChapterMetaTypeInput)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSetChapterMetaInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSetChapterMetaInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'meta': + result.meta.replace(serializers.deserialize(value, + specifiedType: const FullType(GChapterMetaTypeInput))! + as GChapterMetaTypeInput); + break; + } + } + + return result.build(); + } +} + +class _$GSetGlobalMetaInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSetGlobalMetaInput, + _$GSetGlobalMetaInput + ]; + @override + final String wireName = 'GSetGlobalMetaInput'; + + @override + Iterable serialize( + Serializers serializers, GSetGlobalMetaInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'meta', + serializers.serialize(object.meta, + specifiedType: const FullType(GGlobalMetaTypeInput)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSetGlobalMetaInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSetGlobalMetaInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'meta': + result.meta.replace(serializers.deserialize(value, + specifiedType: const FullType(GGlobalMetaTypeInput))! + as GGlobalMetaTypeInput); + break; + } + } + + return result.build(); + } +} + +class _$GSetMangaMetaInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GSetMangaMetaInput, _$GSetMangaMetaInput]; + @override + final String wireName = 'GSetMangaMetaInput'; + + @override + Iterable serialize( + Serializers serializers, GSetMangaMetaInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'meta', + serializers.serialize(object.meta, + specifiedType: const FullType(GMangaMetaTypeInput)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSetMangaMetaInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSetMangaMetaInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'meta': + result.meta.replace(serializers.deserialize(value, + specifiedType: const FullType(GMangaMetaTypeInput))! + as GMangaMetaTypeInput); + break; + } + } + + return result.build(); + } +} + +class _$GSetSettingsInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GSetSettingsInput, _$GSetSettingsInput]; + @override + final String wireName = 'GSetSettingsInput'; + + @override + Iterable serialize(Serializers serializers, GSetSettingsInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'settings', + serializers.serialize(object.settings, + specifiedType: const FullType(GPartialSettingsTypeInput)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSetSettingsInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSetSettingsInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType(GPartialSettingsTypeInput))! + as GPartialSettingsTypeInput); + break; + } + } + + return result.build(); + } +} + +class _$GSetSourceMetaInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSetSourceMetaInput, + _$GSetSourceMetaInput + ]; + @override + final String wireName = 'GSetSourceMetaInput'; + + @override + Iterable serialize( + Serializers serializers, GSetSourceMetaInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'meta', + serializers.serialize(object.meta, + specifiedType: const FullType(GSourceMetaTypeInput)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSetSourceMetaInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSetSourceMetaInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'meta': + result.meta.replace(serializers.deserialize(value, + specifiedType: const FullType(GSourceMetaTypeInput))! + as GSourceMetaTypeInput); + break; + } + } + + return result.build(); + } +} + +class _$GSortOrderSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [GSortOrder]; + @override + final String wireName = 'GSortOrder'; + + @override + Object serialize(Serializers serializers, GSortOrder object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GSortOrder deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GSortOrder.valueOf(serialized as String); +} + +class _$GSortSelectionInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSortSelectionInput, + _$GSortSelectionInput + ]; + @override + final String wireName = 'GSortSelectionInput'; + + @override + Iterable serialize( + Serializers serializers, GSortSelectionInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'ascending', + serializers.serialize(object.ascending, + specifiedType: const FullType(bool)), + 'index', + serializers.serialize(object.index, specifiedType: const FullType(int)), + ]; + + return result; + } + + @override + GSortSelectionInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSortSelectionInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'ascending': + result.ascending = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'index': + result.index = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GSourceConditionInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSourceConditionInput, + _$GSourceConditionInput + ]; + @override + final String wireName = 'GSourceConditionInput'; + + @override + Iterable serialize( + Serializers serializers, GSourceConditionInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.id; + if (value != null) { + result + ..add('id') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.isNsfw; + if (value != null) { + result + ..add('isNsfw') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.lang; + if (value != null) { + result + ..add('lang') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.name; + if (value != null) { + result + ..add('name') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSourceConditionInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourceConditionInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'id': + result.id.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'isNsfw': + result.isNsfw = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'lang': + result.lang = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GSourceFilterInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GSourceFilterInput, _$GSourceFilterInput]; + @override + final String wireName = 'GSourceFilterInput'; + + @override + Iterable serialize( + Serializers serializers, GSourceFilterInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.and; + if (value != null) { + result + ..add('and') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GSourceFilterInput)]))); + } + value = object.id; + if (value != null) { + result + ..add('id') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongFilterInput))); + } + value = object.isNsfw; + if (value != null) { + result + ..add('isNsfw') + ..add(serializers.serialize(value, + specifiedType: const FullType(GBooleanFilterInput))); + } + value = object.lang; + if (value != null) { + result + ..add('lang') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.name; + if (value != null) { + result + ..add('name') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.not; + if (value != null) { + result + ..add('not') + ..add(serializers.serialize(value, + specifiedType: const FullType(GSourceFilterInput))); + } + value = object.or; + if (value != null) { + result + ..add('or') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GSourceFilterInput)]))); + } + return result; + } + + @override + GSourceFilterInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourceFilterInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'and': + result.and.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GSourceFilterInput)]))! + as BuiltList); + break; + case 'id': + result.id.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongFilterInput))! + as GLongFilterInput); + break; + case 'isNsfw': + result.isNsfw.replace(serializers.deserialize(value, + specifiedType: const FullType(GBooleanFilterInput))! + as GBooleanFilterInput); + break; + case 'lang': + result.lang.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'name': + result.name.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'not': + result.not.replace(serializers.deserialize(value, + specifiedType: const FullType(GSourceFilterInput))! + as GSourceFilterInput); + break; + case 'or': + result.or.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GSourceFilterInput)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GSourceMetaTypeInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSourceMetaTypeInput, + _$GSourceMetaTypeInput + ]; + @override + final String wireName = 'GSourceMetaTypeInput'; + + @override + Iterable serialize( + Serializers serializers, GSourceMetaTypeInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'sourceId', + serializers.serialize(object.sourceId, + specifiedType: const FullType(GLongString)), + 'value', + serializers.serialize(object.value, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GSourceMetaTypeInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourceMetaTypeInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'sourceId': + result.sourceId.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GSourceOrderBySerializer + implements PrimitiveSerializer { + @override + final Iterable types = const [GSourceOrderBy]; + @override + final String wireName = 'GSourceOrderBy'; + + @override + Object serialize(Serializers serializers, GSourceOrderBy object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GSourceOrderBy deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GSourceOrderBy.valueOf(serialized as String); +} + +class _$GSourcePreferenceChangeInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSourcePreferenceChangeInput, + _$GSourcePreferenceChangeInput + ]; + @override + final String wireName = 'GSourcePreferenceChangeInput'; + + @override + Iterable serialize( + Serializers serializers, GSourcePreferenceChangeInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'position', + serializers.serialize(object.position, + specifiedType: const FullType(int)), + ]; + Object? value; + value = object.checkBoxState; + if (value != null) { + result + ..add('checkBoxState') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.editTextState; + if (value != null) { + result + ..add('editTextState') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.listState; + if (value != null) { + result + ..add('listState') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.multiSelectState; + if (value != null) { + result + ..add('multiSelectState') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.switchState; + if (value != null) { + result + ..add('switchState') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + GSourcePreferenceChangeInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourcePreferenceChangeInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'checkBoxState': + result.checkBoxState = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'editTextState': + result.editTextState = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'listState': + result.listState = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'multiSelectState': + result.multiSelectState.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'position': + result.position = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'switchState': + result.switchState = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$GStartDownloaderInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GStartDownloaderInput, + _$GStartDownloaderInput + ]; + @override + final String wireName = 'GStartDownloaderInput'; + + @override + Iterable serialize( + Serializers serializers, GStartDownloaderInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GStartDownloaderInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GStartDownloaderInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GStopDownloaderInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GStopDownloaderInput, + _$GStopDownloaderInput + ]; + @override + final String wireName = 'GStopDownloaderInput'; + + @override + Iterable serialize( + Serializers serializers, GStopDownloaderInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GStopDownloaderInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GStopDownloaderInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GStringFilterInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GStringFilterInput, _$GStringFilterInput]; + @override + final String wireName = 'GStringFilterInput'; + + @override + Iterable serialize( + Serializers serializers, GStringFilterInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.distinctFrom; + if (value != null) { + result + ..add('distinctFrom') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.distinctFromInsensitive; + if (value != null) { + result + ..add('distinctFromInsensitive') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.endsWith; + if (value != null) { + result + ..add('endsWith') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.endsWithInsensitive; + if (value != null) { + result + ..add('endsWithInsensitive') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.equalTo; + if (value != null) { + result + ..add('equalTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.greaterThan; + if (value != null) { + result + ..add('greaterThan') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.greaterThanInsensitive; + if (value != null) { + result + ..add('greaterThanInsensitive') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.greaterThanOrEqualTo; + if (value != null) { + result + ..add('greaterThanOrEqualTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.greaterThanOrEqualToInsensitive; + if (value != null) { + result + ..add('greaterThanOrEqualToInsensitive') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.Gin; + if (value != null) { + result + ..add('in') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.inInsensitive; + if (value != null) { + result + ..add('inInsensitive') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.includes; + if (value != null) { + result + ..add('includes') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.includesInsensitive; + if (value != null) { + result + ..add('includesInsensitive') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.isNull; + if (value != null) { + result + ..add('isNull') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.lessThan; + if (value != null) { + result + ..add('lessThan') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.lessThanInsensitive; + if (value != null) { + result + ..add('lessThanInsensitive') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.lessThanOrEqualTo; + if (value != null) { + result + ..add('lessThanOrEqualTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.lessThanOrEqualToInsensitive; + if (value != null) { + result + ..add('lessThanOrEqualToInsensitive') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.like; + if (value != null) { + result + ..add('like') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.likeInsensitive; + if (value != null) { + result + ..add('likeInsensitive') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.notDistinctFrom; + if (value != null) { + result + ..add('notDistinctFrom') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.notDistinctFromInsensitive; + if (value != null) { + result + ..add('notDistinctFromInsensitive') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.notEndsWith; + if (value != null) { + result + ..add('notEndsWith') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.notEndsWithInsensitive; + if (value != null) { + result + ..add('notEndsWithInsensitive') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.notEqualTo; + if (value != null) { + result + ..add('notEqualTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.notIn; + if (value != null) { + result + ..add('notIn') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.notInInsensitive; + if (value != null) { + result + ..add('notInInsensitive') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.notIncludes; + if (value != null) { + result + ..add('notIncludes') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.notIncludesInsensitive; + if (value != null) { + result + ..add('notIncludesInsensitive') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.notLike; + if (value != null) { + result + ..add('notLike') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.notLikeInsensitive; + if (value != null) { + result + ..add('notLikeInsensitive') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.notStartsWith; + if (value != null) { + result + ..add('notStartsWith') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.notStartsWithInsensitive; + if (value != null) { + result + ..add('notStartsWithInsensitive') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.startsWith; + if (value != null) { + result + ..add('startsWith') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.startsWithInsensitive; + if (value != null) { + result + ..add('startsWithInsensitive') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GStringFilterInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GStringFilterInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'distinctFrom': + result.distinctFrom = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'distinctFromInsensitive': + result.distinctFromInsensitive = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'endsWith': + result.endsWith = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'endsWithInsensitive': + result.endsWithInsensitive = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'equalTo': + result.equalTo = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'greaterThan': + result.greaterThan = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'greaterThanInsensitive': + result.greaterThanInsensitive = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'greaterThanOrEqualTo': + result.greaterThanOrEqualTo = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'greaterThanOrEqualToInsensitive': + result.greaterThanOrEqualToInsensitive = serializers.deserialize( + value, + specifiedType: const FullType(String)) as String?; + break; + case 'in': + result.Gin.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'inInsensitive': + result.inInsensitive.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'includes': + result.includes = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'includesInsensitive': + result.includesInsensitive = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'isNull': + result.isNull = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'lessThan': + result.lessThan = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'lessThanInsensitive': + result.lessThanInsensitive = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'lessThanOrEqualTo': + result.lessThanOrEqualTo = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'lessThanOrEqualToInsensitive': + result.lessThanOrEqualToInsensitive = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'like': + result.like = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'likeInsensitive': + result.likeInsensitive = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'notDistinctFrom': + result.notDistinctFrom = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'notDistinctFromInsensitive': + result.notDistinctFromInsensitive = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'notEndsWith': + result.notEndsWith = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'notEndsWithInsensitive': + result.notEndsWithInsensitive = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'notEqualTo': + result.notEqualTo = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'notIn': + result.notIn.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'notInInsensitive': + result.notInInsensitive.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'notIncludes': + result.notIncludes = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'notIncludesInsensitive': + result.notIncludesInsensitive = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'notLike': + result.notLike = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'notLikeInsensitive': + result.notLikeInsensitive = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'notStartsWith': + result.notStartsWith = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'notStartsWithInsensitive': + result.notStartsWithInsensitive = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'startsWith': + result.startsWith = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'startsWithInsensitive': + result.startsWithInsensitive = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GTrackerConditionInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GTrackerConditionInput, + _$GTrackerConditionInput + ]; + @override + final String wireName = 'GTrackerConditionInput'; + + @override + Iterable serialize( + Serializers serializers, GTrackerConditionInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.icon; + if (value != null) { + result + ..add('icon') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.id; + if (value != null) { + result + ..add('id') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.isLoggedIn; + if (value != null) { + result + ..add('isLoggedIn') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.name; + if (value != null) { + result + ..add('name') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GTrackerConditionInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GTrackerConditionInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'icon': + result.icon = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'isLoggedIn': + result.isLoggedIn = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GTrackerOrderBySerializer + implements PrimitiveSerializer { + @override + final Iterable types = const [GTrackerOrderBy]; + @override + final String wireName = 'GTrackerOrderBy'; + + @override + Object serialize(Serializers serializers, GTrackerOrderBy object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GTrackerOrderBy deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GTrackerOrderBy.valueOf(serialized as String); +} + +class _$GTrackRecordConditionInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GTrackRecordConditionInput, + _$GTrackRecordConditionInput + ]; + @override + final String wireName = 'GTrackRecordConditionInput'; + + @override + Iterable serialize( + Serializers serializers, GTrackRecordConditionInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.finishDate; + if (value != null) { + result + ..add('finishDate') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.id; + if (value != null) { + result + ..add('id') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.lastChapterRead; + if (value != null) { + result + ..add('lastChapterRead') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.libraryId; + if (value != null) { + result + ..add('libraryId') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.mangaId; + if (value != null) { + result + ..add('mangaId') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.remoteId; + if (value != null) { + result + ..add('remoteId') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.remoteUrl; + if (value != null) { + result + ..add('remoteUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.score; + if (value != null) { + result + ..add('score') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.startDate; + if (value != null) { + result + ..add('startDate') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.status; + if (value != null) { + result + ..add('status') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.title; + if (value != null) { + result + ..add('title') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.totalChapters; + if (value != null) { + result + ..add('totalChapters') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.trackerId; + if (value != null) { + result + ..add('trackerId') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + return result; + } + + @override + GTrackRecordConditionInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GTrackRecordConditionInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'finishDate': + result.finishDate.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'lastChapterRead': + result.lastChapterRead = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'libraryId': + result.libraryId.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'mangaId': + result.mangaId = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'remoteId': + result.remoteId.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'remoteUrl': + result.remoteUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'score': + result.score = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'startDate': + result.startDate.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'status': + result.status = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'title': + result.title = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'totalChapters': + result.totalChapters = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'trackerId': + result.trackerId = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + } + } + + return result.build(); + } +} + +class _$GTrackRecordFilterInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GTrackRecordFilterInput, + _$GTrackRecordFilterInput + ]; + @override + final String wireName = 'GTrackRecordFilterInput'; + + @override + Iterable serialize( + Serializers serializers, GTrackRecordFilterInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.and; + if (value != null) { + result + ..add('and') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GTrackRecordFilterInput)]))); + } + value = object.finishDate; + if (value != null) { + result + ..add('finishDate') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongFilterInput))); + } + value = object.id; + if (value != null) { + result + ..add('id') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIntFilterInput))); + } + value = object.lastChapterRead; + if (value != null) { + result + ..add('lastChapterRead') + ..add(serializers.serialize(value, + specifiedType: const FullType(GDoubleFilterInput))); + } + value = object.libraryId; + if (value != null) { + result + ..add('libraryId') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongFilterInput))); + } + value = object.mangaId; + if (value != null) { + result + ..add('mangaId') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIntFilterInput))); + } + value = object.not; + if (value != null) { + result + ..add('not') + ..add(serializers.serialize(value, + specifiedType: const FullType(GTrackRecordFilterInput))); + } + value = object.or; + if (value != null) { + result + ..add('or') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GTrackRecordFilterInput)]))); + } + value = object.remoteId; + if (value != null) { + result + ..add('remoteId') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongFilterInput))); + } + value = object.remoteUrl; + if (value != null) { + result + ..add('remoteUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.score; + if (value != null) { + result + ..add('score') + ..add(serializers.serialize(value, + specifiedType: const FullType(GDoubleFilterInput))); + } + value = object.startDate; + if (value != null) { + result + ..add('startDate') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongFilterInput))); + } + value = object.status; + if (value != null) { + result + ..add('status') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIntFilterInput))); + } + value = object.title; + if (value != null) { + result + ..add('title') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.totalChapters; + if (value != null) { + result + ..add('totalChapters') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIntFilterInput))); + } + value = object.trackerId; + if (value != null) { + result + ..add('trackerId') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIntFilterInput))); + } + return result; + } + + @override + GTrackRecordFilterInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GTrackRecordFilterInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'and': + result.and.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GTrackRecordFilterInput) + ]))! as BuiltList); + break; + case 'finishDate': + result.finishDate.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongFilterInput))! + as GLongFilterInput); + break; + case 'id': + result.id.replace(serializers.deserialize(value, + specifiedType: const FullType(GIntFilterInput))! + as GIntFilterInput); + break; + case 'lastChapterRead': + result.lastChapterRead.replace(serializers.deserialize(value, + specifiedType: const FullType(GDoubleFilterInput))! + as GDoubleFilterInput); + break; + case 'libraryId': + result.libraryId.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongFilterInput))! + as GLongFilterInput); + break; + case 'mangaId': + result.mangaId.replace(serializers.deserialize(value, + specifiedType: const FullType(GIntFilterInput))! + as GIntFilterInput); + break; + case 'not': + result.not.replace(serializers.deserialize(value, + specifiedType: const FullType(GTrackRecordFilterInput))! + as GTrackRecordFilterInput); + break; + case 'or': + result.or.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GTrackRecordFilterInput) + ]))! as BuiltList); + break; + case 'remoteId': + result.remoteId.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongFilterInput))! + as GLongFilterInput); + break; + case 'remoteUrl': + result.remoteUrl.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'score': + result.score.replace(serializers.deserialize(value, + specifiedType: const FullType(GDoubleFilterInput))! + as GDoubleFilterInput); + break; + case 'startDate': + result.startDate.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongFilterInput))! + as GLongFilterInput); + break; + case 'status': + result.status.replace(serializers.deserialize(value, + specifiedType: const FullType(GIntFilterInput))! + as GIntFilterInput); + break; + case 'title': + result.title.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'totalChapters': + result.totalChapters.replace(serializers.deserialize(value, + specifiedType: const FullType(GIntFilterInput))! + as GIntFilterInput); + break; + case 'trackerId': + result.trackerId.replace(serializers.deserialize(value, + specifiedType: const FullType(GIntFilterInput))! + as GIntFilterInput); + break; + } + } + + return result.build(); + } +} + +class _$GTrackRecordOrderBySerializer + implements PrimitiveSerializer { + @override + final Iterable types = const [GTrackRecordOrderBy]; + @override + final String wireName = 'GTrackRecordOrderBy'; + + @override + Object serialize(Serializers serializers, GTrackRecordOrderBy object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GTrackRecordOrderBy deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GTrackRecordOrderBy.valueOf(serialized as String); +} + +class _$GTriStateSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [GTriState]; + @override + final String wireName = 'GTriState'; + + @override + Object serialize(Serializers serializers, GTriState object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GTriState deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GTriState.valueOf(serialized as String); +} + +class _$GUpdateCategoriesInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateCategoriesInput, + _$GUpdateCategoriesInput + ]; + @override + final String wireName = 'GUpdateCategoriesInput'; + + @override + Iterable serialize( + Serializers serializers, GUpdateCategoriesInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'ids', + serializers.serialize(object.ids, + specifiedType: + const FullType(BuiltList, const [const FullType(int)])), + 'patch', + serializers.serialize(object.patch, + specifiedType: const FullType(GUpdateCategoryPatchInput)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateCategoriesInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateCategoriesInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'ids': + result.ids.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))! + as BuiltList); + break; + case 'patch': + result.patch.replace(serializers.deserialize(value, + specifiedType: const FullType(GUpdateCategoryPatchInput))! + as GUpdateCategoryPatchInput); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateCategoryInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateCategoryInput, + _$GUpdateCategoryInput + ]; + @override + final String wireName = 'GUpdateCategoryInput'; + + @override + Iterable serialize( + Serializers serializers, GUpdateCategoryInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'patch', + serializers.serialize(object.patch, + specifiedType: const FullType(GUpdateCategoryPatchInput)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateCategoryInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateCategoryInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'patch': + result.patch.replace(serializers.deserialize(value, + specifiedType: const FullType(GUpdateCategoryPatchInput))! + as GUpdateCategoryPatchInput); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateCategoryMangaInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateCategoryMangaInput, + _$GUpdateCategoryMangaInput + ]; + @override + final String wireName = 'GUpdateCategoryMangaInput'; + + @override + Iterable serialize( + Serializers serializers, GUpdateCategoryMangaInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'categories', + serializers.serialize(object.categories, + specifiedType: + const FullType(BuiltList, const [const FullType(int)])), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateCategoryMangaInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateCategoryMangaInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'categories': + result.categories.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))! + as BuiltList); + break; + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateCategoryOrderInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateCategoryOrderInput, + _$GUpdateCategoryOrderInput + ]; + @override + final String wireName = 'GUpdateCategoryOrderInput'; + + @override + Iterable serialize( + Serializers serializers, GUpdateCategoryOrderInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'position', + serializers.serialize(object.position, + specifiedType: const FullType(int)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateCategoryOrderInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateCategoryOrderInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'position': + result.position = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateCategoryPatchInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateCategoryPatchInput, + _$GUpdateCategoryPatchInput + ]; + @override + final String wireName = 'GUpdateCategoryPatchInput'; + + @override + Iterable serialize( + Serializers serializers, GUpdateCategoryPatchInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.Gdefault; + if (value != null) { + result + ..add('default') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.includeInDownload; + if (value != null) { + result + ..add('includeInDownload') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIncludeOrExclude))); + } + value = object.includeInUpdate; + if (value != null) { + result + ..add('includeInUpdate') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIncludeOrExclude))); + } + value = object.name; + if (value != null) { + result + ..add('name') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateCategoryPatchInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateCategoryPatchInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'default': + result.Gdefault = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'includeInDownload': + result.includeInDownload = serializers.deserialize(value, + specifiedType: const FullType(GIncludeOrExclude)) + as GIncludeOrExclude?; + break; + case 'includeInUpdate': + result.includeInUpdate = serializers.deserialize(value, + specifiedType: const FullType(GIncludeOrExclude)) + as GIncludeOrExclude?; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateChapterInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateChapterInput, + _$GUpdateChapterInput + ]; + @override + final String wireName = 'GUpdateChapterInput'; + + @override + Iterable serialize( + Serializers serializers, GUpdateChapterInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'patch', + serializers.serialize(object.patch, + specifiedType: const FullType(GUpdateChapterPatchInput)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateChapterInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateChapterInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'patch': + result.patch.replace(serializers.deserialize(value, + specifiedType: const FullType(GUpdateChapterPatchInput))! + as GUpdateChapterPatchInput); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateChapterPatchInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateChapterPatchInput, + _$GUpdateChapterPatchInput + ]; + @override + final String wireName = 'GUpdateChapterPatchInput'; + + @override + Iterable serialize( + Serializers serializers, GUpdateChapterPatchInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.isBookmarked; + if (value != null) { + result + ..add('isBookmarked') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.isRead; + if (value != null) { + result + ..add('isRead') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.lastPageRead; + if (value != null) { + result + ..add('lastPageRead') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + return result; + } + + @override + GUpdateChapterPatchInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateChapterPatchInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'isBookmarked': + result.isBookmarked = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'isRead': + result.isRead = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'lastPageRead': + result.lastPageRead = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateChaptersInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateChaptersInput, + _$GUpdateChaptersInput + ]; + @override + final String wireName = 'GUpdateChaptersInput'; + + @override + Iterable serialize( + Serializers serializers, GUpdateChaptersInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'ids', + serializers.serialize(object.ids, + specifiedType: + const FullType(BuiltList, const [const FullType(int)])), + 'patch', + serializers.serialize(object.patch, + specifiedType: const FullType(GUpdateChapterPatchInput)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateChaptersInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateChaptersInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'ids': + result.ids.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))! + as BuiltList); + break; + case 'patch': + result.patch.replace(serializers.deserialize(value, + specifiedType: const FullType(GUpdateChapterPatchInput))! + as GUpdateChapterPatchInput); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateExtensionInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateExtensionInput, + _$GUpdateExtensionInput + ]; + @override + final String wireName = 'GUpdateExtensionInput'; + + @override + Iterable serialize( + Serializers serializers, GUpdateExtensionInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(String)), + 'patch', + serializers.serialize(object.patch, + specifiedType: const FullType(GUpdateExtensionPatchInput)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateExtensionInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateExtensionInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'patch': + result.patch.replace(serializers.deserialize(value, + specifiedType: const FullType(GUpdateExtensionPatchInput))! + as GUpdateExtensionPatchInput); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateExtensionPatchInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateExtensionPatchInput, + _$GUpdateExtensionPatchInput + ]; + @override + final String wireName = 'GUpdateExtensionPatchInput'; + + @override + Iterable serialize( + Serializers serializers, GUpdateExtensionPatchInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.install; + if (value != null) { + result + ..add('install') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.uninstall; + if (value != null) { + result + ..add('uninstall') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.Gupdate; + if (value != null) { + result + ..add('update') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + GUpdateExtensionPatchInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateExtensionPatchInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'install': + result.install = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'uninstall': + result.uninstall = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'update': + result.Gupdate = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateExtensionsInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateExtensionsInput, + _$GUpdateExtensionsInput + ]; + @override + final String wireName = 'GUpdateExtensionsInput'; + + @override + Iterable serialize( + Serializers serializers, GUpdateExtensionsInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'ids', + serializers.serialize(object.ids, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'patch', + serializers.serialize(object.patch, + specifiedType: const FullType(GUpdateExtensionPatchInput)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateExtensionsInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateExtensionsInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'ids': + result.ids.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'patch': + result.patch.replace(serializers.deserialize(value, + specifiedType: const FullType(GUpdateExtensionPatchInput))! + as GUpdateExtensionPatchInput); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateLibraryMangaInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateLibraryMangaInput, + _$GUpdateLibraryMangaInput + ]; + @override + final String wireName = 'GUpdateLibraryMangaInput'; + + @override + Iterable serialize( + Serializers serializers, GUpdateLibraryMangaInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateLibraryMangaInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateLibraryMangaInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateMangaCategoriesInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateMangaCategoriesInput, + _$GUpdateMangaCategoriesInput + ]; + @override + final String wireName = 'GUpdateMangaCategoriesInput'; + + @override + Iterable serialize( + Serializers serializers, GUpdateMangaCategoriesInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'patch', + serializers.serialize(object.patch, + specifiedType: const FullType(GUpdateMangaCategoriesPatchInput)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateMangaCategoriesInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateMangaCategoriesInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'patch': + result.patch.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateMangaCategoriesPatchInput))! + as GUpdateMangaCategoriesPatchInput); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateMangaCategoriesPatchInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateMangaCategoriesPatchInput, + _$GUpdateMangaCategoriesPatchInput + ]; + @override + final String wireName = 'GUpdateMangaCategoriesPatchInput'; + + @override + Iterable serialize( + Serializers serializers, GUpdateMangaCategoriesPatchInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.addToCategories; + if (value != null) { + result + ..add('addToCategories') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))); + } + value = object.clearCategories; + if (value != null) { + result + ..add('clearCategories') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.removeFromCategories; + if (value != null) { + result + ..add('removeFromCategories') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))); + } + return result; + } + + @override + GUpdateMangaCategoriesPatchInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateMangaCategoriesPatchInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'addToCategories': + result.addToCategories.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))! + as BuiltList); + break; + case 'clearCategories': + result.clearCategories = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'removeFromCategories': + result.removeFromCategories.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateMangaInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GUpdateMangaInput, _$GUpdateMangaInput]; + @override + final String wireName = 'GUpdateMangaInput'; + + @override + Iterable serialize(Serializers serializers, GUpdateMangaInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'patch', + serializers.serialize(object.patch, + specifiedType: const FullType(GUpdateMangaPatchInput)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateMangaInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateMangaInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'patch': + result.patch.replace(serializers.deserialize(value, + specifiedType: const FullType(GUpdateMangaPatchInput))! + as GUpdateMangaPatchInput); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateMangaPatchInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateMangaPatchInput, + _$GUpdateMangaPatchInput + ]; + @override + final String wireName = 'GUpdateMangaPatchInput'; + + @override + Iterable serialize( + Serializers serializers, GUpdateMangaPatchInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.inLibrary; + if (value != null) { + result + ..add('inLibrary') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + GUpdateMangaPatchInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateMangaPatchInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'inLibrary': + result.inLibrary = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateMangasCategoriesInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateMangasCategoriesInput, + _$GUpdateMangasCategoriesInput + ]; + @override + final String wireName = 'GUpdateMangasCategoriesInput'; + + @override + Iterable serialize( + Serializers serializers, GUpdateMangasCategoriesInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'ids', + serializers.serialize(object.ids, + specifiedType: + const FullType(BuiltList, const [const FullType(int)])), + 'patch', + serializers.serialize(object.patch, + specifiedType: const FullType(GUpdateMangaCategoriesPatchInput)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateMangasCategoriesInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateMangasCategoriesInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'ids': + result.ids.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))! + as BuiltList); + break; + case 'patch': + result.patch.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateMangaCategoriesPatchInput))! + as GUpdateMangaCategoriesPatchInput); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateMangasInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GUpdateMangasInput, _$GUpdateMangasInput]; + @override + final String wireName = 'GUpdateMangasInput'; + + @override + Iterable serialize( + Serializers serializers, GUpdateMangasInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'ids', + serializers.serialize(object.ids, + specifiedType: + const FullType(BuiltList, const [const FullType(int)])), + 'patch', + serializers.serialize(object.patch, + specifiedType: const FullType(GUpdateMangaPatchInput)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateMangasInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateMangasInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'ids': + result.ids.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))! + as BuiltList); + break; + case 'patch': + result.patch.replace(serializers.deserialize(value, + specifiedType: const FullType(GUpdateMangaPatchInput))! + as GUpdateMangaPatchInput); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSourcePreferenceInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSourcePreferenceInput, + _$GUpdateSourcePreferenceInput + ]; + @override + final String wireName = 'GUpdateSourcePreferenceInput'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSourcePreferenceInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'change', + serializers.serialize(object.change, + specifiedType: const FullType(GSourcePreferenceChangeInput)), + 'source', + serializers.serialize(object.source, + specifiedType: const FullType(GLongString)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateSourcePreferenceInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSourcePreferenceInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'change': + result.change.replace(serializers.deserialize(value, + specifiedType: const FullType(GSourcePreferenceChangeInput))! + as GSourcePreferenceChangeInput); + break; + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'source': + result.source.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateStateSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [GUpdateState]; + @override + final String wireName = 'GUpdateState'; + + @override + Object serialize(Serializers serializers, GUpdateState object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GUpdateState deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GUpdateState.valueOf(serialized as String); +} + +class _$GUpdateStopInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GUpdateStopInput, _$GUpdateStopInput]; + @override + final String wireName = 'GUpdateStopInput'; + + @override + Iterable serialize(Serializers serializers, GUpdateStopInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateStopInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateStopInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateStrategySerializer + implements PrimitiveSerializer { + @override + final Iterable types = const [GUpdateStrategy]; + @override + final String wireName = 'GUpdateStrategy'; + + @override + Object serialize(Serializers serializers, GUpdateStrategy object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GUpdateStrategy deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GUpdateStrategy.valueOf(serialized as String); +} + +class _$GUpdateTrackInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GUpdateTrackInput, _$GUpdateTrackInput]; + @override + final String wireName = 'GUpdateTrackInput'; + + @override + Iterable serialize(Serializers serializers, GUpdateTrackInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'recordId', + serializers.serialize(object.recordId, + specifiedType: const FullType(int)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.finishDate; + if (value != null) { + result + ..add('finishDate') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.lastChapterRead; + if (value != null) { + result + ..add('lastChapterRead') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.scoreString; + if (value != null) { + result + ..add('scoreString') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.startDate; + if (value != null) { + result + ..add('startDate') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.status; + if (value != null) { + result + ..add('status') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.unbind; + if (value != null) { + result + ..add('unbind') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + GUpdateTrackInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateTrackInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'finishDate': + result.finishDate.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'lastChapterRead': + result.lastChapterRead = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'recordId': + result.recordId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'scoreString': + result.scoreString = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'startDate': + result.startDate.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'status': + result.status = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'unbind': + result.unbind = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$GValidateBackupInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GValidateBackupInput, + _$GValidateBackupInput + ]; + @override + final String wireName = 'GValidateBackupInput'; + + @override + Iterable serialize( + Serializers serializers, GValidateBackupInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'backup', + serializers.serialize(object.backup, + specifiedType: const FullType(_i3.MultipartFile)), + ]; + + return result; + } + + @override + GValidateBackupInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GValidateBackupInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'backup': + result.backup = serializers.deserialize(value, + specifiedType: const FullType(_i3.MultipartFile))! + as _i3.MultipartFile; + break; + } + } + + return result.build(); + } +} + +class _$GWebUIChannelSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [GWebUIChannel]; + @override + final String wireName = 'GWebUIChannel'; + + @override + Object serialize(Serializers serializers, GWebUIChannel object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GWebUIChannel deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GWebUIChannel.valueOf(serialized as String); +} + +class _$GWebUIFlavorSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [GWebUIFlavor]; + @override + final String wireName = 'GWebUIFlavor'; + + @override + Object serialize(Serializers serializers, GWebUIFlavor object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GWebUIFlavor deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GWebUIFlavor.valueOf(serialized as String); +} + +class _$GWebUIInterfaceSerializer + implements PrimitiveSerializer { + @override + final Iterable types = const [GWebUIInterface]; + @override + final String wireName = 'GWebUIInterface'; + + @override + Object serialize(Serializers serializers, GWebUIInterface object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GWebUIInterface deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GWebUIInterface.valueOf(serialized as String); +} + +class _$GWebUIUpdateInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GWebUIUpdateInput, _$GWebUIUpdateInput]; + @override + final String wireName = 'GWebUIUpdateInput'; + + @override + Iterable serialize(Serializers serializers, GWebUIUpdateInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GWebUIUpdateInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GWebUIUpdateInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GBindTrackInput extends GBindTrackInput { + @override + final String? clientMutationId; + @override + final int mangaId; + @override + final GLongString remoteId; + @override + final int trackerId; + + factory _$GBindTrackInput([void Function(GBindTrackInputBuilder)? updates]) => + (new GBindTrackInputBuilder()..update(updates))._build(); + + _$GBindTrackInput._( + {this.clientMutationId, + required this.mangaId, + required this.remoteId, + required this.trackerId}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + mangaId, r'GBindTrackInput', 'mangaId'); + BuiltValueNullFieldError.checkNotNull( + remoteId, r'GBindTrackInput', 'remoteId'); + BuiltValueNullFieldError.checkNotNull( + trackerId, r'GBindTrackInput', 'trackerId'); + } + + @override + GBindTrackInput rebuild(void Function(GBindTrackInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GBindTrackInputBuilder toBuilder() => + new GBindTrackInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GBindTrackInput && + clientMutationId == other.clientMutationId && + mangaId == other.mangaId && + remoteId == other.remoteId && + trackerId == other.trackerId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, mangaId.hashCode); + _$hash = $jc(_$hash, remoteId.hashCode); + _$hash = $jc(_$hash, trackerId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GBindTrackInput') + ..add('clientMutationId', clientMutationId) + ..add('mangaId', mangaId) + ..add('remoteId', remoteId) + ..add('trackerId', trackerId)) + .toString(); + } +} + +class GBindTrackInputBuilder + implements Builder { + _$GBindTrackInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + int? _mangaId; + int? get mangaId => _$this._mangaId; + set mangaId(int? mangaId) => _$this._mangaId = mangaId; + + GLongStringBuilder? _remoteId; + GLongStringBuilder get remoteId => + _$this._remoteId ??= new GLongStringBuilder(); + set remoteId(GLongStringBuilder? remoteId) => _$this._remoteId = remoteId; + + int? _trackerId; + int? get trackerId => _$this._trackerId; + set trackerId(int? trackerId) => _$this._trackerId = trackerId; + + GBindTrackInputBuilder(); + + GBindTrackInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _mangaId = $v.mangaId; + _remoteId = $v.remoteId.toBuilder(); + _trackerId = $v.trackerId; + _$v = null; + } + return this; + } + + @override + void replace(GBindTrackInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GBindTrackInput; + } + + @override + void update(void Function(GBindTrackInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GBindTrackInput build() => _build(); + + _$GBindTrackInput _build() { + _$GBindTrackInput _$result; + try { + _$result = _$v ?? + new _$GBindTrackInput._( + clientMutationId: clientMutationId, + mangaId: BuiltValueNullFieldError.checkNotNull( + mangaId, r'GBindTrackInput', 'mangaId'), + remoteId: remoteId.build(), + trackerId: BuiltValueNullFieldError.checkNotNull( + trackerId, r'GBindTrackInput', 'trackerId')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'remoteId'; + remoteId.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GBindTrackInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GBooleanFilterInput extends GBooleanFilterInput { + @override + final bool? distinctFrom; + @override + final bool? equalTo; + @override + final bool? greaterThan; + @override + final bool? greaterThanOrEqualTo; + @override + final BuiltList? Gin; + @override + final bool? isNull; + @override + final bool? lessThan; + @override + final bool? lessThanOrEqualTo; + @override + final bool? notDistinctFrom; + @override + final bool? notEqualTo; + @override + final BuiltList? notIn; + + factory _$GBooleanFilterInput( + [void Function(GBooleanFilterInputBuilder)? updates]) => + (new GBooleanFilterInputBuilder()..update(updates))._build(); + + _$GBooleanFilterInput._( + {this.distinctFrom, + this.equalTo, + this.greaterThan, + this.greaterThanOrEqualTo, + this.Gin, + this.isNull, + this.lessThan, + this.lessThanOrEqualTo, + this.notDistinctFrom, + this.notEqualTo, + this.notIn}) + : super._(); + + @override + GBooleanFilterInput rebuild( + void Function(GBooleanFilterInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GBooleanFilterInputBuilder toBuilder() => + new GBooleanFilterInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GBooleanFilterInput && + distinctFrom == other.distinctFrom && + equalTo == other.equalTo && + greaterThan == other.greaterThan && + greaterThanOrEqualTo == other.greaterThanOrEqualTo && + Gin == other.Gin && + isNull == other.isNull && + lessThan == other.lessThan && + lessThanOrEqualTo == other.lessThanOrEqualTo && + notDistinctFrom == other.notDistinctFrom && + notEqualTo == other.notEqualTo && + notIn == other.notIn; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, distinctFrom.hashCode); + _$hash = $jc(_$hash, equalTo.hashCode); + _$hash = $jc(_$hash, greaterThan.hashCode); + _$hash = $jc(_$hash, greaterThanOrEqualTo.hashCode); + _$hash = $jc(_$hash, Gin.hashCode); + _$hash = $jc(_$hash, isNull.hashCode); + _$hash = $jc(_$hash, lessThan.hashCode); + _$hash = $jc(_$hash, lessThanOrEqualTo.hashCode); + _$hash = $jc(_$hash, notDistinctFrom.hashCode); + _$hash = $jc(_$hash, notEqualTo.hashCode); + _$hash = $jc(_$hash, notIn.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GBooleanFilterInput') + ..add('distinctFrom', distinctFrom) + ..add('equalTo', equalTo) + ..add('greaterThan', greaterThan) + ..add('greaterThanOrEqualTo', greaterThanOrEqualTo) + ..add('Gin', Gin) + ..add('isNull', isNull) + ..add('lessThan', lessThan) + ..add('lessThanOrEqualTo', lessThanOrEqualTo) + ..add('notDistinctFrom', notDistinctFrom) + ..add('notEqualTo', notEqualTo) + ..add('notIn', notIn)) + .toString(); + } +} + +class GBooleanFilterInputBuilder + implements Builder { + _$GBooleanFilterInput? _$v; + + bool? _distinctFrom; + bool? get distinctFrom => _$this._distinctFrom; + set distinctFrom(bool? distinctFrom) => _$this._distinctFrom = distinctFrom; + + bool? _equalTo; + bool? get equalTo => _$this._equalTo; + set equalTo(bool? equalTo) => _$this._equalTo = equalTo; + + bool? _greaterThan; + bool? get greaterThan => _$this._greaterThan; + set greaterThan(bool? greaterThan) => _$this._greaterThan = greaterThan; + + bool? _greaterThanOrEqualTo; + bool? get greaterThanOrEqualTo => _$this._greaterThanOrEqualTo; + set greaterThanOrEqualTo(bool? greaterThanOrEqualTo) => + _$this._greaterThanOrEqualTo = greaterThanOrEqualTo; + + ListBuilder? _Gin; + ListBuilder get Gin => _$this._Gin ??= new ListBuilder(); + set Gin(ListBuilder? Gin) => _$this._Gin = Gin; + + bool? _isNull; + bool? get isNull => _$this._isNull; + set isNull(bool? isNull) => _$this._isNull = isNull; + + bool? _lessThan; + bool? get lessThan => _$this._lessThan; + set lessThan(bool? lessThan) => _$this._lessThan = lessThan; + + bool? _lessThanOrEqualTo; + bool? get lessThanOrEqualTo => _$this._lessThanOrEqualTo; + set lessThanOrEqualTo(bool? lessThanOrEqualTo) => + _$this._lessThanOrEqualTo = lessThanOrEqualTo; + + bool? _notDistinctFrom; + bool? get notDistinctFrom => _$this._notDistinctFrom; + set notDistinctFrom(bool? notDistinctFrom) => + _$this._notDistinctFrom = notDistinctFrom; + + bool? _notEqualTo; + bool? get notEqualTo => _$this._notEqualTo; + set notEqualTo(bool? notEqualTo) => _$this._notEqualTo = notEqualTo; + + ListBuilder? _notIn; + ListBuilder get notIn => _$this._notIn ??= new ListBuilder(); + set notIn(ListBuilder? notIn) => _$this._notIn = notIn; + + GBooleanFilterInputBuilder(); + + GBooleanFilterInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _distinctFrom = $v.distinctFrom; + _equalTo = $v.equalTo; + _greaterThan = $v.greaterThan; + _greaterThanOrEqualTo = $v.greaterThanOrEqualTo; + _Gin = $v.Gin?.toBuilder(); + _isNull = $v.isNull; + _lessThan = $v.lessThan; + _lessThanOrEqualTo = $v.lessThanOrEqualTo; + _notDistinctFrom = $v.notDistinctFrom; + _notEqualTo = $v.notEqualTo; + _notIn = $v.notIn?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GBooleanFilterInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GBooleanFilterInput; + } + + @override + void update(void Function(GBooleanFilterInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GBooleanFilterInput build() => _build(); + + _$GBooleanFilterInput _build() { + _$GBooleanFilterInput _$result; + try { + _$result = _$v ?? + new _$GBooleanFilterInput._( + distinctFrom: distinctFrom, + equalTo: equalTo, + greaterThan: greaterThan, + greaterThanOrEqualTo: greaterThanOrEqualTo, + Gin: _Gin?.build(), + isNull: isNull, + lessThan: lessThan, + lessThanOrEqualTo: lessThanOrEqualTo, + notDistinctFrom: notDistinctFrom, + notEqualTo: notEqualTo, + notIn: _notIn?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'Gin'; + _Gin?.build(); + + _$failedField = 'notIn'; + _notIn?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GBooleanFilterInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GCategoryConditionInput extends GCategoryConditionInput { + @override + final bool? Gdefault; + @override + final int? id; + @override + final String? name; + @override + final int? order; + + factory _$GCategoryConditionInput( + [void Function(GCategoryConditionInputBuilder)? updates]) => + (new GCategoryConditionInputBuilder()..update(updates))._build(); + + _$GCategoryConditionInput._({this.Gdefault, this.id, this.name, this.order}) + : super._(); + + @override + GCategoryConditionInput rebuild( + void Function(GCategoryConditionInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCategoryConditionInputBuilder toBuilder() => + new GCategoryConditionInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCategoryConditionInput && + Gdefault == other.Gdefault && + id == other.id && + name == other.name && + order == other.order; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, Gdefault.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, order.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GCategoryConditionInput') + ..add('Gdefault', Gdefault) + ..add('id', id) + ..add('name', name) + ..add('order', order)) + .toString(); + } +} + +class GCategoryConditionInputBuilder + implements + Builder { + _$GCategoryConditionInput? _$v; + + bool? _Gdefault; + bool? get Gdefault => _$this._Gdefault; + set Gdefault(bool? Gdefault) => _$this._Gdefault = Gdefault; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + int? _order; + int? get order => _$this._order; + set order(int? order) => _$this._order = order; + + GCategoryConditionInputBuilder(); + + GCategoryConditionInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _Gdefault = $v.Gdefault; + _id = $v.id; + _name = $v.name; + _order = $v.order; + _$v = null; + } + return this; + } + + @override + void replace(GCategoryConditionInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCategoryConditionInput; + } + + @override + void update(void Function(GCategoryConditionInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCategoryConditionInput build() => _build(); + + _$GCategoryConditionInput _build() { + final _$result = _$v ?? + new _$GCategoryConditionInput._( + Gdefault: Gdefault, id: id, name: name, order: order); + replace(_$result); + return _$result; + } +} + +class _$GCategoryFilterInput extends GCategoryFilterInput { + @override + final BuiltList? and; + @override + final GBooleanFilterInput? Gdefault; + @override + final GIntFilterInput? id; + @override + final GStringFilterInput? name; + @override + final GCategoryFilterInput? not; + @override + final BuiltList? or; + @override + final GIntFilterInput? order; + + factory _$GCategoryFilterInput( + [void Function(GCategoryFilterInputBuilder)? updates]) => + (new GCategoryFilterInputBuilder()..update(updates))._build(); + + _$GCategoryFilterInput._( + {this.and, + this.Gdefault, + this.id, + this.name, + this.not, + this.or, + this.order}) + : super._(); + + @override + GCategoryFilterInput rebuild( + void Function(GCategoryFilterInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCategoryFilterInputBuilder toBuilder() => + new GCategoryFilterInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCategoryFilterInput && + and == other.and && + Gdefault == other.Gdefault && + id == other.id && + name == other.name && + not == other.not && + or == other.or && + order == other.order; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, and.hashCode); + _$hash = $jc(_$hash, Gdefault.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, not.hashCode); + _$hash = $jc(_$hash, or.hashCode); + _$hash = $jc(_$hash, order.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GCategoryFilterInput') + ..add('and', and) + ..add('Gdefault', Gdefault) + ..add('id', id) + ..add('name', name) + ..add('not', not) + ..add('or', or) + ..add('order', order)) + .toString(); + } +} + +class GCategoryFilterInputBuilder + implements Builder { + _$GCategoryFilterInput? _$v; + + ListBuilder? _and; + ListBuilder get and => + _$this._and ??= new ListBuilder(); + set and(ListBuilder? and) => _$this._and = and; + + GBooleanFilterInputBuilder? _Gdefault; + GBooleanFilterInputBuilder get Gdefault => + _$this._Gdefault ??= new GBooleanFilterInputBuilder(); + set Gdefault(GBooleanFilterInputBuilder? Gdefault) => + _$this._Gdefault = Gdefault; + + GIntFilterInputBuilder? _id; + GIntFilterInputBuilder get id => _$this._id ??= new GIntFilterInputBuilder(); + set id(GIntFilterInputBuilder? id) => _$this._id = id; + + GStringFilterInputBuilder? _name; + GStringFilterInputBuilder get name => + _$this._name ??= new GStringFilterInputBuilder(); + set name(GStringFilterInputBuilder? name) => _$this._name = name; + + GCategoryFilterInputBuilder? _not; + GCategoryFilterInputBuilder get not => + _$this._not ??= new GCategoryFilterInputBuilder(); + set not(GCategoryFilterInputBuilder? not) => _$this._not = not; + + ListBuilder? _or; + ListBuilder get or => + _$this._or ??= new ListBuilder(); + set or(ListBuilder? or) => _$this._or = or; + + GIntFilterInputBuilder? _order; + GIntFilterInputBuilder get order => + _$this._order ??= new GIntFilterInputBuilder(); + set order(GIntFilterInputBuilder? order) => _$this._order = order; + + GCategoryFilterInputBuilder(); + + GCategoryFilterInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _and = $v.and?.toBuilder(); + _Gdefault = $v.Gdefault?.toBuilder(); + _id = $v.id?.toBuilder(); + _name = $v.name?.toBuilder(); + _not = $v.not?.toBuilder(); + _or = $v.or?.toBuilder(); + _order = $v.order?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GCategoryFilterInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCategoryFilterInput; + } + + @override + void update(void Function(GCategoryFilterInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCategoryFilterInput build() => _build(); + + _$GCategoryFilterInput _build() { + _$GCategoryFilterInput _$result; + try { + _$result = _$v ?? + new _$GCategoryFilterInput._( + and: _and?.build(), + Gdefault: _Gdefault?.build(), + id: _id?.build(), + name: _name?.build(), + not: _not?.build(), + or: _or?.build(), + order: _order?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'and'; + _and?.build(); + _$failedField = 'Gdefault'; + _Gdefault?.build(); + _$failedField = 'id'; + _id?.build(); + _$failedField = 'name'; + _name?.build(); + _$failedField = 'not'; + _not?.build(); + _$failedField = 'or'; + _or?.build(); + _$failedField = 'order'; + _order?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GCategoryFilterInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GCategoryMetaTypeInput extends GCategoryMetaTypeInput { + @override + final int categoryId; + @override + final String key; + @override + final String value; + + factory _$GCategoryMetaTypeInput( + [void Function(GCategoryMetaTypeInputBuilder)? updates]) => + (new GCategoryMetaTypeInputBuilder()..update(updates))._build(); + + _$GCategoryMetaTypeInput._( + {required this.categoryId, required this.key, required this.value}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + categoryId, r'GCategoryMetaTypeInput', 'categoryId'); + BuiltValueNullFieldError.checkNotNull( + key, r'GCategoryMetaTypeInput', 'key'); + BuiltValueNullFieldError.checkNotNull( + value, r'GCategoryMetaTypeInput', 'value'); + } + + @override + GCategoryMetaTypeInput rebuild( + void Function(GCategoryMetaTypeInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCategoryMetaTypeInputBuilder toBuilder() => + new GCategoryMetaTypeInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCategoryMetaTypeInput && + categoryId == other.categoryId && + key == other.key && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, categoryId.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GCategoryMetaTypeInput') + ..add('categoryId', categoryId) + ..add('key', key) + ..add('value', value)) + .toString(); + } +} + +class GCategoryMetaTypeInputBuilder + implements Builder { + _$GCategoryMetaTypeInput? _$v; + + int? _categoryId; + int? get categoryId => _$this._categoryId; + set categoryId(int? categoryId) => _$this._categoryId = categoryId; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GCategoryMetaTypeInputBuilder(); + + GCategoryMetaTypeInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _categoryId = $v.categoryId; + _key = $v.key; + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GCategoryMetaTypeInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCategoryMetaTypeInput; + } + + @override + void update(void Function(GCategoryMetaTypeInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCategoryMetaTypeInput build() => _build(); + + _$GCategoryMetaTypeInput _build() { + final _$result = _$v ?? + new _$GCategoryMetaTypeInput._( + categoryId: BuiltValueNullFieldError.checkNotNull( + categoryId, r'GCategoryMetaTypeInput', 'categoryId'), + key: BuiltValueNullFieldError.checkNotNull( + key, r'GCategoryMetaTypeInput', 'key'), + value: BuiltValueNullFieldError.checkNotNull( + value, r'GCategoryMetaTypeInput', 'value')); + replace(_$result); + return _$result; + } +} + +class _$GChapterConditionInput extends GChapterConditionInput { + @override + final double? chapterNumber; + @override + final GLongString? fetchedAt; + @override + final int? id; + @override + final bool? isBookmarked; + @override + final bool? isDownloaded; + @override + final bool? isRead; + @override + final int? lastPageRead; + @override + final GLongString? lastReadAt; + @override + final int? mangaId; + @override + final String? name; + @override + final int? pageCount; + @override + final String? realUrl; + @override + final String? scanlator; + @override + final int? sourceOrder; + @override + final GLongString? uploadDate; + @override + final String? url; + + factory _$GChapterConditionInput( + [void Function(GChapterConditionInputBuilder)? updates]) => + (new GChapterConditionInputBuilder()..update(updates))._build(); + + _$GChapterConditionInput._( + {this.chapterNumber, + this.fetchedAt, + this.id, + this.isBookmarked, + this.isDownloaded, + this.isRead, + this.lastPageRead, + this.lastReadAt, + this.mangaId, + this.name, + this.pageCount, + this.realUrl, + this.scanlator, + this.sourceOrder, + this.uploadDate, + this.url}) + : super._(); + + @override + GChapterConditionInput rebuild( + void Function(GChapterConditionInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GChapterConditionInputBuilder toBuilder() => + new GChapterConditionInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GChapterConditionInput && + chapterNumber == other.chapterNumber && + fetchedAt == other.fetchedAt && + id == other.id && + isBookmarked == other.isBookmarked && + isDownloaded == other.isDownloaded && + isRead == other.isRead && + lastPageRead == other.lastPageRead && + lastReadAt == other.lastReadAt && + mangaId == other.mangaId && + name == other.name && + pageCount == other.pageCount && + realUrl == other.realUrl && + scanlator == other.scanlator && + sourceOrder == other.sourceOrder && + uploadDate == other.uploadDate && + url == other.url; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, chapterNumber.hashCode); + _$hash = $jc(_$hash, fetchedAt.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, isBookmarked.hashCode); + _$hash = $jc(_$hash, isDownloaded.hashCode); + _$hash = $jc(_$hash, isRead.hashCode); + _$hash = $jc(_$hash, lastPageRead.hashCode); + _$hash = $jc(_$hash, lastReadAt.hashCode); + _$hash = $jc(_$hash, mangaId.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, pageCount.hashCode); + _$hash = $jc(_$hash, realUrl.hashCode); + _$hash = $jc(_$hash, scanlator.hashCode); + _$hash = $jc(_$hash, sourceOrder.hashCode); + _$hash = $jc(_$hash, uploadDate.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GChapterConditionInput') + ..add('chapterNumber', chapterNumber) + ..add('fetchedAt', fetchedAt) + ..add('id', id) + ..add('isBookmarked', isBookmarked) + ..add('isDownloaded', isDownloaded) + ..add('isRead', isRead) + ..add('lastPageRead', lastPageRead) + ..add('lastReadAt', lastReadAt) + ..add('mangaId', mangaId) + ..add('name', name) + ..add('pageCount', pageCount) + ..add('realUrl', realUrl) + ..add('scanlator', scanlator) + ..add('sourceOrder', sourceOrder) + ..add('uploadDate', uploadDate) + ..add('url', url)) + .toString(); + } +} + +class GChapterConditionInputBuilder + implements Builder { + _$GChapterConditionInput? _$v; + + double? _chapterNumber; + double? get chapterNumber => _$this._chapterNumber; + set chapterNumber(double? chapterNumber) => + _$this._chapterNumber = chapterNumber; + + GLongStringBuilder? _fetchedAt; + GLongStringBuilder get fetchedAt => + _$this._fetchedAt ??= new GLongStringBuilder(); + set fetchedAt(GLongStringBuilder? fetchedAt) => _$this._fetchedAt = fetchedAt; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + bool? _isBookmarked; + bool? get isBookmarked => _$this._isBookmarked; + set isBookmarked(bool? isBookmarked) => _$this._isBookmarked = isBookmarked; + + bool? _isDownloaded; + bool? get isDownloaded => _$this._isDownloaded; + set isDownloaded(bool? isDownloaded) => _$this._isDownloaded = isDownloaded; + + bool? _isRead; + bool? get isRead => _$this._isRead; + set isRead(bool? isRead) => _$this._isRead = isRead; + + int? _lastPageRead; + int? get lastPageRead => _$this._lastPageRead; + set lastPageRead(int? lastPageRead) => _$this._lastPageRead = lastPageRead; + + GLongStringBuilder? _lastReadAt; + GLongStringBuilder get lastReadAt => + _$this._lastReadAt ??= new GLongStringBuilder(); + set lastReadAt(GLongStringBuilder? lastReadAt) => + _$this._lastReadAt = lastReadAt; + + int? _mangaId; + int? get mangaId => _$this._mangaId; + set mangaId(int? mangaId) => _$this._mangaId = mangaId; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + int? _pageCount; + int? get pageCount => _$this._pageCount; + set pageCount(int? pageCount) => _$this._pageCount = pageCount; + + String? _realUrl; + String? get realUrl => _$this._realUrl; + set realUrl(String? realUrl) => _$this._realUrl = realUrl; + + String? _scanlator; + String? get scanlator => _$this._scanlator; + set scanlator(String? scanlator) => _$this._scanlator = scanlator; + + int? _sourceOrder; + int? get sourceOrder => _$this._sourceOrder; + set sourceOrder(int? sourceOrder) => _$this._sourceOrder = sourceOrder; + + GLongStringBuilder? _uploadDate; + GLongStringBuilder get uploadDate => + _$this._uploadDate ??= new GLongStringBuilder(); + set uploadDate(GLongStringBuilder? uploadDate) => + _$this._uploadDate = uploadDate; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + GChapterConditionInputBuilder(); + + GChapterConditionInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _chapterNumber = $v.chapterNumber; + _fetchedAt = $v.fetchedAt?.toBuilder(); + _id = $v.id; + _isBookmarked = $v.isBookmarked; + _isDownloaded = $v.isDownloaded; + _isRead = $v.isRead; + _lastPageRead = $v.lastPageRead; + _lastReadAt = $v.lastReadAt?.toBuilder(); + _mangaId = $v.mangaId; + _name = $v.name; + _pageCount = $v.pageCount; + _realUrl = $v.realUrl; + _scanlator = $v.scanlator; + _sourceOrder = $v.sourceOrder; + _uploadDate = $v.uploadDate?.toBuilder(); + _url = $v.url; + _$v = null; + } + return this; + } + + @override + void replace(GChapterConditionInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GChapterConditionInput; + } + + @override + void update(void Function(GChapterConditionInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GChapterConditionInput build() => _build(); + + _$GChapterConditionInput _build() { + _$GChapterConditionInput _$result; + try { + _$result = _$v ?? + new _$GChapterConditionInput._( + chapterNumber: chapterNumber, + fetchedAt: _fetchedAt?.build(), + id: id, + isBookmarked: isBookmarked, + isDownloaded: isDownloaded, + isRead: isRead, + lastPageRead: lastPageRead, + lastReadAt: _lastReadAt?.build(), + mangaId: mangaId, + name: name, + pageCount: pageCount, + realUrl: realUrl, + scanlator: scanlator, + sourceOrder: sourceOrder, + uploadDate: _uploadDate?.build(), + url: url); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'fetchedAt'; + _fetchedAt?.build(); + + _$failedField = 'lastReadAt'; + _lastReadAt?.build(); + + _$failedField = 'uploadDate'; + _uploadDate?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GChapterConditionInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GChapterFilterInput extends GChapterFilterInput { + @override + final BuiltList? and; + @override + final GFloatFilterInput? chapterNumber; + @override + final GLongFilterInput? fetchedAt; + @override + final GIntFilterInput? id; + @override + final GBooleanFilterInput? inLibrary; + @override + final GBooleanFilterInput? isBookmarked; + @override + final GBooleanFilterInput? isDownloaded; + @override + final GBooleanFilterInput? isRead; + @override + final GIntFilterInput? lastPageRead; + @override + final GLongFilterInput? lastReadAt; + @override + final GIntFilterInput? mangaId; + @override + final GStringFilterInput? name; + @override + final GChapterFilterInput? not; + @override + final BuiltList? or; + @override + final GIntFilterInput? pageCount; + @override + final GStringFilterInput? realUrl; + @override + final GStringFilterInput? scanlator; + @override + final GIntFilterInput? sourceOrder; + @override + final GLongFilterInput? uploadDate; + @override + final GStringFilterInput? url; + + factory _$GChapterFilterInput( + [void Function(GChapterFilterInputBuilder)? updates]) => + (new GChapterFilterInputBuilder()..update(updates))._build(); + + _$GChapterFilterInput._( + {this.and, + this.chapterNumber, + this.fetchedAt, + this.id, + this.inLibrary, + this.isBookmarked, + this.isDownloaded, + this.isRead, + this.lastPageRead, + this.lastReadAt, + this.mangaId, + this.name, + this.not, + this.or, + this.pageCount, + this.realUrl, + this.scanlator, + this.sourceOrder, + this.uploadDate, + this.url}) + : super._(); + + @override + GChapterFilterInput rebuild( + void Function(GChapterFilterInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GChapterFilterInputBuilder toBuilder() => + new GChapterFilterInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GChapterFilterInput && + and == other.and && + chapterNumber == other.chapterNumber && + fetchedAt == other.fetchedAt && + id == other.id && + inLibrary == other.inLibrary && + isBookmarked == other.isBookmarked && + isDownloaded == other.isDownloaded && + isRead == other.isRead && + lastPageRead == other.lastPageRead && + lastReadAt == other.lastReadAt && + mangaId == other.mangaId && + name == other.name && + not == other.not && + or == other.or && + pageCount == other.pageCount && + realUrl == other.realUrl && + scanlator == other.scanlator && + sourceOrder == other.sourceOrder && + uploadDate == other.uploadDate && + url == other.url; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, and.hashCode); + _$hash = $jc(_$hash, chapterNumber.hashCode); + _$hash = $jc(_$hash, fetchedAt.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, inLibrary.hashCode); + _$hash = $jc(_$hash, isBookmarked.hashCode); + _$hash = $jc(_$hash, isDownloaded.hashCode); + _$hash = $jc(_$hash, isRead.hashCode); + _$hash = $jc(_$hash, lastPageRead.hashCode); + _$hash = $jc(_$hash, lastReadAt.hashCode); + _$hash = $jc(_$hash, mangaId.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, not.hashCode); + _$hash = $jc(_$hash, or.hashCode); + _$hash = $jc(_$hash, pageCount.hashCode); + _$hash = $jc(_$hash, realUrl.hashCode); + _$hash = $jc(_$hash, scanlator.hashCode); + _$hash = $jc(_$hash, sourceOrder.hashCode); + _$hash = $jc(_$hash, uploadDate.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GChapterFilterInput') + ..add('and', and) + ..add('chapterNumber', chapterNumber) + ..add('fetchedAt', fetchedAt) + ..add('id', id) + ..add('inLibrary', inLibrary) + ..add('isBookmarked', isBookmarked) + ..add('isDownloaded', isDownloaded) + ..add('isRead', isRead) + ..add('lastPageRead', lastPageRead) + ..add('lastReadAt', lastReadAt) + ..add('mangaId', mangaId) + ..add('name', name) + ..add('not', not) + ..add('or', or) + ..add('pageCount', pageCount) + ..add('realUrl', realUrl) + ..add('scanlator', scanlator) + ..add('sourceOrder', sourceOrder) + ..add('uploadDate', uploadDate) + ..add('url', url)) + .toString(); + } +} + +class GChapterFilterInputBuilder + implements Builder { + _$GChapterFilterInput? _$v; + + ListBuilder? _and; + ListBuilder get and => + _$this._and ??= new ListBuilder(); + set and(ListBuilder? and) => _$this._and = and; + + GFloatFilterInputBuilder? _chapterNumber; + GFloatFilterInputBuilder get chapterNumber => + _$this._chapterNumber ??= new GFloatFilterInputBuilder(); + set chapterNumber(GFloatFilterInputBuilder? chapterNumber) => + _$this._chapterNumber = chapterNumber; + + GLongFilterInputBuilder? _fetchedAt; + GLongFilterInputBuilder get fetchedAt => + _$this._fetchedAt ??= new GLongFilterInputBuilder(); + set fetchedAt(GLongFilterInputBuilder? fetchedAt) => + _$this._fetchedAt = fetchedAt; + + GIntFilterInputBuilder? _id; + GIntFilterInputBuilder get id => _$this._id ??= new GIntFilterInputBuilder(); + set id(GIntFilterInputBuilder? id) => _$this._id = id; + + GBooleanFilterInputBuilder? _inLibrary; + GBooleanFilterInputBuilder get inLibrary => + _$this._inLibrary ??= new GBooleanFilterInputBuilder(); + set inLibrary(GBooleanFilterInputBuilder? inLibrary) => + _$this._inLibrary = inLibrary; + + GBooleanFilterInputBuilder? _isBookmarked; + GBooleanFilterInputBuilder get isBookmarked => + _$this._isBookmarked ??= new GBooleanFilterInputBuilder(); + set isBookmarked(GBooleanFilterInputBuilder? isBookmarked) => + _$this._isBookmarked = isBookmarked; + + GBooleanFilterInputBuilder? _isDownloaded; + GBooleanFilterInputBuilder get isDownloaded => + _$this._isDownloaded ??= new GBooleanFilterInputBuilder(); + set isDownloaded(GBooleanFilterInputBuilder? isDownloaded) => + _$this._isDownloaded = isDownloaded; + + GBooleanFilterInputBuilder? _isRead; + GBooleanFilterInputBuilder get isRead => + _$this._isRead ??= new GBooleanFilterInputBuilder(); + set isRead(GBooleanFilterInputBuilder? isRead) => _$this._isRead = isRead; + + GIntFilterInputBuilder? _lastPageRead; + GIntFilterInputBuilder get lastPageRead => + _$this._lastPageRead ??= new GIntFilterInputBuilder(); + set lastPageRead(GIntFilterInputBuilder? lastPageRead) => + _$this._lastPageRead = lastPageRead; + + GLongFilterInputBuilder? _lastReadAt; + GLongFilterInputBuilder get lastReadAt => + _$this._lastReadAt ??= new GLongFilterInputBuilder(); + set lastReadAt(GLongFilterInputBuilder? lastReadAt) => + _$this._lastReadAt = lastReadAt; + + GIntFilterInputBuilder? _mangaId; + GIntFilterInputBuilder get mangaId => + _$this._mangaId ??= new GIntFilterInputBuilder(); + set mangaId(GIntFilterInputBuilder? mangaId) => _$this._mangaId = mangaId; + + GStringFilterInputBuilder? _name; + GStringFilterInputBuilder get name => + _$this._name ??= new GStringFilterInputBuilder(); + set name(GStringFilterInputBuilder? name) => _$this._name = name; + + GChapterFilterInputBuilder? _not; + GChapterFilterInputBuilder get not => + _$this._not ??= new GChapterFilterInputBuilder(); + set not(GChapterFilterInputBuilder? not) => _$this._not = not; + + ListBuilder? _or; + ListBuilder get or => + _$this._or ??= new ListBuilder(); + set or(ListBuilder? or) => _$this._or = or; + + GIntFilterInputBuilder? _pageCount; + GIntFilterInputBuilder get pageCount => + _$this._pageCount ??= new GIntFilterInputBuilder(); + set pageCount(GIntFilterInputBuilder? pageCount) => + _$this._pageCount = pageCount; + + GStringFilterInputBuilder? _realUrl; + GStringFilterInputBuilder get realUrl => + _$this._realUrl ??= new GStringFilterInputBuilder(); + set realUrl(GStringFilterInputBuilder? realUrl) => _$this._realUrl = realUrl; + + GStringFilterInputBuilder? _scanlator; + GStringFilterInputBuilder get scanlator => + _$this._scanlator ??= new GStringFilterInputBuilder(); + set scanlator(GStringFilterInputBuilder? scanlator) => + _$this._scanlator = scanlator; + + GIntFilterInputBuilder? _sourceOrder; + GIntFilterInputBuilder get sourceOrder => + _$this._sourceOrder ??= new GIntFilterInputBuilder(); + set sourceOrder(GIntFilterInputBuilder? sourceOrder) => + _$this._sourceOrder = sourceOrder; + + GLongFilterInputBuilder? _uploadDate; + GLongFilterInputBuilder get uploadDate => + _$this._uploadDate ??= new GLongFilterInputBuilder(); + set uploadDate(GLongFilterInputBuilder? uploadDate) => + _$this._uploadDate = uploadDate; + + GStringFilterInputBuilder? _url; + GStringFilterInputBuilder get url => + _$this._url ??= new GStringFilterInputBuilder(); + set url(GStringFilterInputBuilder? url) => _$this._url = url; + + GChapterFilterInputBuilder(); + + GChapterFilterInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _and = $v.and?.toBuilder(); + _chapterNumber = $v.chapterNumber?.toBuilder(); + _fetchedAt = $v.fetchedAt?.toBuilder(); + _id = $v.id?.toBuilder(); + _inLibrary = $v.inLibrary?.toBuilder(); + _isBookmarked = $v.isBookmarked?.toBuilder(); + _isDownloaded = $v.isDownloaded?.toBuilder(); + _isRead = $v.isRead?.toBuilder(); + _lastPageRead = $v.lastPageRead?.toBuilder(); + _lastReadAt = $v.lastReadAt?.toBuilder(); + _mangaId = $v.mangaId?.toBuilder(); + _name = $v.name?.toBuilder(); + _not = $v.not?.toBuilder(); + _or = $v.or?.toBuilder(); + _pageCount = $v.pageCount?.toBuilder(); + _realUrl = $v.realUrl?.toBuilder(); + _scanlator = $v.scanlator?.toBuilder(); + _sourceOrder = $v.sourceOrder?.toBuilder(); + _uploadDate = $v.uploadDate?.toBuilder(); + _url = $v.url?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GChapterFilterInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GChapterFilterInput; + } + + @override + void update(void Function(GChapterFilterInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GChapterFilterInput build() => _build(); + + _$GChapterFilterInput _build() { + _$GChapterFilterInput _$result; + try { + _$result = _$v ?? + new _$GChapterFilterInput._( + and: _and?.build(), + chapterNumber: _chapterNumber?.build(), + fetchedAt: _fetchedAt?.build(), + id: _id?.build(), + inLibrary: _inLibrary?.build(), + isBookmarked: _isBookmarked?.build(), + isDownloaded: _isDownloaded?.build(), + isRead: _isRead?.build(), + lastPageRead: _lastPageRead?.build(), + lastReadAt: _lastReadAt?.build(), + mangaId: _mangaId?.build(), + name: _name?.build(), + not: _not?.build(), + or: _or?.build(), + pageCount: _pageCount?.build(), + realUrl: _realUrl?.build(), + scanlator: _scanlator?.build(), + sourceOrder: _sourceOrder?.build(), + uploadDate: _uploadDate?.build(), + url: _url?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'and'; + _and?.build(); + _$failedField = 'chapterNumber'; + _chapterNumber?.build(); + _$failedField = 'fetchedAt'; + _fetchedAt?.build(); + _$failedField = 'id'; + _id?.build(); + _$failedField = 'inLibrary'; + _inLibrary?.build(); + _$failedField = 'isBookmarked'; + _isBookmarked?.build(); + _$failedField = 'isDownloaded'; + _isDownloaded?.build(); + _$failedField = 'isRead'; + _isRead?.build(); + _$failedField = 'lastPageRead'; + _lastPageRead?.build(); + _$failedField = 'lastReadAt'; + _lastReadAt?.build(); + _$failedField = 'mangaId'; + _mangaId?.build(); + _$failedField = 'name'; + _name?.build(); + _$failedField = 'not'; + _not?.build(); + _$failedField = 'or'; + _or?.build(); + _$failedField = 'pageCount'; + _pageCount?.build(); + _$failedField = 'realUrl'; + _realUrl?.build(); + _$failedField = 'scanlator'; + _scanlator?.build(); + _$failedField = 'sourceOrder'; + _sourceOrder?.build(); + _$failedField = 'uploadDate'; + _uploadDate?.build(); + _$failedField = 'url'; + _url?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GChapterFilterInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GChapterMetaTypeInput extends GChapterMetaTypeInput { + @override + final int chapterId; + @override + final String key; + @override + final String value; + + factory _$GChapterMetaTypeInput( + [void Function(GChapterMetaTypeInputBuilder)? updates]) => + (new GChapterMetaTypeInputBuilder()..update(updates))._build(); + + _$GChapterMetaTypeInput._( + {required this.chapterId, required this.key, required this.value}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + chapterId, r'GChapterMetaTypeInput', 'chapterId'); + BuiltValueNullFieldError.checkNotNull(key, r'GChapterMetaTypeInput', 'key'); + BuiltValueNullFieldError.checkNotNull( + value, r'GChapterMetaTypeInput', 'value'); + } + + @override + GChapterMetaTypeInput rebuild( + void Function(GChapterMetaTypeInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GChapterMetaTypeInputBuilder toBuilder() => + new GChapterMetaTypeInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GChapterMetaTypeInput && + chapterId == other.chapterId && + key == other.key && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, chapterId.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GChapterMetaTypeInput') + ..add('chapterId', chapterId) + ..add('key', key) + ..add('value', value)) + .toString(); + } +} + +class GChapterMetaTypeInputBuilder + implements Builder { + _$GChapterMetaTypeInput? _$v; + + int? _chapterId; + int? get chapterId => _$this._chapterId; + set chapterId(int? chapterId) => _$this._chapterId = chapterId; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GChapterMetaTypeInputBuilder(); + + GChapterMetaTypeInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _chapterId = $v.chapterId; + _key = $v.key; + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GChapterMetaTypeInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GChapterMetaTypeInput; + } + + @override + void update(void Function(GChapterMetaTypeInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GChapterMetaTypeInput build() => _build(); + + _$GChapterMetaTypeInput _build() { + final _$result = _$v ?? + new _$GChapterMetaTypeInput._( + chapterId: BuiltValueNullFieldError.checkNotNull( + chapterId, r'GChapterMetaTypeInput', 'chapterId'), + key: BuiltValueNullFieldError.checkNotNull( + key, r'GChapterMetaTypeInput', 'key'), + value: BuiltValueNullFieldError.checkNotNull( + value, r'GChapterMetaTypeInput', 'value')); + replace(_$result); + return _$result; + } +} + +class _$GClearCachedImagesInput extends GClearCachedImagesInput { + @override + final bool? cachedPages; + @override + final bool? cachedThumbnails; + @override + final String? clientMutationId; + @override + final bool? downloadedThumbnails; + + factory _$GClearCachedImagesInput( + [void Function(GClearCachedImagesInputBuilder)? updates]) => + (new GClearCachedImagesInputBuilder()..update(updates))._build(); + + _$GClearCachedImagesInput._( + {this.cachedPages, + this.cachedThumbnails, + this.clientMutationId, + this.downloadedThumbnails}) + : super._(); + + @override + GClearCachedImagesInput rebuild( + void Function(GClearCachedImagesInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GClearCachedImagesInputBuilder toBuilder() => + new GClearCachedImagesInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GClearCachedImagesInput && + cachedPages == other.cachedPages && + cachedThumbnails == other.cachedThumbnails && + clientMutationId == other.clientMutationId && + downloadedThumbnails == other.downloadedThumbnails; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, cachedPages.hashCode); + _$hash = $jc(_$hash, cachedThumbnails.hashCode); + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, downloadedThumbnails.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GClearCachedImagesInput') + ..add('cachedPages', cachedPages) + ..add('cachedThumbnails', cachedThumbnails) + ..add('clientMutationId', clientMutationId) + ..add('downloadedThumbnails', downloadedThumbnails)) + .toString(); + } +} + +class GClearCachedImagesInputBuilder + implements + Builder { + _$GClearCachedImagesInput? _$v; + + bool? _cachedPages; + bool? get cachedPages => _$this._cachedPages; + set cachedPages(bool? cachedPages) => _$this._cachedPages = cachedPages; + + bool? _cachedThumbnails; + bool? get cachedThumbnails => _$this._cachedThumbnails; + set cachedThumbnails(bool? cachedThumbnails) => + _$this._cachedThumbnails = cachedThumbnails; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + bool? _downloadedThumbnails; + bool? get downloadedThumbnails => _$this._downloadedThumbnails; + set downloadedThumbnails(bool? downloadedThumbnails) => + _$this._downloadedThumbnails = downloadedThumbnails; + + GClearCachedImagesInputBuilder(); + + GClearCachedImagesInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _cachedPages = $v.cachedPages; + _cachedThumbnails = $v.cachedThumbnails; + _clientMutationId = $v.clientMutationId; + _downloadedThumbnails = $v.downloadedThumbnails; + _$v = null; + } + return this; + } + + @override + void replace(GClearCachedImagesInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GClearCachedImagesInput; + } + + @override + void update(void Function(GClearCachedImagesInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GClearCachedImagesInput build() => _build(); + + _$GClearCachedImagesInput _build() { + final _$result = _$v ?? + new _$GClearCachedImagesInput._( + cachedPages: cachedPages, + cachedThumbnails: cachedThumbnails, + clientMutationId: clientMutationId, + downloadedThumbnails: downloadedThumbnails); + replace(_$result); + return _$result; + } +} + +class _$GClearDownloaderInput extends GClearDownloaderInput { + @override + final String? clientMutationId; + + factory _$GClearDownloaderInput( + [void Function(GClearDownloaderInputBuilder)? updates]) => + (new GClearDownloaderInputBuilder()..update(updates))._build(); + + _$GClearDownloaderInput._({this.clientMutationId}) : super._(); + + @override + GClearDownloaderInput rebuild( + void Function(GClearDownloaderInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GClearDownloaderInputBuilder toBuilder() => + new GClearDownloaderInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GClearDownloaderInput && + clientMutationId == other.clientMutationId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GClearDownloaderInput') + ..add('clientMutationId', clientMutationId)) + .toString(); + } +} + +class GClearDownloaderInputBuilder + implements Builder { + _$GClearDownloaderInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GClearDownloaderInputBuilder(); + + GClearDownloaderInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _$v = null; + } + return this; + } + + @override + void replace(GClearDownloaderInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GClearDownloaderInput; + } + + @override + void update(void Function(GClearDownloaderInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GClearDownloaderInput build() => _build(); + + _$GClearDownloaderInput _build() { + final _$result = _$v ?? + new _$GClearDownloaderInput._(clientMutationId: clientMutationId); + replace(_$result); + return _$result; + } +} + +class _$GCreateBackupInput extends GCreateBackupInput { + @override + final String? clientMutationId; + @override + final bool? includeCategories; + @override + final bool? includeChapters; + + factory _$GCreateBackupInput( + [void Function(GCreateBackupInputBuilder)? updates]) => + (new GCreateBackupInputBuilder()..update(updates))._build(); + + _$GCreateBackupInput._( + {this.clientMutationId, this.includeCategories, this.includeChapters}) + : super._(); + + @override + GCreateBackupInput rebuild( + void Function(GCreateBackupInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCreateBackupInputBuilder toBuilder() => + new GCreateBackupInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCreateBackupInput && + clientMutationId == other.clientMutationId && + includeCategories == other.includeCategories && + includeChapters == other.includeChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, includeCategories.hashCode); + _$hash = $jc(_$hash, includeChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GCreateBackupInput') + ..add('clientMutationId', clientMutationId) + ..add('includeCategories', includeCategories) + ..add('includeChapters', includeChapters)) + .toString(); + } +} + +class GCreateBackupInputBuilder + implements Builder { + _$GCreateBackupInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + bool? _includeCategories; + bool? get includeCategories => _$this._includeCategories; + set includeCategories(bool? includeCategories) => + _$this._includeCategories = includeCategories; + + bool? _includeChapters; + bool? get includeChapters => _$this._includeChapters; + set includeChapters(bool? includeChapters) => + _$this._includeChapters = includeChapters; + + GCreateBackupInputBuilder(); + + GCreateBackupInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _includeCategories = $v.includeCategories; + _includeChapters = $v.includeChapters; + _$v = null; + } + return this; + } + + @override + void replace(GCreateBackupInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCreateBackupInput; + } + + @override + void update(void Function(GCreateBackupInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCreateBackupInput build() => _build(); + + _$GCreateBackupInput _build() { + final _$result = _$v ?? + new _$GCreateBackupInput._( + clientMutationId: clientMutationId, + includeCategories: includeCategories, + includeChapters: includeChapters); + replace(_$result); + return _$result; + } +} + +class _$GCreateCategoryInput extends GCreateCategoryInput { + @override + final String? clientMutationId; + @override + final bool? Gdefault; + @override + final GIncludeOrExclude? includeInDownload; + @override + final GIncludeOrExclude? includeInUpdate; + @override + final String name; + @override + final int? order; + + factory _$GCreateCategoryInput( + [void Function(GCreateCategoryInputBuilder)? updates]) => + (new GCreateCategoryInputBuilder()..update(updates))._build(); + + _$GCreateCategoryInput._( + {this.clientMutationId, + this.Gdefault, + this.includeInDownload, + this.includeInUpdate, + required this.name, + this.order}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + name, r'GCreateCategoryInput', 'name'); + } + + @override + GCreateCategoryInput rebuild( + void Function(GCreateCategoryInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCreateCategoryInputBuilder toBuilder() => + new GCreateCategoryInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCreateCategoryInput && + clientMutationId == other.clientMutationId && + Gdefault == other.Gdefault && + includeInDownload == other.includeInDownload && + includeInUpdate == other.includeInUpdate && + name == other.name && + order == other.order; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, Gdefault.hashCode); + _$hash = $jc(_$hash, includeInDownload.hashCode); + _$hash = $jc(_$hash, includeInUpdate.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, order.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GCreateCategoryInput') + ..add('clientMutationId', clientMutationId) + ..add('Gdefault', Gdefault) + ..add('includeInDownload', includeInDownload) + ..add('includeInUpdate', includeInUpdate) + ..add('name', name) + ..add('order', order)) + .toString(); + } +} + +class GCreateCategoryInputBuilder + implements Builder { + _$GCreateCategoryInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + bool? _Gdefault; + bool? get Gdefault => _$this._Gdefault; + set Gdefault(bool? Gdefault) => _$this._Gdefault = Gdefault; + + GIncludeOrExclude? _includeInDownload; + GIncludeOrExclude? get includeInDownload => _$this._includeInDownload; + set includeInDownload(GIncludeOrExclude? includeInDownload) => + _$this._includeInDownload = includeInDownload; + + GIncludeOrExclude? _includeInUpdate; + GIncludeOrExclude? get includeInUpdate => _$this._includeInUpdate; + set includeInUpdate(GIncludeOrExclude? includeInUpdate) => + _$this._includeInUpdate = includeInUpdate; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + int? _order; + int? get order => _$this._order; + set order(int? order) => _$this._order = order; + + GCreateCategoryInputBuilder(); + + GCreateCategoryInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _Gdefault = $v.Gdefault; + _includeInDownload = $v.includeInDownload; + _includeInUpdate = $v.includeInUpdate; + _name = $v.name; + _order = $v.order; + _$v = null; + } + return this; + } + + @override + void replace(GCreateCategoryInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCreateCategoryInput; + } + + @override + void update(void Function(GCreateCategoryInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCreateCategoryInput build() => _build(); + + _$GCreateCategoryInput _build() { + final _$result = _$v ?? + new _$GCreateCategoryInput._( + clientMutationId: clientMutationId, + Gdefault: Gdefault, + includeInDownload: includeInDownload, + includeInUpdate: includeInUpdate, + name: BuiltValueNullFieldError.checkNotNull( + name, r'GCreateCategoryInput', 'name'), + order: order); + replace(_$result); + return _$result; + } +} + +class _$GCursor extends GCursor { + @override + final String value; + + factory _$GCursor([void Function(GCursorBuilder)? updates]) => + (new GCursorBuilder()..update(updates))._build(); + + _$GCursor._({required this.value}) : super._() { + BuiltValueNullFieldError.checkNotNull(value, r'GCursor', 'value'); + } + + @override + GCursor rebuild(void Function(GCursorBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCursorBuilder toBuilder() => new GCursorBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCursor && value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GCursor')..add('value', value)) + .toString(); + } +} + +class GCursorBuilder implements Builder { + _$GCursor? _$v; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GCursorBuilder(); + + GCursorBuilder get _$this { + final $v = _$v; + if ($v != null) { + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GCursor other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCursor; + } + + @override + void update(void Function(GCursorBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCursor build() => _build(); + + _$GCursor _build() { + final _$result = _$v ?? + new _$GCursor._( + value: BuiltValueNullFieldError.checkNotNull( + value, r'GCursor', 'value')); + replace(_$result); + return _$result; + } +} + +class _$GDeleteCategoryInput extends GDeleteCategoryInput { + @override + final int categoryId; + @override + final String? clientMutationId; + + factory _$GDeleteCategoryInput( + [void Function(GDeleteCategoryInputBuilder)? updates]) => + (new GDeleteCategoryInputBuilder()..update(updates))._build(); + + _$GDeleteCategoryInput._({required this.categoryId, this.clientMutationId}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + categoryId, r'GDeleteCategoryInput', 'categoryId'); + } + + @override + GDeleteCategoryInput rebuild( + void Function(GDeleteCategoryInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GDeleteCategoryInputBuilder toBuilder() => + new GDeleteCategoryInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GDeleteCategoryInput && + categoryId == other.categoryId && + clientMutationId == other.clientMutationId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, categoryId.hashCode); + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GDeleteCategoryInput') + ..add('categoryId', categoryId) + ..add('clientMutationId', clientMutationId)) + .toString(); + } +} + +class GDeleteCategoryInputBuilder + implements Builder { + _$GDeleteCategoryInput? _$v; + + int? _categoryId; + int? get categoryId => _$this._categoryId; + set categoryId(int? categoryId) => _$this._categoryId = categoryId; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GDeleteCategoryInputBuilder(); + + GDeleteCategoryInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _categoryId = $v.categoryId; + _clientMutationId = $v.clientMutationId; + _$v = null; + } + return this; + } + + @override + void replace(GDeleteCategoryInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GDeleteCategoryInput; + } + + @override + void update(void Function(GDeleteCategoryInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GDeleteCategoryInput build() => _build(); + + _$GDeleteCategoryInput _build() { + final _$result = _$v ?? + new _$GDeleteCategoryInput._( + categoryId: BuiltValueNullFieldError.checkNotNull( + categoryId, r'GDeleteCategoryInput', 'categoryId'), + clientMutationId: clientMutationId); + replace(_$result); + return _$result; + } +} + +class _$GDeleteCategoryMetaInput extends GDeleteCategoryMetaInput { + @override + final int categoryId; + @override + final String? clientMutationId; + @override + final String key; + + factory _$GDeleteCategoryMetaInput( + [void Function(GDeleteCategoryMetaInputBuilder)? updates]) => + (new GDeleteCategoryMetaInputBuilder()..update(updates))._build(); + + _$GDeleteCategoryMetaInput._( + {required this.categoryId, this.clientMutationId, required this.key}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + categoryId, r'GDeleteCategoryMetaInput', 'categoryId'); + BuiltValueNullFieldError.checkNotNull( + key, r'GDeleteCategoryMetaInput', 'key'); + } + + @override + GDeleteCategoryMetaInput rebuild( + void Function(GDeleteCategoryMetaInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GDeleteCategoryMetaInputBuilder toBuilder() => + new GDeleteCategoryMetaInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GDeleteCategoryMetaInput && + categoryId == other.categoryId && + clientMutationId == other.clientMutationId && + key == other.key; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, categoryId.hashCode); + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GDeleteCategoryMetaInput') + ..add('categoryId', categoryId) + ..add('clientMutationId', clientMutationId) + ..add('key', key)) + .toString(); + } +} + +class GDeleteCategoryMetaInputBuilder + implements + Builder { + _$GDeleteCategoryMetaInput? _$v; + + int? _categoryId; + int? get categoryId => _$this._categoryId; + set categoryId(int? categoryId) => _$this._categoryId = categoryId; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + GDeleteCategoryMetaInputBuilder(); + + GDeleteCategoryMetaInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _categoryId = $v.categoryId; + _clientMutationId = $v.clientMutationId; + _key = $v.key; + _$v = null; + } + return this; + } + + @override + void replace(GDeleteCategoryMetaInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GDeleteCategoryMetaInput; + } + + @override + void update(void Function(GDeleteCategoryMetaInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GDeleteCategoryMetaInput build() => _build(); + + _$GDeleteCategoryMetaInput _build() { + final _$result = _$v ?? + new _$GDeleteCategoryMetaInput._( + categoryId: BuiltValueNullFieldError.checkNotNull( + categoryId, r'GDeleteCategoryMetaInput', 'categoryId'), + clientMutationId: clientMutationId, + key: BuiltValueNullFieldError.checkNotNull( + key, r'GDeleteCategoryMetaInput', 'key')); + replace(_$result); + return _$result; + } +} + +class _$GDeleteChapterMetaInput extends GDeleteChapterMetaInput { + @override + final int chapterId; + @override + final String? clientMutationId; + @override + final String key; + + factory _$GDeleteChapterMetaInput( + [void Function(GDeleteChapterMetaInputBuilder)? updates]) => + (new GDeleteChapterMetaInputBuilder()..update(updates))._build(); + + _$GDeleteChapterMetaInput._( + {required this.chapterId, this.clientMutationId, required this.key}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + chapterId, r'GDeleteChapterMetaInput', 'chapterId'); + BuiltValueNullFieldError.checkNotNull( + key, r'GDeleteChapterMetaInput', 'key'); + } + + @override + GDeleteChapterMetaInput rebuild( + void Function(GDeleteChapterMetaInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GDeleteChapterMetaInputBuilder toBuilder() => + new GDeleteChapterMetaInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GDeleteChapterMetaInput && + chapterId == other.chapterId && + clientMutationId == other.clientMutationId && + key == other.key; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, chapterId.hashCode); + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GDeleteChapterMetaInput') + ..add('chapterId', chapterId) + ..add('clientMutationId', clientMutationId) + ..add('key', key)) + .toString(); + } +} + +class GDeleteChapterMetaInputBuilder + implements + Builder { + _$GDeleteChapterMetaInput? _$v; + + int? _chapterId; + int? get chapterId => _$this._chapterId; + set chapterId(int? chapterId) => _$this._chapterId = chapterId; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + GDeleteChapterMetaInputBuilder(); + + GDeleteChapterMetaInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _chapterId = $v.chapterId; + _clientMutationId = $v.clientMutationId; + _key = $v.key; + _$v = null; + } + return this; + } + + @override + void replace(GDeleteChapterMetaInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GDeleteChapterMetaInput; + } + + @override + void update(void Function(GDeleteChapterMetaInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GDeleteChapterMetaInput build() => _build(); + + _$GDeleteChapterMetaInput _build() { + final _$result = _$v ?? + new _$GDeleteChapterMetaInput._( + chapterId: BuiltValueNullFieldError.checkNotNull( + chapterId, r'GDeleteChapterMetaInput', 'chapterId'), + clientMutationId: clientMutationId, + key: BuiltValueNullFieldError.checkNotNull( + key, r'GDeleteChapterMetaInput', 'key')); + replace(_$result); + return _$result; + } +} + +class _$GDeleteDownloadedChapterInput extends GDeleteDownloadedChapterInput { + @override + final String? clientMutationId; + @override + final int id; + + factory _$GDeleteDownloadedChapterInput( + [void Function(GDeleteDownloadedChapterInputBuilder)? updates]) => + (new GDeleteDownloadedChapterInputBuilder()..update(updates))._build(); + + _$GDeleteDownloadedChapterInput._({this.clientMutationId, required this.id}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + id, r'GDeleteDownloadedChapterInput', 'id'); + } + + @override + GDeleteDownloadedChapterInput rebuild( + void Function(GDeleteDownloadedChapterInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GDeleteDownloadedChapterInputBuilder toBuilder() => + new GDeleteDownloadedChapterInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GDeleteDownloadedChapterInput && + clientMutationId == other.clientMutationId && + id == other.id; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GDeleteDownloadedChapterInput') + ..add('clientMutationId', clientMutationId) + ..add('id', id)) + .toString(); + } +} + +class GDeleteDownloadedChapterInputBuilder + implements + Builder { + _$GDeleteDownloadedChapterInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + GDeleteDownloadedChapterInputBuilder(); + + GDeleteDownloadedChapterInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _id = $v.id; + _$v = null; + } + return this; + } + + @override + void replace(GDeleteDownloadedChapterInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GDeleteDownloadedChapterInput; + } + + @override + void update(void Function(GDeleteDownloadedChapterInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GDeleteDownloadedChapterInput build() => _build(); + + _$GDeleteDownloadedChapterInput _build() { + final _$result = _$v ?? + new _$GDeleteDownloadedChapterInput._( + clientMutationId: clientMutationId, + id: BuiltValueNullFieldError.checkNotNull( + id, r'GDeleteDownloadedChapterInput', 'id')); + replace(_$result); + return _$result; + } +} + +class _$GDeleteDownloadedChaptersInput extends GDeleteDownloadedChaptersInput { + @override + final String? clientMutationId; + @override + final BuiltList ids; + + factory _$GDeleteDownloadedChaptersInput( + [void Function(GDeleteDownloadedChaptersInputBuilder)? updates]) => + (new GDeleteDownloadedChaptersInputBuilder()..update(updates))._build(); + + _$GDeleteDownloadedChaptersInput._({this.clientMutationId, required this.ids}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + ids, r'GDeleteDownloadedChaptersInput', 'ids'); + } + + @override + GDeleteDownloadedChaptersInput rebuild( + void Function(GDeleteDownloadedChaptersInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GDeleteDownloadedChaptersInputBuilder toBuilder() => + new GDeleteDownloadedChaptersInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GDeleteDownloadedChaptersInput && + clientMutationId == other.clientMutationId && + ids == other.ids; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, ids.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GDeleteDownloadedChaptersInput') + ..add('clientMutationId', clientMutationId) + ..add('ids', ids)) + .toString(); + } +} + +class GDeleteDownloadedChaptersInputBuilder + implements + Builder { + _$GDeleteDownloadedChaptersInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + ListBuilder? _ids; + ListBuilder get ids => _$this._ids ??= new ListBuilder(); + set ids(ListBuilder? ids) => _$this._ids = ids; + + GDeleteDownloadedChaptersInputBuilder(); + + GDeleteDownloadedChaptersInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _ids = $v.ids.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GDeleteDownloadedChaptersInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GDeleteDownloadedChaptersInput; + } + + @override + void update(void Function(GDeleteDownloadedChaptersInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GDeleteDownloadedChaptersInput build() => _build(); + + _$GDeleteDownloadedChaptersInput _build() { + _$GDeleteDownloadedChaptersInput _$result; + try { + _$result = _$v ?? + new _$GDeleteDownloadedChaptersInput._( + clientMutationId: clientMutationId, ids: ids.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'ids'; + ids.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GDeleteDownloadedChaptersInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GDeleteGlobalMetaInput extends GDeleteGlobalMetaInput { + @override + final String? clientMutationId; + @override + final String key; + + factory _$GDeleteGlobalMetaInput( + [void Function(GDeleteGlobalMetaInputBuilder)? updates]) => + (new GDeleteGlobalMetaInputBuilder()..update(updates))._build(); + + _$GDeleteGlobalMetaInput._({this.clientMutationId, required this.key}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + key, r'GDeleteGlobalMetaInput', 'key'); + } + + @override + GDeleteGlobalMetaInput rebuild( + void Function(GDeleteGlobalMetaInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GDeleteGlobalMetaInputBuilder toBuilder() => + new GDeleteGlobalMetaInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GDeleteGlobalMetaInput && + clientMutationId == other.clientMutationId && + key == other.key; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GDeleteGlobalMetaInput') + ..add('clientMutationId', clientMutationId) + ..add('key', key)) + .toString(); + } +} + +class GDeleteGlobalMetaInputBuilder + implements Builder { + _$GDeleteGlobalMetaInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + GDeleteGlobalMetaInputBuilder(); + + GDeleteGlobalMetaInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _key = $v.key; + _$v = null; + } + return this; + } + + @override + void replace(GDeleteGlobalMetaInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GDeleteGlobalMetaInput; + } + + @override + void update(void Function(GDeleteGlobalMetaInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GDeleteGlobalMetaInput build() => _build(); + + _$GDeleteGlobalMetaInput _build() { + final _$result = _$v ?? + new _$GDeleteGlobalMetaInput._( + clientMutationId: clientMutationId, + key: BuiltValueNullFieldError.checkNotNull( + key, r'GDeleteGlobalMetaInput', 'key')); + replace(_$result); + return _$result; + } +} + +class _$GDeleteMangaMetaInput extends GDeleteMangaMetaInput { + @override + final String? clientMutationId; + @override + final String key; + @override + final int mangaId; + + factory _$GDeleteMangaMetaInput( + [void Function(GDeleteMangaMetaInputBuilder)? updates]) => + (new GDeleteMangaMetaInputBuilder()..update(updates))._build(); + + _$GDeleteMangaMetaInput._( + {this.clientMutationId, required this.key, required this.mangaId}) + : super._() { + BuiltValueNullFieldError.checkNotNull(key, r'GDeleteMangaMetaInput', 'key'); + BuiltValueNullFieldError.checkNotNull( + mangaId, r'GDeleteMangaMetaInput', 'mangaId'); + } + + @override + GDeleteMangaMetaInput rebuild( + void Function(GDeleteMangaMetaInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GDeleteMangaMetaInputBuilder toBuilder() => + new GDeleteMangaMetaInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GDeleteMangaMetaInput && + clientMutationId == other.clientMutationId && + key == other.key && + mangaId == other.mangaId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, mangaId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GDeleteMangaMetaInput') + ..add('clientMutationId', clientMutationId) + ..add('key', key) + ..add('mangaId', mangaId)) + .toString(); + } +} + +class GDeleteMangaMetaInputBuilder + implements Builder { + _$GDeleteMangaMetaInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + int? _mangaId; + int? get mangaId => _$this._mangaId; + set mangaId(int? mangaId) => _$this._mangaId = mangaId; + + GDeleteMangaMetaInputBuilder(); + + GDeleteMangaMetaInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _key = $v.key; + _mangaId = $v.mangaId; + _$v = null; + } + return this; + } + + @override + void replace(GDeleteMangaMetaInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GDeleteMangaMetaInput; + } + + @override + void update(void Function(GDeleteMangaMetaInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GDeleteMangaMetaInput build() => _build(); + + _$GDeleteMangaMetaInput _build() { + final _$result = _$v ?? + new _$GDeleteMangaMetaInput._( + clientMutationId: clientMutationId, + key: BuiltValueNullFieldError.checkNotNull( + key, r'GDeleteMangaMetaInput', 'key'), + mangaId: BuiltValueNullFieldError.checkNotNull( + mangaId, r'GDeleteMangaMetaInput', 'mangaId')); + replace(_$result); + return _$result; + } +} + +class _$GDeleteSourceMetaInput extends GDeleteSourceMetaInput { + @override + final String? clientMutationId; + @override + final String key; + @override + final GLongString sourceId; + + factory _$GDeleteSourceMetaInput( + [void Function(GDeleteSourceMetaInputBuilder)? updates]) => + (new GDeleteSourceMetaInputBuilder()..update(updates))._build(); + + _$GDeleteSourceMetaInput._( + {this.clientMutationId, required this.key, required this.sourceId}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + key, r'GDeleteSourceMetaInput', 'key'); + BuiltValueNullFieldError.checkNotNull( + sourceId, r'GDeleteSourceMetaInput', 'sourceId'); + } + + @override + GDeleteSourceMetaInput rebuild( + void Function(GDeleteSourceMetaInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GDeleteSourceMetaInputBuilder toBuilder() => + new GDeleteSourceMetaInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GDeleteSourceMetaInput && + clientMutationId == other.clientMutationId && + key == other.key && + sourceId == other.sourceId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, sourceId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GDeleteSourceMetaInput') + ..add('clientMutationId', clientMutationId) + ..add('key', key) + ..add('sourceId', sourceId)) + .toString(); + } +} + +class GDeleteSourceMetaInputBuilder + implements Builder { + _$GDeleteSourceMetaInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + GLongStringBuilder? _sourceId; + GLongStringBuilder get sourceId => + _$this._sourceId ??= new GLongStringBuilder(); + set sourceId(GLongStringBuilder? sourceId) => _$this._sourceId = sourceId; + + GDeleteSourceMetaInputBuilder(); + + GDeleteSourceMetaInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _key = $v.key; + _sourceId = $v.sourceId.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GDeleteSourceMetaInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GDeleteSourceMetaInput; + } + + @override + void update(void Function(GDeleteSourceMetaInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GDeleteSourceMetaInput build() => _build(); + + _$GDeleteSourceMetaInput _build() { + _$GDeleteSourceMetaInput _$result; + try { + _$result = _$v ?? + new _$GDeleteSourceMetaInput._( + clientMutationId: clientMutationId, + key: BuiltValueNullFieldError.checkNotNull( + key, r'GDeleteSourceMetaInput', 'key'), + sourceId: sourceId.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'sourceId'; + sourceId.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GDeleteSourceMetaInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GDequeueChapterDownloadInput extends GDequeueChapterDownloadInput { + @override + final String? clientMutationId; + @override + final int id; + + factory _$GDequeueChapterDownloadInput( + [void Function(GDequeueChapterDownloadInputBuilder)? updates]) => + (new GDequeueChapterDownloadInputBuilder()..update(updates))._build(); + + _$GDequeueChapterDownloadInput._({this.clientMutationId, required this.id}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + id, r'GDequeueChapterDownloadInput', 'id'); + } + + @override + GDequeueChapterDownloadInput rebuild( + void Function(GDequeueChapterDownloadInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GDequeueChapterDownloadInputBuilder toBuilder() => + new GDequeueChapterDownloadInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GDequeueChapterDownloadInput && + clientMutationId == other.clientMutationId && + id == other.id; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GDequeueChapterDownloadInput') + ..add('clientMutationId', clientMutationId) + ..add('id', id)) + .toString(); + } +} + +class GDequeueChapterDownloadInputBuilder + implements + Builder { + _$GDequeueChapterDownloadInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + GDequeueChapterDownloadInputBuilder(); + + GDequeueChapterDownloadInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _id = $v.id; + _$v = null; + } + return this; + } + + @override + void replace(GDequeueChapterDownloadInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GDequeueChapterDownloadInput; + } + + @override + void update(void Function(GDequeueChapterDownloadInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GDequeueChapterDownloadInput build() => _build(); + + _$GDequeueChapterDownloadInput _build() { + final _$result = _$v ?? + new _$GDequeueChapterDownloadInput._( + clientMutationId: clientMutationId, + id: BuiltValueNullFieldError.checkNotNull( + id, r'GDequeueChapterDownloadInput', 'id')); + replace(_$result); + return _$result; + } +} + +class _$GDequeueChapterDownloadsInput extends GDequeueChapterDownloadsInput { + @override + final String? clientMutationId; + @override + final BuiltList ids; + + factory _$GDequeueChapterDownloadsInput( + [void Function(GDequeueChapterDownloadsInputBuilder)? updates]) => + (new GDequeueChapterDownloadsInputBuilder()..update(updates))._build(); + + _$GDequeueChapterDownloadsInput._({this.clientMutationId, required this.ids}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + ids, r'GDequeueChapterDownloadsInput', 'ids'); + } + + @override + GDequeueChapterDownloadsInput rebuild( + void Function(GDequeueChapterDownloadsInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GDequeueChapterDownloadsInputBuilder toBuilder() => + new GDequeueChapterDownloadsInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GDequeueChapterDownloadsInput && + clientMutationId == other.clientMutationId && + ids == other.ids; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, ids.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GDequeueChapterDownloadsInput') + ..add('clientMutationId', clientMutationId) + ..add('ids', ids)) + .toString(); + } +} + +class GDequeueChapterDownloadsInputBuilder + implements + Builder { + _$GDequeueChapterDownloadsInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + ListBuilder? _ids; + ListBuilder get ids => _$this._ids ??= new ListBuilder(); + set ids(ListBuilder? ids) => _$this._ids = ids; + + GDequeueChapterDownloadsInputBuilder(); + + GDequeueChapterDownloadsInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _ids = $v.ids.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GDequeueChapterDownloadsInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GDequeueChapterDownloadsInput; + } + + @override + void update(void Function(GDequeueChapterDownloadsInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GDequeueChapterDownloadsInput build() => _build(); + + _$GDequeueChapterDownloadsInput _build() { + _$GDequeueChapterDownloadsInput _$result; + try { + _$result = _$v ?? + new _$GDequeueChapterDownloadsInput._( + clientMutationId: clientMutationId, ids: ids.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'ids'; + ids.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GDequeueChapterDownloadsInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GDoubleFilterInput extends GDoubleFilterInput { + @override + final double? distinctFrom; + @override + final double? equalTo; + @override + final double? greaterThan; + @override + final double? greaterThanOrEqualTo; + @override + final BuiltList? Gin; + @override + final bool? isNull; + @override + final double? lessThan; + @override + final double? lessThanOrEqualTo; + @override + final double? notDistinctFrom; + @override + final double? notEqualTo; + @override + final BuiltList? notIn; + + factory _$GDoubleFilterInput( + [void Function(GDoubleFilterInputBuilder)? updates]) => + (new GDoubleFilterInputBuilder()..update(updates))._build(); + + _$GDoubleFilterInput._( + {this.distinctFrom, + this.equalTo, + this.greaterThan, + this.greaterThanOrEqualTo, + this.Gin, + this.isNull, + this.lessThan, + this.lessThanOrEqualTo, + this.notDistinctFrom, + this.notEqualTo, + this.notIn}) + : super._(); + + @override + GDoubleFilterInput rebuild( + void Function(GDoubleFilterInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GDoubleFilterInputBuilder toBuilder() => + new GDoubleFilterInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GDoubleFilterInput && + distinctFrom == other.distinctFrom && + equalTo == other.equalTo && + greaterThan == other.greaterThan && + greaterThanOrEqualTo == other.greaterThanOrEqualTo && + Gin == other.Gin && + isNull == other.isNull && + lessThan == other.lessThan && + lessThanOrEqualTo == other.lessThanOrEqualTo && + notDistinctFrom == other.notDistinctFrom && + notEqualTo == other.notEqualTo && + notIn == other.notIn; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, distinctFrom.hashCode); + _$hash = $jc(_$hash, equalTo.hashCode); + _$hash = $jc(_$hash, greaterThan.hashCode); + _$hash = $jc(_$hash, greaterThanOrEqualTo.hashCode); + _$hash = $jc(_$hash, Gin.hashCode); + _$hash = $jc(_$hash, isNull.hashCode); + _$hash = $jc(_$hash, lessThan.hashCode); + _$hash = $jc(_$hash, lessThanOrEqualTo.hashCode); + _$hash = $jc(_$hash, notDistinctFrom.hashCode); + _$hash = $jc(_$hash, notEqualTo.hashCode); + _$hash = $jc(_$hash, notIn.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GDoubleFilterInput') + ..add('distinctFrom', distinctFrom) + ..add('equalTo', equalTo) + ..add('greaterThan', greaterThan) + ..add('greaterThanOrEqualTo', greaterThanOrEqualTo) + ..add('Gin', Gin) + ..add('isNull', isNull) + ..add('lessThan', lessThan) + ..add('lessThanOrEqualTo', lessThanOrEqualTo) + ..add('notDistinctFrom', notDistinctFrom) + ..add('notEqualTo', notEqualTo) + ..add('notIn', notIn)) + .toString(); + } +} + +class GDoubleFilterInputBuilder + implements Builder { + _$GDoubleFilterInput? _$v; + + double? _distinctFrom; + double? get distinctFrom => _$this._distinctFrom; + set distinctFrom(double? distinctFrom) => _$this._distinctFrom = distinctFrom; + + double? _equalTo; + double? get equalTo => _$this._equalTo; + set equalTo(double? equalTo) => _$this._equalTo = equalTo; + + double? _greaterThan; + double? get greaterThan => _$this._greaterThan; + set greaterThan(double? greaterThan) => _$this._greaterThan = greaterThan; + + double? _greaterThanOrEqualTo; + double? get greaterThanOrEqualTo => _$this._greaterThanOrEqualTo; + set greaterThanOrEqualTo(double? greaterThanOrEqualTo) => + _$this._greaterThanOrEqualTo = greaterThanOrEqualTo; + + ListBuilder? _Gin; + ListBuilder get Gin => _$this._Gin ??= new ListBuilder(); + set Gin(ListBuilder? Gin) => _$this._Gin = Gin; + + bool? _isNull; + bool? get isNull => _$this._isNull; + set isNull(bool? isNull) => _$this._isNull = isNull; + + double? _lessThan; + double? get lessThan => _$this._lessThan; + set lessThan(double? lessThan) => _$this._lessThan = lessThan; + + double? _lessThanOrEqualTo; + double? get lessThanOrEqualTo => _$this._lessThanOrEqualTo; + set lessThanOrEqualTo(double? lessThanOrEqualTo) => + _$this._lessThanOrEqualTo = lessThanOrEqualTo; + + double? _notDistinctFrom; + double? get notDistinctFrom => _$this._notDistinctFrom; + set notDistinctFrom(double? notDistinctFrom) => + _$this._notDistinctFrom = notDistinctFrom; + + double? _notEqualTo; + double? get notEqualTo => _$this._notEqualTo; + set notEqualTo(double? notEqualTo) => _$this._notEqualTo = notEqualTo; + + ListBuilder? _notIn; + ListBuilder get notIn => _$this._notIn ??= new ListBuilder(); + set notIn(ListBuilder? notIn) => _$this._notIn = notIn; + + GDoubleFilterInputBuilder(); + + GDoubleFilterInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _distinctFrom = $v.distinctFrom; + _equalTo = $v.equalTo; + _greaterThan = $v.greaterThan; + _greaterThanOrEqualTo = $v.greaterThanOrEqualTo; + _Gin = $v.Gin?.toBuilder(); + _isNull = $v.isNull; + _lessThan = $v.lessThan; + _lessThanOrEqualTo = $v.lessThanOrEqualTo; + _notDistinctFrom = $v.notDistinctFrom; + _notEqualTo = $v.notEqualTo; + _notIn = $v.notIn?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GDoubleFilterInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GDoubleFilterInput; + } + + @override + void update(void Function(GDoubleFilterInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GDoubleFilterInput build() => _build(); + + _$GDoubleFilterInput _build() { + _$GDoubleFilterInput _$result; + try { + _$result = _$v ?? + new _$GDoubleFilterInput._( + distinctFrom: distinctFrom, + equalTo: equalTo, + greaterThan: greaterThan, + greaterThanOrEqualTo: greaterThanOrEqualTo, + Gin: _Gin?.build(), + isNull: isNull, + lessThan: lessThan, + lessThanOrEqualTo: lessThanOrEqualTo, + notDistinctFrom: notDistinctFrom, + notEqualTo: notEqualTo, + notIn: _notIn?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'Gin'; + _Gin?.build(); + + _$failedField = 'notIn'; + _notIn?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GDoubleFilterInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GEnqueueChapterDownloadInput extends GEnqueueChapterDownloadInput { + @override + final String? clientMutationId; + @override + final int id; + + factory _$GEnqueueChapterDownloadInput( + [void Function(GEnqueueChapterDownloadInputBuilder)? updates]) => + (new GEnqueueChapterDownloadInputBuilder()..update(updates))._build(); + + _$GEnqueueChapterDownloadInput._({this.clientMutationId, required this.id}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + id, r'GEnqueueChapterDownloadInput', 'id'); + } + + @override + GEnqueueChapterDownloadInput rebuild( + void Function(GEnqueueChapterDownloadInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GEnqueueChapterDownloadInputBuilder toBuilder() => + new GEnqueueChapterDownloadInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GEnqueueChapterDownloadInput && + clientMutationId == other.clientMutationId && + id == other.id; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GEnqueueChapterDownloadInput') + ..add('clientMutationId', clientMutationId) + ..add('id', id)) + .toString(); + } +} + +class GEnqueueChapterDownloadInputBuilder + implements + Builder { + _$GEnqueueChapterDownloadInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + GEnqueueChapterDownloadInputBuilder(); + + GEnqueueChapterDownloadInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _id = $v.id; + _$v = null; + } + return this; + } + + @override + void replace(GEnqueueChapterDownloadInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GEnqueueChapterDownloadInput; + } + + @override + void update(void Function(GEnqueueChapterDownloadInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GEnqueueChapterDownloadInput build() => _build(); + + _$GEnqueueChapterDownloadInput _build() { + final _$result = _$v ?? + new _$GEnqueueChapterDownloadInput._( + clientMutationId: clientMutationId, + id: BuiltValueNullFieldError.checkNotNull( + id, r'GEnqueueChapterDownloadInput', 'id')); + replace(_$result); + return _$result; + } +} + +class _$GEnqueueChapterDownloadsInput extends GEnqueueChapterDownloadsInput { + @override + final String? clientMutationId; + @override + final BuiltList ids; + + factory _$GEnqueueChapterDownloadsInput( + [void Function(GEnqueueChapterDownloadsInputBuilder)? updates]) => + (new GEnqueueChapterDownloadsInputBuilder()..update(updates))._build(); + + _$GEnqueueChapterDownloadsInput._({this.clientMutationId, required this.ids}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + ids, r'GEnqueueChapterDownloadsInput', 'ids'); + } + + @override + GEnqueueChapterDownloadsInput rebuild( + void Function(GEnqueueChapterDownloadsInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GEnqueueChapterDownloadsInputBuilder toBuilder() => + new GEnqueueChapterDownloadsInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GEnqueueChapterDownloadsInput && + clientMutationId == other.clientMutationId && + ids == other.ids; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, ids.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GEnqueueChapterDownloadsInput') + ..add('clientMutationId', clientMutationId) + ..add('ids', ids)) + .toString(); + } +} + +class GEnqueueChapterDownloadsInputBuilder + implements + Builder { + _$GEnqueueChapterDownloadsInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + ListBuilder? _ids; + ListBuilder get ids => _$this._ids ??= new ListBuilder(); + set ids(ListBuilder? ids) => _$this._ids = ids; + + GEnqueueChapterDownloadsInputBuilder(); + + GEnqueueChapterDownloadsInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _ids = $v.ids.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GEnqueueChapterDownloadsInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GEnqueueChapterDownloadsInput; + } + + @override + void update(void Function(GEnqueueChapterDownloadsInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GEnqueueChapterDownloadsInput build() => _build(); + + _$GEnqueueChapterDownloadsInput _build() { + _$GEnqueueChapterDownloadsInput _$result; + try { + _$result = _$v ?? + new _$GEnqueueChapterDownloadsInput._( + clientMutationId: clientMutationId, ids: ids.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'ids'; + ids.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GEnqueueChapterDownloadsInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GExtensionConditionInput extends GExtensionConditionInput { + @override + final String? apkName; + @override + final bool? hasUpdate; + @override + final String? iconUrl; + @override + final bool? isInstalled; + @override + final bool? isNsfw; + @override + final bool? isObsolete; + @override + final String? lang; + @override + final String? name; + @override + final String? pkgName; + @override + final String? repo; + @override + final int? versionCode; + @override + final String? versionName; + + factory _$GExtensionConditionInput( + [void Function(GExtensionConditionInputBuilder)? updates]) => + (new GExtensionConditionInputBuilder()..update(updates))._build(); + + _$GExtensionConditionInput._( + {this.apkName, + this.hasUpdate, + this.iconUrl, + this.isInstalled, + this.isNsfw, + this.isObsolete, + this.lang, + this.name, + this.pkgName, + this.repo, + this.versionCode, + this.versionName}) + : super._(); + + @override + GExtensionConditionInput rebuild( + void Function(GExtensionConditionInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GExtensionConditionInputBuilder toBuilder() => + new GExtensionConditionInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GExtensionConditionInput && + apkName == other.apkName && + hasUpdate == other.hasUpdate && + iconUrl == other.iconUrl && + isInstalled == other.isInstalled && + isNsfw == other.isNsfw && + isObsolete == other.isObsolete && + lang == other.lang && + name == other.name && + pkgName == other.pkgName && + repo == other.repo && + versionCode == other.versionCode && + versionName == other.versionName; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, apkName.hashCode); + _$hash = $jc(_$hash, hasUpdate.hashCode); + _$hash = $jc(_$hash, iconUrl.hashCode); + _$hash = $jc(_$hash, isInstalled.hashCode); + _$hash = $jc(_$hash, isNsfw.hashCode); + _$hash = $jc(_$hash, isObsolete.hashCode); + _$hash = $jc(_$hash, lang.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, pkgName.hashCode); + _$hash = $jc(_$hash, repo.hashCode); + _$hash = $jc(_$hash, versionCode.hashCode); + _$hash = $jc(_$hash, versionName.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GExtensionConditionInput') + ..add('apkName', apkName) + ..add('hasUpdate', hasUpdate) + ..add('iconUrl', iconUrl) + ..add('isInstalled', isInstalled) + ..add('isNsfw', isNsfw) + ..add('isObsolete', isObsolete) + ..add('lang', lang) + ..add('name', name) + ..add('pkgName', pkgName) + ..add('repo', repo) + ..add('versionCode', versionCode) + ..add('versionName', versionName)) + .toString(); + } +} + +class GExtensionConditionInputBuilder + implements + Builder { + _$GExtensionConditionInput? _$v; + + String? _apkName; + String? get apkName => _$this._apkName; + set apkName(String? apkName) => _$this._apkName = apkName; + + bool? _hasUpdate; + bool? get hasUpdate => _$this._hasUpdate; + set hasUpdate(bool? hasUpdate) => _$this._hasUpdate = hasUpdate; + + String? _iconUrl; + String? get iconUrl => _$this._iconUrl; + set iconUrl(String? iconUrl) => _$this._iconUrl = iconUrl; + + bool? _isInstalled; + bool? get isInstalled => _$this._isInstalled; + set isInstalled(bool? isInstalled) => _$this._isInstalled = isInstalled; + + bool? _isNsfw; + bool? get isNsfw => _$this._isNsfw; + set isNsfw(bool? isNsfw) => _$this._isNsfw = isNsfw; + + bool? _isObsolete; + bool? get isObsolete => _$this._isObsolete; + set isObsolete(bool? isObsolete) => _$this._isObsolete = isObsolete; + + String? _lang; + String? get lang => _$this._lang; + set lang(String? lang) => _$this._lang = lang; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + String? _pkgName; + String? get pkgName => _$this._pkgName; + set pkgName(String? pkgName) => _$this._pkgName = pkgName; + + String? _repo; + String? get repo => _$this._repo; + set repo(String? repo) => _$this._repo = repo; + + int? _versionCode; + int? get versionCode => _$this._versionCode; + set versionCode(int? versionCode) => _$this._versionCode = versionCode; + + String? _versionName; + String? get versionName => _$this._versionName; + set versionName(String? versionName) => _$this._versionName = versionName; + + GExtensionConditionInputBuilder(); + + GExtensionConditionInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _apkName = $v.apkName; + _hasUpdate = $v.hasUpdate; + _iconUrl = $v.iconUrl; + _isInstalled = $v.isInstalled; + _isNsfw = $v.isNsfw; + _isObsolete = $v.isObsolete; + _lang = $v.lang; + _name = $v.name; + _pkgName = $v.pkgName; + _repo = $v.repo; + _versionCode = $v.versionCode; + _versionName = $v.versionName; + _$v = null; + } + return this; + } + + @override + void replace(GExtensionConditionInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GExtensionConditionInput; + } + + @override + void update(void Function(GExtensionConditionInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GExtensionConditionInput build() => _build(); + + _$GExtensionConditionInput _build() { + final _$result = _$v ?? + new _$GExtensionConditionInput._( + apkName: apkName, + hasUpdate: hasUpdate, + iconUrl: iconUrl, + isInstalled: isInstalled, + isNsfw: isNsfw, + isObsolete: isObsolete, + lang: lang, + name: name, + pkgName: pkgName, + repo: repo, + versionCode: versionCode, + versionName: versionName); + replace(_$result); + return _$result; + } +} + +class _$GExtensionFilterInput extends GExtensionFilterInput { + @override + final BuiltList? and; + @override + final GStringFilterInput? apkName; + @override + final GBooleanFilterInput? hasUpdate; + @override + final GStringFilterInput? iconUrl; + @override + final GBooleanFilterInput? isInstalled; + @override + final GBooleanFilterInput? isNsfw; + @override + final GBooleanFilterInput? isObsolete; + @override + final GStringFilterInput? lang; + @override + final GStringFilterInput? name; + @override + final GExtensionFilterInput? not; + @override + final BuiltList? or; + @override + final GStringFilterInput? pkgName; + @override + final GStringFilterInput? repo; + @override + final GIntFilterInput? versionCode; + @override + final GStringFilterInput? versionName; + + factory _$GExtensionFilterInput( + [void Function(GExtensionFilterInputBuilder)? updates]) => + (new GExtensionFilterInputBuilder()..update(updates))._build(); + + _$GExtensionFilterInput._( + {this.and, + this.apkName, + this.hasUpdate, + this.iconUrl, + this.isInstalled, + this.isNsfw, + this.isObsolete, + this.lang, + this.name, + this.not, + this.or, + this.pkgName, + this.repo, + this.versionCode, + this.versionName}) + : super._(); + + @override + GExtensionFilterInput rebuild( + void Function(GExtensionFilterInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GExtensionFilterInputBuilder toBuilder() => + new GExtensionFilterInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GExtensionFilterInput && + and == other.and && + apkName == other.apkName && + hasUpdate == other.hasUpdate && + iconUrl == other.iconUrl && + isInstalled == other.isInstalled && + isNsfw == other.isNsfw && + isObsolete == other.isObsolete && + lang == other.lang && + name == other.name && + not == other.not && + or == other.or && + pkgName == other.pkgName && + repo == other.repo && + versionCode == other.versionCode && + versionName == other.versionName; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, and.hashCode); + _$hash = $jc(_$hash, apkName.hashCode); + _$hash = $jc(_$hash, hasUpdate.hashCode); + _$hash = $jc(_$hash, iconUrl.hashCode); + _$hash = $jc(_$hash, isInstalled.hashCode); + _$hash = $jc(_$hash, isNsfw.hashCode); + _$hash = $jc(_$hash, isObsolete.hashCode); + _$hash = $jc(_$hash, lang.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, not.hashCode); + _$hash = $jc(_$hash, or.hashCode); + _$hash = $jc(_$hash, pkgName.hashCode); + _$hash = $jc(_$hash, repo.hashCode); + _$hash = $jc(_$hash, versionCode.hashCode); + _$hash = $jc(_$hash, versionName.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GExtensionFilterInput') + ..add('and', and) + ..add('apkName', apkName) + ..add('hasUpdate', hasUpdate) + ..add('iconUrl', iconUrl) + ..add('isInstalled', isInstalled) + ..add('isNsfw', isNsfw) + ..add('isObsolete', isObsolete) + ..add('lang', lang) + ..add('name', name) + ..add('not', not) + ..add('or', or) + ..add('pkgName', pkgName) + ..add('repo', repo) + ..add('versionCode', versionCode) + ..add('versionName', versionName)) + .toString(); + } +} + +class GExtensionFilterInputBuilder + implements Builder { + _$GExtensionFilterInput? _$v; + + ListBuilder? _and; + ListBuilder get and => + _$this._and ??= new ListBuilder(); + set and(ListBuilder? and) => _$this._and = and; + + GStringFilterInputBuilder? _apkName; + GStringFilterInputBuilder get apkName => + _$this._apkName ??= new GStringFilterInputBuilder(); + set apkName(GStringFilterInputBuilder? apkName) => _$this._apkName = apkName; + + GBooleanFilterInputBuilder? _hasUpdate; + GBooleanFilterInputBuilder get hasUpdate => + _$this._hasUpdate ??= new GBooleanFilterInputBuilder(); + set hasUpdate(GBooleanFilterInputBuilder? hasUpdate) => + _$this._hasUpdate = hasUpdate; + + GStringFilterInputBuilder? _iconUrl; + GStringFilterInputBuilder get iconUrl => + _$this._iconUrl ??= new GStringFilterInputBuilder(); + set iconUrl(GStringFilterInputBuilder? iconUrl) => _$this._iconUrl = iconUrl; + + GBooleanFilterInputBuilder? _isInstalled; + GBooleanFilterInputBuilder get isInstalled => + _$this._isInstalled ??= new GBooleanFilterInputBuilder(); + set isInstalled(GBooleanFilterInputBuilder? isInstalled) => + _$this._isInstalled = isInstalled; + + GBooleanFilterInputBuilder? _isNsfw; + GBooleanFilterInputBuilder get isNsfw => + _$this._isNsfw ??= new GBooleanFilterInputBuilder(); + set isNsfw(GBooleanFilterInputBuilder? isNsfw) => _$this._isNsfw = isNsfw; + + GBooleanFilterInputBuilder? _isObsolete; + GBooleanFilterInputBuilder get isObsolete => + _$this._isObsolete ??= new GBooleanFilterInputBuilder(); + set isObsolete(GBooleanFilterInputBuilder? isObsolete) => + _$this._isObsolete = isObsolete; + + GStringFilterInputBuilder? _lang; + GStringFilterInputBuilder get lang => + _$this._lang ??= new GStringFilterInputBuilder(); + set lang(GStringFilterInputBuilder? lang) => _$this._lang = lang; + + GStringFilterInputBuilder? _name; + GStringFilterInputBuilder get name => + _$this._name ??= new GStringFilterInputBuilder(); + set name(GStringFilterInputBuilder? name) => _$this._name = name; + + GExtensionFilterInputBuilder? _not; + GExtensionFilterInputBuilder get not => + _$this._not ??= new GExtensionFilterInputBuilder(); + set not(GExtensionFilterInputBuilder? not) => _$this._not = not; + + ListBuilder? _or; + ListBuilder get or => + _$this._or ??= new ListBuilder(); + set or(ListBuilder? or) => _$this._or = or; + + GStringFilterInputBuilder? _pkgName; + GStringFilterInputBuilder get pkgName => + _$this._pkgName ??= new GStringFilterInputBuilder(); + set pkgName(GStringFilterInputBuilder? pkgName) => _$this._pkgName = pkgName; + + GStringFilterInputBuilder? _repo; + GStringFilterInputBuilder get repo => + _$this._repo ??= new GStringFilterInputBuilder(); + set repo(GStringFilterInputBuilder? repo) => _$this._repo = repo; + + GIntFilterInputBuilder? _versionCode; + GIntFilterInputBuilder get versionCode => + _$this._versionCode ??= new GIntFilterInputBuilder(); + set versionCode(GIntFilterInputBuilder? versionCode) => + _$this._versionCode = versionCode; + + GStringFilterInputBuilder? _versionName; + GStringFilterInputBuilder get versionName => + _$this._versionName ??= new GStringFilterInputBuilder(); + set versionName(GStringFilterInputBuilder? versionName) => + _$this._versionName = versionName; + + GExtensionFilterInputBuilder(); + + GExtensionFilterInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _and = $v.and?.toBuilder(); + _apkName = $v.apkName?.toBuilder(); + _hasUpdate = $v.hasUpdate?.toBuilder(); + _iconUrl = $v.iconUrl?.toBuilder(); + _isInstalled = $v.isInstalled?.toBuilder(); + _isNsfw = $v.isNsfw?.toBuilder(); + _isObsolete = $v.isObsolete?.toBuilder(); + _lang = $v.lang?.toBuilder(); + _name = $v.name?.toBuilder(); + _not = $v.not?.toBuilder(); + _or = $v.or?.toBuilder(); + _pkgName = $v.pkgName?.toBuilder(); + _repo = $v.repo?.toBuilder(); + _versionCode = $v.versionCode?.toBuilder(); + _versionName = $v.versionName?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GExtensionFilterInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GExtensionFilterInput; + } + + @override + void update(void Function(GExtensionFilterInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GExtensionFilterInput build() => _build(); + + _$GExtensionFilterInput _build() { + _$GExtensionFilterInput _$result; + try { + _$result = _$v ?? + new _$GExtensionFilterInput._( + and: _and?.build(), + apkName: _apkName?.build(), + hasUpdate: _hasUpdate?.build(), + iconUrl: _iconUrl?.build(), + isInstalled: _isInstalled?.build(), + isNsfw: _isNsfw?.build(), + isObsolete: _isObsolete?.build(), + lang: _lang?.build(), + name: _name?.build(), + not: _not?.build(), + or: _or?.build(), + pkgName: _pkgName?.build(), + repo: _repo?.build(), + versionCode: _versionCode?.build(), + versionName: _versionName?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'and'; + _and?.build(); + _$failedField = 'apkName'; + _apkName?.build(); + _$failedField = 'hasUpdate'; + _hasUpdate?.build(); + _$failedField = 'iconUrl'; + _iconUrl?.build(); + _$failedField = 'isInstalled'; + _isInstalled?.build(); + _$failedField = 'isNsfw'; + _isNsfw?.build(); + _$failedField = 'isObsolete'; + _isObsolete?.build(); + _$failedField = 'lang'; + _lang?.build(); + _$failedField = 'name'; + _name?.build(); + _$failedField = 'not'; + _not?.build(); + _$failedField = 'or'; + _or?.build(); + _$failedField = 'pkgName'; + _pkgName?.build(); + _$failedField = 'repo'; + _repo?.build(); + _$failedField = 'versionCode'; + _versionCode?.build(); + _$failedField = 'versionName'; + _versionName?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GExtensionFilterInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GFetchChapterPagesInput extends GFetchChapterPagesInput { + @override + final int chapterId; + @override + final String? clientMutationId; + + factory _$GFetchChapterPagesInput( + [void Function(GFetchChapterPagesInputBuilder)? updates]) => + (new GFetchChapterPagesInputBuilder()..update(updates))._build(); + + _$GFetchChapterPagesInput._({required this.chapterId, this.clientMutationId}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + chapterId, r'GFetchChapterPagesInput', 'chapterId'); + } + + @override + GFetchChapterPagesInput rebuild( + void Function(GFetchChapterPagesInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GFetchChapterPagesInputBuilder toBuilder() => + new GFetchChapterPagesInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFetchChapterPagesInput && + chapterId == other.chapterId && + clientMutationId == other.clientMutationId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, chapterId.hashCode); + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GFetchChapterPagesInput') + ..add('chapterId', chapterId) + ..add('clientMutationId', clientMutationId)) + .toString(); + } +} + +class GFetchChapterPagesInputBuilder + implements + Builder { + _$GFetchChapterPagesInput? _$v; + + int? _chapterId; + int? get chapterId => _$this._chapterId; + set chapterId(int? chapterId) => _$this._chapterId = chapterId; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GFetchChapterPagesInputBuilder(); + + GFetchChapterPagesInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _chapterId = $v.chapterId; + _clientMutationId = $v.clientMutationId; + _$v = null; + } + return this; + } + + @override + void replace(GFetchChapterPagesInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFetchChapterPagesInput; + } + + @override + void update(void Function(GFetchChapterPagesInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GFetchChapterPagesInput build() => _build(); + + _$GFetchChapterPagesInput _build() { + final _$result = _$v ?? + new _$GFetchChapterPagesInput._( + chapterId: BuiltValueNullFieldError.checkNotNull( + chapterId, r'GFetchChapterPagesInput', 'chapterId'), + clientMutationId: clientMutationId); + replace(_$result); + return _$result; + } +} + +class _$GFetchChaptersInput extends GFetchChaptersInput { + @override + final String? clientMutationId; + @override + final int mangaId; + + factory _$GFetchChaptersInput( + [void Function(GFetchChaptersInputBuilder)? updates]) => + (new GFetchChaptersInputBuilder()..update(updates))._build(); + + _$GFetchChaptersInput._({this.clientMutationId, required this.mangaId}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + mangaId, r'GFetchChaptersInput', 'mangaId'); + } + + @override + GFetchChaptersInput rebuild( + void Function(GFetchChaptersInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GFetchChaptersInputBuilder toBuilder() => + new GFetchChaptersInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFetchChaptersInput && + clientMutationId == other.clientMutationId && + mangaId == other.mangaId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, mangaId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GFetchChaptersInput') + ..add('clientMutationId', clientMutationId) + ..add('mangaId', mangaId)) + .toString(); + } +} + +class GFetchChaptersInputBuilder + implements Builder { + _$GFetchChaptersInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + int? _mangaId; + int? get mangaId => _$this._mangaId; + set mangaId(int? mangaId) => _$this._mangaId = mangaId; + + GFetchChaptersInputBuilder(); + + GFetchChaptersInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _mangaId = $v.mangaId; + _$v = null; + } + return this; + } + + @override + void replace(GFetchChaptersInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFetchChaptersInput; + } + + @override + void update(void Function(GFetchChaptersInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GFetchChaptersInput build() => _build(); + + _$GFetchChaptersInput _build() { + final _$result = _$v ?? + new _$GFetchChaptersInput._( + clientMutationId: clientMutationId, + mangaId: BuiltValueNullFieldError.checkNotNull( + mangaId, r'GFetchChaptersInput', 'mangaId')); + replace(_$result); + return _$result; + } +} + +class _$GFetchExtensionsInput extends GFetchExtensionsInput { + @override + final String? clientMutationId; + + factory _$GFetchExtensionsInput( + [void Function(GFetchExtensionsInputBuilder)? updates]) => + (new GFetchExtensionsInputBuilder()..update(updates))._build(); + + _$GFetchExtensionsInput._({this.clientMutationId}) : super._(); + + @override + GFetchExtensionsInput rebuild( + void Function(GFetchExtensionsInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GFetchExtensionsInputBuilder toBuilder() => + new GFetchExtensionsInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFetchExtensionsInput && + clientMutationId == other.clientMutationId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GFetchExtensionsInput') + ..add('clientMutationId', clientMutationId)) + .toString(); + } +} + +class GFetchExtensionsInputBuilder + implements Builder { + _$GFetchExtensionsInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GFetchExtensionsInputBuilder(); + + GFetchExtensionsInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _$v = null; + } + return this; + } + + @override + void replace(GFetchExtensionsInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFetchExtensionsInput; + } + + @override + void update(void Function(GFetchExtensionsInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GFetchExtensionsInput build() => _build(); + + _$GFetchExtensionsInput _build() { + final _$result = _$v ?? + new _$GFetchExtensionsInput._(clientMutationId: clientMutationId); + replace(_$result); + return _$result; + } +} + +class _$GFetchMangaInput extends GFetchMangaInput { + @override + final String? clientMutationId; + @override + final int id; + + factory _$GFetchMangaInput( + [void Function(GFetchMangaInputBuilder)? updates]) => + (new GFetchMangaInputBuilder()..update(updates))._build(); + + _$GFetchMangaInput._({this.clientMutationId, required this.id}) : super._() { + BuiltValueNullFieldError.checkNotNull(id, r'GFetchMangaInput', 'id'); + } + + @override + GFetchMangaInput rebuild(void Function(GFetchMangaInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GFetchMangaInputBuilder toBuilder() => + new GFetchMangaInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFetchMangaInput && + clientMutationId == other.clientMutationId && + id == other.id; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GFetchMangaInput') + ..add('clientMutationId', clientMutationId) + ..add('id', id)) + .toString(); + } +} + +class GFetchMangaInputBuilder + implements Builder { + _$GFetchMangaInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + GFetchMangaInputBuilder(); + + GFetchMangaInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _id = $v.id; + _$v = null; + } + return this; + } + + @override + void replace(GFetchMangaInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFetchMangaInput; + } + + @override + void update(void Function(GFetchMangaInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GFetchMangaInput build() => _build(); + + _$GFetchMangaInput _build() { + final _$result = _$v ?? + new _$GFetchMangaInput._( + clientMutationId: clientMutationId, + id: BuiltValueNullFieldError.checkNotNull( + id, r'GFetchMangaInput', 'id')); + replace(_$result); + return _$result; + } +} + +class _$GFetchSourceMangaInput extends GFetchSourceMangaInput { + @override + final String? clientMutationId; + @override + final BuiltList? filters; + @override + final int page; + @override + final String? query; + @override + final GLongString source; + @override + final GFetchSourceMangaType type; + + factory _$GFetchSourceMangaInput( + [void Function(GFetchSourceMangaInputBuilder)? updates]) => + (new GFetchSourceMangaInputBuilder()..update(updates))._build(); + + _$GFetchSourceMangaInput._( + {this.clientMutationId, + this.filters, + required this.page, + this.query, + required this.source, + required this.type}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + page, r'GFetchSourceMangaInput', 'page'); + BuiltValueNullFieldError.checkNotNull( + source, r'GFetchSourceMangaInput', 'source'); + BuiltValueNullFieldError.checkNotNull( + type, r'GFetchSourceMangaInput', 'type'); + } + + @override + GFetchSourceMangaInput rebuild( + void Function(GFetchSourceMangaInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GFetchSourceMangaInputBuilder toBuilder() => + new GFetchSourceMangaInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFetchSourceMangaInput && + clientMutationId == other.clientMutationId && + filters == other.filters && + page == other.page && + query == other.query && + source == other.source && + type == other.type; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, filters.hashCode); + _$hash = $jc(_$hash, page.hashCode); + _$hash = $jc(_$hash, query.hashCode); + _$hash = $jc(_$hash, source.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GFetchSourceMangaInput') + ..add('clientMutationId', clientMutationId) + ..add('filters', filters) + ..add('page', page) + ..add('query', query) + ..add('source', source) + ..add('type', type)) + .toString(); + } +} + +class GFetchSourceMangaInputBuilder + implements Builder { + _$GFetchSourceMangaInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + ListBuilder? _filters; + ListBuilder get filters => + _$this._filters ??= new ListBuilder(); + set filters(ListBuilder? filters) => + _$this._filters = filters; + + int? _page; + int? get page => _$this._page; + set page(int? page) => _$this._page = page; + + String? _query; + String? get query => _$this._query; + set query(String? query) => _$this._query = query; + + GLongStringBuilder? _source; + GLongStringBuilder get source => _$this._source ??= new GLongStringBuilder(); + set source(GLongStringBuilder? source) => _$this._source = source; + + GFetchSourceMangaType? _type; + GFetchSourceMangaType? get type => _$this._type; + set type(GFetchSourceMangaType? type) => _$this._type = type; + + GFetchSourceMangaInputBuilder(); + + GFetchSourceMangaInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _filters = $v.filters?.toBuilder(); + _page = $v.page; + _query = $v.query; + _source = $v.source.toBuilder(); + _type = $v.type; + _$v = null; + } + return this; + } + + @override + void replace(GFetchSourceMangaInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFetchSourceMangaInput; + } + + @override + void update(void Function(GFetchSourceMangaInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GFetchSourceMangaInput build() => _build(); + + _$GFetchSourceMangaInput _build() { + _$GFetchSourceMangaInput _$result; + try { + _$result = _$v ?? + new _$GFetchSourceMangaInput._( + clientMutationId: clientMutationId, + filters: _filters?.build(), + page: BuiltValueNullFieldError.checkNotNull( + page, r'GFetchSourceMangaInput', 'page'), + query: query, + source: source.build(), + type: BuiltValueNullFieldError.checkNotNull( + type, r'GFetchSourceMangaInput', 'type')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'filters'; + _filters?.build(); + + _$failedField = 'source'; + source.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GFetchSourceMangaInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GFilterChangeInput extends GFilterChangeInput { + @override + final bool? checkBoxState; + @override + final GFilterChangeInput? groupChange; + @override + final int position; + @override + final int? selectState; + @override + final GSortSelectionInput? sortState; + @override + final String? textState; + @override + final GTriState? triState; + + factory _$GFilterChangeInput( + [void Function(GFilterChangeInputBuilder)? updates]) => + (new GFilterChangeInputBuilder()..update(updates))._build(); + + _$GFilterChangeInput._( + {this.checkBoxState, + this.groupChange, + required this.position, + this.selectState, + this.sortState, + this.textState, + this.triState}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + position, r'GFilterChangeInput', 'position'); + } + + @override + GFilterChangeInput rebuild( + void Function(GFilterChangeInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GFilterChangeInputBuilder toBuilder() => + new GFilterChangeInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFilterChangeInput && + checkBoxState == other.checkBoxState && + groupChange == other.groupChange && + position == other.position && + selectState == other.selectState && + sortState == other.sortState && + textState == other.textState && + triState == other.triState; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, checkBoxState.hashCode); + _$hash = $jc(_$hash, groupChange.hashCode); + _$hash = $jc(_$hash, position.hashCode); + _$hash = $jc(_$hash, selectState.hashCode); + _$hash = $jc(_$hash, sortState.hashCode); + _$hash = $jc(_$hash, textState.hashCode); + _$hash = $jc(_$hash, triState.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GFilterChangeInput') + ..add('checkBoxState', checkBoxState) + ..add('groupChange', groupChange) + ..add('position', position) + ..add('selectState', selectState) + ..add('sortState', sortState) + ..add('textState', textState) + ..add('triState', triState)) + .toString(); + } +} + +class GFilterChangeInputBuilder + implements Builder { + _$GFilterChangeInput? _$v; + + bool? _checkBoxState; + bool? get checkBoxState => _$this._checkBoxState; + set checkBoxState(bool? checkBoxState) => + _$this._checkBoxState = checkBoxState; + + GFilterChangeInputBuilder? _groupChange; + GFilterChangeInputBuilder get groupChange => + _$this._groupChange ??= new GFilterChangeInputBuilder(); + set groupChange(GFilterChangeInputBuilder? groupChange) => + _$this._groupChange = groupChange; + + int? _position; + int? get position => _$this._position; + set position(int? position) => _$this._position = position; + + int? _selectState; + int? get selectState => _$this._selectState; + set selectState(int? selectState) => _$this._selectState = selectState; + + GSortSelectionInputBuilder? _sortState; + GSortSelectionInputBuilder get sortState => + _$this._sortState ??= new GSortSelectionInputBuilder(); + set sortState(GSortSelectionInputBuilder? sortState) => + _$this._sortState = sortState; + + String? _textState; + String? get textState => _$this._textState; + set textState(String? textState) => _$this._textState = textState; + + GTriState? _triState; + GTriState? get triState => _$this._triState; + set triState(GTriState? triState) => _$this._triState = triState; + + GFilterChangeInputBuilder(); + + GFilterChangeInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _checkBoxState = $v.checkBoxState; + _groupChange = $v.groupChange?.toBuilder(); + _position = $v.position; + _selectState = $v.selectState; + _sortState = $v.sortState?.toBuilder(); + _textState = $v.textState; + _triState = $v.triState; + _$v = null; + } + return this; + } + + @override + void replace(GFilterChangeInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFilterChangeInput; + } + + @override + void update(void Function(GFilterChangeInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GFilterChangeInput build() => _build(); + + _$GFilterChangeInput _build() { + _$GFilterChangeInput _$result; + try { + _$result = _$v ?? + new _$GFilterChangeInput._( + checkBoxState: checkBoxState, + groupChange: _groupChange?.build(), + position: BuiltValueNullFieldError.checkNotNull( + position, r'GFilterChangeInput', 'position'), + selectState: selectState, + sortState: _sortState?.build(), + textState: textState, + triState: triState); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'groupChange'; + _groupChange?.build(); + + _$failedField = 'sortState'; + _sortState?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GFilterChangeInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GFloatFilterInput extends GFloatFilterInput { + @override + final double? distinctFrom; + @override + final double? equalTo; + @override + final double? greaterThan; + @override + final double? greaterThanOrEqualTo; + @override + final BuiltList? Gin; + @override + final bool? isNull; + @override + final double? lessThan; + @override + final double? lessThanOrEqualTo; + @override + final double? notDistinctFrom; + @override + final double? notEqualTo; + @override + final BuiltList? notIn; + + factory _$GFloatFilterInput( + [void Function(GFloatFilterInputBuilder)? updates]) => + (new GFloatFilterInputBuilder()..update(updates))._build(); + + _$GFloatFilterInput._( + {this.distinctFrom, + this.equalTo, + this.greaterThan, + this.greaterThanOrEqualTo, + this.Gin, + this.isNull, + this.lessThan, + this.lessThanOrEqualTo, + this.notDistinctFrom, + this.notEqualTo, + this.notIn}) + : super._(); + + @override + GFloatFilterInput rebuild(void Function(GFloatFilterInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GFloatFilterInputBuilder toBuilder() => + new GFloatFilterInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFloatFilterInput && + distinctFrom == other.distinctFrom && + equalTo == other.equalTo && + greaterThan == other.greaterThan && + greaterThanOrEqualTo == other.greaterThanOrEqualTo && + Gin == other.Gin && + isNull == other.isNull && + lessThan == other.lessThan && + lessThanOrEqualTo == other.lessThanOrEqualTo && + notDistinctFrom == other.notDistinctFrom && + notEqualTo == other.notEqualTo && + notIn == other.notIn; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, distinctFrom.hashCode); + _$hash = $jc(_$hash, equalTo.hashCode); + _$hash = $jc(_$hash, greaterThan.hashCode); + _$hash = $jc(_$hash, greaterThanOrEqualTo.hashCode); + _$hash = $jc(_$hash, Gin.hashCode); + _$hash = $jc(_$hash, isNull.hashCode); + _$hash = $jc(_$hash, lessThan.hashCode); + _$hash = $jc(_$hash, lessThanOrEqualTo.hashCode); + _$hash = $jc(_$hash, notDistinctFrom.hashCode); + _$hash = $jc(_$hash, notEqualTo.hashCode); + _$hash = $jc(_$hash, notIn.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GFloatFilterInput') + ..add('distinctFrom', distinctFrom) + ..add('equalTo', equalTo) + ..add('greaterThan', greaterThan) + ..add('greaterThanOrEqualTo', greaterThanOrEqualTo) + ..add('Gin', Gin) + ..add('isNull', isNull) + ..add('lessThan', lessThan) + ..add('lessThanOrEqualTo', lessThanOrEqualTo) + ..add('notDistinctFrom', notDistinctFrom) + ..add('notEqualTo', notEqualTo) + ..add('notIn', notIn)) + .toString(); + } +} + +class GFloatFilterInputBuilder + implements Builder { + _$GFloatFilterInput? _$v; + + double? _distinctFrom; + double? get distinctFrom => _$this._distinctFrom; + set distinctFrom(double? distinctFrom) => _$this._distinctFrom = distinctFrom; + + double? _equalTo; + double? get equalTo => _$this._equalTo; + set equalTo(double? equalTo) => _$this._equalTo = equalTo; + + double? _greaterThan; + double? get greaterThan => _$this._greaterThan; + set greaterThan(double? greaterThan) => _$this._greaterThan = greaterThan; + + double? _greaterThanOrEqualTo; + double? get greaterThanOrEqualTo => _$this._greaterThanOrEqualTo; + set greaterThanOrEqualTo(double? greaterThanOrEqualTo) => + _$this._greaterThanOrEqualTo = greaterThanOrEqualTo; + + ListBuilder? _Gin; + ListBuilder get Gin => _$this._Gin ??= new ListBuilder(); + set Gin(ListBuilder? Gin) => _$this._Gin = Gin; + + bool? _isNull; + bool? get isNull => _$this._isNull; + set isNull(bool? isNull) => _$this._isNull = isNull; + + double? _lessThan; + double? get lessThan => _$this._lessThan; + set lessThan(double? lessThan) => _$this._lessThan = lessThan; + + double? _lessThanOrEqualTo; + double? get lessThanOrEqualTo => _$this._lessThanOrEqualTo; + set lessThanOrEqualTo(double? lessThanOrEqualTo) => + _$this._lessThanOrEqualTo = lessThanOrEqualTo; + + double? _notDistinctFrom; + double? get notDistinctFrom => _$this._notDistinctFrom; + set notDistinctFrom(double? notDistinctFrom) => + _$this._notDistinctFrom = notDistinctFrom; + + double? _notEqualTo; + double? get notEqualTo => _$this._notEqualTo; + set notEqualTo(double? notEqualTo) => _$this._notEqualTo = notEqualTo; + + ListBuilder? _notIn; + ListBuilder get notIn => _$this._notIn ??= new ListBuilder(); + set notIn(ListBuilder? notIn) => _$this._notIn = notIn; + + GFloatFilterInputBuilder(); + + GFloatFilterInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _distinctFrom = $v.distinctFrom; + _equalTo = $v.equalTo; + _greaterThan = $v.greaterThan; + _greaterThanOrEqualTo = $v.greaterThanOrEqualTo; + _Gin = $v.Gin?.toBuilder(); + _isNull = $v.isNull; + _lessThan = $v.lessThan; + _lessThanOrEqualTo = $v.lessThanOrEqualTo; + _notDistinctFrom = $v.notDistinctFrom; + _notEqualTo = $v.notEqualTo; + _notIn = $v.notIn?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GFloatFilterInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFloatFilterInput; + } + + @override + void update(void Function(GFloatFilterInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GFloatFilterInput build() => _build(); + + _$GFloatFilterInput _build() { + _$GFloatFilterInput _$result; + try { + _$result = _$v ?? + new _$GFloatFilterInput._( + distinctFrom: distinctFrom, + equalTo: equalTo, + greaterThan: greaterThan, + greaterThanOrEqualTo: greaterThanOrEqualTo, + Gin: _Gin?.build(), + isNull: isNull, + lessThan: lessThan, + lessThanOrEqualTo: lessThanOrEqualTo, + notDistinctFrom: notDistinctFrom, + notEqualTo: notEqualTo, + notIn: _notIn?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'Gin'; + _Gin?.build(); + + _$failedField = 'notIn'; + _notIn?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GFloatFilterInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GGlobalMetaTypeInput extends GGlobalMetaTypeInput { + @override + final String key; + @override + final String value; + + factory _$GGlobalMetaTypeInput( + [void Function(GGlobalMetaTypeInputBuilder)? updates]) => + (new GGlobalMetaTypeInputBuilder()..update(updates))._build(); + + _$GGlobalMetaTypeInput._({required this.key, required this.value}) + : super._() { + BuiltValueNullFieldError.checkNotNull(key, r'GGlobalMetaTypeInput', 'key'); + BuiltValueNullFieldError.checkNotNull( + value, r'GGlobalMetaTypeInput', 'value'); + } + + @override + GGlobalMetaTypeInput rebuild( + void Function(GGlobalMetaTypeInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GGlobalMetaTypeInputBuilder toBuilder() => + new GGlobalMetaTypeInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GGlobalMetaTypeInput && + key == other.key && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GGlobalMetaTypeInput') + ..add('key', key) + ..add('value', value)) + .toString(); + } +} + +class GGlobalMetaTypeInputBuilder + implements Builder { + _$GGlobalMetaTypeInput? _$v; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GGlobalMetaTypeInputBuilder(); + + GGlobalMetaTypeInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _key = $v.key; + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GGlobalMetaTypeInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GGlobalMetaTypeInput; + } + + @override + void update(void Function(GGlobalMetaTypeInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GGlobalMetaTypeInput build() => _build(); + + _$GGlobalMetaTypeInput _build() { + final _$result = _$v ?? + new _$GGlobalMetaTypeInput._( + key: BuiltValueNullFieldError.checkNotNull( + key, r'GGlobalMetaTypeInput', 'key'), + value: BuiltValueNullFieldError.checkNotNull( + value, r'GGlobalMetaTypeInput', 'value')); + replace(_$result); + return _$result; + } +} + +class _$GInstallExternalExtensionInput extends GInstallExternalExtensionInput { + @override + final String? clientMutationId; + @override + final _i3.MultipartFile extensionFile; + + factory _$GInstallExternalExtensionInput( + [void Function(GInstallExternalExtensionInputBuilder)? updates]) => + (new GInstallExternalExtensionInputBuilder()..update(updates))._build(); + + _$GInstallExternalExtensionInput._( + {this.clientMutationId, required this.extensionFile}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + extensionFile, r'GInstallExternalExtensionInput', 'extensionFile'); + } + + @override + GInstallExternalExtensionInput rebuild( + void Function(GInstallExternalExtensionInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GInstallExternalExtensionInputBuilder toBuilder() => + new GInstallExternalExtensionInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GInstallExternalExtensionInput && + clientMutationId == other.clientMutationId && + extensionFile == other.extensionFile; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, extensionFile.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GInstallExternalExtensionInput') + ..add('clientMutationId', clientMutationId) + ..add('extensionFile', extensionFile)) + .toString(); + } +} + +class GInstallExternalExtensionInputBuilder + implements + Builder { + _$GInstallExternalExtensionInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + _i3.MultipartFile? _extensionFile; + _i3.MultipartFile? get extensionFile => _$this._extensionFile; + set extensionFile(_i3.MultipartFile? extensionFile) => + _$this._extensionFile = extensionFile; + + GInstallExternalExtensionInputBuilder(); + + GInstallExternalExtensionInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _extensionFile = $v.extensionFile; + _$v = null; + } + return this; + } + + @override + void replace(GInstallExternalExtensionInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GInstallExternalExtensionInput; + } + + @override + void update(void Function(GInstallExternalExtensionInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GInstallExternalExtensionInput build() => _build(); + + _$GInstallExternalExtensionInput _build() { + final _$result = _$v ?? + new _$GInstallExternalExtensionInput._( + clientMutationId: clientMutationId, + extensionFile: BuiltValueNullFieldError.checkNotNull(extensionFile, + r'GInstallExternalExtensionInput', 'extensionFile')); + replace(_$result); + return _$result; + } +} + +class _$GIntFilterInput extends GIntFilterInput { + @override + final int? distinctFrom; + @override + final int? equalTo; + @override + final int? greaterThan; + @override + final int? greaterThanOrEqualTo; + @override + final BuiltList? Gin; + @override + final bool? isNull; + @override + final int? lessThan; + @override + final int? lessThanOrEqualTo; + @override + final int? notDistinctFrom; + @override + final int? notEqualTo; + @override + final BuiltList? notIn; + + factory _$GIntFilterInput([void Function(GIntFilterInputBuilder)? updates]) => + (new GIntFilterInputBuilder()..update(updates))._build(); + + _$GIntFilterInput._( + {this.distinctFrom, + this.equalTo, + this.greaterThan, + this.greaterThanOrEqualTo, + this.Gin, + this.isNull, + this.lessThan, + this.lessThanOrEqualTo, + this.notDistinctFrom, + this.notEqualTo, + this.notIn}) + : super._(); + + @override + GIntFilterInput rebuild(void Function(GIntFilterInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GIntFilterInputBuilder toBuilder() => + new GIntFilterInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GIntFilterInput && + distinctFrom == other.distinctFrom && + equalTo == other.equalTo && + greaterThan == other.greaterThan && + greaterThanOrEqualTo == other.greaterThanOrEqualTo && + Gin == other.Gin && + isNull == other.isNull && + lessThan == other.lessThan && + lessThanOrEqualTo == other.lessThanOrEqualTo && + notDistinctFrom == other.notDistinctFrom && + notEqualTo == other.notEqualTo && + notIn == other.notIn; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, distinctFrom.hashCode); + _$hash = $jc(_$hash, equalTo.hashCode); + _$hash = $jc(_$hash, greaterThan.hashCode); + _$hash = $jc(_$hash, greaterThanOrEqualTo.hashCode); + _$hash = $jc(_$hash, Gin.hashCode); + _$hash = $jc(_$hash, isNull.hashCode); + _$hash = $jc(_$hash, lessThan.hashCode); + _$hash = $jc(_$hash, lessThanOrEqualTo.hashCode); + _$hash = $jc(_$hash, notDistinctFrom.hashCode); + _$hash = $jc(_$hash, notEqualTo.hashCode); + _$hash = $jc(_$hash, notIn.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GIntFilterInput') + ..add('distinctFrom', distinctFrom) + ..add('equalTo', equalTo) + ..add('greaterThan', greaterThan) + ..add('greaterThanOrEqualTo', greaterThanOrEqualTo) + ..add('Gin', Gin) + ..add('isNull', isNull) + ..add('lessThan', lessThan) + ..add('lessThanOrEqualTo', lessThanOrEqualTo) + ..add('notDistinctFrom', notDistinctFrom) + ..add('notEqualTo', notEqualTo) + ..add('notIn', notIn)) + .toString(); + } +} + +class GIntFilterInputBuilder + implements Builder { + _$GIntFilterInput? _$v; + + int? _distinctFrom; + int? get distinctFrom => _$this._distinctFrom; + set distinctFrom(int? distinctFrom) => _$this._distinctFrom = distinctFrom; + + int? _equalTo; + int? get equalTo => _$this._equalTo; + set equalTo(int? equalTo) => _$this._equalTo = equalTo; + + int? _greaterThan; + int? get greaterThan => _$this._greaterThan; + set greaterThan(int? greaterThan) => _$this._greaterThan = greaterThan; + + int? _greaterThanOrEqualTo; + int? get greaterThanOrEqualTo => _$this._greaterThanOrEqualTo; + set greaterThanOrEqualTo(int? greaterThanOrEqualTo) => + _$this._greaterThanOrEqualTo = greaterThanOrEqualTo; + + ListBuilder? _Gin; + ListBuilder get Gin => _$this._Gin ??= new ListBuilder(); + set Gin(ListBuilder? Gin) => _$this._Gin = Gin; + + bool? _isNull; + bool? get isNull => _$this._isNull; + set isNull(bool? isNull) => _$this._isNull = isNull; + + int? _lessThan; + int? get lessThan => _$this._lessThan; + set lessThan(int? lessThan) => _$this._lessThan = lessThan; + + int? _lessThanOrEqualTo; + int? get lessThanOrEqualTo => _$this._lessThanOrEqualTo; + set lessThanOrEqualTo(int? lessThanOrEqualTo) => + _$this._lessThanOrEqualTo = lessThanOrEqualTo; + + int? _notDistinctFrom; + int? get notDistinctFrom => _$this._notDistinctFrom; + set notDistinctFrom(int? notDistinctFrom) => + _$this._notDistinctFrom = notDistinctFrom; + + int? _notEqualTo; + int? get notEqualTo => _$this._notEqualTo; + set notEqualTo(int? notEqualTo) => _$this._notEqualTo = notEqualTo; + + ListBuilder? _notIn; + ListBuilder get notIn => _$this._notIn ??= new ListBuilder(); + set notIn(ListBuilder? notIn) => _$this._notIn = notIn; + + GIntFilterInputBuilder(); + + GIntFilterInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _distinctFrom = $v.distinctFrom; + _equalTo = $v.equalTo; + _greaterThan = $v.greaterThan; + _greaterThanOrEqualTo = $v.greaterThanOrEqualTo; + _Gin = $v.Gin?.toBuilder(); + _isNull = $v.isNull; + _lessThan = $v.lessThan; + _lessThanOrEqualTo = $v.lessThanOrEqualTo; + _notDistinctFrom = $v.notDistinctFrom; + _notEqualTo = $v.notEqualTo; + _notIn = $v.notIn?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GIntFilterInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GIntFilterInput; + } + + @override + void update(void Function(GIntFilterInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GIntFilterInput build() => _build(); + + _$GIntFilterInput _build() { + _$GIntFilterInput _$result; + try { + _$result = _$v ?? + new _$GIntFilterInput._( + distinctFrom: distinctFrom, + equalTo: equalTo, + greaterThan: greaterThan, + greaterThanOrEqualTo: greaterThanOrEqualTo, + Gin: _Gin?.build(), + isNull: isNull, + lessThan: lessThan, + lessThanOrEqualTo: lessThanOrEqualTo, + notDistinctFrom: notDistinctFrom, + notEqualTo: notEqualTo, + notIn: _notIn?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'Gin'; + _Gin?.build(); + + _$failedField = 'notIn'; + _notIn?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GIntFilterInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GLoginTrackerCredentialsInput extends GLoginTrackerCredentialsInput { + @override + final String? clientMutationId; + @override + final String password; + @override + final int trackerId; + @override + final String username; + + factory _$GLoginTrackerCredentialsInput( + [void Function(GLoginTrackerCredentialsInputBuilder)? updates]) => + (new GLoginTrackerCredentialsInputBuilder()..update(updates))._build(); + + _$GLoginTrackerCredentialsInput._( + {this.clientMutationId, + required this.password, + required this.trackerId, + required this.username}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + password, r'GLoginTrackerCredentialsInput', 'password'); + BuiltValueNullFieldError.checkNotNull( + trackerId, r'GLoginTrackerCredentialsInput', 'trackerId'); + BuiltValueNullFieldError.checkNotNull( + username, r'GLoginTrackerCredentialsInput', 'username'); + } + + @override + GLoginTrackerCredentialsInput rebuild( + void Function(GLoginTrackerCredentialsInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GLoginTrackerCredentialsInputBuilder toBuilder() => + new GLoginTrackerCredentialsInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GLoginTrackerCredentialsInput && + clientMutationId == other.clientMutationId && + password == other.password && + trackerId == other.trackerId && + username == other.username; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, password.hashCode); + _$hash = $jc(_$hash, trackerId.hashCode); + _$hash = $jc(_$hash, username.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GLoginTrackerCredentialsInput') + ..add('clientMutationId', clientMutationId) + ..add('password', password) + ..add('trackerId', trackerId) + ..add('username', username)) + .toString(); + } +} + +class GLoginTrackerCredentialsInputBuilder + implements + Builder { + _$GLoginTrackerCredentialsInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + String? _password; + String? get password => _$this._password; + set password(String? password) => _$this._password = password; + + int? _trackerId; + int? get trackerId => _$this._trackerId; + set trackerId(int? trackerId) => _$this._trackerId = trackerId; + + String? _username; + String? get username => _$this._username; + set username(String? username) => _$this._username = username; + + GLoginTrackerCredentialsInputBuilder(); + + GLoginTrackerCredentialsInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _password = $v.password; + _trackerId = $v.trackerId; + _username = $v.username; + _$v = null; + } + return this; + } + + @override + void replace(GLoginTrackerCredentialsInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GLoginTrackerCredentialsInput; + } + + @override + void update(void Function(GLoginTrackerCredentialsInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GLoginTrackerCredentialsInput build() => _build(); + + _$GLoginTrackerCredentialsInput _build() { + final _$result = _$v ?? + new _$GLoginTrackerCredentialsInput._( + clientMutationId: clientMutationId, + password: BuiltValueNullFieldError.checkNotNull( + password, r'GLoginTrackerCredentialsInput', 'password'), + trackerId: BuiltValueNullFieldError.checkNotNull( + trackerId, r'GLoginTrackerCredentialsInput', 'trackerId'), + username: BuiltValueNullFieldError.checkNotNull( + username, r'GLoginTrackerCredentialsInput', 'username')); + replace(_$result); + return _$result; + } +} + +class _$GLoginTrackerOAuthInput extends GLoginTrackerOAuthInput { + @override + final String callbackUrl; + @override + final String? clientMutationId; + @override + final int trackerId; + + factory _$GLoginTrackerOAuthInput( + [void Function(GLoginTrackerOAuthInputBuilder)? updates]) => + (new GLoginTrackerOAuthInputBuilder()..update(updates))._build(); + + _$GLoginTrackerOAuthInput._( + {required this.callbackUrl, + this.clientMutationId, + required this.trackerId}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + callbackUrl, r'GLoginTrackerOAuthInput', 'callbackUrl'); + BuiltValueNullFieldError.checkNotNull( + trackerId, r'GLoginTrackerOAuthInput', 'trackerId'); + } + + @override + GLoginTrackerOAuthInput rebuild( + void Function(GLoginTrackerOAuthInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GLoginTrackerOAuthInputBuilder toBuilder() => + new GLoginTrackerOAuthInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GLoginTrackerOAuthInput && + callbackUrl == other.callbackUrl && + clientMutationId == other.clientMutationId && + trackerId == other.trackerId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, callbackUrl.hashCode); + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, trackerId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GLoginTrackerOAuthInput') + ..add('callbackUrl', callbackUrl) + ..add('clientMutationId', clientMutationId) + ..add('trackerId', trackerId)) + .toString(); + } +} + +class GLoginTrackerOAuthInputBuilder + implements + Builder { + _$GLoginTrackerOAuthInput? _$v; + + String? _callbackUrl; + String? get callbackUrl => _$this._callbackUrl; + set callbackUrl(String? callbackUrl) => _$this._callbackUrl = callbackUrl; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + int? _trackerId; + int? get trackerId => _$this._trackerId; + set trackerId(int? trackerId) => _$this._trackerId = trackerId; + + GLoginTrackerOAuthInputBuilder(); + + GLoginTrackerOAuthInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _callbackUrl = $v.callbackUrl; + _clientMutationId = $v.clientMutationId; + _trackerId = $v.trackerId; + _$v = null; + } + return this; + } + + @override + void replace(GLoginTrackerOAuthInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GLoginTrackerOAuthInput; + } + + @override + void update(void Function(GLoginTrackerOAuthInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GLoginTrackerOAuthInput build() => _build(); + + _$GLoginTrackerOAuthInput _build() { + final _$result = _$v ?? + new _$GLoginTrackerOAuthInput._( + callbackUrl: BuiltValueNullFieldError.checkNotNull( + callbackUrl, r'GLoginTrackerOAuthInput', 'callbackUrl'), + clientMutationId: clientMutationId, + trackerId: BuiltValueNullFieldError.checkNotNull( + trackerId, r'GLoginTrackerOAuthInput', 'trackerId')); + replace(_$result); + return _$result; + } +} + +class _$GLogoutTrackerInput extends GLogoutTrackerInput { + @override + final String? clientMutationId; + @override + final int trackerId; + + factory _$GLogoutTrackerInput( + [void Function(GLogoutTrackerInputBuilder)? updates]) => + (new GLogoutTrackerInputBuilder()..update(updates))._build(); + + _$GLogoutTrackerInput._({this.clientMutationId, required this.trackerId}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + trackerId, r'GLogoutTrackerInput', 'trackerId'); + } + + @override + GLogoutTrackerInput rebuild( + void Function(GLogoutTrackerInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GLogoutTrackerInputBuilder toBuilder() => + new GLogoutTrackerInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GLogoutTrackerInput && + clientMutationId == other.clientMutationId && + trackerId == other.trackerId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, trackerId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GLogoutTrackerInput') + ..add('clientMutationId', clientMutationId) + ..add('trackerId', trackerId)) + .toString(); + } +} + +class GLogoutTrackerInputBuilder + implements Builder { + _$GLogoutTrackerInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + int? _trackerId; + int? get trackerId => _$this._trackerId; + set trackerId(int? trackerId) => _$this._trackerId = trackerId; + + GLogoutTrackerInputBuilder(); + + GLogoutTrackerInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _trackerId = $v.trackerId; + _$v = null; + } + return this; + } + + @override + void replace(GLogoutTrackerInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GLogoutTrackerInput; + } + + @override + void update(void Function(GLogoutTrackerInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GLogoutTrackerInput build() => _build(); + + _$GLogoutTrackerInput _build() { + final _$result = _$v ?? + new _$GLogoutTrackerInput._( + clientMutationId: clientMutationId, + trackerId: BuiltValueNullFieldError.checkNotNull( + trackerId, r'GLogoutTrackerInput', 'trackerId')); + replace(_$result); + return _$result; + } +} + +class _$GLongFilterInput extends GLongFilterInput { + @override + final GLongString? distinctFrom; + @override + final GLongString? equalTo; + @override + final GLongString? greaterThan; + @override + final GLongString? greaterThanOrEqualTo; + @override + final BuiltList? Gin; + @override + final bool? isNull; + @override + final GLongString? lessThan; + @override + final GLongString? lessThanOrEqualTo; + @override + final GLongString? notDistinctFrom; + @override + final GLongString? notEqualTo; + @override + final BuiltList? notIn; + + factory _$GLongFilterInput( + [void Function(GLongFilterInputBuilder)? updates]) => + (new GLongFilterInputBuilder()..update(updates))._build(); + + _$GLongFilterInput._( + {this.distinctFrom, + this.equalTo, + this.greaterThan, + this.greaterThanOrEqualTo, + this.Gin, + this.isNull, + this.lessThan, + this.lessThanOrEqualTo, + this.notDistinctFrom, + this.notEqualTo, + this.notIn}) + : super._(); + + @override + GLongFilterInput rebuild(void Function(GLongFilterInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GLongFilterInputBuilder toBuilder() => + new GLongFilterInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GLongFilterInput && + distinctFrom == other.distinctFrom && + equalTo == other.equalTo && + greaterThan == other.greaterThan && + greaterThanOrEqualTo == other.greaterThanOrEqualTo && + Gin == other.Gin && + isNull == other.isNull && + lessThan == other.lessThan && + lessThanOrEqualTo == other.lessThanOrEqualTo && + notDistinctFrom == other.notDistinctFrom && + notEqualTo == other.notEqualTo && + notIn == other.notIn; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, distinctFrom.hashCode); + _$hash = $jc(_$hash, equalTo.hashCode); + _$hash = $jc(_$hash, greaterThan.hashCode); + _$hash = $jc(_$hash, greaterThanOrEqualTo.hashCode); + _$hash = $jc(_$hash, Gin.hashCode); + _$hash = $jc(_$hash, isNull.hashCode); + _$hash = $jc(_$hash, lessThan.hashCode); + _$hash = $jc(_$hash, lessThanOrEqualTo.hashCode); + _$hash = $jc(_$hash, notDistinctFrom.hashCode); + _$hash = $jc(_$hash, notEqualTo.hashCode); + _$hash = $jc(_$hash, notIn.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GLongFilterInput') + ..add('distinctFrom', distinctFrom) + ..add('equalTo', equalTo) + ..add('greaterThan', greaterThan) + ..add('greaterThanOrEqualTo', greaterThanOrEqualTo) + ..add('Gin', Gin) + ..add('isNull', isNull) + ..add('lessThan', lessThan) + ..add('lessThanOrEqualTo', lessThanOrEqualTo) + ..add('notDistinctFrom', notDistinctFrom) + ..add('notEqualTo', notEqualTo) + ..add('notIn', notIn)) + .toString(); + } +} + +class GLongFilterInputBuilder + implements Builder { + _$GLongFilterInput? _$v; + + GLongStringBuilder? _distinctFrom; + GLongStringBuilder get distinctFrom => + _$this._distinctFrom ??= new GLongStringBuilder(); + set distinctFrom(GLongStringBuilder? distinctFrom) => + _$this._distinctFrom = distinctFrom; + + GLongStringBuilder? _equalTo; + GLongStringBuilder get equalTo => + _$this._equalTo ??= new GLongStringBuilder(); + set equalTo(GLongStringBuilder? equalTo) => _$this._equalTo = equalTo; + + GLongStringBuilder? _greaterThan; + GLongStringBuilder get greaterThan => + _$this._greaterThan ??= new GLongStringBuilder(); + set greaterThan(GLongStringBuilder? greaterThan) => + _$this._greaterThan = greaterThan; + + GLongStringBuilder? _greaterThanOrEqualTo; + GLongStringBuilder get greaterThanOrEqualTo => + _$this._greaterThanOrEqualTo ??= new GLongStringBuilder(); + set greaterThanOrEqualTo(GLongStringBuilder? greaterThanOrEqualTo) => + _$this._greaterThanOrEqualTo = greaterThanOrEqualTo; + + ListBuilder? _Gin; + ListBuilder get Gin => + _$this._Gin ??= new ListBuilder(); + set Gin(ListBuilder? Gin) => _$this._Gin = Gin; + + bool? _isNull; + bool? get isNull => _$this._isNull; + set isNull(bool? isNull) => _$this._isNull = isNull; + + GLongStringBuilder? _lessThan; + GLongStringBuilder get lessThan => + _$this._lessThan ??= new GLongStringBuilder(); + set lessThan(GLongStringBuilder? lessThan) => _$this._lessThan = lessThan; + + GLongStringBuilder? _lessThanOrEqualTo; + GLongStringBuilder get lessThanOrEqualTo => + _$this._lessThanOrEqualTo ??= new GLongStringBuilder(); + set lessThanOrEqualTo(GLongStringBuilder? lessThanOrEqualTo) => + _$this._lessThanOrEqualTo = lessThanOrEqualTo; + + GLongStringBuilder? _notDistinctFrom; + GLongStringBuilder get notDistinctFrom => + _$this._notDistinctFrom ??= new GLongStringBuilder(); + set notDistinctFrom(GLongStringBuilder? notDistinctFrom) => + _$this._notDistinctFrom = notDistinctFrom; + + GLongStringBuilder? _notEqualTo; + GLongStringBuilder get notEqualTo => + _$this._notEqualTo ??= new GLongStringBuilder(); + set notEqualTo(GLongStringBuilder? notEqualTo) => + _$this._notEqualTo = notEqualTo; + + ListBuilder? _notIn; + ListBuilder get notIn => + _$this._notIn ??= new ListBuilder(); + set notIn(ListBuilder? notIn) => _$this._notIn = notIn; + + GLongFilterInputBuilder(); + + GLongFilterInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _distinctFrom = $v.distinctFrom?.toBuilder(); + _equalTo = $v.equalTo?.toBuilder(); + _greaterThan = $v.greaterThan?.toBuilder(); + _greaterThanOrEqualTo = $v.greaterThanOrEqualTo?.toBuilder(); + _Gin = $v.Gin?.toBuilder(); + _isNull = $v.isNull; + _lessThan = $v.lessThan?.toBuilder(); + _lessThanOrEqualTo = $v.lessThanOrEqualTo?.toBuilder(); + _notDistinctFrom = $v.notDistinctFrom?.toBuilder(); + _notEqualTo = $v.notEqualTo?.toBuilder(); + _notIn = $v.notIn?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GLongFilterInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GLongFilterInput; + } + + @override + void update(void Function(GLongFilterInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GLongFilterInput build() => _build(); + + _$GLongFilterInput _build() { + _$GLongFilterInput _$result; + try { + _$result = _$v ?? + new _$GLongFilterInput._( + distinctFrom: _distinctFrom?.build(), + equalTo: _equalTo?.build(), + greaterThan: _greaterThan?.build(), + greaterThanOrEqualTo: _greaterThanOrEqualTo?.build(), + Gin: _Gin?.build(), + isNull: isNull, + lessThan: _lessThan?.build(), + lessThanOrEqualTo: _lessThanOrEqualTo?.build(), + notDistinctFrom: _notDistinctFrom?.build(), + notEqualTo: _notEqualTo?.build(), + notIn: _notIn?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'distinctFrom'; + _distinctFrom?.build(); + _$failedField = 'equalTo'; + _equalTo?.build(); + _$failedField = 'greaterThan'; + _greaterThan?.build(); + _$failedField = 'greaterThanOrEqualTo'; + _greaterThanOrEqualTo?.build(); + _$failedField = 'Gin'; + _Gin?.build(); + + _$failedField = 'lessThan'; + _lessThan?.build(); + _$failedField = 'lessThanOrEqualTo'; + _lessThanOrEqualTo?.build(); + _$failedField = 'notDistinctFrom'; + _notDistinctFrom?.build(); + _$failedField = 'notEqualTo'; + _notEqualTo?.build(); + _$failedField = 'notIn'; + _notIn?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GLongFilterInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GLongString extends GLongString { + @override + final String value; + + factory _$GLongString([void Function(GLongStringBuilder)? updates]) => + (new GLongStringBuilder()..update(updates))._build(); + + _$GLongString._({required this.value}) : super._() { + BuiltValueNullFieldError.checkNotNull(value, r'GLongString', 'value'); + } + + @override + GLongString rebuild(void Function(GLongStringBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GLongStringBuilder toBuilder() => new GLongStringBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GLongString && value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GLongString')..add('value', value)) + .toString(); + } +} + +class GLongStringBuilder implements Builder { + _$GLongString? _$v; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GLongStringBuilder(); + + GLongStringBuilder get _$this { + final $v = _$v; + if ($v != null) { + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GLongString other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GLongString; + } + + @override + void update(void Function(GLongStringBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GLongString build() => _build(); + + _$GLongString _build() { + final _$result = _$v ?? + new _$GLongString._( + value: BuiltValueNullFieldError.checkNotNull( + value, r'GLongString', 'value')); + replace(_$result); + return _$result; + } +} + +class _$GMangaConditionInput extends GMangaConditionInput { + @override + final String? artist; + @override + final String? author; + @override + final BuiltList? categoryIds; + @override + final GLongString? chaptersLastFetchedAt; + @override + final String? description; + @override + final BuiltList? genre; + @override + final int? id; + @override + final bool? inLibrary; + @override + final GLongString? inLibraryAt; + @override + final bool? initialized; + @override + final GLongString? lastFetchedAt; + @override + final String? realUrl; + @override + final GLongString? sourceId; + @override + final GMangaStatus? status; + @override + final String? thumbnailUrl; + @override + final String? title; + @override + final String? url; + + factory _$GMangaConditionInput( + [void Function(GMangaConditionInputBuilder)? updates]) => + (new GMangaConditionInputBuilder()..update(updates))._build(); + + _$GMangaConditionInput._( + {this.artist, + this.author, + this.categoryIds, + this.chaptersLastFetchedAt, + this.description, + this.genre, + this.id, + this.inLibrary, + this.inLibraryAt, + this.initialized, + this.lastFetchedAt, + this.realUrl, + this.sourceId, + this.status, + this.thumbnailUrl, + this.title, + this.url}) + : super._(); + + @override + GMangaConditionInput rebuild( + void Function(GMangaConditionInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GMangaConditionInputBuilder toBuilder() => + new GMangaConditionInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMangaConditionInput && + artist == other.artist && + author == other.author && + categoryIds == other.categoryIds && + chaptersLastFetchedAt == other.chaptersLastFetchedAt && + description == other.description && + genre == other.genre && + id == other.id && + inLibrary == other.inLibrary && + inLibraryAt == other.inLibraryAt && + initialized == other.initialized && + lastFetchedAt == other.lastFetchedAt && + realUrl == other.realUrl && + sourceId == other.sourceId && + status == other.status && + thumbnailUrl == other.thumbnailUrl && + title == other.title && + url == other.url; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, artist.hashCode); + _$hash = $jc(_$hash, author.hashCode); + _$hash = $jc(_$hash, categoryIds.hashCode); + _$hash = $jc(_$hash, chaptersLastFetchedAt.hashCode); + _$hash = $jc(_$hash, description.hashCode); + _$hash = $jc(_$hash, genre.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, inLibrary.hashCode); + _$hash = $jc(_$hash, inLibraryAt.hashCode); + _$hash = $jc(_$hash, initialized.hashCode); + _$hash = $jc(_$hash, lastFetchedAt.hashCode); + _$hash = $jc(_$hash, realUrl.hashCode); + _$hash = $jc(_$hash, sourceId.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jc(_$hash, thumbnailUrl.hashCode); + _$hash = $jc(_$hash, title.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GMangaConditionInput') + ..add('artist', artist) + ..add('author', author) + ..add('categoryIds', categoryIds) + ..add('chaptersLastFetchedAt', chaptersLastFetchedAt) + ..add('description', description) + ..add('genre', genre) + ..add('id', id) + ..add('inLibrary', inLibrary) + ..add('inLibraryAt', inLibraryAt) + ..add('initialized', initialized) + ..add('lastFetchedAt', lastFetchedAt) + ..add('realUrl', realUrl) + ..add('sourceId', sourceId) + ..add('status', status) + ..add('thumbnailUrl', thumbnailUrl) + ..add('title', title) + ..add('url', url)) + .toString(); + } +} + +class GMangaConditionInputBuilder + implements Builder { + _$GMangaConditionInput? _$v; + + String? _artist; + String? get artist => _$this._artist; + set artist(String? artist) => _$this._artist = artist; + + String? _author; + String? get author => _$this._author; + set author(String? author) => _$this._author = author; + + ListBuilder? _categoryIds; + ListBuilder get categoryIds => + _$this._categoryIds ??= new ListBuilder(); + set categoryIds(ListBuilder? categoryIds) => + _$this._categoryIds = categoryIds; + + GLongStringBuilder? _chaptersLastFetchedAt; + GLongStringBuilder get chaptersLastFetchedAt => + _$this._chaptersLastFetchedAt ??= new GLongStringBuilder(); + set chaptersLastFetchedAt(GLongStringBuilder? chaptersLastFetchedAt) => + _$this._chaptersLastFetchedAt = chaptersLastFetchedAt; + + String? _description; + String? get description => _$this._description; + set description(String? description) => _$this._description = description; + + ListBuilder? _genre; + ListBuilder get genre => _$this._genre ??= new ListBuilder(); + set genre(ListBuilder? genre) => _$this._genre = genre; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + bool? _inLibrary; + bool? get inLibrary => _$this._inLibrary; + set inLibrary(bool? inLibrary) => _$this._inLibrary = inLibrary; + + GLongStringBuilder? _inLibraryAt; + GLongStringBuilder get inLibraryAt => + _$this._inLibraryAt ??= new GLongStringBuilder(); + set inLibraryAt(GLongStringBuilder? inLibraryAt) => + _$this._inLibraryAt = inLibraryAt; + + bool? _initialized; + bool? get initialized => _$this._initialized; + set initialized(bool? initialized) => _$this._initialized = initialized; + + GLongStringBuilder? _lastFetchedAt; + GLongStringBuilder get lastFetchedAt => + _$this._lastFetchedAt ??= new GLongStringBuilder(); + set lastFetchedAt(GLongStringBuilder? lastFetchedAt) => + _$this._lastFetchedAt = lastFetchedAt; + + String? _realUrl; + String? get realUrl => _$this._realUrl; + set realUrl(String? realUrl) => _$this._realUrl = realUrl; + + GLongStringBuilder? _sourceId; + GLongStringBuilder get sourceId => + _$this._sourceId ??= new GLongStringBuilder(); + set sourceId(GLongStringBuilder? sourceId) => _$this._sourceId = sourceId; + + GMangaStatus? _status; + GMangaStatus? get status => _$this._status; + set status(GMangaStatus? status) => _$this._status = status; + + String? _thumbnailUrl; + String? get thumbnailUrl => _$this._thumbnailUrl; + set thumbnailUrl(String? thumbnailUrl) => _$this._thumbnailUrl = thumbnailUrl; + + String? _title; + String? get title => _$this._title; + set title(String? title) => _$this._title = title; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + GMangaConditionInputBuilder(); + + GMangaConditionInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _artist = $v.artist; + _author = $v.author; + _categoryIds = $v.categoryIds?.toBuilder(); + _chaptersLastFetchedAt = $v.chaptersLastFetchedAt?.toBuilder(); + _description = $v.description; + _genre = $v.genre?.toBuilder(); + _id = $v.id; + _inLibrary = $v.inLibrary; + _inLibraryAt = $v.inLibraryAt?.toBuilder(); + _initialized = $v.initialized; + _lastFetchedAt = $v.lastFetchedAt?.toBuilder(); + _realUrl = $v.realUrl; + _sourceId = $v.sourceId?.toBuilder(); + _status = $v.status; + _thumbnailUrl = $v.thumbnailUrl; + _title = $v.title; + _url = $v.url; + _$v = null; + } + return this; + } + + @override + void replace(GMangaConditionInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMangaConditionInput; + } + + @override + void update(void Function(GMangaConditionInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMangaConditionInput build() => _build(); + + _$GMangaConditionInput _build() { + _$GMangaConditionInput _$result; + try { + _$result = _$v ?? + new _$GMangaConditionInput._( + artist: artist, + author: author, + categoryIds: _categoryIds?.build(), + chaptersLastFetchedAt: _chaptersLastFetchedAt?.build(), + description: description, + genre: _genre?.build(), + id: id, + inLibrary: inLibrary, + inLibraryAt: _inLibraryAt?.build(), + initialized: initialized, + lastFetchedAt: _lastFetchedAt?.build(), + realUrl: realUrl, + sourceId: _sourceId?.build(), + status: status, + thumbnailUrl: thumbnailUrl, + title: title, + url: url); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'categoryIds'; + _categoryIds?.build(); + _$failedField = 'chaptersLastFetchedAt'; + _chaptersLastFetchedAt?.build(); + + _$failedField = 'genre'; + _genre?.build(); + + _$failedField = 'inLibraryAt'; + _inLibraryAt?.build(); + + _$failedField = 'lastFetchedAt'; + _lastFetchedAt?.build(); + + _$failedField = 'sourceId'; + _sourceId?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GMangaConditionInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GMangaFilterInput extends GMangaFilterInput { + @override + final BuiltList? and; + @override + final GStringFilterInput? artist; + @override + final GStringFilterInput? author; + @override + final GIntFilterInput? categoryId; + @override + final GLongFilterInput? chaptersLastFetchedAt; + @override + final GStringFilterInput? description; + @override + final GStringFilterInput? genre; + @override + final GIntFilterInput? id; + @override + final GBooleanFilterInput? inLibrary; + @override + final GLongFilterInput? inLibraryAt; + @override + final GBooleanFilterInput? initialized; + @override + final GLongFilterInput? lastFetchedAt; + @override + final GMangaFilterInput? not; + @override + final BuiltList? or; + @override + final GStringFilterInput? realUrl; + @override + final GLongFilterInput? sourceId; + @override + final GMangaStatusFilterInput? status; + @override + final GStringFilterInput? thumbnailUrl; + @override + final GStringFilterInput? title; + @override + final GStringFilterInput? url; + + factory _$GMangaFilterInput( + [void Function(GMangaFilterInputBuilder)? updates]) => + (new GMangaFilterInputBuilder()..update(updates))._build(); + + _$GMangaFilterInput._( + {this.and, + this.artist, + this.author, + this.categoryId, + this.chaptersLastFetchedAt, + this.description, + this.genre, + this.id, + this.inLibrary, + this.inLibraryAt, + this.initialized, + this.lastFetchedAt, + this.not, + this.or, + this.realUrl, + this.sourceId, + this.status, + this.thumbnailUrl, + this.title, + this.url}) + : super._(); + + @override + GMangaFilterInput rebuild(void Function(GMangaFilterInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GMangaFilterInputBuilder toBuilder() => + new GMangaFilterInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMangaFilterInput && + and == other.and && + artist == other.artist && + author == other.author && + categoryId == other.categoryId && + chaptersLastFetchedAt == other.chaptersLastFetchedAt && + description == other.description && + genre == other.genre && + id == other.id && + inLibrary == other.inLibrary && + inLibraryAt == other.inLibraryAt && + initialized == other.initialized && + lastFetchedAt == other.lastFetchedAt && + not == other.not && + or == other.or && + realUrl == other.realUrl && + sourceId == other.sourceId && + status == other.status && + thumbnailUrl == other.thumbnailUrl && + title == other.title && + url == other.url; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, and.hashCode); + _$hash = $jc(_$hash, artist.hashCode); + _$hash = $jc(_$hash, author.hashCode); + _$hash = $jc(_$hash, categoryId.hashCode); + _$hash = $jc(_$hash, chaptersLastFetchedAt.hashCode); + _$hash = $jc(_$hash, description.hashCode); + _$hash = $jc(_$hash, genre.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, inLibrary.hashCode); + _$hash = $jc(_$hash, inLibraryAt.hashCode); + _$hash = $jc(_$hash, initialized.hashCode); + _$hash = $jc(_$hash, lastFetchedAt.hashCode); + _$hash = $jc(_$hash, not.hashCode); + _$hash = $jc(_$hash, or.hashCode); + _$hash = $jc(_$hash, realUrl.hashCode); + _$hash = $jc(_$hash, sourceId.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jc(_$hash, thumbnailUrl.hashCode); + _$hash = $jc(_$hash, title.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GMangaFilterInput') + ..add('and', and) + ..add('artist', artist) + ..add('author', author) + ..add('categoryId', categoryId) + ..add('chaptersLastFetchedAt', chaptersLastFetchedAt) + ..add('description', description) + ..add('genre', genre) + ..add('id', id) + ..add('inLibrary', inLibrary) + ..add('inLibraryAt', inLibraryAt) + ..add('initialized', initialized) + ..add('lastFetchedAt', lastFetchedAt) + ..add('not', not) + ..add('or', or) + ..add('realUrl', realUrl) + ..add('sourceId', sourceId) + ..add('status', status) + ..add('thumbnailUrl', thumbnailUrl) + ..add('title', title) + ..add('url', url)) + .toString(); + } +} + +class GMangaFilterInputBuilder + implements Builder { + _$GMangaFilterInput? _$v; + + ListBuilder? _and; + ListBuilder get and => + _$this._and ??= new ListBuilder(); + set and(ListBuilder? and) => _$this._and = and; + + GStringFilterInputBuilder? _artist; + GStringFilterInputBuilder get artist => + _$this._artist ??= new GStringFilterInputBuilder(); + set artist(GStringFilterInputBuilder? artist) => _$this._artist = artist; + + GStringFilterInputBuilder? _author; + GStringFilterInputBuilder get author => + _$this._author ??= new GStringFilterInputBuilder(); + set author(GStringFilterInputBuilder? author) => _$this._author = author; + + GIntFilterInputBuilder? _categoryId; + GIntFilterInputBuilder get categoryId => + _$this._categoryId ??= new GIntFilterInputBuilder(); + set categoryId(GIntFilterInputBuilder? categoryId) => + _$this._categoryId = categoryId; + + GLongFilterInputBuilder? _chaptersLastFetchedAt; + GLongFilterInputBuilder get chaptersLastFetchedAt => + _$this._chaptersLastFetchedAt ??= new GLongFilterInputBuilder(); + set chaptersLastFetchedAt(GLongFilterInputBuilder? chaptersLastFetchedAt) => + _$this._chaptersLastFetchedAt = chaptersLastFetchedAt; + + GStringFilterInputBuilder? _description; + GStringFilterInputBuilder get description => + _$this._description ??= new GStringFilterInputBuilder(); + set description(GStringFilterInputBuilder? description) => + _$this._description = description; + + GStringFilterInputBuilder? _genre; + GStringFilterInputBuilder get genre => + _$this._genre ??= new GStringFilterInputBuilder(); + set genre(GStringFilterInputBuilder? genre) => _$this._genre = genre; + + GIntFilterInputBuilder? _id; + GIntFilterInputBuilder get id => _$this._id ??= new GIntFilterInputBuilder(); + set id(GIntFilterInputBuilder? id) => _$this._id = id; + + GBooleanFilterInputBuilder? _inLibrary; + GBooleanFilterInputBuilder get inLibrary => + _$this._inLibrary ??= new GBooleanFilterInputBuilder(); + set inLibrary(GBooleanFilterInputBuilder? inLibrary) => + _$this._inLibrary = inLibrary; + + GLongFilterInputBuilder? _inLibraryAt; + GLongFilterInputBuilder get inLibraryAt => + _$this._inLibraryAt ??= new GLongFilterInputBuilder(); + set inLibraryAt(GLongFilterInputBuilder? inLibraryAt) => + _$this._inLibraryAt = inLibraryAt; + + GBooleanFilterInputBuilder? _initialized; + GBooleanFilterInputBuilder get initialized => + _$this._initialized ??= new GBooleanFilterInputBuilder(); + set initialized(GBooleanFilterInputBuilder? initialized) => + _$this._initialized = initialized; + + GLongFilterInputBuilder? _lastFetchedAt; + GLongFilterInputBuilder get lastFetchedAt => + _$this._lastFetchedAt ??= new GLongFilterInputBuilder(); + set lastFetchedAt(GLongFilterInputBuilder? lastFetchedAt) => + _$this._lastFetchedAt = lastFetchedAt; + + GMangaFilterInputBuilder? _not; + GMangaFilterInputBuilder get not => + _$this._not ??= new GMangaFilterInputBuilder(); + set not(GMangaFilterInputBuilder? not) => _$this._not = not; + + ListBuilder? _or; + ListBuilder get or => + _$this._or ??= new ListBuilder(); + set or(ListBuilder? or) => _$this._or = or; + + GStringFilterInputBuilder? _realUrl; + GStringFilterInputBuilder get realUrl => + _$this._realUrl ??= new GStringFilterInputBuilder(); + set realUrl(GStringFilterInputBuilder? realUrl) => _$this._realUrl = realUrl; + + GLongFilterInputBuilder? _sourceId; + GLongFilterInputBuilder get sourceId => + _$this._sourceId ??= new GLongFilterInputBuilder(); + set sourceId(GLongFilterInputBuilder? sourceId) => + _$this._sourceId = sourceId; + + GMangaStatusFilterInputBuilder? _status; + GMangaStatusFilterInputBuilder get status => + _$this._status ??= new GMangaStatusFilterInputBuilder(); + set status(GMangaStatusFilterInputBuilder? status) => _$this._status = status; + + GStringFilterInputBuilder? _thumbnailUrl; + GStringFilterInputBuilder get thumbnailUrl => + _$this._thumbnailUrl ??= new GStringFilterInputBuilder(); + set thumbnailUrl(GStringFilterInputBuilder? thumbnailUrl) => + _$this._thumbnailUrl = thumbnailUrl; + + GStringFilterInputBuilder? _title; + GStringFilterInputBuilder get title => + _$this._title ??= new GStringFilterInputBuilder(); + set title(GStringFilterInputBuilder? title) => _$this._title = title; + + GStringFilterInputBuilder? _url; + GStringFilterInputBuilder get url => + _$this._url ??= new GStringFilterInputBuilder(); + set url(GStringFilterInputBuilder? url) => _$this._url = url; + + GMangaFilterInputBuilder(); + + GMangaFilterInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _and = $v.and?.toBuilder(); + _artist = $v.artist?.toBuilder(); + _author = $v.author?.toBuilder(); + _categoryId = $v.categoryId?.toBuilder(); + _chaptersLastFetchedAt = $v.chaptersLastFetchedAt?.toBuilder(); + _description = $v.description?.toBuilder(); + _genre = $v.genre?.toBuilder(); + _id = $v.id?.toBuilder(); + _inLibrary = $v.inLibrary?.toBuilder(); + _inLibraryAt = $v.inLibraryAt?.toBuilder(); + _initialized = $v.initialized?.toBuilder(); + _lastFetchedAt = $v.lastFetchedAt?.toBuilder(); + _not = $v.not?.toBuilder(); + _or = $v.or?.toBuilder(); + _realUrl = $v.realUrl?.toBuilder(); + _sourceId = $v.sourceId?.toBuilder(); + _status = $v.status?.toBuilder(); + _thumbnailUrl = $v.thumbnailUrl?.toBuilder(); + _title = $v.title?.toBuilder(); + _url = $v.url?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GMangaFilterInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMangaFilterInput; + } + + @override + void update(void Function(GMangaFilterInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMangaFilterInput build() => _build(); + + _$GMangaFilterInput _build() { + _$GMangaFilterInput _$result; + try { + _$result = _$v ?? + new _$GMangaFilterInput._( + and: _and?.build(), + artist: _artist?.build(), + author: _author?.build(), + categoryId: _categoryId?.build(), + chaptersLastFetchedAt: _chaptersLastFetchedAt?.build(), + description: _description?.build(), + genre: _genre?.build(), + id: _id?.build(), + inLibrary: _inLibrary?.build(), + inLibraryAt: _inLibraryAt?.build(), + initialized: _initialized?.build(), + lastFetchedAt: _lastFetchedAt?.build(), + not: _not?.build(), + or: _or?.build(), + realUrl: _realUrl?.build(), + sourceId: _sourceId?.build(), + status: _status?.build(), + thumbnailUrl: _thumbnailUrl?.build(), + title: _title?.build(), + url: _url?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'and'; + _and?.build(); + _$failedField = 'artist'; + _artist?.build(); + _$failedField = 'author'; + _author?.build(); + _$failedField = 'categoryId'; + _categoryId?.build(); + _$failedField = 'chaptersLastFetchedAt'; + _chaptersLastFetchedAt?.build(); + _$failedField = 'description'; + _description?.build(); + _$failedField = 'genre'; + _genre?.build(); + _$failedField = 'id'; + _id?.build(); + _$failedField = 'inLibrary'; + _inLibrary?.build(); + _$failedField = 'inLibraryAt'; + _inLibraryAt?.build(); + _$failedField = 'initialized'; + _initialized?.build(); + _$failedField = 'lastFetchedAt'; + _lastFetchedAt?.build(); + _$failedField = 'not'; + _not?.build(); + _$failedField = 'or'; + _or?.build(); + _$failedField = 'realUrl'; + _realUrl?.build(); + _$failedField = 'sourceId'; + _sourceId?.build(); + _$failedField = 'status'; + _status?.build(); + _$failedField = 'thumbnailUrl'; + _thumbnailUrl?.build(); + _$failedField = 'title'; + _title?.build(); + _$failedField = 'url'; + _url?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GMangaFilterInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GMangaMetaTypeInput extends GMangaMetaTypeInput { + @override + final String key; + @override + final int mangaId; + @override + final String value; + + factory _$GMangaMetaTypeInput( + [void Function(GMangaMetaTypeInputBuilder)? updates]) => + (new GMangaMetaTypeInputBuilder()..update(updates))._build(); + + _$GMangaMetaTypeInput._( + {required this.key, required this.mangaId, required this.value}) + : super._() { + BuiltValueNullFieldError.checkNotNull(key, r'GMangaMetaTypeInput', 'key'); + BuiltValueNullFieldError.checkNotNull( + mangaId, r'GMangaMetaTypeInput', 'mangaId'); + BuiltValueNullFieldError.checkNotNull( + value, r'GMangaMetaTypeInput', 'value'); + } + + @override + GMangaMetaTypeInput rebuild( + void Function(GMangaMetaTypeInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GMangaMetaTypeInputBuilder toBuilder() => + new GMangaMetaTypeInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMangaMetaTypeInput && + key == other.key && + mangaId == other.mangaId && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, mangaId.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GMangaMetaTypeInput') + ..add('key', key) + ..add('mangaId', mangaId) + ..add('value', value)) + .toString(); + } +} + +class GMangaMetaTypeInputBuilder + implements Builder { + _$GMangaMetaTypeInput? _$v; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + int? _mangaId; + int? get mangaId => _$this._mangaId; + set mangaId(int? mangaId) => _$this._mangaId = mangaId; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GMangaMetaTypeInputBuilder(); + + GMangaMetaTypeInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _key = $v.key; + _mangaId = $v.mangaId; + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GMangaMetaTypeInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMangaMetaTypeInput; + } + + @override + void update(void Function(GMangaMetaTypeInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMangaMetaTypeInput build() => _build(); + + _$GMangaMetaTypeInput _build() { + final _$result = _$v ?? + new _$GMangaMetaTypeInput._( + key: BuiltValueNullFieldError.checkNotNull( + key, r'GMangaMetaTypeInput', 'key'), + mangaId: BuiltValueNullFieldError.checkNotNull( + mangaId, r'GMangaMetaTypeInput', 'mangaId'), + value: BuiltValueNullFieldError.checkNotNull( + value, r'GMangaMetaTypeInput', 'value')); + replace(_$result); + return _$result; + } +} + +class _$GMangaStatusFilterInput extends GMangaStatusFilterInput { + @override + final GMangaStatus? distinctFrom; + @override + final GMangaStatus? equalTo; + @override + final GMangaStatus? greaterThan; + @override + final GMangaStatus? greaterThanOrEqualTo; + @override + final BuiltList? Gin; + @override + final bool? isNull; + @override + final GMangaStatus? lessThan; + @override + final GMangaStatus? lessThanOrEqualTo; + @override + final GMangaStatus? notDistinctFrom; + @override + final GMangaStatus? notEqualTo; + @override + final BuiltList? notIn; + + factory _$GMangaStatusFilterInput( + [void Function(GMangaStatusFilterInputBuilder)? updates]) => + (new GMangaStatusFilterInputBuilder()..update(updates))._build(); + + _$GMangaStatusFilterInput._( + {this.distinctFrom, + this.equalTo, + this.greaterThan, + this.greaterThanOrEqualTo, + this.Gin, + this.isNull, + this.lessThan, + this.lessThanOrEqualTo, + this.notDistinctFrom, + this.notEqualTo, + this.notIn}) + : super._(); + + @override + GMangaStatusFilterInput rebuild( + void Function(GMangaStatusFilterInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GMangaStatusFilterInputBuilder toBuilder() => + new GMangaStatusFilterInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMangaStatusFilterInput && + distinctFrom == other.distinctFrom && + equalTo == other.equalTo && + greaterThan == other.greaterThan && + greaterThanOrEqualTo == other.greaterThanOrEqualTo && + Gin == other.Gin && + isNull == other.isNull && + lessThan == other.lessThan && + lessThanOrEqualTo == other.lessThanOrEqualTo && + notDistinctFrom == other.notDistinctFrom && + notEqualTo == other.notEqualTo && + notIn == other.notIn; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, distinctFrom.hashCode); + _$hash = $jc(_$hash, equalTo.hashCode); + _$hash = $jc(_$hash, greaterThan.hashCode); + _$hash = $jc(_$hash, greaterThanOrEqualTo.hashCode); + _$hash = $jc(_$hash, Gin.hashCode); + _$hash = $jc(_$hash, isNull.hashCode); + _$hash = $jc(_$hash, lessThan.hashCode); + _$hash = $jc(_$hash, lessThanOrEqualTo.hashCode); + _$hash = $jc(_$hash, notDistinctFrom.hashCode); + _$hash = $jc(_$hash, notEqualTo.hashCode); + _$hash = $jc(_$hash, notIn.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GMangaStatusFilterInput') + ..add('distinctFrom', distinctFrom) + ..add('equalTo', equalTo) + ..add('greaterThan', greaterThan) + ..add('greaterThanOrEqualTo', greaterThanOrEqualTo) + ..add('Gin', Gin) + ..add('isNull', isNull) + ..add('lessThan', lessThan) + ..add('lessThanOrEqualTo', lessThanOrEqualTo) + ..add('notDistinctFrom', notDistinctFrom) + ..add('notEqualTo', notEqualTo) + ..add('notIn', notIn)) + .toString(); + } +} + +class GMangaStatusFilterInputBuilder + implements + Builder { + _$GMangaStatusFilterInput? _$v; + + GMangaStatus? _distinctFrom; + GMangaStatus? get distinctFrom => _$this._distinctFrom; + set distinctFrom(GMangaStatus? distinctFrom) => + _$this._distinctFrom = distinctFrom; + + GMangaStatus? _equalTo; + GMangaStatus? get equalTo => _$this._equalTo; + set equalTo(GMangaStatus? equalTo) => _$this._equalTo = equalTo; + + GMangaStatus? _greaterThan; + GMangaStatus? get greaterThan => _$this._greaterThan; + set greaterThan(GMangaStatus? greaterThan) => + _$this._greaterThan = greaterThan; + + GMangaStatus? _greaterThanOrEqualTo; + GMangaStatus? get greaterThanOrEqualTo => _$this._greaterThanOrEqualTo; + set greaterThanOrEqualTo(GMangaStatus? greaterThanOrEqualTo) => + _$this._greaterThanOrEqualTo = greaterThanOrEqualTo; + + ListBuilder? _Gin; + ListBuilder get Gin => + _$this._Gin ??= new ListBuilder(); + set Gin(ListBuilder? Gin) => _$this._Gin = Gin; + + bool? _isNull; + bool? get isNull => _$this._isNull; + set isNull(bool? isNull) => _$this._isNull = isNull; + + GMangaStatus? _lessThan; + GMangaStatus? get lessThan => _$this._lessThan; + set lessThan(GMangaStatus? lessThan) => _$this._lessThan = lessThan; + + GMangaStatus? _lessThanOrEqualTo; + GMangaStatus? get lessThanOrEqualTo => _$this._lessThanOrEqualTo; + set lessThanOrEqualTo(GMangaStatus? lessThanOrEqualTo) => + _$this._lessThanOrEqualTo = lessThanOrEqualTo; + + GMangaStatus? _notDistinctFrom; + GMangaStatus? get notDistinctFrom => _$this._notDistinctFrom; + set notDistinctFrom(GMangaStatus? notDistinctFrom) => + _$this._notDistinctFrom = notDistinctFrom; + + GMangaStatus? _notEqualTo; + GMangaStatus? get notEqualTo => _$this._notEqualTo; + set notEqualTo(GMangaStatus? notEqualTo) => _$this._notEqualTo = notEqualTo; + + ListBuilder? _notIn; + ListBuilder get notIn => + _$this._notIn ??= new ListBuilder(); + set notIn(ListBuilder? notIn) => _$this._notIn = notIn; + + GMangaStatusFilterInputBuilder(); + + GMangaStatusFilterInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _distinctFrom = $v.distinctFrom; + _equalTo = $v.equalTo; + _greaterThan = $v.greaterThan; + _greaterThanOrEqualTo = $v.greaterThanOrEqualTo; + _Gin = $v.Gin?.toBuilder(); + _isNull = $v.isNull; + _lessThan = $v.lessThan; + _lessThanOrEqualTo = $v.lessThanOrEqualTo; + _notDistinctFrom = $v.notDistinctFrom; + _notEqualTo = $v.notEqualTo; + _notIn = $v.notIn?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GMangaStatusFilterInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMangaStatusFilterInput; + } + + @override + void update(void Function(GMangaStatusFilterInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMangaStatusFilterInput build() => _build(); + + _$GMangaStatusFilterInput _build() { + _$GMangaStatusFilterInput _$result; + try { + _$result = _$v ?? + new _$GMangaStatusFilterInput._( + distinctFrom: distinctFrom, + equalTo: equalTo, + greaterThan: greaterThan, + greaterThanOrEqualTo: greaterThanOrEqualTo, + Gin: _Gin?.build(), + isNull: isNull, + lessThan: lessThan, + lessThanOrEqualTo: lessThanOrEqualTo, + notDistinctFrom: notDistinctFrom, + notEqualTo: notEqualTo, + notIn: _notIn?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'Gin'; + _Gin?.build(); + + _$failedField = 'notIn'; + _notIn?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GMangaStatusFilterInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GMetaConditionInput extends GMetaConditionInput { + @override + final String? key; + @override + final String? value; + + factory _$GMetaConditionInput( + [void Function(GMetaConditionInputBuilder)? updates]) => + (new GMetaConditionInputBuilder()..update(updates))._build(); + + _$GMetaConditionInput._({this.key, this.value}) : super._(); + + @override + GMetaConditionInput rebuild( + void Function(GMetaConditionInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GMetaConditionInputBuilder toBuilder() => + new GMetaConditionInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMetaConditionInput && + key == other.key && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GMetaConditionInput') + ..add('key', key) + ..add('value', value)) + .toString(); + } +} + +class GMetaConditionInputBuilder + implements Builder { + _$GMetaConditionInput? _$v; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GMetaConditionInputBuilder(); + + GMetaConditionInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _key = $v.key; + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GMetaConditionInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMetaConditionInput; + } + + @override + void update(void Function(GMetaConditionInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMetaConditionInput build() => _build(); + + _$GMetaConditionInput _build() { + final _$result = _$v ?? new _$GMetaConditionInput._(key: key, value: value); + replace(_$result); + return _$result; + } +} + +class _$GMetaFilterInput extends GMetaFilterInput { + @override + final BuiltList? and; + @override + final GStringFilterInput? key; + @override + final GMetaFilterInput? not; + @override + final BuiltList? or; + @override + final GStringFilterInput? value; + + factory _$GMetaFilterInput( + [void Function(GMetaFilterInputBuilder)? updates]) => + (new GMetaFilterInputBuilder()..update(updates))._build(); + + _$GMetaFilterInput._({this.and, this.key, this.not, this.or, this.value}) + : super._(); + + @override + GMetaFilterInput rebuild(void Function(GMetaFilterInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GMetaFilterInputBuilder toBuilder() => + new GMetaFilterInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMetaFilterInput && + and == other.and && + key == other.key && + not == other.not && + or == other.or && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, and.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, not.hashCode); + _$hash = $jc(_$hash, or.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GMetaFilterInput') + ..add('and', and) + ..add('key', key) + ..add('not', not) + ..add('or', or) + ..add('value', value)) + .toString(); + } +} + +class GMetaFilterInputBuilder + implements Builder { + _$GMetaFilterInput? _$v; + + ListBuilder? _and; + ListBuilder get and => + _$this._and ??= new ListBuilder(); + set and(ListBuilder? and) => _$this._and = and; + + GStringFilterInputBuilder? _key; + GStringFilterInputBuilder get key => + _$this._key ??= new GStringFilterInputBuilder(); + set key(GStringFilterInputBuilder? key) => _$this._key = key; + + GMetaFilterInputBuilder? _not; + GMetaFilterInputBuilder get not => + _$this._not ??= new GMetaFilterInputBuilder(); + set not(GMetaFilterInputBuilder? not) => _$this._not = not; + + ListBuilder? _or; + ListBuilder get or => + _$this._or ??= new ListBuilder(); + set or(ListBuilder? or) => _$this._or = or; + + GStringFilterInputBuilder? _value; + GStringFilterInputBuilder get value => + _$this._value ??= new GStringFilterInputBuilder(); + set value(GStringFilterInputBuilder? value) => _$this._value = value; + + GMetaFilterInputBuilder(); + + GMetaFilterInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _and = $v.and?.toBuilder(); + _key = $v.key?.toBuilder(); + _not = $v.not?.toBuilder(); + _or = $v.or?.toBuilder(); + _value = $v.value?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GMetaFilterInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMetaFilterInput; + } + + @override + void update(void Function(GMetaFilterInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMetaFilterInput build() => _build(); + + _$GMetaFilterInput _build() { + _$GMetaFilterInput _$result; + try { + _$result = _$v ?? + new _$GMetaFilterInput._( + and: _and?.build(), + key: _key?.build(), + not: _not?.build(), + or: _or?.build(), + value: _value?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'and'; + _and?.build(); + _$failedField = 'key'; + _key?.build(); + _$failedField = 'not'; + _not?.build(); + _$failedField = 'or'; + _or?.build(); + _$failedField = 'value'; + _value?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GMetaFilterInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GPartialSettingsTypeInput extends GPartialSettingsTypeInput { + @override + final bool? autoDownloadNewChapters; + @override + final int? autoDownloadNewChaptersLimit; + @override + final int? backupInterval; + @override + final String? backupPath; + @override + final int? backupTTL; + @override + final String? backupTime; + @override + final bool? basicAuthEnabled; + @override + final String? basicAuthPassword; + @override + final String? basicAuthUsername; + @override + final bool? debugLogsEnabled; + @override + final bool? downloadAsCbz; + @override + final String? downloadsPath; + @override + final String? electronPath; + @override + final bool? excludeCompleted; + @override + final bool? excludeEntryWithUnreadChapters; + @override + final bool? excludeNotStarted; + @override + final bool? excludeUnreadChapters; + @override + final BuiltList? extensionRepos; + @override + final bool? flareSolverrEnabled; + @override + final String? flareSolverrSessionName; + @override + final int? flareSolverrSessionTtl; + @override + final int? flareSolverrTimeout; + @override + final String? flareSolverrUrl; + @override + final double? globalUpdateInterval; + @override + final bool? gqlDebugLogsEnabled; + @override + final bool? initialOpenInBrowserEnabled; + @override + final String? ip; + @override + final String? localSourcePath; + @override + final int? maxSourcesInParallel; + @override + final int? port; + @override + final bool? socksProxyEnabled; + @override + final String? socksProxyHost; + @override + final String? socksProxyPassword; + @override + final String? socksProxyPort; + @override + final String? socksProxyUsername; + @override + final int? socksProxyVersion; + @override + final bool? systemTrayEnabled; + @override + final bool? updateMangas; + @override + final GWebUIChannel? webUIChannel; + @override + final GWebUIFlavor? webUIFlavor; + @override + final GWebUIInterface? webUIInterface; + @override + final double? webUIUpdateCheckInterval; + + factory _$GPartialSettingsTypeInput( + [void Function(GPartialSettingsTypeInputBuilder)? updates]) => + (new GPartialSettingsTypeInputBuilder()..update(updates))._build(); + + _$GPartialSettingsTypeInput._( + {this.autoDownloadNewChapters, + this.autoDownloadNewChaptersLimit, + this.backupInterval, + this.backupPath, + this.backupTTL, + this.backupTime, + this.basicAuthEnabled, + this.basicAuthPassword, + this.basicAuthUsername, + this.debugLogsEnabled, + this.downloadAsCbz, + this.downloadsPath, + this.electronPath, + this.excludeCompleted, + this.excludeEntryWithUnreadChapters, + this.excludeNotStarted, + this.excludeUnreadChapters, + this.extensionRepos, + this.flareSolverrEnabled, + this.flareSolverrSessionName, + this.flareSolverrSessionTtl, + this.flareSolverrTimeout, + this.flareSolverrUrl, + this.globalUpdateInterval, + this.gqlDebugLogsEnabled, + this.initialOpenInBrowserEnabled, + this.ip, + this.localSourcePath, + this.maxSourcesInParallel, + this.port, + this.socksProxyEnabled, + this.socksProxyHost, + this.socksProxyPassword, + this.socksProxyPort, + this.socksProxyUsername, + this.socksProxyVersion, + this.systemTrayEnabled, + this.updateMangas, + this.webUIChannel, + this.webUIFlavor, + this.webUIInterface, + this.webUIUpdateCheckInterval}) + : super._(); + + @override + GPartialSettingsTypeInput rebuild( + void Function(GPartialSettingsTypeInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GPartialSettingsTypeInputBuilder toBuilder() => + new GPartialSettingsTypeInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GPartialSettingsTypeInput && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + basicAuthEnabled == other.basicAuthEnabled && + basicAuthPassword == other.basicAuthPassword && + basicAuthUsername == other.basicAuthUsername && + debugLogsEnabled == other.debugLogsEnabled && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + electronPath == other.electronPath && + excludeCompleted == other.excludeCompleted && + excludeEntryWithUnreadChapters == + other.excludeEntryWithUnreadChapters && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters && + extensionRepos == other.extensionRepos && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + globalUpdateInterval == other.globalUpdateInterval && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + initialOpenInBrowserEnabled == other.initialOpenInBrowserEnabled && + ip == other.ip && + localSourcePath == other.localSourcePath && + maxSourcesInParallel == other.maxSourcesInParallel && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + systemTrayEnabled == other.systemTrayEnabled && + updateMangas == other.updateMangas && + webUIChannel == other.webUIChannel && + webUIFlavor == other.webUIFlavor && + webUIInterface == other.webUIInterface && + webUIUpdateCheckInterval == other.webUIUpdateCheckInterval; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, basicAuthEnabled.hashCode); + _$hash = $jc(_$hash, basicAuthPassword.hashCode); + _$hash = $jc(_$hash, basicAuthUsername.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, electronPath.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, initialOpenInBrowserEnabled.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, webUIChannel.hashCode); + _$hash = $jc(_$hash, webUIFlavor.hashCode); + _$hash = $jc(_$hash, webUIInterface.hashCode); + _$hash = $jc(_$hash, webUIUpdateCheckInterval.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GPartialSettingsTypeInput') + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('basicAuthEnabled', basicAuthEnabled) + ..add('basicAuthPassword', basicAuthPassword) + ..add('basicAuthUsername', basicAuthUsername) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('electronPath', electronPath) + ..add('excludeCompleted', excludeCompleted) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters) + ..add('extensionRepos', extensionRepos) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('initialOpenInBrowserEnabled', initialOpenInBrowserEnabled) + ..add('ip', ip) + ..add('localSourcePath', localSourcePath) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('updateMangas', updateMangas) + ..add('webUIChannel', webUIChannel) + ..add('webUIFlavor', webUIFlavor) + ..add('webUIInterface', webUIInterface) + ..add('webUIUpdateCheckInterval', webUIUpdateCheckInterval)) + .toString(); + } +} + +class GPartialSettingsTypeInputBuilder + implements + Builder { + _$GPartialSettingsTypeInput? _$v; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + bool? _basicAuthEnabled; + bool? get basicAuthEnabled => _$this._basicAuthEnabled; + set basicAuthEnabled(bool? basicAuthEnabled) => + _$this._basicAuthEnabled = basicAuthEnabled; + + String? _basicAuthPassword; + String? get basicAuthPassword => _$this._basicAuthPassword; + set basicAuthPassword(String? basicAuthPassword) => + _$this._basicAuthPassword = basicAuthPassword; + + String? _basicAuthUsername; + String? get basicAuthUsername => _$this._basicAuthUsername; + set basicAuthUsername(String? basicAuthUsername) => + _$this._basicAuthUsername = basicAuthUsername; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + String? _electronPath; + String? get electronPath => _$this._electronPath; + set electronPath(String? electronPath) => _$this._electronPath = electronPath; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + bool? _initialOpenInBrowserEnabled; + bool? get initialOpenInBrowserEnabled => _$this._initialOpenInBrowserEnabled; + set initialOpenInBrowserEnabled(bool? initialOpenInBrowserEnabled) => + _$this._initialOpenInBrowserEnabled = initialOpenInBrowserEnabled; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + GWebUIChannel? _webUIChannel; + GWebUIChannel? get webUIChannel => _$this._webUIChannel; + set webUIChannel(GWebUIChannel? webUIChannel) => + _$this._webUIChannel = webUIChannel; + + GWebUIFlavor? _webUIFlavor; + GWebUIFlavor? get webUIFlavor => _$this._webUIFlavor; + set webUIFlavor(GWebUIFlavor? webUIFlavor) => + _$this._webUIFlavor = webUIFlavor; + + GWebUIInterface? _webUIInterface; + GWebUIInterface? get webUIInterface => _$this._webUIInterface; + set webUIInterface(GWebUIInterface? webUIInterface) => + _$this._webUIInterface = webUIInterface; + + double? _webUIUpdateCheckInterval; + double? get webUIUpdateCheckInterval => _$this._webUIUpdateCheckInterval; + set webUIUpdateCheckInterval(double? webUIUpdateCheckInterval) => + _$this._webUIUpdateCheckInterval = webUIUpdateCheckInterval; + + GPartialSettingsTypeInputBuilder(); + + GPartialSettingsTypeInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _basicAuthEnabled = $v.basicAuthEnabled; + _basicAuthPassword = $v.basicAuthPassword; + _basicAuthUsername = $v.basicAuthUsername; + _debugLogsEnabled = $v.debugLogsEnabled; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _electronPath = $v.electronPath; + _excludeCompleted = $v.excludeCompleted; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _extensionRepos = $v.extensionRepos?.toBuilder(); + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _globalUpdateInterval = $v.globalUpdateInterval; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _initialOpenInBrowserEnabled = $v.initialOpenInBrowserEnabled; + _ip = $v.ip; + _localSourcePath = $v.localSourcePath; + _maxSourcesInParallel = $v.maxSourcesInParallel; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _systemTrayEnabled = $v.systemTrayEnabled; + _updateMangas = $v.updateMangas; + _webUIChannel = $v.webUIChannel; + _webUIFlavor = $v.webUIFlavor; + _webUIInterface = $v.webUIInterface; + _webUIUpdateCheckInterval = $v.webUIUpdateCheckInterval; + _$v = null; + } + return this; + } + + @override + void replace(GPartialSettingsTypeInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GPartialSettingsTypeInput; + } + + @override + void update(void Function(GPartialSettingsTypeInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GPartialSettingsTypeInput build() => _build(); + + _$GPartialSettingsTypeInput _build() { + _$GPartialSettingsTypeInput _$result; + try { + _$result = _$v ?? + new _$GPartialSettingsTypeInput._( + autoDownloadNewChapters: autoDownloadNewChapters, + autoDownloadNewChaptersLimit: autoDownloadNewChaptersLimit, + backupInterval: backupInterval, + backupPath: backupPath, + backupTTL: backupTTL, + backupTime: backupTime, + basicAuthEnabled: basicAuthEnabled, + basicAuthPassword: basicAuthPassword, + basicAuthUsername: basicAuthUsername, + debugLogsEnabled: debugLogsEnabled, + downloadAsCbz: downloadAsCbz, + downloadsPath: downloadsPath, + electronPath: electronPath, + excludeCompleted: excludeCompleted, + excludeEntryWithUnreadChapters: excludeEntryWithUnreadChapters, + excludeNotStarted: excludeNotStarted, + excludeUnreadChapters: excludeUnreadChapters, + extensionRepos: _extensionRepos?.build(), + flareSolverrEnabled: flareSolverrEnabled, + flareSolverrSessionName: flareSolverrSessionName, + flareSolverrSessionTtl: flareSolverrSessionTtl, + flareSolverrTimeout: flareSolverrTimeout, + flareSolverrUrl: flareSolverrUrl, + globalUpdateInterval: globalUpdateInterval, + gqlDebugLogsEnabled: gqlDebugLogsEnabled, + initialOpenInBrowserEnabled: initialOpenInBrowserEnabled, + ip: ip, + localSourcePath: localSourcePath, + maxSourcesInParallel: maxSourcesInParallel, + port: port, + socksProxyEnabled: socksProxyEnabled, + socksProxyHost: socksProxyHost, + socksProxyPassword: socksProxyPassword, + socksProxyPort: socksProxyPort, + socksProxyUsername: socksProxyUsername, + socksProxyVersion: socksProxyVersion, + systemTrayEnabled: systemTrayEnabled, + updateMangas: updateMangas, + webUIChannel: webUIChannel, + webUIFlavor: webUIFlavor, + webUIInterface: webUIInterface, + webUIUpdateCheckInterval: webUIUpdateCheckInterval); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + _extensionRepos?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GPartialSettingsTypeInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GReorderChapterDownloadInput extends GReorderChapterDownloadInput { + @override + final int chapterId; + @override + final String? clientMutationId; + @override + final int to; + + factory _$GReorderChapterDownloadInput( + [void Function(GReorderChapterDownloadInputBuilder)? updates]) => + (new GReorderChapterDownloadInputBuilder()..update(updates))._build(); + + _$GReorderChapterDownloadInput._( + {required this.chapterId, this.clientMutationId, required this.to}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + chapterId, r'GReorderChapterDownloadInput', 'chapterId'); + BuiltValueNullFieldError.checkNotNull( + to, r'GReorderChapterDownloadInput', 'to'); + } + + @override + GReorderChapterDownloadInput rebuild( + void Function(GReorderChapterDownloadInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GReorderChapterDownloadInputBuilder toBuilder() => + new GReorderChapterDownloadInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GReorderChapterDownloadInput && + chapterId == other.chapterId && + clientMutationId == other.clientMutationId && + to == other.to; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, chapterId.hashCode); + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, to.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GReorderChapterDownloadInput') + ..add('chapterId', chapterId) + ..add('clientMutationId', clientMutationId) + ..add('to', to)) + .toString(); + } +} + +class GReorderChapterDownloadInputBuilder + implements + Builder { + _$GReorderChapterDownloadInput? _$v; + + int? _chapterId; + int? get chapterId => _$this._chapterId; + set chapterId(int? chapterId) => _$this._chapterId = chapterId; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + int? _to; + int? get to => _$this._to; + set to(int? to) => _$this._to = to; + + GReorderChapterDownloadInputBuilder(); + + GReorderChapterDownloadInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _chapterId = $v.chapterId; + _clientMutationId = $v.clientMutationId; + _to = $v.to; + _$v = null; + } + return this; + } + + @override + void replace(GReorderChapterDownloadInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GReorderChapterDownloadInput; + } + + @override + void update(void Function(GReorderChapterDownloadInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GReorderChapterDownloadInput build() => _build(); + + _$GReorderChapterDownloadInput _build() { + final _$result = _$v ?? + new _$GReorderChapterDownloadInput._( + chapterId: BuiltValueNullFieldError.checkNotNull( + chapterId, r'GReorderChapterDownloadInput', 'chapterId'), + clientMutationId: clientMutationId, + to: BuiltValueNullFieldError.checkNotNull( + to, r'GReorderChapterDownloadInput', 'to')); + replace(_$result); + return _$result; + } +} + +class _$GResetSettingsInput extends GResetSettingsInput { + @override + final String? clientMutationId; + + factory _$GResetSettingsInput( + [void Function(GResetSettingsInputBuilder)? updates]) => + (new GResetSettingsInputBuilder()..update(updates))._build(); + + _$GResetSettingsInput._({this.clientMutationId}) : super._(); + + @override + GResetSettingsInput rebuild( + void Function(GResetSettingsInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GResetSettingsInputBuilder toBuilder() => + new GResetSettingsInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GResetSettingsInput && + clientMutationId == other.clientMutationId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GResetSettingsInput') + ..add('clientMutationId', clientMutationId)) + .toString(); + } +} + +class GResetSettingsInputBuilder + implements Builder { + _$GResetSettingsInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GResetSettingsInputBuilder(); + + GResetSettingsInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _$v = null; + } + return this; + } + + @override + void replace(GResetSettingsInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GResetSettingsInput; + } + + @override + void update(void Function(GResetSettingsInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GResetSettingsInput build() => _build(); + + _$GResetSettingsInput _build() { + final _$result = + _$v ?? new _$GResetSettingsInput._(clientMutationId: clientMutationId); + replace(_$result); + return _$result; + } +} + +class _$GRestoreBackupInput extends GRestoreBackupInput { + @override + final _i3.MultipartFile backup; + @override + final String? clientMutationId; + + factory _$GRestoreBackupInput( + [void Function(GRestoreBackupInputBuilder)? updates]) => + (new GRestoreBackupInputBuilder()..update(updates))._build(); + + _$GRestoreBackupInput._({required this.backup, this.clientMutationId}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + backup, r'GRestoreBackupInput', 'backup'); + } + + @override + GRestoreBackupInput rebuild( + void Function(GRestoreBackupInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GRestoreBackupInputBuilder toBuilder() => + new GRestoreBackupInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GRestoreBackupInput && + backup == other.backup && + clientMutationId == other.clientMutationId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, backup.hashCode); + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GRestoreBackupInput') + ..add('backup', backup) + ..add('clientMutationId', clientMutationId)) + .toString(); + } +} + +class GRestoreBackupInputBuilder + implements Builder { + _$GRestoreBackupInput? _$v; + + _i3.MultipartFile? _backup; + _i3.MultipartFile? get backup => _$this._backup; + set backup(_i3.MultipartFile? backup) => _$this._backup = backup; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GRestoreBackupInputBuilder(); + + GRestoreBackupInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _backup = $v.backup; + _clientMutationId = $v.clientMutationId; + _$v = null; + } + return this; + } + + @override + void replace(GRestoreBackupInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GRestoreBackupInput; + } + + @override + void update(void Function(GRestoreBackupInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GRestoreBackupInput build() => _build(); + + _$GRestoreBackupInput _build() { + final _$result = _$v ?? + new _$GRestoreBackupInput._( + backup: BuiltValueNullFieldError.checkNotNull( + backup, r'GRestoreBackupInput', 'backup'), + clientMutationId: clientMutationId); + replace(_$result); + return _$result; + } +} + +class _$GSearchTrackerInput extends GSearchTrackerInput { + @override + final String query; + @override + final int trackerId; + + factory _$GSearchTrackerInput( + [void Function(GSearchTrackerInputBuilder)? updates]) => + (new GSearchTrackerInputBuilder()..update(updates))._build(); + + _$GSearchTrackerInput._({required this.query, required this.trackerId}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + query, r'GSearchTrackerInput', 'query'); + BuiltValueNullFieldError.checkNotNull( + trackerId, r'GSearchTrackerInput', 'trackerId'); + } + + @override + GSearchTrackerInput rebuild( + void Function(GSearchTrackerInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSearchTrackerInputBuilder toBuilder() => + new GSearchTrackerInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSearchTrackerInput && + query == other.query && + trackerId == other.trackerId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, query.hashCode); + _$hash = $jc(_$hash, trackerId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSearchTrackerInput') + ..add('query', query) + ..add('trackerId', trackerId)) + .toString(); + } +} + +class GSearchTrackerInputBuilder + implements Builder { + _$GSearchTrackerInput? _$v; + + String? _query; + String? get query => _$this._query; + set query(String? query) => _$this._query = query; + + int? _trackerId; + int? get trackerId => _$this._trackerId; + set trackerId(int? trackerId) => _$this._trackerId = trackerId; + + GSearchTrackerInputBuilder(); + + GSearchTrackerInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _query = $v.query; + _trackerId = $v.trackerId; + _$v = null; + } + return this; + } + + @override + void replace(GSearchTrackerInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSearchTrackerInput; + } + + @override + void update(void Function(GSearchTrackerInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSearchTrackerInput build() => _build(); + + _$GSearchTrackerInput _build() { + final _$result = _$v ?? + new _$GSearchTrackerInput._( + query: BuiltValueNullFieldError.checkNotNull( + query, r'GSearchTrackerInput', 'query'), + trackerId: BuiltValueNullFieldError.checkNotNull( + trackerId, r'GSearchTrackerInput', 'trackerId')); + replace(_$result); + return _$result; + } +} + +class _$GSetCategoryMetaInput extends GSetCategoryMetaInput { + @override + final String? clientMutationId; + @override + final GCategoryMetaTypeInput meta; + + factory _$GSetCategoryMetaInput( + [void Function(GSetCategoryMetaInputBuilder)? updates]) => + (new GSetCategoryMetaInputBuilder()..update(updates))._build(); + + _$GSetCategoryMetaInput._({this.clientMutationId, required this.meta}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + meta, r'GSetCategoryMetaInput', 'meta'); + } + + @override + GSetCategoryMetaInput rebuild( + void Function(GSetCategoryMetaInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSetCategoryMetaInputBuilder toBuilder() => + new GSetCategoryMetaInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSetCategoryMetaInput && + clientMutationId == other.clientMutationId && + meta == other.meta; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSetCategoryMetaInput') + ..add('clientMutationId', clientMutationId) + ..add('meta', meta)) + .toString(); + } +} + +class GSetCategoryMetaInputBuilder + implements Builder { + _$GSetCategoryMetaInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GCategoryMetaTypeInputBuilder? _meta; + GCategoryMetaTypeInputBuilder get meta => + _$this._meta ??= new GCategoryMetaTypeInputBuilder(); + set meta(GCategoryMetaTypeInputBuilder? meta) => _$this._meta = meta; + + GSetCategoryMetaInputBuilder(); + + GSetCategoryMetaInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _meta = $v.meta.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GSetCategoryMetaInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSetCategoryMetaInput; + } + + @override + void update(void Function(GSetCategoryMetaInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSetCategoryMetaInput build() => _build(); + + _$GSetCategoryMetaInput _build() { + _$GSetCategoryMetaInput _$result; + try { + _$result = _$v ?? + new _$GSetCategoryMetaInput._( + clientMutationId: clientMutationId, meta: meta.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'meta'; + meta.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSetCategoryMetaInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSetChapterMetaInput extends GSetChapterMetaInput { + @override + final String? clientMutationId; + @override + final GChapterMetaTypeInput meta; + + factory _$GSetChapterMetaInput( + [void Function(GSetChapterMetaInputBuilder)? updates]) => + (new GSetChapterMetaInputBuilder()..update(updates))._build(); + + _$GSetChapterMetaInput._({this.clientMutationId, required this.meta}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + meta, r'GSetChapterMetaInput', 'meta'); + } + + @override + GSetChapterMetaInput rebuild( + void Function(GSetChapterMetaInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSetChapterMetaInputBuilder toBuilder() => + new GSetChapterMetaInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSetChapterMetaInput && + clientMutationId == other.clientMutationId && + meta == other.meta; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSetChapterMetaInput') + ..add('clientMutationId', clientMutationId) + ..add('meta', meta)) + .toString(); + } +} + +class GSetChapterMetaInputBuilder + implements Builder { + _$GSetChapterMetaInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GChapterMetaTypeInputBuilder? _meta; + GChapterMetaTypeInputBuilder get meta => + _$this._meta ??= new GChapterMetaTypeInputBuilder(); + set meta(GChapterMetaTypeInputBuilder? meta) => _$this._meta = meta; + + GSetChapterMetaInputBuilder(); + + GSetChapterMetaInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _meta = $v.meta.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GSetChapterMetaInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSetChapterMetaInput; + } + + @override + void update(void Function(GSetChapterMetaInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSetChapterMetaInput build() => _build(); + + _$GSetChapterMetaInput _build() { + _$GSetChapterMetaInput _$result; + try { + _$result = _$v ?? + new _$GSetChapterMetaInput._( + clientMutationId: clientMutationId, meta: meta.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'meta'; + meta.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSetChapterMetaInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSetGlobalMetaInput extends GSetGlobalMetaInput { + @override + final String? clientMutationId; + @override + final GGlobalMetaTypeInput meta; + + factory _$GSetGlobalMetaInput( + [void Function(GSetGlobalMetaInputBuilder)? updates]) => + (new GSetGlobalMetaInputBuilder()..update(updates))._build(); + + _$GSetGlobalMetaInput._({this.clientMutationId, required this.meta}) + : super._() { + BuiltValueNullFieldError.checkNotNull(meta, r'GSetGlobalMetaInput', 'meta'); + } + + @override + GSetGlobalMetaInput rebuild( + void Function(GSetGlobalMetaInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSetGlobalMetaInputBuilder toBuilder() => + new GSetGlobalMetaInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSetGlobalMetaInput && + clientMutationId == other.clientMutationId && + meta == other.meta; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSetGlobalMetaInput') + ..add('clientMutationId', clientMutationId) + ..add('meta', meta)) + .toString(); + } +} + +class GSetGlobalMetaInputBuilder + implements Builder { + _$GSetGlobalMetaInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GGlobalMetaTypeInputBuilder? _meta; + GGlobalMetaTypeInputBuilder get meta => + _$this._meta ??= new GGlobalMetaTypeInputBuilder(); + set meta(GGlobalMetaTypeInputBuilder? meta) => _$this._meta = meta; + + GSetGlobalMetaInputBuilder(); + + GSetGlobalMetaInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _meta = $v.meta.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GSetGlobalMetaInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSetGlobalMetaInput; + } + + @override + void update(void Function(GSetGlobalMetaInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSetGlobalMetaInput build() => _build(); + + _$GSetGlobalMetaInput _build() { + _$GSetGlobalMetaInput _$result; + try { + _$result = _$v ?? + new _$GSetGlobalMetaInput._( + clientMutationId: clientMutationId, meta: meta.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'meta'; + meta.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSetGlobalMetaInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSetMangaMetaInput extends GSetMangaMetaInput { + @override + final String? clientMutationId; + @override + final GMangaMetaTypeInput meta; + + factory _$GSetMangaMetaInput( + [void Function(GSetMangaMetaInputBuilder)? updates]) => + (new GSetMangaMetaInputBuilder()..update(updates))._build(); + + _$GSetMangaMetaInput._({this.clientMutationId, required this.meta}) + : super._() { + BuiltValueNullFieldError.checkNotNull(meta, r'GSetMangaMetaInput', 'meta'); + } + + @override + GSetMangaMetaInput rebuild( + void Function(GSetMangaMetaInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSetMangaMetaInputBuilder toBuilder() => + new GSetMangaMetaInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSetMangaMetaInput && + clientMutationId == other.clientMutationId && + meta == other.meta; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSetMangaMetaInput') + ..add('clientMutationId', clientMutationId) + ..add('meta', meta)) + .toString(); + } +} + +class GSetMangaMetaInputBuilder + implements Builder { + _$GSetMangaMetaInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GMangaMetaTypeInputBuilder? _meta; + GMangaMetaTypeInputBuilder get meta => + _$this._meta ??= new GMangaMetaTypeInputBuilder(); + set meta(GMangaMetaTypeInputBuilder? meta) => _$this._meta = meta; + + GSetMangaMetaInputBuilder(); + + GSetMangaMetaInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _meta = $v.meta.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GSetMangaMetaInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSetMangaMetaInput; + } + + @override + void update(void Function(GSetMangaMetaInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSetMangaMetaInput build() => _build(); + + _$GSetMangaMetaInput _build() { + _$GSetMangaMetaInput _$result; + try { + _$result = _$v ?? + new _$GSetMangaMetaInput._( + clientMutationId: clientMutationId, meta: meta.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'meta'; + meta.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSetMangaMetaInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSetSettingsInput extends GSetSettingsInput { + @override + final String? clientMutationId; + @override + final GPartialSettingsTypeInput settings; + + factory _$GSetSettingsInput( + [void Function(GSetSettingsInputBuilder)? updates]) => + (new GSetSettingsInputBuilder()..update(updates))._build(); + + _$GSetSettingsInput._({this.clientMutationId, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + settings, r'GSetSettingsInput', 'settings'); + } + + @override + GSetSettingsInput rebuild(void Function(GSetSettingsInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSetSettingsInputBuilder toBuilder() => + new GSetSettingsInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSetSettingsInput && + clientMutationId == other.clientMutationId && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSetSettingsInput') + ..add('clientMutationId', clientMutationId) + ..add('settings', settings)) + .toString(); + } +} + +class GSetSettingsInputBuilder + implements Builder { + _$GSetSettingsInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GPartialSettingsTypeInputBuilder? _settings; + GPartialSettingsTypeInputBuilder get settings => + _$this._settings ??= new GPartialSettingsTypeInputBuilder(); + set settings(GPartialSettingsTypeInputBuilder? settings) => + _$this._settings = settings; + + GSetSettingsInputBuilder(); + + GSetSettingsInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GSetSettingsInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSetSettingsInput; + } + + @override + void update(void Function(GSetSettingsInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSetSettingsInput build() => _build(); + + _$GSetSettingsInput _build() { + _$GSetSettingsInput _$result; + try { + _$result = _$v ?? + new _$GSetSettingsInput._( + clientMutationId: clientMutationId, settings: settings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSetSettingsInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSetSourceMetaInput extends GSetSourceMetaInput { + @override + final String? clientMutationId; + @override + final GSourceMetaTypeInput meta; + + factory _$GSetSourceMetaInput( + [void Function(GSetSourceMetaInputBuilder)? updates]) => + (new GSetSourceMetaInputBuilder()..update(updates))._build(); + + _$GSetSourceMetaInput._({this.clientMutationId, required this.meta}) + : super._() { + BuiltValueNullFieldError.checkNotNull(meta, r'GSetSourceMetaInput', 'meta'); + } + + @override + GSetSourceMetaInput rebuild( + void Function(GSetSourceMetaInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSetSourceMetaInputBuilder toBuilder() => + new GSetSourceMetaInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSetSourceMetaInput && + clientMutationId == other.clientMutationId && + meta == other.meta; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSetSourceMetaInput') + ..add('clientMutationId', clientMutationId) + ..add('meta', meta)) + .toString(); + } +} + +class GSetSourceMetaInputBuilder + implements Builder { + _$GSetSourceMetaInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GSourceMetaTypeInputBuilder? _meta; + GSourceMetaTypeInputBuilder get meta => + _$this._meta ??= new GSourceMetaTypeInputBuilder(); + set meta(GSourceMetaTypeInputBuilder? meta) => _$this._meta = meta; + + GSetSourceMetaInputBuilder(); + + GSetSourceMetaInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _meta = $v.meta.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GSetSourceMetaInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSetSourceMetaInput; + } + + @override + void update(void Function(GSetSourceMetaInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSetSourceMetaInput build() => _build(); + + _$GSetSourceMetaInput _build() { + _$GSetSourceMetaInput _$result; + try { + _$result = _$v ?? + new _$GSetSourceMetaInput._( + clientMutationId: clientMutationId, meta: meta.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'meta'; + meta.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSetSourceMetaInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSortSelectionInput extends GSortSelectionInput { + @override + final bool ascending; + @override + final int index; + + factory _$GSortSelectionInput( + [void Function(GSortSelectionInputBuilder)? updates]) => + (new GSortSelectionInputBuilder()..update(updates))._build(); + + _$GSortSelectionInput._({required this.ascending, required this.index}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + ascending, r'GSortSelectionInput', 'ascending'); + BuiltValueNullFieldError.checkNotNull( + index, r'GSortSelectionInput', 'index'); + } + + @override + GSortSelectionInput rebuild( + void Function(GSortSelectionInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSortSelectionInputBuilder toBuilder() => + new GSortSelectionInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSortSelectionInput && + ascending == other.ascending && + index == other.index; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, ascending.hashCode); + _$hash = $jc(_$hash, index.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSortSelectionInput') + ..add('ascending', ascending) + ..add('index', index)) + .toString(); + } +} + +class GSortSelectionInputBuilder + implements Builder { + _$GSortSelectionInput? _$v; + + bool? _ascending; + bool? get ascending => _$this._ascending; + set ascending(bool? ascending) => _$this._ascending = ascending; + + int? _index; + int? get index => _$this._index; + set index(int? index) => _$this._index = index; + + GSortSelectionInputBuilder(); + + GSortSelectionInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _ascending = $v.ascending; + _index = $v.index; + _$v = null; + } + return this; + } + + @override + void replace(GSortSelectionInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSortSelectionInput; + } + + @override + void update(void Function(GSortSelectionInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSortSelectionInput build() => _build(); + + _$GSortSelectionInput _build() { + final _$result = _$v ?? + new _$GSortSelectionInput._( + ascending: BuiltValueNullFieldError.checkNotNull( + ascending, r'GSortSelectionInput', 'ascending'), + index: BuiltValueNullFieldError.checkNotNull( + index, r'GSortSelectionInput', 'index')); + replace(_$result); + return _$result; + } +} + +class _$GSourceConditionInput extends GSourceConditionInput { + @override + final GLongString? id; + @override + final bool? isNsfw; + @override + final String? lang; + @override + final String? name; + + factory _$GSourceConditionInput( + [void Function(GSourceConditionInputBuilder)? updates]) => + (new GSourceConditionInputBuilder()..update(updates))._build(); + + _$GSourceConditionInput._({this.id, this.isNsfw, this.lang, this.name}) + : super._(); + + @override + GSourceConditionInput rebuild( + void Function(GSourceConditionInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceConditionInputBuilder toBuilder() => + new GSourceConditionInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceConditionInput && + id == other.id && + isNsfw == other.isNsfw && + lang == other.lang && + name == other.name; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, isNsfw.hashCode); + _$hash = $jc(_$hash, lang.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourceConditionInput') + ..add('id', id) + ..add('isNsfw', isNsfw) + ..add('lang', lang) + ..add('name', name)) + .toString(); + } +} + +class GSourceConditionInputBuilder + implements Builder { + _$GSourceConditionInput? _$v; + + GLongStringBuilder? _id; + GLongStringBuilder get id => _$this._id ??= new GLongStringBuilder(); + set id(GLongStringBuilder? id) => _$this._id = id; + + bool? _isNsfw; + bool? get isNsfw => _$this._isNsfw; + set isNsfw(bool? isNsfw) => _$this._isNsfw = isNsfw; + + String? _lang; + String? get lang => _$this._lang; + set lang(String? lang) => _$this._lang = lang; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + GSourceConditionInputBuilder(); + + GSourceConditionInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _id = $v.id?.toBuilder(); + _isNsfw = $v.isNsfw; + _lang = $v.lang; + _name = $v.name; + _$v = null; + } + return this; + } + + @override + void replace(GSourceConditionInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceConditionInput; + } + + @override + void update(void Function(GSourceConditionInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourceConditionInput build() => _build(); + + _$GSourceConditionInput _build() { + _$GSourceConditionInput _$result; + try { + _$result = _$v ?? + new _$GSourceConditionInput._( + id: _id?.build(), isNsfw: isNsfw, lang: lang, name: name); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'id'; + _id?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourceConditionInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSourceFilterInput extends GSourceFilterInput { + @override + final BuiltList? and; + @override + final GLongFilterInput? id; + @override + final GBooleanFilterInput? isNsfw; + @override + final GStringFilterInput? lang; + @override + final GStringFilterInput? name; + @override + final GSourceFilterInput? not; + @override + final BuiltList? or; + + factory _$GSourceFilterInput( + [void Function(GSourceFilterInputBuilder)? updates]) => + (new GSourceFilterInputBuilder()..update(updates))._build(); + + _$GSourceFilterInput._( + {this.and, this.id, this.isNsfw, this.lang, this.name, this.not, this.or}) + : super._(); + + @override + GSourceFilterInput rebuild( + void Function(GSourceFilterInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceFilterInputBuilder toBuilder() => + new GSourceFilterInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceFilterInput && + and == other.and && + id == other.id && + isNsfw == other.isNsfw && + lang == other.lang && + name == other.name && + not == other.not && + or == other.or; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, and.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, isNsfw.hashCode); + _$hash = $jc(_$hash, lang.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, not.hashCode); + _$hash = $jc(_$hash, or.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourceFilterInput') + ..add('and', and) + ..add('id', id) + ..add('isNsfw', isNsfw) + ..add('lang', lang) + ..add('name', name) + ..add('not', not) + ..add('or', or)) + .toString(); + } +} + +class GSourceFilterInputBuilder + implements Builder { + _$GSourceFilterInput? _$v; + + ListBuilder? _and; + ListBuilder get and => + _$this._and ??= new ListBuilder(); + set and(ListBuilder? and) => _$this._and = and; + + GLongFilterInputBuilder? _id; + GLongFilterInputBuilder get id => + _$this._id ??= new GLongFilterInputBuilder(); + set id(GLongFilterInputBuilder? id) => _$this._id = id; + + GBooleanFilterInputBuilder? _isNsfw; + GBooleanFilterInputBuilder get isNsfw => + _$this._isNsfw ??= new GBooleanFilterInputBuilder(); + set isNsfw(GBooleanFilterInputBuilder? isNsfw) => _$this._isNsfw = isNsfw; + + GStringFilterInputBuilder? _lang; + GStringFilterInputBuilder get lang => + _$this._lang ??= new GStringFilterInputBuilder(); + set lang(GStringFilterInputBuilder? lang) => _$this._lang = lang; + + GStringFilterInputBuilder? _name; + GStringFilterInputBuilder get name => + _$this._name ??= new GStringFilterInputBuilder(); + set name(GStringFilterInputBuilder? name) => _$this._name = name; + + GSourceFilterInputBuilder? _not; + GSourceFilterInputBuilder get not => + _$this._not ??= new GSourceFilterInputBuilder(); + set not(GSourceFilterInputBuilder? not) => _$this._not = not; + + ListBuilder? _or; + ListBuilder get or => + _$this._or ??= new ListBuilder(); + set or(ListBuilder? or) => _$this._or = or; + + GSourceFilterInputBuilder(); + + GSourceFilterInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _and = $v.and?.toBuilder(); + _id = $v.id?.toBuilder(); + _isNsfw = $v.isNsfw?.toBuilder(); + _lang = $v.lang?.toBuilder(); + _name = $v.name?.toBuilder(); + _not = $v.not?.toBuilder(); + _or = $v.or?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GSourceFilterInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceFilterInput; + } + + @override + void update(void Function(GSourceFilterInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourceFilterInput build() => _build(); + + _$GSourceFilterInput _build() { + _$GSourceFilterInput _$result; + try { + _$result = _$v ?? + new _$GSourceFilterInput._( + and: _and?.build(), + id: _id?.build(), + isNsfw: _isNsfw?.build(), + lang: _lang?.build(), + name: _name?.build(), + not: _not?.build(), + or: _or?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'and'; + _and?.build(); + _$failedField = 'id'; + _id?.build(); + _$failedField = 'isNsfw'; + _isNsfw?.build(); + _$failedField = 'lang'; + _lang?.build(); + _$failedField = 'name'; + _name?.build(); + _$failedField = 'not'; + _not?.build(); + _$failedField = 'or'; + _or?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourceFilterInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSourceMetaTypeInput extends GSourceMetaTypeInput { + @override + final String key; + @override + final GLongString sourceId; + @override + final String value; + + factory _$GSourceMetaTypeInput( + [void Function(GSourceMetaTypeInputBuilder)? updates]) => + (new GSourceMetaTypeInputBuilder()..update(updates))._build(); + + _$GSourceMetaTypeInput._( + {required this.key, required this.sourceId, required this.value}) + : super._() { + BuiltValueNullFieldError.checkNotNull(key, r'GSourceMetaTypeInput', 'key'); + BuiltValueNullFieldError.checkNotNull( + sourceId, r'GSourceMetaTypeInput', 'sourceId'); + BuiltValueNullFieldError.checkNotNull( + value, r'GSourceMetaTypeInput', 'value'); + } + + @override + GSourceMetaTypeInput rebuild( + void Function(GSourceMetaTypeInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceMetaTypeInputBuilder toBuilder() => + new GSourceMetaTypeInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceMetaTypeInput && + key == other.key && + sourceId == other.sourceId && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, sourceId.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourceMetaTypeInput') + ..add('key', key) + ..add('sourceId', sourceId) + ..add('value', value)) + .toString(); + } +} + +class GSourceMetaTypeInputBuilder + implements Builder { + _$GSourceMetaTypeInput? _$v; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + GLongStringBuilder? _sourceId; + GLongStringBuilder get sourceId => + _$this._sourceId ??= new GLongStringBuilder(); + set sourceId(GLongStringBuilder? sourceId) => _$this._sourceId = sourceId; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GSourceMetaTypeInputBuilder(); + + GSourceMetaTypeInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _key = $v.key; + _sourceId = $v.sourceId.toBuilder(); + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GSourceMetaTypeInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceMetaTypeInput; + } + + @override + void update(void Function(GSourceMetaTypeInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourceMetaTypeInput build() => _build(); + + _$GSourceMetaTypeInput _build() { + _$GSourceMetaTypeInput _$result; + try { + _$result = _$v ?? + new _$GSourceMetaTypeInput._( + key: BuiltValueNullFieldError.checkNotNull( + key, r'GSourceMetaTypeInput', 'key'), + sourceId: sourceId.build(), + value: BuiltValueNullFieldError.checkNotNull( + value, r'GSourceMetaTypeInput', 'value')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'sourceId'; + sourceId.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourceMetaTypeInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSourcePreferenceChangeInput extends GSourcePreferenceChangeInput { + @override + final bool? checkBoxState; + @override + final String? editTextState; + @override + final String? listState; + @override + final BuiltList? multiSelectState; + @override + final int position; + @override + final bool? switchState; + + factory _$GSourcePreferenceChangeInput( + [void Function(GSourcePreferenceChangeInputBuilder)? updates]) => + (new GSourcePreferenceChangeInputBuilder()..update(updates))._build(); + + _$GSourcePreferenceChangeInput._( + {this.checkBoxState, + this.editTextState, + this.listState, + this.multiSelectState, + required this.position, + this.switchState}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + position, r'GSourcePreferenceChangeInput', 'position'); + } + + @override + GSourcePreferenceChangeInput rebuild( + void Function(GSourcePreferenceChangeInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourcePreferenceChangeInputBuilder toBuilder() => + new GSourcePreferenceChangeInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourcePreferenceChangeInput && + checkBoxState == other.checkBoxState && + editTextState == other.editTextState && + listState == other.listState && + multiSelectState == other.multiSelectState && + position == other.position && + switchState == other.switchState; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, checkBoxState.hashCode); + _$hash = $jc(_$hash, editTextState.hashCode); + _$hash = $jc(_$hash, listState.hashCode); + _$hash = $jc(_$hash, multiSelectState.hashCode); + _$hash = $jc(_$hash, position.hashCode); + _$hash = $jc(_$hash, switchState.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourcePreferenceChangeInput') + ..add('checkBoxState', checkBoxState) + ..add('editTextState', editTextState) + ..add('listState', listState) + ..add('multiSelectState', multiSelectState) + ..add('position', position) + ..add('switchState', switchState)) + .toString(); + } +} + +class GSourcePreferenceChangeInputBuilder + implements + Builder { + _$GSourcePreferenceChangeInput? _$v; + + bool? _checkBoxState; + bool? get checkBoxState => _$this._checkBoxState; + set checkBoxState(bool? checkBoxState) => + _$this._checkBoxState = checkBoxState; + + String? _editTextState; + String? get editTextState => _$this._editTextState; + set editTextState(String? editTextState) => + _$this._editTextState = editTextState; + + String? _listState; + String? get listState => _$this._listState; + set listState(String? listState) => _$this._listState = listState; + + ListBuilder? _multiSelectState; + ListBuilder get multiSelectState => + _$this._multiSelectState ??= new ListBuilder(); + set multiSelectState(ListBuilder? multiSelectState) => + _$this._multiSelectState = multiSelectState; + + int? _position; + int? get position => _$this._position; + set position(int? position) => _$this._position = position; + + bool? _switchState; + bool? get switchState => _$this._switchState; + set switchState(bool? switchState) => _$this._switchState = switchState; + + GSourcePreferenceChangeInputBuilder(); + + GSourcePreferenceChangeInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _checkBoxState = $v.checkBoxState; + _editTextState = $v.editTextState; + _listState = $v.listState; + _multiSelectState = $v.multiSelectState?.toBuilder(); + _position = $v.position; + _switchState = $v.switchState; + _$v = null; + } + return this; + } + + @override + void replace(GSourcePreferenceChangeInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourcePreferenceChangeInput; + } + + @override + void update(void Function(GSourcePreferenceChangeInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourcePreferenceChangeInput build() => _build(); + + _$GSourcePreferenceChangeInput _build() { + _$GSourcePreferenceChangeInput _$result; + try { + _$result = _$v ?? + new _$GSourcePreferenceChangeInput._( + checkBoxState: checkBoxState, + editTextState: editTextState, + listState: listState, + multiSelectState: _multiSelectState?.build(), + position: BuiltValueNullFieldError.checkNotNull( + position, r'GSourcePreferenceChangeInput', 'position'), + switchState: switchState); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'multiSelectState'; + _multiSelectState?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourcePreferenceChangeInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GStartDownloaderInput extends GStartDownloaderInput { + @override + final String? clientMutationId; + + factory _$GStartDownloaderInput( + [void Function(GStartDownloaderInputBuilder)? updates]) => + (new GStartDownloaderInputBuilder()..update(updates))._build(); + + _$GStartDownloaderInput._({this.clientMutationId}) : super._(); + + @override + GStartDownloaderInput rebuild( + void Function(GStartDownloaderInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GStartDownloaderInputBuilder toBuilder() => + new GStartDownloaderInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GStartDownloaderInput && + clientMutationId == other.clientMutationId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GStartDownloaderInput') + ..add('clientMutationId', clientMutationId)) + .toString(); + } +} + +class GStartDownloaderInputBuilder + implements Builder { + _$GStartDownloaderInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GStartDownloaderInputBuilder(); + + GStartDownloaderInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _$v = null; + } + return this; + } + + @override + void replace(GStartDownloaderInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GStartDownloaderInput; + } + + @override + void update(void Function(GStartDownloaderInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GStartDownloaderInput build() => _build(); + + _$GStartDownloaderInput _build() { + final _$result = _$v ?? + new _$GStartDownloaderInput._(clientMutationId: clientMutationId); + replace(_$result); + return _$result; + } +} + +class _$GStopDownloaderInput extends GStopDownloaderInput { + @override + final String? clientMutationId; + + factory _$GStopDownloaderInput( + [void Function(GStopDownloaderInputBuilder)? updates]) => + (new GStopDownloaderInputBuilder()..update(updates))._build(); + + _$GStopDownloaderInput._({this.clientMutationId}) : super._(); + + @override + GStopDownloaderInput rebuild( + void Function(GStopDownloaderInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GStopDownloaderInputBuilder toBuilder() => + new GStopDownloaderInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GStopDownloaderInput && + clientMutationId == other.clientMutationId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GStopDownloaderInput') + ..add('clientMutationId', clientMutationId)) + .toString(); + } +} + +class GStopDownloaderInputBuilder + implements Builder { + _$GStopDownloaderInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GStopDownloaderInputBuilder(); + + GStopDownloaderInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _$v = null; + } + return this; + } + + @override + void replace(GStopDownloaderInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GStopDownloaderInput; + } + + @override + void update(void Function(GStopDownloaderInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GStopDownloaderInput build() => _build(); + + _$GStopDownloaderInput _build() { + final _$result = + _$v ?? new _$GStopDownloaderInput._(clientMutationId: clientMutationId); + replace(_$result); + return _$result; + } +} + +class _$GStringFilterInput extends GStringFilterInput { + @override + final String? distinctFrom; + @override + final String? distinctFromInsensitive; + @override + final String? endsWith; + @override + final String? endsWithInsensitive; + @override + final String? equalTo; + @override + final String? greaterThan; + @override + final String? greaterThanInsensitive; + @override + final String? greaterThanOrEqualTo; + @override + final String? greaterThanOrEqualToInsensitive; + @override + final BuiltList? Gin; + @override + final BuiltList? inInsensitive; + @override + final String? includes; + @override + final String? includesInsensitive; + @override + final bool? isNull; + @override + final String? lessThan; + @override + final String? lessThanInsensitive; + @override + final String? lessThanOrEqualTo; + @override + final String? lessThanOrEqualToInsensitive; + @override + final String? like; + @override + final String? likeInsensitive; + @override + final String? notDistinctFrom; + @override + final String? notDistinctFromInsensitive; + @override + final String? notEndsWith; + @override + final String? notEndsWithInsensitive; + @override + final String? notEqualTo; + @override + final BuiltList? notIn; + @override + final BuiltList? notInInsensitive; + @override + final String? notIncludes; + @override + final String? notIncludesInsensitive; + @override + final String? notLike; + @override + final String? notLikeInsensitive; + @override + final String? notStartsWith; + @override + final String? notStartsWithInsensitive; + @override + final String? startsWith; + @override + final String? startsWithInsensitive; + + factory _$GStringFilterInput( + [void Function(GStringFilterInputBuilder)? updates]) => + (new GStringFilterInputBuilder()..update(updates))._build(); + + _$GStringFilterInput._( + {this.distinctFrom, + this.distinctFromInsensitive, + this.endsWith, + this.endsWithInsensitive, + this.equalTo, + this.greaterThan, + this.greaterThanInsensitive, + this.greaterThanOrEqualTo, + this.greaterThanOrEqualToInsensitive, + this.Gin, + this.inInsensitive, + this.includes, + this.includesInsensitive, + this.isNull, + this.lessThan, + this.lessThanInsensitive, + this.lessThanOrEqualTo, + this.lessThanOrEqualToInsensitive, + this.like, + this.likeInsensitive, + this.notDistinctFrom, + this.notDistinctFromInsensitive, + this.notEndsWith, + this.notEndsWithInsensitive, + this.notEqualTo, + this.notIn, + this.notInInsensitive, + this.notIncludes, + this.notIncludesInsensitive, + this.notLike, + this.notLikeInsensitive, + this.notStartsWith, + this.notStartsWithInsensitive, + this.startsWith, + this.startsWithInsensitive}) + : super._(); + + @override + GStringFilterInput rebuild( + void Function(GStringFilterInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GStringFilterInputBuilder toBuilder() => + new GStringFilterInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GStringFilterInput && + distinctFrom == other.distinctFrom && + distinctFromInsensitive == other.distinctFromInsensitive && + endsWith == other.endsWith && + endsWithInsensitive == other.endsWithInsensitive && + equalTo == other.equalTo && + greaterThan == other.greaterThan && + greaterThanInsensitive == other.greaterThanInsensitive && + greaterThanOrEqualTo == other.greaterThanOrEqualTo && + greaterThanOrEqualToInsensitive == + other.greaterThanOrEqualToInsensitive && + Gin == other.Gin && + inInsensitive == other.inInsensitive && + includes == other.includes && + includesInsensitive == other.includesInsensitive && + isNull == other.isNull && + lessThan == other.lessThan && + lessThanInsensitive == other.lessThanInsensitive && + lessThanOrEqualTo == other.lessThanOrEqualTo && + lessThanOrEqualToInsensitive == other.lessThanOrEqualToInsensitive && + like == other.like && + likeInsensitive == other.likeInsensitive && + notDistinctFrom == other.notDistinctFrom && + notDistinctFromInsensitive == other.notDistinctFromInsensitive && + notEndsWith == other.notEndsWith && + notEndsWithInsensitive == other.notEndsWithInsensitive && + notEqualTo == other.notEqualTo && + notIn == other.notIn && + notInInsensitive == other.notInInsensitive && + notIncludes == other.notIncludes && + notIncludesInsensitive == other.notIncludesInsensitive && + notLike == other.notLike && + notLikeInsensitive == other.notLikeInsensitive && + notStartsWith == other.notStartsWith && + notStartsWithInsensitive == other.notStartsWithInsensitive && + startsWith == other.startsWith && + startsWithInsensitive == other.startsWithInsensitive; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, distinctFrom.hashCode); + _$hash = $jc(_$hash, distinctFromInsensitive.hashCode); + _$hash = $jc(_$hash, endsWith.hashCode); + _$hash = $jc(_$hash, endsWithInsensitive.hashCode); + _$hash = $jc(_$hash, equalTo.hashCode); + _$hash = $jc(_$hash, greaterThan.hashCode); + _$hash = $jc(_$hash, greaterThanInsensitive.hashCode); + _$hash = $jc(_$hash, greaterThanOrEqualTo.hashCode); + _$hash = $jc(_$hash, greaterThanOrEqualToInsensitive.hashCode); + _$hash = $jc(_$hash, Gin.hashCode); + _$hash = $jc(_$hash, inInsensitive.hashCode); + _$hash = $jc(_$hash, includes.hashCode); + _$hash = $jc(_$hash, includesInsensitive.hashCode); + _$hash = $jc(_$hash, isNull.hashCode); + _$hash = $jc(_$hash, lessThan.hashCode); + _$hash = $jc(_$hash, lessThanInsensitive.hashCode); + _$hash = $jc(_$hash, lessThanOrEqualTo.hashCode); + _$hash = $jc(_$hash, lessThanOrEqualToInsensitive.hashCode); + _$hash = $jc(_$hash, like.hashCode); + _$hash = $jc(_$hash, likeInsensitive.hashCode); + _$hash = $jc(_$hash, notDistinctFrom.hashCode); + _$hash = $jc(_$hash, notDistinctFromInsensitive.hashCode); + _$hash = $jc(_$hash, notEndsWith.hashCode); + _$hash = $jc(_$hash, notEndsWithInsensitive.hashCode); + _$hash = $jc(_$hash, notEqualTo.hashCode); + _$hash = $jc(_$hash, notIn.hashCode); + _$hash = $jc(_$hash, notInInsensitive.hashCode); + _$hash = $jc(_$hash, notIncludes.hashCode); + _$hash = $jc(_$hash, notIncludesInsensitive.hashCode); + _$hash = $jc(_$hash, notLike.hashCode); + _$hash = $jc(_$hash, notLikeInsensitive.hashCode); + _$hash = $jc(_$hash, notStartsWith.hashCode); + _$hash = $jc(_$hash, notStartsWithInsensitive.hashCode); + _$hash = $jc(_$hash, startsWith.hashCode); + _$hash = $jc(_$hash, startsWithInsensitive.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GStringFilterInput') + ..add('distinctFrom', distinctFrom) + ..add('distinctFromInsensitive', distinctFromInsensitive) + ..add('endsWith', endsWith) + ..add('endsWithInsensitive', endsWithInsensitive) + ..add('equalTo', equalTo) + ..add('greaterThan', greaterThan) + ..add('greaterThanInsensitive', greaterThanInsensitive) + ..add('greaterThanOrEqualTo', greaterThanOrEqualTo) + ..add('greaterThanOrEqualToInsensitive', + greaterThanOrEqualToInsensitive) + ..add('Gin', Gin) + ..add('inInsensitive', inInsensitive) + ..add('includes', includes) + ..add('includesInsensitive', includesInsensitive) + ..add('isNull', isNull) + ..add('lessThan', lessThan) + ..add('lessThanInsensitive', lessThanInsensitive) + ..add('lessThanOrEqualTo', lessThanOrEqualTo) + ..add('lessThanOrEqualToInsensitive', lessThanOrEqualToInsensitive) + ..add('like', like) + ..add('likeInsensitive', likeInsensitive) + ..add('notDistinctFrom', notDistinctFrom) + ..add('notDistinctFromInsensitive', notDistinctFromInsensitive) + ..add('notEndsWith', notEndsWith) + ..add('notEndsWithInsensitive', notEndsWithInsensitive) + ..add('notEqualTo', notEqualTo) + ..add('notIn', notIn) + ..add('notInInsensitive', notInInsensitive) + ..add('notIncludes', notIncludes) + ..add('notIncludesInsensitive', notIncludesInsensitive) + ..add('notLike', notLike) + ..add('notLikeInsensitive', notLikeInsensitive) + ..add('notStartsWith', notStartsWith) + ..add('notStartsWithInsensitive', notStartsWithInsensitive) + ..add('startsWith', startsWith) + ..add('startsWithInsensitive', startsWithInsensitive)) + .toString(); + } +} + +class GStringFilterInputBuilder + implements Builder { + _$GStringFilterInput? _$v; + + String? _distinctFrom; + String? get distinctFrom => _$this._distinctFrom; + set distinctFrom(String? distinctFrom) => _$this._distinctFrom = distinctFrom; + + String? _distinctFromInsensitive; + String? get distinctFromInsensitive => _$this._distinctFromInsensitive; + set distinctFromInsensitive(String? distinctFromInsensitive) => + _$this._distinctFromInsensitive = distinctFromInsensitive; + + String? _endsWith; + String? get endsWith => _$this._endsWith; + set endsWith(String? endsWith) => _$this._endsWith = endsWith; + + String? _endsWithInsensitive; + String? get endsWithInsensitive => _$this._endsWithInsensitive; + set endsWithInsensitive(String? endsWithInsensitive) => + _$this._endsWithInsensitive = endsWithInsensitive; + + String? _equalTo; + String? get equalTo => _$this._equalTo; + set equalTo(String? equalTo) => _$this._equalTo = equalTo; + + String? _greaterThan; + String? get greaterThan => _$this._greaterThan; + set greaterThan(String? greaterThan) => _$this._greaterThan = greaterThan; + + String? _greaterThanInsensitive; + String? get greaterThanInsensitive => _$this._greaterThanInsensitive; + set greaterThanInsensitive(String? greaterThanInsensitive) => + _$this._greaterThanInsensitive = greaterThanInsensitive; + + String? _greaterThanOrEqualTo; + String? get greaterThanOrEqualTo => _$this._greaterThanOrEqualTo; + set greaterThanOrEqualTo(String? greaterThanOrEqualTo) => + _$this._greaterThanOrEqualTo = greaterThanOrEqualTo; + + String? _greaterThanOrEqualToInsensitive; + String? get greaterThanOrEqualToInsensitive => + _$this._greaterThanOrEqualToInsensitive; + set greaterThanOrEqualToInsensitive( + String? greaterThanOrEqualToInsensitive) => + _$this._greaterThanOrEqualToInsensitive = greaterThanOrEqualToInsensitive; + + ListBuilder? _Gin; + ListBuilder get Gin => _$this._Gin ??= new ListBuilder(); + set Gin(ListBuilder? Gin) => _$this._Gin = Gin; + + ListBuilder? _inInsensitive; + ListBuilder get inInsensitive => + _$this._inInsensitive ??= new ListBuilder(); + set inInsensitive(ListBuilder? inInsensitive) => + _$this._inInsensitive = inInsensitive; + + String? _includes; + String? get includes => _$this._includes; + set includes(String? includes) => _$this._includes = includes; + + String? _includesInsensitive; + String? get includesInsensitive => _$this._includesInsensitive; + set includesInsensitive(String? includesInsensitive) => + _$this._includesInsensitive = includesInsensitive; + + bool? _isNull; + bool? get isNull => _$this._isNull; + set isNull(bool? isNull) => _$this._isNull = isNull; + + String? _lessThan; + String? get lessThan => _$this._lessThan; + set lessThan(String? lessThan) => _$this._lessThan = lessThan; + + String? _lessThanInsensitive; + String? get lessThanInsensitive => _$this._lessThanInsensitive; + set lessThanInsensitive(String? lessThanInsensitive) => + _$this._lessThanInsensitive = lessThanInsensitive; + + String? _lessThanOrEqualTo; + String? get lessThanOrEqualTo => _$this._lessThanOrEqualTo; + set lessThanOrEqualTo(String? lessThanOrEqualTo) => + _$this._lessThanOrEqualTo = lessThanOrEqualTo; + + String? _lessThanOrEqualToInsensitive; + String? get lessThanOrEqualToInsensitive => + _$this._lessThanOrEqualToInsensitive; + set lessThanOrEqualToInsensitive(String? lessThanOrEqualToInsensitive) => + _$this._lessThanOrEqualToInsensitive = lessThanOrEqualToInsensitive; + + String? _like; + String? get like => _$this._like; + set like(String? like) => _$this._like = like; + + String? _likeInsensitive; + String? get likeInsensitive => _$this._likeInsensitive; + set likeInsensitive(String? likeInsensitive) => + _$this._likeInsensitive = likeInsensitive; + + String? _notDistinctFrom; + String? get notDistinctFrom => _$this._notDistinctFrom; + set notDistinctFrom(String? notDistinctFrom) => + _$this._notDistinctFrom = notDistinctFrom; + + String? _notDistinctFromInsensitive; + String? get notDistinctFromInsensitive => _$this._notDistinctFromInsensitive; + set notDistinctFromInsensitive(String? notDistinctFromInsensitive) => + _$this._notDistinctFromInsensitive = notDistinctFromInsensitive; + + String? _notEndsWith; + String? get notEndsWith => _$this._notEndsWith; + set notEndsWith(String? notEndsWith) => _$this._notEndsWith = notEndsWith; + + String? _notEndsWithInsensitive; + String? get notEndsWithInsensitive => _$this._notEndsWithInsensitive; + set notEndsWithInsensitive(String? notEndsWithInsensitive) => + _$this._notEndsWithInsensitive = notEndsWithInsensitive; + + String? _notEqualTo; + String? get notEqualTo => _$this._notEqualTo; + set notEqualTo(String? notEqualTo) => _$this._notEqualTo = notEqualTo; + + ListBuilder? _notIn; + ListBuilder get notIn => _$this._notIn ??= new ListBuilder(); + set notIn(ListBuilder? notIn) => _$this._notIn = notIn; + + ListBuilder? _notInInsensitive; + ListBuilder get notInInsensitive => + _$this._notInInsensitive ??= new ListBuilder(); + set notInInsensitive(ListBuilder? notInInsensitive) => + _$this._notInInsensitive = notInInsensitive; + + String? _notIncludes; + String? get notIncludes => _$this._notIncludes; + set notIncludes(String? notIncludes) => _$this._notIncludes = notIncludes; + + String? _notIncludesInsensitive; + String? get notIncludesInsensitive => _$this._notIncludesInsensitive; + set notIncludesInsensitive(String? notIncludesInsensitive) => + _$this._notIncludesInsensitive = notIncludesInsensitive; + + String? _notLike; + String? get notLike => _$this._notLike; + set notLike(String? notLike) => _$this._notLike = notLike; + + String? _notLikeInsensitive; + String? get notLikeInsensitive => _$this._notLikeInsensitive; + set notLikeInsensitive(String? notLikeInsensitive) => + _$this._notLikeInsensitive = notLikeInsensitive; + + String? _notStartsWith; + String? get notStartsWith => _$this._notStartsWith; + set notStartsWith(String? notStartsWith) => + _$this._notStartsWith = notStartsWith; + + String? _notStartsWithInsensitive; + String? get notStartsWithInsensitive => _$this._notStartsWithInsensitive; + set notStartsWithInsensitive(String? notStartsWithInsensitive) => + _$this._notStartsWithInsensitive = notStartsWithInsensitive; + + String? _startsWith; + String? get startsWith => _$this._startsWith; + set startsWith(String? startsWith) => _$this._startsWith = startsWith; + + String? _startsWithInsensitive; + String? get startsWithInsensitive => _$this._startsWithInsensitive; + set startsWithInsensitive(String? startsWithInsensitive) => + _$this._startsWithInsensitive = startsWithInsensitive; + + GStringFilterInputBuilder(); + + GStringFilterInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _distinctFrom = $v.distinctFrom; + _distinctFromInsensitive = $v.distinctFromInsensitive; + _endsWith = $v.endsWith; + _endsWithInsensitive = $v.endsWithInsensitive; + _equalTo = $v.equalTo; + _greaterThan = $v.greaterThan; + _greaterThanInsensitive = $v.greaterThanInsensitive; + _greaterThanOrEqualTo = $v.greaterThanOrEqualTo; + _greaterThanOrEqualToInsensitive = $v.greaterThanOrEqualToInsensitive; + _Gin = $v.Gin?.toBuilder(); + _inInsensitive = $v.inInsensitive?.toBuilder(); + _includes = $v.includes; + _includesInsensitive = $v.includesInsensitive; + _isNull = $v.isNull; + _lessThan = $v.lessThan; + _lessThanInsensitive = $v.lessThanInsensitive; + _lessThanOrEqualTo = $v.lessThanOrEqualTo; + _lessThanOrEqualToInsensitive = $v.lessThanOrEqualToInsensitive; + _like = $v.like; + _likeInsensitive = $v.likeInsensitive; + _notDistinctFrom = $v.notDistinctFrom; + _notDistinctFromInsensitive = $v.notDistinctFromInsensitive; + _notEndsWith = $v.notEndsWith; + _notEndsWithInsensitive = $v.notEndsWithInsensitive; + _notEqualTo = $v.notEqualTo; + _notIn = $v.notIn?.toBuilder(); + _notInInsensitive = $v.notInInsensitive?.toBuilder(); + _notIncludes = $v.notIncludes; + _notIncludesInsensitive = $v.notIncludesInsensitive; + _notLike = $v.notLike; + _notLikeInsensitive = $v.notLikeInsensitive; + _notStartsWith = $v.notStartsWith; + _notStartsWithInsensitive = $v.notStartsWithInsensitive; + _startsWith = $v.startsWith; + _startsWithInsensitive = $v.startsWithInsensitive; + _$v = null; + } + return this; + } + + @override + void replace(GStringFilterInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GStringFilterInput; + } + + @override + void update(void Function(GStringFilterInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GStringFilterInput build() => _build(); + + _$GStringFilterInput _build() { + _$GStringFilterInput _$result; + try { + _$result = _$v ?? + new _$GStringFilterInput._( + distinctFrom: distinctFrom, + distinctFromInsensitive: distinctFromInsensitive, + endsWith: endsWith, + endsWithInsensitive: endsWithInsensitive, + equalTo: equalTo, + greaterThan: greaterThan, + greaterThanInsensitive: greaterThanInsensitive, + greaterThanOrEqualTo: greaterThanOrEqualTo, + greaterThanOrEqualToInsensitive: greaterThanOrEqualToInsensitive, + Gin: _Gin?.build(), + inInsensitive: _inInsensitive?.build(), + includes: includes, + includesInsensitive: includesInsensitive, + isNull: isNull, + lessThan: lessThan, + lessThanInsensitive: lessThanInsensitive, + lessThanOrEqualTo: lessThanOrEqualTo, + lessThanOrEqualToInsensitive: lessThanOrEqualToInsensitive, + like: like, + likeInsensitive: likeInsensitive, + notDistinctFrom: notDistinctFrom, + notDistinctFromInsensitive: notDistinctFromInsensitive, + notEndsWith: notEndsWith, + notEndsWithInsensitive: notEndsWithInsensitive, + notEqualTo: notEqualTo, + notIn: _notIn?.build(), + notInInsensitive: _notInInsensitive?.build(), + notIncludes: notIncludes, + notIncludesInsensitive: notIncludesInsensitive, + notLike: notLike, + notLikeInsensitive: notLikeInsensitive, + notStartsWith: notStartsWith, + notStartsWithInsensitive: notStartsWithInsensitive, + startsWith: startsWith, + startsWithInsensitive: startsWithInsensitive); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'Gin'; + _Gin?.build(); + _$failedField = 'inInsensitive'; + _inInsensitive?.build(); + + _$failedField = 'notIn'; + _notIn?.build(); + _$failedField = 'notInInsensitive'; + _notInInsensitive?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GStringFilterInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GTrackerConditionInput extends GTrackerConditionInput { + @override + final String? icon; + @override + final int? id; + @override + final bool? isLoggedIn; + @override + final String? name; + + factory _$GTrackerConditionInput( + [void Function(GTrackerConditionInputBuilder)? updates]) => + (new GTrackerConditionInputBuilder()..update(updates))._build(); + + _$GTrackerConditionInput._({this.icon, this.id, this.isLoggedIn, this.name}) + : super._(); + + @override + GTrackerConditionInput rebuild( + void Function(GTrackerConditionInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GTrackerConditionInputBuilder toBuilder() => + new GTrackerConditionInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GTrackerConditionInput && + icon == other.icon && + id == other.id && + isLoggedIn == other.isLoggedIn && + name == other.name; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, icon.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, isLoggedIn.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GTrackerConditionInput') + ..add('icon', icon) + ..add('id', id) + ..add('isLoggedIn', isLoggedIn) + ..add('name', name)) + .toString(); + } +} + +class GTrackerConditionInputBuilder + implements Builder { + _$GTrackerConditionInput? _$v; + + String? _icon; + String? get icon => _$this._icon; + set icon(String? icon) => _$this._icon = icon; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + bool? _isLoggedIn; + bool? get isLoggedIn => _$this._isLoggedIn; + set isLoggedIn(bool? isLoggedIn) => _$this._isLoggedIn = isLoggedIn; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + GTrackerConditionInputBuilder(); + + GTrackerConditionInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _icon = $v.icon; + _id = $v.id; + _isLoggedIn = $v.isLoggedIn; + _name = $v.name; + _$v = null; + } + return this; + } + + @override + void replace(GTrackerConditionInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GTrackerConditionInput; + } + + @override + void update(void Function(GTrackerConditionInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GTrackerConditionInput build() => _build(); + + _$GTrackerConditionInput _build() { + final _$result = _$v ?? + new _$GTrackerConditionInput._( + icon: icon, id: id, isLoggedIn: isLoggedIn, name: name); + replace(_$result); + return _$result; + } +} + +class _$GTrackRecordConditionInput extends GTrackRecordConditionInput { + @override + final GLongString? finishDate; + @override + final int? id; + @override + final double? lastChapterRead; + @override + final GLongString? libraryId; + @override + final int? mangaId; + @override + final GLongString? remoteId; + @override + final String? remoteUrl; + @override + final double? score; + @override + final GLongString? startDate; + @override + final int? status; + @override + final String? title; + @override + final int? totalChapters; + @override + final int? trackerId; + + factory _$GTrackRecordConditionInput( + [void Function(GTrackRecordConditionInputBuilder)? updates]) => + (new GTrackRecordConditionInputBuilder()..update(updates))._build(); + + _$GTrackRecordConditionInput._( + {this.finishDate, + this.id, + this.lastChapterRead, + this.libraryId, + this.mangaId, + this.remoteId, + this.remoteUrl, + this.score, + this.startDate, + this.status, + this.title, + this.totalChapters, + this.trackerId}) + : super._(); + + @override + GTrackRecordConditionInput rebuild( + void Function(GTrackRecordConditionInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GTrackRecordConditionInputBuilder toBuilder() => + new GTrackRecordConditionInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GTrackRecordConditionInput && + finishDate == other.finishDate && + id == other.id && + lastChapterRead == other.lastChapterRead && + libraryId == other.libraryId && + mangaId == other.mangaId && + remoteId == other.remoteId && + remoteUrl == other.remoteUrl && + score == other.score && + startDate == other.startDate && + status == other.status && + title == other.title && + totalChapters == other.totalChapters && + trackerId == other.trackerId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, finishDate.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, lastChapterRead.hashCode); + _$hash = $jc(_$hash, libraryId.hashCode); + _$hash = $jc(_$hash, mangaId.hashCode); + _$hash = $jc(_$hash, remoteId.hashCode); + _$hash = $jc(_$hash, remoteUrl.hashCode); + _$hash = $jc(_$hash, score.hashCode); + _$hash = $jc(_$hash, startDate.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jc(_$hash, title.hashCode); + _$hash = $jc(_$hash, totalChapters.hashCode); + _$hash = $jc(_$hash, trackerId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GTrackRecordConditionInput') + ..add('finishDate', finishDate) + ..add('id', id) + ..add('lastChapterRead', lastChapterRead) + ..add('libraryId', libraryId) + ..add('mangaId', mangaId) + ..add('remoteId', remoteId) + ..add('remoteUrl', remoteUrl) + ..add('score', score) + ..add('startDate', startDate) + ..add('status', status) + ..add('title', title) + ..add('totalChapters', totalChapters) + ..add('trackerId', trackerId)) + .toString(); + } +} + +class GTrackRecordConditionInputBuilder + implements + Builder { + _$GTrackRecordConditionInput? _$v; + + GLongStringBuilder? _finishDate; + GLongStringBuilder get finishDate => + _$this._finishDate ??= new GLongStringBuilder(); + set finishDate(GLongStringBuilder? finishDate) => + _$this._finishDate = finishDate; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + double? _lastChapterRead; + double? get lastChapterRead => _$this._lastChapterRead; + set lastChapterRead(double? lastChapterRead) => + _$this._lastChapterRead = lastChapterRead; + + GLongStringBuilder? _libraryId; + GLongStringBuilder get libraryId => + _$this._libraryId ??= new GLongStringBuilder(); + set libraryId(GLongStringBuilder? libraryId) => _$this._libraryId = libraryId; + + int? _mangaId; + int? get mangaId => _$this._mangaId; + set mangaId(int? mangaId) => _$this._mangaId = mangaId; + + GLongStringBuilder? _remoteId; + GLongStringBuilder get remoteId => + _$this._remoteId ??= new GLongStringBuilder(); + set remoteId(GLongStringBuilder? remoteId) => _$this._remoteId = remoteId; + + String? _remoteUrl; + String? get remoteUrl => _$this._remoteUrl; + set remoteUrl(String? remoteUrl) => _$this._remoteUrl = remoteUrl; + + double? _score; + double? get score => _$this._score; + set score(double? score) => _$this._score = score; + + GLongStringBuilder? _startDate; + GLongStringBuilder get startDate => + _$this._startDate ??= new GLongStringBuilder(); + set startDate(GLongStringBuilder? startDate) => _$this._startDate = startDate; + + int? _status; + int? get status => _$this._status; + set status(int? status) => _$this._status = status; + + String? _title; + String? get title => _$this._title; + set title(String? title) => _$this._title = title; + + int? _totalChapters; + int? get totalChapters => _$this._totalChapters; + set totalChapters(int? totalChapters) => + _$this._totalChapters = totalChapters; + + int? _trackerId; + int? get trackerId => _$this._trackerId; + set trackerId(int? trackerId) => _$this._trackerId = trackerId; + + GTrackRecordConditionInputBuilder(); + + GTrackRecordConditionInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _finishDate = $v.finishDate?.toBuilder(); + _id = $v.id; + _lastChapterRead = $v.lastChapterRead; + _libraryId = $v.libraryId?.toBuilder(); + _mangaId = $v.mangaId; + _remoteId = $v.remoteId?.toBuilder(); + _remoteUrl = $v.remoteUrl; + _score = $v.score; + _startDate = $v.startDate?.toBuilder(); + _status = $v.status; + _title = $v.title; + _totalChapters = $v.totalChapters; + _trackerId = $v.trackerId; + _$v = null; + } + return this; + } + + @override + void replace(GTrackRecordConditionInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GTrackRecordConditionInput; + } + + @override + void update(void Function(GTrackRecordConditionInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GTrackRecordConditionInput build() => _build(); + + _$GTrackRecordConditionInput _build() { + _$GTrackRecordConditionInput _$result; + try { + _$result = _$v ?? + new _$GTrackRecordConditionInput._( + finishDate: _finishDate?.build(), + id: id, + lastChapterRead: lastChapterRead, + libraryId: _libraryId?.build(), + mangaId: mangaId, + remoteId: _remoteId?.build(), + remoteUrl: remoteUrl, + score: score, + startDate: _startDate?.build(), + status: status, + title: title, + totalChapters: totalChapters, + trackerId: trackerId); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'finishDate'; + _finishDate?.build(); + + _$failedField = 'libraryId'; + _libraryId?.build(); + + _$failedField = 'remoteId'; + _remoteId?.build(); + + _$failedField = 'startDate'; + _startDate?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GTrackRecordConditionInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GTrackRecordFilterInput extends GTrackRecordFilterInput { + @override + final BuiltList? and; + @override + final GLongFilterInput? finishDate; + @override + final GIntFilterInput? id; + @override + final GDoubleFilterInput? lastChapterRead; + @override + final GLongFilterInput? libraryId; + @override + final GIntFilterInput? mangaId; + @override + final GTrackRecordFilterInput? not; + @override + final BuiltList? or; + @override + final GLongFilterInput? remoteId; + @override + final GStringFilterInput? remoteUrl; + @override + final GDoubleFilterInput? score; + @override + final GLongFilterInput? startDate; + @override + final GIntFilterInput? status; + @override + final GStringFilterInput? title; + @override + final GIntFilterInput? totalChapters; + @override + final GIntFilterInput? trackerId; + + factory _$GTrackRecordFilterInput( + [void Function(GTrackRecordFilterInputBuilder)? updates]) => + (new GTrackRecordFilterInputBuilder()..update(updates))._build(); + + _$GTrackRecordFilterInput._( + {this.and, + this.finishDate, + this.id, + this.lastChapterRead, + this.libraryId, + this.mangaId, + this.not, + this.or, + this.remoteId, + this.remoteUrl, + this.score, + this.startDate, + this.status, + this.title, + this.totalChapters, + this.trackerId}) + : super._(); + + @override + GTrackRecordFilterInput rebuild( + void Function(GTrackRecordFilterInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GTrackRecordFilterInputBuilder toBuilder() => + new GTrackRecordFilterInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GTrackRecordFilterInput && + and == other.and && + finishDate == other.finishDate && + id == other.id && + lastChapterRead == other.lastChapterRead && + libraryId == other.libraryId && + mangaId == other.mangaId && + not == other.not && + or == other.or && + remoteId == other.remoteId && + remoteUrl == other.remoteUrl && + score == other.score && + startDate == other.startDate && + status == other.status && + title == other.title && + totalChapters == other.totalChapters && + trackerId == other.trackerId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, and.hashCode); + _$hash = $jc(_$hash, finishDate.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, lastChapterRead.hashCode); + _$hash = $jc(_$hash, libraryId.hashCode); + _$hash = $jc(_$hash, mangaId.hashCode); + _$hash = $jc(_$hash, not.hashCode); + _$hash = $jc(_$hash, or.hashCode); + _$hash = $jc(_$hash, remoteId.hashCode); + _$hash = $jc(_$hash, remoteUrl.hashCode); + _$hash = $jc(_$hash, score.hashCode); + _$hash = $jc(_$hash, startDate.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jc(_$hash, title.hashCode); + _$hash = $jc(_$hash, totalChapters.hashCode); + _$hash = $jc(_$hash, trackerId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GTrackRecordFilterInput') + ..add('and', and) + ..add('finishDate', finishDate) + ..add('id', id) + ..add('lastChapterRead', lastChapterRead) + ..add('libraryId', libraryId) + ..add('mangaId', mangaId) + ..add('not', not) + ..add('or', or) + ..add('remoteId', remoteId) + ..add('remoteUrl', remoteUrl) + ..add('score', score) + ..add('startDate', startDate) + ..add('status', status) + ..add('title', title) + ..add('totalChapters', totalChapters) + ..add('trackerId', trackerId)) + .toString(); + } +} + +class GTrackRecordFilterInputBuilder + implements + Builder { + _$GTrackRecordFilterInput? _$v; + + ListBuilder? _and; + ListBuilder get and => + _$this._and ??= new ListBuilder(); + set and(ListBuilder? and) => _$this._and = and; + + GLongFilterInputBuilder? _finishDate; + GLongFilterInputBuilder get finishDate => + _$this._finishDate ??= new GLongFilterInputBuilder(); + set finishDate(GLongFilterInputBuilder? finishDate) => + _$this._finishDate = finishDate; + + GIntFilterInputBuilder? _id; + GIntFilterInputBuilder get id => _$this._id ??= new GIntFilterInputBuilder(); + set id(GIntFilterInputBuilder? id) => _$this._id = id; + + GDoubleFilterInputBuilder? _lastChapterRead; + GDoubleFilterInputBuilder get lastChapterRead => + _$this._lastChapterRead ??= new GDoubleFilterInputBuilder(); + set lastChapterRead(GDoubleFilterInputBuilder? lastChapterRead) => + _$this._lastChapterRead = lastChapterRead; + + GLongFilterInputBuilder? _libraryId; + GLongFilterInputBuilder get libraryId => + _$this._libraryId ??= new GLongFilterInputBuilder(); + set libraryId(GLongFilterInputBuilder? libraryId) => + _$this._libraryId = libraryId; + + GIntFilterInputBuilder? _mangaId; + GIntFilterInputBuilder get mangaId => + _$this._mangaId ??= new GIntFilterInputBuilder(); + set mangaId(GIntFilterInputBuilder? mangaId) => _$this._mangaId = mangaId; + + GTrackRecordFilterInputBuilder? _not; + GTrackRecordFilterInputBuilder get not => + _$this._not ??= new GTrackRecordFilterInputBuilder(); + set not(GTrackRecordFilterInputBuilder? not) => _$this._not = not; + + ListBuilder? _or; + ListBuilder get or => + _$this._or ??= new ListBuilder(); + set or(ListBuilder? or) => _$this._or = or; + + GLongFilterInputBuilder? _remoteId; + GLongFilterInputBuilder get remoteId => + _$this._remoteId ??= new GLongFilterInputBuilder(); + set remoteId(GLongFilterInputBuilder? remoteId) => + _$this._remoteId = remoteId; + + GStringFilterInputBuilder? _remoteUrl; + GStringFilterInputBuilder get remoteUrl => + _$this._remoteUrl ??= new GStringFilterInputBuilder(); + set remoteUrl(GStringFilterInputBuilder? remoteUrl) => + _$this._remoteUrl = remoteUrl; + + GDoubleFilterInputBuilder? _score; + GDoubleFilterInputBuilder get score => + _$this._score ??= new GDoubleFilterInputBuilder(); + set score(GDoubleFilterInputBuilder? score) => _$this._score = score; + + GLongFilterInputBuilder? _startDate; + GLongFilterInputBuilder get startDate => + _$this._startDate ??= new GLongFilterInputBuilder(); + set startDate(GLongFilterInputBuilder? startDate) => + _$this._startDate = startDate; + + GIntFilterInputBuilder? _status; + GIntFilterInputBuilder get status => + _$this._status ??= new GIntFilterInputBuilder(); + set status(GIntFilterInputBuilder? status) => _$this._status = status; + + GStringFilterInputBuilder? _title; + GStringFilterInputBuilder get title => + _$this._title ??= new GStringFilterInputBuilder(); + set title(GStringFilterInputBuilder? title) => _$this._title = title; + + GIntFilterInputBuilder? _totalChapters; + GIntFilterInputBuilder get totalChapters => + _$this._totalChapters ??= new GIntFilterInputBuilder(); + set totalChapters(GIntFilterInputBuilder? totalChapters) => + _$this._totalChapters = totalChapters; + + GIntFilterInputBuilder? _trackerId; + GIntFilterInputBuilder get trackerId => + _$this._trackerId ??= new GIntFilterInputBuilder(); + set trackerId(GIntFilterInputBuilder? trackerId) => + _$this._trackerId = trackerId; + + GTrackRecordFilterInputBuilder(); + + GTrackRecordFilterInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _and = $v.and?.toBuilder(); + _finishDate = $v.finishDate?.toBuilder(); + _id = $v.id?.toBuilder(); + _lastChapterRead = $v.lastChapterRead?.toBuilder(); + _libraryId = $v.libraryId?.toBuilder(); + _mangaId = $v.mangaId?.toBuilder(); + _not = $v.not?.toBuilder(); + _or = $v.or?.toBuilder(); + _remoteId = $v.remoteId?.toBuilder(); + _remoteUrl = $v.remoteUrl?.toBuilder(); + _score = $v.score?.toBuilder(); + _startDate = $v.startDate?.toBuilder(); + _status = $v.status?.toBuilder(); + _title = $v.title?.toBuilder(); + _totalChapters = $v.totalChapters?.toBuilder(); + _trackerId = $v.trackerId?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GTrackRecordFilterInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GTrackRecordFilterInput; + } + + @override + void update(void Function(GTrackRecordFilterInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GTrackRecordFilterInput build() => _build(); + + _$GTrackRecordFilterInput _build() { + _$GTrackRecordFilterInput _$result; + try { + _$result = _$v ?? + new _$GTrackRecordFilterInput._( + and: _and?.build(), + finishDate: _finishDate?.build(), + id: _id?.build(), + lastChapterRead: _lastChapterRead?.build(), + libraryId: _libraryId?.build(), + mangaId: _mangaId?.build(), + not: _not?.build(), + or: _or?.build(), + remoteId: _remoteId?.build(), + remoteUrl: _remoteUrl?.build(), + score: _score?.build(), + startDate: _startDate?.build(), + status: _status?.build(), + title: _title?.build(), + totalChapters: _totalChapters?.build(), + trackerId: _trackerId?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'and'; + _and?.build(); + _$failedField = 'finishDate'; + _finishDate?.build(); + _$failedField = 'id'; + _id?.build(); + _$failedField = 'lastChapterRead'; + _lastChapterRead?.build(); + _$failedField = 'libraryId'; + _libraryId?.build(); + _$failedField = 'mangaId'; + _mangaId?.build(); + _$failedField = 'not'; + _not?.build(); + _$failedField = 'or'; + _or?.build(); + _$failedField = 'remoteId'; + _remoteId?.build(); + _$failedField = 'remoteUrl'; + _remoteUrl?.build(); + _$failedField = 'score'; + _score?.build(); + _$failedField = 'startDate'; + _startDate?.build(); + _$failedField = 'status'; + _status?.build(); + _$failedField = 'title'; + _title?.build(); + _$failedField = 'totalChapters'; + _totalChapters?.build(); + _$failedField = 'trackerId'; + _trackerId?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GTrackRecordFilterInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateCategoriesInput extends GUpdateCategoriesInput { + @override + final String? clientMutationId; + @override + final BuiltList ids; + @override + final GUpdateCategoryPatchInput patch; + + factory _$GUpdateCategoriesInput( + [void Function(GUpdateCategoriesInputBuilder)? updates]) => + (new GUpdateCategoriesInputBuilder()..update(updates))._build(); + + _$GUpdateCategoriesInput._( + {this.clientMutationId, required this.ids, required this.patch}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + ids, r'GUpdateCategoriesInput', 'ids'); + BuiltValueNullFieldError.checkNotNull( + patch, r'GUpdateCategoriesInput', 'patch'); + } + + @override + GUpdateCategoriesInput rebuild( + void Function(GUpdateCategoriesInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateCategoriesInputBuilder toBuilder() => + new GUpdateCategoriesInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateCategoriesInput && + clientMutationId == other.clientMutationId && + ids == other.ids && + patch == other.patch; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, ids.hashCode); + _$hash = $jc(_$hash, patch.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateCategoriesInput') + ..add('clientMutationId', clientMutationId) + ..add('ids', ids) + ..add('patch', patch)) + .toString(); + } +} + +class GUpdateCategoriesInputBuilder + implements Builder { + _$GUpdateCategoriesInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + ListBuilder? _ids; + ListBuilder get ids => _$this._ids ??= new ListBuilder(); + set ids(ListBuilder? ids) => _$this._ids = ids; + + GUpdateCategoryPatchInputBuilder? _patch; + GUpdateCategoryPatchInputBuilder get patch => + _$this._patch ??= new GUpdateCategoryPatchInputBuilder(); + set patch(GUpdateCategoryPatchInputBuilder? patch) => _$this._patch = patch; + + GUpdateCategoriesInputBuilder(); + + GUpdateCategoriesInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _ids = $v.ids.toBuilder(); + _patch = $v.patch.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateCategoriesInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateCategoriesInput; + } + + @override + void update(void Function(GUpdateCategoriesInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateCategoriesInput build() => _build(); + + _$GUpdateCategoriesInput _build() { + _$GUpdateCategoriesInput _$result; + try { + _$result = _$v ?? + new _$GUpdateCategoriesInput._( + clientMutationId: clientMutationId, + ids: ids.build(), + patch: patch.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'ids'; + ids.build(); + _$failedField = 'patch'; + patch.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateCategoriesInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateCategoryInput extends GUpdateCategoryInput { + @override + final String? clientMutationId; + @override + final int id; + @override + final GUpdateCategoryPatchInput patch; + + factory _$GUpdateCategoryInput( + [void Function(GUpdateCategoryInputBuilder)? updates]) => + (new GUpdateCategoryInputBuilder()..update(updates))._build(); + + _$GUpdateCategoryInput._( + {this.clientMutationId, required this.id, required this.patch}) + : super._() { + BuiltValueNullFieldError.checkNotNull(id, r'GUpdateCategoryInput', 'id'); + BuiltValueNullFieldError.checkNotNull( + patch, r'GUpdateCategoryInput', 'patch'); + } + + @override + GUpdateCategoryInput rebuild( + void Function(GUpdateCategoryInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateCategoryInputBuilder toBuilder() => + new GUpdateCategoryInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateCategoryInput && + clientMutationId == other.clientMutationId && + id == other.id && + patch == other.patch; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, patch.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateCategoryInput') + ..add('clientMutationId', clientMutationId) + ..add('id', id) + ..add('patch', patch)) + .toString(); + } +} + +class GUpdateCategoryInputBuilder + implements Builder { + _$GUpdateCategoryInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + GUpdateCategoryPatchInputBuilder? _patch; + GUpdateCategoryPatchInputBuilder get patch => + _$this._patch ??= new GUpdateCategoryPatchInputBuilder(); + set patch(GUpdateCategoryPatchInputBuilder? patch) => _$this._patch = patch; + + GUpdateCategoryInputBuilder(); + + GUpdateCategoryInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _id = $v.id; + _patch = $v.patch.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateCategoryInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateCategoryInput; + } + + @override + void update(void Function(GUpdateCategoryInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateCategoryInput build() => _build(); + + _$GUpdateCategoryInput _build() { + _$GUpdateCategoryInput _$result; + try { + _$result = _$v ?? + new _$GUpdateCategoryInput._( + clientMutationId: clientMutationId, + id: BuiltValueNullFieldError.checkNotNull( + id, r'GUpdateCategoryInput', 'id'), + patch: patch.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'patch'; + patch.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateCategoryInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateCategoryMangaInput extends GUpdateCategoryMangaInput { + @override + final BuiltList categories; + @override + final String? clientMutationId; + + factory _$GUpdateCategoryMangaInput( + [void Function(GUpdateCategoryMangaInputBuilder)? updates]) => + (new GUpdateCategoryMangaInputBuilder()..update(updates))._build(); + + _$GUpdateCategoryMangaInput._( + {required this.categories, this.clientMutationId}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + categories, r'GUpdateCategoryMangaInput', 'categories'); + } + + @override + GUpdateCategoryMangaInput rebuild( + void Function(GUpdateCategoryMangaInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateCategoryMangaInputBuilder toBuilder() => + new GUpdateCategoryMangaInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateCategoryMangaInput && + categories == other.categories && + clientMutationId == other.clientMutationId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, categories.hashCode); + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateCategoryMangaInput') + ..add('categories', categories) + ..add('clientMutationId', clientMutationId)) + .toString(); + } +} + +class GUpdateCategoryMangaInputBuilder + implements + Builder { + _$GUpdateCategoryMangaInput? _$v; + + ListBuilder? _categories; + ListBuilder get categories => + _$this._categories ??= new ListBuilder(); + set categories(ListBuilder? categories) => + _$this._categories = categories; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GUpdateCategoryMangaInputBuilder(); + + GUpdateCategoryMangaInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _categories = $v.categories.toBuilder(); + _clientMutationId = $v.clientMutationId; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateCategoryMangaInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateCategoryMangaInput; + } + + @override + void update(void Function(GUpdateCategoryMangaInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateCategoryMangaInput build() => _build(); + + _$GUpdateCategoryMangaInput _build() { + _$GUpdateCategoryMangaInput _$result; + try { + _$result = _$v ?? + new _$GUpdateCategoryMangaInput._( + categories: categories.build(), + clientMutationId: clientMutationId); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'categories'; + categories.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateCategoryMangaInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateCategoryOrderInput extends GUpdateCategoryOrderInput { + @override + final String? clientMutationId; + @override + final int id; + @override + final int position; + + factory _$GUpdateCategoryOrderInput( + [void Function(GUpdateCategoryOrderInputBuilder)? updates]) => + (new GUpdateCategoryOrderInputBuilder()..update(updates))._build(); + + _$GUpdateCategoryOrderInput._( + {this.clientMutationId, required this.id, required this.position}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + id, r'GUpdateCategoryOrderInput', 'id'); + BuiltValueNullFieldError.checkNotNull( + position, r'GUpdateCategoryOrderInput', 'position'); + } + + @override + GUpdateCategoryOrderInput rebuild( + void Function(GUpdateCategoryOrderInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateCategoryOrderInputBuilder toBuilder() => + new GUpdateCategoryOrderInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateCategoryOrderInput && + clientMutationId == other.clientMutationId && + id == other.id && + position == other.position; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, position.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateCategoryOrderInput') + ..add('clientMutationId', clientMutationId) + ..add('id', id) + ..add('position', position)) + .toString(); + } +} + +class GUpdateCategoryOrderInputBuilder + implements + Builder { + _$GUpdateCategoryOrderInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + int? _position; + int? get position => _$this._position; + set position(int? position) => _$this._position = position; + + GUpdateCategoryOrderInputBuilder(); + + GUpdateCategoryOrderInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _id = $v.id; + _position = $v.position; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateCategoryOrderInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateCategoryOrderInput; + } + + @override + void update(void Function(GUpdateCategoryOrderInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateCategoryOrderInput build() => _build(); + + _$GUpdateCategoryOrderInput _build() { + final _$result = _$v ?? + new _$GUpdateCategoryOrderInput._( + clientMutationId: clientMutationId, + id: BuiltValueNullFieldError.checkNotNull( + id, r'GUpdateCategoryOrderInput', 'id'), + position: BuiltValueNullFieldError.checkNotNull( + position, r'GUpdateCategoryOrderInput', 'position')); + replace(_$result); + return _$result; + } +} + +class _$GUpdateCategoryPatchInput extends GUpdateCategoryPatchInput { + @override + final bool? Gdefault; + @override + final GIncludeOrExclude? includeInDownload; + @override + final GIncludeOrExclude? includeInUpdate; + @override + final String? name; + + factory _$GUpdateCategoryPatchInput( + [void Function(GUpdateCategoryPatchInputBuilder)? updates]) => + (new GUpdateCategoryPatchInputBuilder()..update(updates))._build(); + + _$GUpdateCategoryPatchInput._( + {this.Gdefault, this.includeInDownload, this.includeInUpdate, this.name}) + : super._(); + + @override + GUpdateCategoryPatchInput rebuild( + void Function(GUpdateCategoryPatchInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateCategoryPatchInputBuilder toBuilder() => + new GUpdateCategoryPatchInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateCategoryPatchInput && + Gdefault == other.Gdefault && + includeInDownload == other.includeInDownload && + includeInUpdate == other.includeInUpdate && + name == other.name; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, Gdefault.hashCode); + _$hash = $jc(_$hash, includeInDownload.hashCode); + _$hash = $jc(_$hash, includeInUpdate.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateCategoryPatchInput') + ..add('Gdefault', Gdefault) + ..add('includeInDownload', includeInDownload) + ..add('includeInUpdate', includeInUpdate) + ..add('name', name)) + .toString(); + } +} + +class GUpdateCategoryPatchInputBuilder + implements + Builder { + _$GUpdateCategoryPatchInput? _$v; + + bool? _Gdefault; + bool? get Gdefault => _$this._Gdefault; + set Gdefault(bool? Gdefault) => _$this._Gdefault = Gdefault; + + GIncludeOrExclude? _includeInDownload; + GIncludeOrExclude? get includeInDownload => _$this._includeInDownload; + set includeInDownload(GIncludeOrExclude? includeInDownload) => + _$this._includeInDownload = includeInDownload; + + GIncludeOrExclude? _includeInUpdate; + GIncludeOrExclude? get includeInUpdate => _$this._includeInUpdate; + set includeInUpdate(GIncludeOrExclude? includeInUpdate) => + _$this._includeInUpdate = includeInUpdate; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + GUpdateCategoryPatchInputBuilder(); + + GUpdateCategoryPatchInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _Gdefault = $v.Gdefault; + _includeInDownload = $v.includeInDownload; + _includeInUpdate = $v.includeInUpdate; + _name = $v.name; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateCategoryPatchInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateCategoryPatchInput; + } + + @override + void update(void Function(GUpdateCategoryPatchInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateCategoryPatchInput build() => _build(); + + _$GUpdateCategoryPatchInput _build() { + final _$result = _$v ?? + new _$GUpdateCategoryPatchInput._( + Gdefault: Gdefault, + includeInDownload: includeInDownload, + includeInUpdate: includeInUpdate, + name: name); + replace(_$result); + return _$result; + } +} + +class _$GUpdateChapterInput extends GUpdateChapterInput { + @override + final String? clientMutationId; + @override + final int id; + @override + final GUpdateChapterPatchInput patch; + + factory _$GUpdateChapterInput( + [void Function(GUpdateChapterInputBuilder)? updates]) => + (new GUpdateChapterInputBuilder()..update(updates))._build(); + + _$GUpdateChapterInput._( + {this.clientMutationId, required this.id, required this.patch}) + : super._() { + BuiltValueNullFieldError.checkNotNull(id, r'GUpdateChapterInput', 'id'); + BuiltValueNullFieldError.checkNotNull( + patch, r'GUpdateChapterInput', 'patch'); + } + + @override + GUpdateChapterInput rebuild( + void Function(GUpdateChapterInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateChapterInputBuilder toBuilder() => + new GUpdateChapterInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateChapterInput && + clientMutationId == other.clientMutationId && + id == other.id && + patch == other.patch; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, patch.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateChapterInput') + ..add('clientMutationId', clientMutationId) + ..add('id', id) + ..add('patch', patch)) + .toString(); + } +} + +class GUpdateChapterInputBuilder + implements Builder { + _$GUpdateChapterInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + GUpdateChapterPatchInputBuilder? _patch; + GUpdateChapterPatchInputBuilder get patch => + _$this._patch ??= new GUpdateChapterPatchInputBuilder(); + set patch(GUpdateChapterPatchInputBuilder? patch) => _$this._patch = patch; + + GUpdateChapterInputBuilder(); + + GUpdateChapterInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _id = $v.id; + _patch = $v.patch.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateChapterInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateChapterInput; + } + + @override + void update(void Function(GUpdateChapterInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateChapterInput build() => _build(); + + _$GUpdateChapterInput _build() { + _$GUpdateChapterInput _$result; + try { + _$result = _$v ?? + new _$GUpdateChapterInput._( + clientMutationId: clientMutationId, + id: BuiltValueNullFieldError.checkNotNull( + id, r'GUpdateChapterInput', 'id'), + patch: patch.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'patch'; + patch.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateChapterInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateChapterPatchInput extends GUpdateChapterPatchInput { + @override + final bool? isBookmarked; + @override + final bool? isRead; + @override + final int? lastPageRead; + + factory _$GUpdateChapterPatchInput( + [void Function(GUpdateChapterPatchInputBuilder)? updates]) => + (new GUpdateChapterPatchInputBuilder()..update(updates))._build(); + + _$GUpdateChapterPatchInput._( + {this.isBookmarked, this.isRead, this.lastPageRead}) + : super._(); + + @override + GUpdateChapterPatchInput rebuild( + void Function(GUpdateChapterPatchInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateChapterPatchInputBuilder toBuilder() => + new GUpdateChapterPatchInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateChapterPatchInput && + isBookmarked == other.isBookmarked && + isRead == other.isRead && + lastPageRead == other.lastPageRead; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, isBookmarked.hashCode); + _$hash = $jc(_$hash, isRead.hashCode); + _$hash = $jc(_$hash, lastPageRead.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateChapterPatchInput') + ..add('isBookmarked', isBookmarked) + ..add('isRead', isRead) + ..add('lastPageRead', lastPageRead)) + .toString(); + } +} + +class GUpdateChapterPatchInputBuilder + implements + Builder { + _$GUpdateChapterPatchInput? _$v; + + bool? _isBookmarked; + bool? get isBookmarked => _$this._isBookmarked; + set isBookmarked(bool? isBookmarked) => _$this._isBookmarked = isBookmarked; + + bool? _isRead; + bool? get isRead => _$this._isRead; + set isRead(bool? isRead) => _$this._isRead = isRead; + + int? _lastPageRead; + int? get lastPageRead => _$this._lastPageRead; + set lastPageRead(int? lastPageRead) => _$this._lastPageRead = lastPageRead; + + GUpdateChapterPatchInputBuilder(); + + GUpdateChapterPatchInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _isBookmarked = $v.isBookmarked; + _isRead = $v.isRead; + _lastPageRead = $v.lastPageRead; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateChapterPatchInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateChapterPatchInput; + } + + @override + void update(void Function(GUpdateChapterPatchInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateChapterPatchInput build() => _build(); + + _$GUpdateChapterPatchInput _build() { + final _$result = _$v ?? + new _$GUpdateChapterPatchInput._( + isBookmarked: isBookmarked, + isRead: isRead, + lastPageRead: lastPageRead); + replace(_$result); + return _$result; + } +} + +class _$GUpdateChaptersInput extends GUpdateChaptersInput { + @override + final String? clientMutationId; + @override + final BuiltList ids; + @override + final GUpdateChapterPatchInput patch; + + factory _$GUpdateChaptersInput( + [void Function(GUpdateChaptersInputBuilder)? updates]) => + (new GUpdateChaptersInputBuilder()..update(updates))._build(); + + _$GUpdateChaptersInput._( + {this.clientMutationId, required this.ids, required this.patch}) + : super._() { + BuiltValueNullFieldError.checkNotNull(ids, r'GUpdateChaptersInput', 'ids'); + BuiltValueNullFieldError.checkNotNull( + patch, r'GUpdateChaptersInput', 'patch'); + } + + @override + GUpdateChaptersInput rebuild( + void Function(GUpdateChaptersInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateChaptersInputBuilder toBuilder() => + new GUpdateChaptersInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateChaptersInput && + clientMutationId == other.clientMutationId && + ids == other.ids && + patch == other.patch; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, ids.hashCode); + _$hash = $jc(_$hash, patch.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateChaptersInput') + ..add('clientMutationId', clientMutationId) + ..add('ids', ids) + ..add('patch', patch)) + .toString(); + } +} + +class GUpdateChaptersInputBuilder + implements Builder { + _$GUpdateChaptersInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + ListBuilder? _ids; + ListBuilder get ids => _$this._ids ??= new ListBuilder(); + set ids(ListBuilder? ids) => _$this._ids = ids; + + GUpdateChapterPatchInputBuilder? _patch; + GUpdateChapterPatchInputBuilder get patch => + _$this._patch ??= new GUpdateChapterPatchInputBuilder(); + set patch(GUpdateChapterPatchInputBuilder? patch) => _$this._patch = patch; + + GUpdateChaptersInputBuilder(); + + GUpdateChaptersInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _ids = $v.ids.toBuilder(); + _patch = $v.patch.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateChaptersInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateChaptersInput; + } + + @override + void update(void Function(GUpdateChaptersInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateChaptersInput build() => _build(); + + _$GUpdateChaptersInput _build() { + _$GUpdateChaptersInput _$result; + try { + _$result = _$v ?? + new _$GUpdateChaptersInput._( + clientMutationId: clientMutationId, + ids: ids.build(), + patch: patch.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'ids'; + ids.build(); + _$failedField = 'patch'; + patch.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateChaptersInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateExtensionInput extends GUpdateExtensionInput { + @override + final String? clientMutationId; + @override + final String id; + @override + final GUpdateExtensionPatchInput patch; + + factory _$GUpdateExtensionInput( + [void Function(GUpdateExtensionInputBuilder)? updates]) => + (new GUpdateExtensionInputBuilder()..update(updates))._build(); + + _$GUpdateExtensionInput._( + {this.clientMutationId, required this.id, required this.patch}) + : super._() { + BuiltValueNullFieldError.checkNotNull(id, r'GUpdateExtensionInput', 'id'); + BuiltValueNullFieldError.checkNotNull( + patch, r'GUpdateExtensionInput', 'patch'); + } + + @override + GUpdateExtensionInput rebuild( + void Function(GUpdateExtensionInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateExtensionInputBuilder toBuilder() => + new GUpdateExtensionInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateExtensionInput && + clientMutationId == other.clientMutationId && + id == other.id && + patch == other.patch; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, patch.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateExtensionInput') + ..add('clientMutationId', clientMutationId) + ..add('id', id) + ..add('patch', patch)) + .toString(); + } +} + +class GUpdateExtensionInputBuilder + implements Builder { + _$GUpdateExtensionInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + GUpdateExtensionPatchInputBuilder? _patch; + GUpdateExtensionPatchInputBuilder get patch => + _$this._patch ??= new GUpdateExtensionPatchInputBuilder(); + set patch(GUpdateExtensionPatchInputBuilder? patch) => _$this._patch = patch; + + GUpdateExtensionInputBuilder(); + + GUpdateExtensionInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _id = $v.id; + _patch = $v.patch.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateExtensionInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateExtensionInput; + } + + @override + void update(void Function(GUpdateExtensionInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateExtensionInput build() => _build(); + + _$GUpdateExtensionInput _build() { + _$GUpdateExtensionInput _$result; + try { + _$result = _$v ?? + new _$GUpdateExtensionInput._( + clientMutationId: clientMutationId, + id: BuiltValueNullFieldError.checkNotNull( + id, r'GUpdateExtensionInput', 'id'), + patch: patch.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'patch'; + patch.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateExtensionInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateExtensionPatchInput extends GUpdateExtensionPatchInput { + @override + final bool? install; + @override + final bool? uninstall; + @override + final bool? Gupdate; + + factory _$GUpdateExtensionPatchInput( + [void Function(GUpdateExtensionPatchInputBuilder)? updates]) => + (new GUpdateExtensionPatchInputBuilder()..update(updates))._build(); + + _$GUpdateExtensionPatchInput._({this.install, this.uninstall, this.Gupdate}) + : super._(); + + @override + GUpdateExtensionPatchInput rebuild( + void Function(GUpdateExtensionPatchInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateExtensionPatchInputBuilder toBuilder() => + new GUpdateExtensionPatchInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateExtensionPatchInput && + install == other.install && + uninstall == other.uninstall && + Gupdate == other.Gupdate; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, install.hashCode); + _$hash = $jc(_$hash, uninstall.hashCode); + _$hash = $jc(_$hash, Gupdate.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateExtensionPatchInput') + ..add('install', install) + ..add('uninstall', uninstall) + ..add('Gupdate', Gupdate)) + .toString(); + } +} + +class GUpdateExtensionPatchInputBuilder + implements + Builder { + _$GUpdateExtensionPatchInput? _$v; + + bool? _install; + bool? get install => _$this._install; + set install(bool? install) => _$this._install = install; + + bool? _uninstall; + bool? get uninstall => _$this._uninstall; + set uninstall(bool? uninstall) => _$this._uninstall = uninstall; + + bool? _Gupdate; + bool? get Gupdate => _$this._Gupdate; + set Gupdate(bool? Gupdate) => _$this._Gupdate = Gupdate; + + GUpdateExtensionPatchInputBuilder(); + + GUpdateExtensionPatchInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _install = $v.install; + _uninstall = $v.uninstall; + _Gupdate = $v.Gupdate; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateExtensionPatchInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateExtensionPatchInput; + } + + @override + void update(void Function(GUpdateExtensionPatchInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateExtensionPatchInput build() => _build(); + + _$GUpdateExtensionPatchInput _build() { + final _$result = _$v ?? + new _$GUpdateExtensionPatchInput._( + install: install, uninstall: uninstall, Gupdate: Gupdate); + replace(_$result); + return _$result; + } +} + +class _$GUpdateExtensionsInput extends GUpdateExtensionsInput { + @override + final String? clientMutationId; + @override + final BuiltList ids; + @override + final GUpdateExtensionPatchInput patch; + + factory _$GUpdateExtensionsInput( + [void Function(GUpdateExtensionsInputBuilder)? updates]) => + (new GUpdateExtensionsInputBuilder()..update(updates))._build(); + + _$GUpdateExtensionsInput._( + {this.clientMutationId, required this.ids, required this.patch}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + ids, r'GUpdateExtensionsInput', 'ids'); + BuiltValueNullFieldError.checkNotNull( + patch, r'GUpdateExtensionsInput', 'patch'); + } + + @override + GUpdateExtensionsInput rebuild( + void Function(GUpdateExtensionsInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateExtensionsInputBuilder toBuilder() => + new GUpdateExtensionsInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateExtensionsInput && + clientMutationId == other.clientMutationId && + ids == other.ids && + patch == other.patch; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, ids.hashCode); + _$hash = $jc(_$hash, patch.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateExtensionsInput') + ..add('clientMutationId', clientMutationId) + ..add('ids', ids) + ..add('patch', patch)) + .toString(); + } +} + +class GUpdateExtensionsInputBuilder + implements Builder { + _$GUpdateExtensionsInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + ListBuilder? _ids; + ListBuilder get ids => _$this._ids ??= new ListBuilder(); + set ids(ListBuilder? ids) => _$this._ids = ids; + + GUpdateExtensionPatchInputBuilder? _patch; + GUpdateExtensionPatchInputBuilder get patch => + _$this._patch ??= new GUpdateExtensionPatchInputBuilder(); + set patch(GUpdateExtensionPatchInputBuilder? patch) => _$this._patch = patch; + + GUpdateExtensionsInputBuilder(); + + GUpdateExtensionsInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _ids = $v.ids.toBuilder(); + _patch = $v.patch.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateExtensionsInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateExtensionsInput; + } + + @override + void update(void Function(GUpdateExtensionsInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateExtensionsInput build() => _build(); + + _$GUpdateExtensionsInput _build() { + _$GUpdateExtensionsInput _$result; + try { + _$result = _$v ?? + new _$GUpdateExtensionsInput._( + clientMutationId: clientMutationId, + ids: ids.build(), + patch: patch.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'ids'; + ids.build(); + _$failedField = 'patch'; + patch.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateExtensionsInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateLibraryMangaInput extends GUpdateLibraryMangaInput { + @override + final String? clientMutationId; + + factory _$GUpdateLibraryMangaInput( + [void Function(GUpdateLibraryMangaInputBuilder)? updates]) => + (new GUpdateLibraryMangaInputBuilder()..update(updates))._build(); + + _$GUpdateLibraryMangaInput._({this.clientMutationId}) : super._(); + + @override + GUpdateLibraryMangaInput rebuild( + void Function(GUpdateLibraryMangaInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateLibraryMangaInputBuilder toBuilder() => + new GUpdateLibraryMangaInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateLibraryMangaInput && + clientMutationId == other.clientMutationId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateLibraryMangaInput') + ..add('clientMutationId', clientMutationId)) + .toString(); + } +} + +class GUpdateLibraryMangaInputBuilder + implements + Builder { + _$GUpdateLibraryMangaInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GUpdateLibraryMangaInputBuilder(); + + GUpdateLibraryMangaInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateLibraryMangaInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateLibraryMangaInput; + } + + @override + void update(void Function(GUpdateLibraryMangaInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateLibraryMangaInput build() => _build(); + + _$GUpdateLibraryMangaInput _build() { + final _$result = _$v ?? + new _$GUpdateLibraryMangaInput._(clientMutationId: clientMutationId); + replace(_$result); + return _$result; + } +} + +class _$GUpdateMangaCategoriesInput extends GUpdateMangaCategoriesInput { + @override + final String? clientMutationId; + @override + final int id; + @override + final GUpdateMangaCategoriesPatchInput patch; + + factory _$GUpdateMangaCategoriesInput( + [void Function(GUpdateMangaCategoriesInputBuilder)? updates]) => + (new GUpdateMangaCategoriesInputBuilder()..update(updates))._build(); + + _$GUpdateMangaCategoriesInput._( + {this.clientMutationId, required this.id, required this.patch}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + id, r'GUpdateMangaCategoriesInput', 'id'); + BuiltValueNullFieldError.checkNotNull( + patch, r'GUpdateMangaCategoriesInput', 'patch'); + } + + @override + GUpdateMangaCategoriesInput rebuild( + void Function(GUpdateMangaCategoriesInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateMangaCategoriesInputBuilder toBuilder() => + new GUpdateMangaCategoriesInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateMangaCategoriesInput && + clientMutationId == other.clientMutationId && + id == other.id && + patch == other.patch; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, patch.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateMangaCategoriesInput') + ..add('clientMutationId', clientMutationId) + ..add('id', id) + ..add('patch', patch)) + .toString(); + } +} + +class GUpdateMangaCategoriesInputBuilder + implements + Builder { + _$GUpdateMangaCategoriesInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + GUpdateMangaCategoriesPatchInputBuilder? _patch; + GUpdateMangaCategoriesPatchInputBuilder get patch => + _$this._patch ??= new GUpdateMangaCategoriesPatchInputBuilder(); + set patch(GUpdateMangaCategoriesPatchInputBuilder? patch) => + _$this._patch = patch; + + GUpdateMangaCategoriesInputBuilder(); + + GUpdateMangaCategoriesInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _id = $v.id; + _patch = $v.patch.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateMangaCategoriesInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateMangaCategoriesInput; + } + + @override + void update(void Function(GUpdateMangaCategoriesInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateMangaCategoriesInput build() => _build(); + + _$GUpdateMangaCategoriesInput _build() { + _$GUpdateMangaCategoriesInput _$result; + try { + _$result = _$v ?? + new _$GUpdateMangaCategoriesInput._( + clientMutationId: clientMutationId, + id: BuiltValueNullFieldError.checkNotNull( + id, r'GUpdateMangaCategoriesInput', 'id'), + patch: patch.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'patch'; + patch.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateMangaCategoriesInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateMangaCategoriesPatchInput + extends GUpdateMangaCategoriesPatchInput { + @override + final BuiltList? addToCategories; + @override + final bool? clearCategories; + @override + final BuiltList? removeFromCategories; + + factory _$GUpdateMangaCategoriesPatchInput( + [void Function(GUpdateMangaCategoriesPatchInputBuilder)? updates]) => + (new GUpdateMangaCategoriesPatchInputBuilder()..update(updates))._build(); + + _$GUpdateMangaCategoriesPatchInput._( + {this.addToCategories, this.clearCategories, this.removeFromCategories}) + : super._(); + + @override + GUpdateMangaCategoriesPatchInput rebuild( + void Function(GUpdateMangaCategoriesPatchInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateMangaCategoriesPatchInputBuilder toBuilder() => + new GUpdateMangaCategoriesPatchInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateMangaCategoriesPatchInput && + addToCategories == other.addToCategories && + clearCategories == other.clearCategories && + removeFromCategories == other.removeFromCategories; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, addToCategories.hashCode); + _$hash = $jc(_$hash, clearCategories.hashCode); + _$hash = $jc(_$hash, removeFromCategories.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateMangaCategoriesPatchInput') + ..add('addToCategories', addToCategories) + ..add('clearCategories', clearCategories) + ..add('removeFromCategories', removeFromCategories)) + .toString(); + } +} + +class GUpdateMangaCategoriesPatchInputBuilder + implements + Builder { + _$GUpdateMangaCategoriesPatchInput? _$v; + + ListBuilder? _addToCategories; + ListBuilder get addToCategories => + _$this._addToCategories ??= new ListBuilder(); + set addToCategories(ListBuilder? addToCategories) => + _$this._addToCategories = addToCategories; + + bool? _clearCategories; + bool? get clearCategories => _$this._clearCategories; + set clearCategories(bool? clearCategories) => + _$this._clearCategories = clearCategories; + + ListBuilder? _removeFromCategories; + ListBuilder get removeFromCategories => + _$this._removeFromCategories ??= new ListBuilder(); + set removeFromCategories(ListBuilder? removeFromCategories) => + _$this._removeFromCategories = removeFromCategories; + + GUpdateMangaCategoriesPatchInputBuilder(); + + GUpdateMangaCategoriesPatchInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _addToCategories = $v.addToCategories?.toBuilder(); + _clearCategories = $v.clearCategories; + _removeFromCategories = $v.removeFromCategories?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateMangaCategoriesPatchInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateMangaCategoriesPatchInput; + } + + @override + void update(void Function(GUpdateMangaCategoriesPatchInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateMangaCategoriesPatchInput build() => _build(); + + _$GUpdateMangaCategoriesPatchInput _build() { + _$GUpdateMangaCategoriesPatchInput _$result; + try { + _$result = _$v ?? + new _$GUpdateMangaCategoriesPatchInput._( + addToCategories: _addToCategories?.build(), + clearCategories: clearCategories, + removeFromCategories: _removeFromCategories?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'addToCategories'; + _addToCategories?.build(); + + _$failedField = 'removeFromCategories'; + _removeFromCategories?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateMangaCategoriesPatchInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateMangaInput extends GUpdateMangaInput { + @override + final String? clientMutationId; + @override + final int id; + @override + final GUpdateMangaPatchInput patch; + + factory _$GUpdateMangaInput( + [void Function(GUpdateMangaInputBuilder)? updates]) => + (new GUpdateMangaInputBuilder()..update(updates))._build(); + + _$GUpdateMangaInput._( + {this.clientMutationId, required this.id, required this.patch}) + : super._() { + BuiltValueNullFieldError.checkNotNull(id, r'GUpdateMangaInput', 'id'); + BuiltValueNullFieldError.checkNotNull(patch, r'GUpdateMangaInput', 'patch'); + } + + @override + GUpdateMangaInput rebuild(void Function(GUpdateMangaInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateMangaInputBuilder toBuilder() => + new GUpdateMangaInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateMangaInput && + clientMutationId == other.clientMutationId && + id == other.id && + patch == other.patch; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, patch.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateMangaInput') + ..add('clientMutationId', clientMutationId) + ..add('id', id) + ..add('patch', patch)) + .toString(); + } +} + +class GUpdateMangaInputBuilder + implements Builder { + _$GUpdateMangaInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + GUpdateMangaPatchInputBuilder? _patch; + GUpdateMangaPatchInputBuilder get patch => + _$this._patch ??= new GUpdateMangaPatchInputBuilder(); + set patch(GUpdateMangaPatchInputBuilder? patch) => _$this._patch = patch; + + GUpdateMangaInputBuilder(); + + GUpdateMangaInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _id = $v.id; + _patch = $v.patch.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateMangaInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateMangaInput; + } + + @override + void update(void Function(GUpdateMangaInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateMangaInput build() => _build(); + + _$GUpdateMangaInput _build() { + _$GUpdateMangaInput _$result; + try { + _$result = _$v ?? + new _$GUpdateMangaInput._( + clientMutationId: clientMutationId, + id: BuiltValueNullFieldError.checkNotNull( + id, r'GUpdateMangaInput', 'id'), + patch: patch.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'patch'; + patch.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateMangaInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateMangaPatchInput extends GUpdateMangaPatchInput { + @override + final bool? inLibrary; + + factory _$GUpdateMangaPatchInput( + [void Function(GUpdateMangaPatchInputBuilder)? updates]) => + (new GUpdateMangaPatchInputBuilder()..update(updates))._build(); + + _$GUpdateMangaPatchInput._({this.inLibrary}) : super._(); + + @override + GUpdateMangaPatchInput rebuild( + void Function(GUpdateMangaPatchInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateMangaPatchInputBuilder toBuilder() => + new GUpdateMangaPatchInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateMangaPatchInput && inLibrary == other.inLibrary; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, inLibrary.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateMangaPatchInput') + ..add('inLibrary', inLibrary)) + .toString(); + } +} + +class GUpdateMangaPatchInputBuilder + implements Builder { + _$GUpdateMangaPatchInput? _$v; + + bool? _inLibrary; + bool? get inLibrary => _$this._inLibrary; + set inLibrary(bool? inLibrary) => _$this._inLibrary = inLibrary; + + GUpdateMangaPatchInputBuilder(); + + GUpdateMangaPatchInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _inLibrary = $v.inLibrary; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateMangaPatchInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateMangaPatchInput; + } + + @override + void update(void Function(GUpdateMangaPatchInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateMangaPatchInput build() => _build(); + + _$GUpdateMangaPatchInput _build() { + final _$result = + _$v ?? new _$GUpdateMangaPatchInput._(inLibrary: inLibrary); + replace(_$result); + return _$result; + } +} + +class _$GUpdateMangasCategoriesInput extends GUpdateMangasCategoriesInput { + @override + final String? clientMutationId; + @override + final BuiltList ids; + @override + final GUpdateMangaCategoriesPatchInput patch; + + factory _$GUpdateMangasCategoriesInput( + [void Function(GUpdateMangasCategoriesInputBuilder)? updates]) => + (new GUpdateMangasCategoriesInputBuilder()..update(updates))._build(); + + _$GUpdateMangasCategoriesInput._( + {this.clientMutationId, required this.ids, required this.patch}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + ids, r'GUpdateMangasCategoriesInput', 'ids'); + BuiltValueNullFieldError.checkNotNull( + patch, r'GUpdateMangasCategoriesInput', 'patch'); + } + + @override + GUpdateMangasCategoriesInput rebuild( + void Function(GUpdateMangasCategoriesInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateMangasCategoriesInputBuilder toBuilder() => + new GUpdateMangasCategoriesInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateMangasCategoriesInput && + clientMutationId == other.clientMutationId && + ids == other.ids && + patch == other.patch; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, ids.hashCode); + _$hash = $jc(_$hash, patch.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateMangasCategoriesInput') + ..add('clientMutationId', clientMutationId) + ..add('ids', ids) + ..add('patch', patch)) + .toString(); + } +} + +class GUpdateMangasCategoriesInputBuilder + implements + Builder { + _$GUpdateMangasCategoriesInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + ListBuilder? _ids; + ListBuilder get ids => _$this._ids ??= new ListBuilder(); + set ids(ListBuilder? ids) => _$this._ids = ids; + + GUpdateMangaCategoriesPatchInputBuilder? _patch; + GUpdateMangaCategoriesPatchInputBuilder get patch => + _$this._patch ??= new GUpdateMangaCategoriesPatchInputBuilder(); + set patch(GUpdateMangaCategoriesPatchInputBuilder? patch) => + _$this._patch = patch; + + GUpdateMangasCategoriesInputBuilder(); + + GUpdateMangasCategoriesInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _ids = $v.ids.toBuilder(); + _patch = $v.patch.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateMangasCategoriesInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateMangasCategoriesInput; + } + + @override + void update(void Function(GUpdateMangasCategoriesInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateMangasCategoriesInput build() => _build(); + + _$GUpdateMangasCategoriesInput _build() { + _$GUpdateMangasCategoriesInput _$result; + try { + _$result = _$v ?? + new _$GUpdateMangasCategoriesInput._( + clientMutationId: clientMutationId, + ids: ids.build(), + patch: patch.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'ids'; + ids.build(); + _$failedField = 'patch'; + patch.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateMangasCategoriesInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateMangasInput extends GUpdateMangasInput { + @override + final String? clientMutationId; + @override + final BuiltList ids; + @override + final GUpdateMangaPatchInput patch; + + factory _$GUpdateMangasInput( + [void Function(GUpdateMangasInputBuilder)? updates]) => + (new GUpdateMangasInputBuilder()..update(updates))._build(); + + _$GUpdateMangasInput._( + {this.clientMutationId, required this.ids, required this.patch}) + : super._() { + BuiltValueNullFieldError.checkNotNull(ids, r'GUpdateMangasInput', 'ids'); + BuiltValueNullFieldError.checkNotNull( + patch, r'GUpdateMangasInput', 'patch'); + } + + @override + GUpdateMangasInput rebuild( + void Function(GUpdateMangasInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateMangasInputBuilder toBuilder() => + new GUpdateMangasInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateMangasInput && + clientMutationId == other.clientMutationId && + ids == other.ids && + patch == other.patch; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, ids.hashCode); + _$hash = $jc(_$hash, patch.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateMangasInput') + ..add('clientMutationId', clientMutationId) + ..add('ids', ids) + ..add('patch', patch)) + .toString(); + } +} + +class GUpdateMangasInputBuilder + implements Builder { + _$GUpdateMangasInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + ListBuilder? _ids; + ListBuilder get ids => _$this._ids ??= new ListBuilder(); + set ids(ListBuilder? ids) => _$this._ids = ids; + + GUpdateMangaPatchInputBuilder? _patch; + GUpdateMangaPatchInputBuilder get patch => + _$this._patch ??= new GUpdateMangaPatchInputBuilder(); + set patch(GUpdateMangaPatchInputBuilder? patch) => _$this._patch = patch; + + GUpdateMangasInputBuilder(); + + GUpdateMangasInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _ids = $v.ids.toBuilder(); + _patch = $v.patch.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateMangasInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateMangasInput; + } + + @override + void update(void Function(GUpdateMangasInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateMangasInput build() => _build(); + + _$GUpdateMangasInput _build() { + _$GUpdateMangasInput _$result; + try { + _$result = _$v ?? + new _$GUpdateMangasInput._( + clientMutationId: clientMutationId, + ids: ids.build(), + patch: patch.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'ids'; + ids.build(); + _$failedField = 'patch'; + patch.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateMangasInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSourcePreferenceInput extends GUpdateSourcePreferenceInput { + @override + final GSourcePreferenceChangeInput change; + @override + final String? clientMutationId; + @override + final GLongString source; + + factory _$GUpdateSourcePreferenceInput( + [void Function(GUpdateSourcePreferenceInputBuilder)? updates]) => + (new GUpdateSourcePreferenceInputBuilder()..update(updates))._build(); + + _$GUpdateSourcePreferenceInput._( + {required this.change, this.clientMutationId, required this.source}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + change, r'GUpdateSourcePreferenceInput', 'change'); + BuiltValueNullFieldError.checkNotNull( + source, r'GUpdateSourcePreferenceInput', 'source'); + } + + @override + GUpdateSourcePreferenceInput rebuild( + void Function(GUpdateSourcePreferenceInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSourcePreferenceInputBuilder toBuilder() => + new GUpdateSourcePreferenceInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSourcePreferenceInput && + change == other.change && + clientMutationId == other.clientMutationId && + source == other.source; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, change.hashCode); + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, source.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSourcePreferenceInput') + ..add('change', change) + ..add('clientMutationId', clientMutationId) + ..add('source', source)) + .toString(); + } +} + +class GUpdateSourcePreferenceInputBuilder + implements + Builder { + _$GUpdateSourcePreferenceInput? _$v; + + GSourcePreferenceChangeInputBuilder? _change; + GSourcePreferenceChangeInputBuilder get change => + _$this._change ??= new GSourcePreferenceChangeInputBuilder(); + set change(GSourcePreferenceChangeInputBuilder? change) => + _$this._change = change; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GLongStringBuilder? _source; + GLongStringBuilder get source => _$this._source ??= new GLongStringBuilder(); + set source(GLongStringBuilder? source) => _$this._source = source; + + GUpdateSourcePreferenceInputBuilder(); + + GUpdateSourcePreferenceInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _change = $v.change.toBuilder(); + _clientMutationId = $v.clientMutationId; + _source = $v.source.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSourcePreferenceInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSourcePreferenceInput; + } + + @override + void update(void Function(GUpdateSourcePreferenceInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSourcePreferenceInput build() => _build(); + + _$GUpdateSourcePreferenceInput _build() { + _$GUpdateSourcePreferenceInput _$result; + try { + _$result = _$v ?? + new _$GUpdateSourcePreferenceInput._( + change: change.build(), + clientMutationId: clientMutationId, + source: source.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'change'; + change.build(); + + _$failedField = 'source'; + source.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSourcePreferenceInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateStopInput extends GUpdateStopInput { + @override + final String? clientMutationId; + + factory _$GUpdateStopInput( + [void Function(GUpdateStopInputBuilder)? updates]) => + (new GUpdateStopInputBuilder()..update(updates))._build(); + + _$GUpdateStopInput._({this.clientMutationId}) : super._(); + + @override + GUpdateStopInput rebuild(void Function(GUpdateStopInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateStopInputBuilder toBuilder() => + new GUpdateStopInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateStopInput && + clientMutationId == other.clientMutationId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateStopInput') + ..add('clientMutationId', clientMutationId)) + .toString(); + } +} + +class GUpdateStopInputBuilder + implements Builder { + _$GUpdateStopInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GUpdateStopInputBuilder(); + + GUpdateStopInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateStopInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateStopInput; + } + + @override + void update(void Function(GUpdateStopInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateStopInput build() => _build(); + + _$GUpdateStopInput _build() { + final _$result = + _$v ?? new _$GUpdateStopInput._(clientMutationId: clientMutationId); + replace(_$result); + return _$result; + } +} + +class _$GUpdateTrackInput extends GUpdateTrackInput { + @override + final String? clientMutationId; + @override + final GLongString? finishDate; + @override + final double? lastChapterRead; + @override + final int recordId; + @override + final String? scoreString; + @override + final GLongString? startDate; + @override + final int? status; + @override + final bool? unbind; + + factory _$GUpdateTrackInput( + [void Function(GUpdateTrackInputBuilder)? updates]) => + (new GUpdateTrackInputBuilder()..update(updates))._build(); + + _$GUpdateTrackInput._( + {this.clientMutationId, + this.finishDate, + this.lastChapterRead, + required this.recordId, + this.scoreString, + this.startDate, + this.status, + this.unbind}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + recordId, r'GUpdateTrackInput', 'recordId'); + } + + @override + GUpdateTrackInput rebuild(void Function(GUpdateTrackInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateTrackInputBuilder toBuilder() => + new GUpdateTrackInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateTrackInput && + clientMutationId == other.clientMutationId && + finishDate == other.finishDate && + lastChapterRead == other.lastChapterRead && + recordId == other.recordId && + scoreString == other.scoreString && + startDate == other.startDate && + status == other.status && + unbind == other.unbind; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, finishDate.hashCode); + _$hash = $jc(_$hash, lastChapterRead.hashCode); + _$hash = $jc(_$hash, recordId.hashCode); + _$hash = $jc(_$hash, scoreString.hashCode); + _$hash = $jc(_$hash, startDate.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jc(_$hash, unbind.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateTrackInput') + ..add('clientMutationId', clientMutationId) + ..add('finishDate', finishDate) + ..add('lastChapterRead', lastChapterRead) + ..add('recordId', recordId) + ..add('scoreString', scoreString) + ..add('startDate', startDate) + ..add('status', status) + ..add('unbind', unbind)) + .toString(); + } +} + +class GUpdateTrackInputBuilder + implements Builder { + _$GUpdateTrackInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GLongStringBuilder? _finishDate; + GLongStringBuilder get finishDate => + _$this._finishDate ??= new GLongStringBuilder(); + set finishDate(GLongStringBuilder? finishDate) => + _$this._finishDate = finishDate; + + double? _lastChapterRead; + double? get lastChapterRead => _$this._lastChapterRead; + set lastChapterRead(double? lastChapterRead) => + _$this._lastChapterRead = lastChapterRead; + + int? _recordId; + int? get recordId => _$this._recordId; + set recordId(int? recordId) => _$this._recordId = recordId; + + String? _scoreString; + String? get scoreString => _$this._scoreString; + set scoreString(String? scoreString) => _$this._scoreString = scoreString; + + GLongStringBuilder? _startDate; + GLongStringBuilder get startDate => + _$this._startDate ??= new GLongStringBuilder(); + set startDate(GLongStringBuilder? startDate) => _$this._startDate = startDate; + + int? _status; + int? get status => _$this._status; + set status(int? status) => _$this._status = status; + + bool? _unbind; + bool? get unbind => _$this._unbind; + set unbind(bool? unbind) => _$this._unbind = unbind; + + GUpdateTrackInputBuilder(); + + GUpdateTrackInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _finishDate = $v.finishDate?.toBuilder(); + _lastChapterRead = $v.lastChapterRead; + _recordId = $v.recordId; + _scoreString = $v.scoreString; + _startDate = $v.startDate?.toBuilder(); + _status = $v.status; + _unbind = $v.unbind; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateTrackInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateTrackInput; + } + + @override + void update(void Function(GUpdateTrackInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateTrackInput build() => _build(); + + _$GUpdateTrackInput _build() { + _$GUpdateTrackInput _$result; + try { + _$result = _$v ?? + new _$GUpdateTrackInput._( + clientMutationId: clientMutationId, + finishDate: _finishDate?.build(), + lastChapterRead: lastChapterRead, + recordId: BuiltValueNullFieldError.checkNotNull( + recordId, r'GUpdateTrackInput', 'recordId'), + scoreString: scoreString, + startDate: _startDate?.build(), + status: status, + unbind: unbind); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'finishDate'; + _finishDate?.build(); + + _$failedField = 'startDate'; + _startDate?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateTrackInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GValidateBackupInput extends GValidateBackupInput { + @override + final _i3.MultipartFile backup; + + factory _$GValidateBackupInput( + [void Function(GValidateBackupInputBuilder)? updates]) => + (new GValidateBackupInputBuilder()..update(updates))._build(); + + _$GValidateBackupInput._({required this.backup}) : super._() { + BuiltValueNullFieldError.checkNotNull( + backup, r'GValidateBackupInput', 'backup'); + } + + @override + GValidateBackupInput rebuild( + void Function(GValidateBackupInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GValidateBackupInputBuilder toBuilder() => + new GValidateBackupInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GValidateBackupInput && backup == other.backup; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, backup.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GValidateBackupInput') + ..add('backup', backup)) + .toString(); + } +} + +class GValidateBackupInputBuilder + implements Builder { + _$GValidateBackupInput? _$v; + + _i3.MultipartFile? _backup; + _i3.MultipartFile? get backup => _$this._backup; + set backup(_i3.MultipartFile? backup) => _$this._backup = backup; + + GValidateBackupInputBuilder(); + + GValidateBackupInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _backup = $v.backup; + _$v = null; + } + return this; + } + + @override + void replace(GValidateBackupInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GValidateBackupInput; + } + + @override + void update(void Function(GValidateBackupInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GValidateBackupInput build() => _build(); + + _$GValidateBackupInput _build() { + final _$result = _$v ?? + new _$GValidateBackupInput._( + backup: BuiltValueNullFieldError.checkNotNull( + backup, r'GValidateBackupInput', 'backup')); + replace(_$result); + return _$result; + } +} + +class _$GWebUIUpdateInput extends GWebUIUpdateInput { + @override + final String? clientMutationId; + + factory _$GWebUIUpdateInput( + [void Function(GWebUIUpdateInputBuilder)? updates]) => + (new GWebUIUpdateInputBuilder()..update(updates))._build(); + + _$GWebUIUpdateInput._({this.clientMutationId}) : super._(); + + @override + GWebUIUpdateInput rebuild(void Function(GWebUIUpdateInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GWebUIUpdateInputBuilder toBuilder() => + new GWebUIUpdateInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GWebUIUpdateInput && + clientMutationId == other.clientMutationId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GWebUIUpdateInput') + ..add('clientMutationId', clientMutationId)) + .toString(); + } +} + +class GWebUIUpdateInputBuilder + implements Builder { + _$GWebUIUpdateInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GWebUIUpdateInputBuilder(); + + GWebUIUpdateInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _$v = null; + } + return this; + } + + @override + void replace(GWebUIUpdateInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GWebUIUpdateInput; + } + + @override + void update(void Function(GWebUIUpdateInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GWebUIUpdateInput build() => _build(); + + _$GWebUIUpdateInput _build() { + final _$result = + _$v ?? new _$GWebUIUpdateInput._(clientMutationId: clientMutationId); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/graphql/__generated__/serializers.gql.dart b/lib/src/graphql/__generated__/serializers.gql.dart new file mode 100644 index 00000000..b552bdb5 --- /dev/null +++ b/lib/src/graphql/__generated__/serializers.gql.dart @@ -0,0 +1,362 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/serializer.dart'; +import 'package:built_value/standard_json_plugin.dart' show StandardJsonPlugin; +import 'package:ferry_exec/ferry_exec.dart'; +import 'package:gql_code_builder/src/serializers/operation_serializer.dart' + show OperationSerializer; +import 'package:http/http.dart'; +import 'package:tachidesk_sorayomi/src/features/about/data/graphql/__generated__/about_query.data.gql.dart' + show + GAboutData, + GAboutData_aboutServer, + GServerUpdateData, + GServerUpdateData_checkForServerUpdates; +import 'package:tachidesk_sorayomi/src/features/about/data/graphql/__generated__/about_query.req.gql.dart' + show GAboutReq, GServerUpdateReq; +import 'package:tachidesk_sorayomi/src/features/about/data/graphql/__generated__/about_query.var.gql.dart' + show GAboutVars, GServerUpdateVars; +import 'package:tachidesk_sorayomi/src/features/settings/data/graphql/__generated__/settings_query.data.gql.dart' + show + GAutomaticBackupSettingsData, + GAutomaticBackupSettingsData_settings, + GCreateBackupData, + GCreateBackupData_createBackup, + GRestoreBackupData, + GRestoreBackupData_restoreBackup, + GRestoreBackupData_restoreBackup_status, + GRestoreStatusData, + GRestoreStatusData_restoreStatus, + GUpdateBackupIntervalData, + GUpdateBackupIntervalData_setSettings, + GUpdateBackupIntervalData_setSettings_settings, + GUpdateBackupPathData, + GUpdateBackupPathData_setSettings, + GUpdateBackupPathData_setSettings_settings, + GUpdateBackupTTLData, + GUpdateBackupTTLData_setSettings, + GUpdateBackupTTLData_setSettings_settings, + GUpdateBackupTimeData, + GUpdateBackupTimeData_setSettings, + GUpdateBackupTimeData_setSettings_settings, + GValidateBackupData, + GValidateBackupData_validateBackup, + GValidateBackupData_validateBackup_missingSources; +import 'package:tachidesk_sorayomi/src/features/settings/data/graphql/__generated__/settings_query.req.gql.dart' + show + GAutomaticBackupSettingsReq, + GCreateBackupReq, + GRestoreBackupReq, + GRestoreStatusReq, + GUpdateBackupIntervalReq, + GUpdateBackupPathReq, + GUpdateBackupTTLReq, + GUpdateBackupTimeReq, + GValidateBackupReq; +import 'package:tachidesk_sorayomi/src/features/settings/data/graphql/__generated__/settings_query.var.gql.dart' + show + GAutomaticBackupSettingsVars, + GCreateBackupVars, + GRestoreBackupVars, + GRestoreStatusVars, + GUpdateBackupIntervalVars, + GUpdateBackupPathVars, + GUpdateBackupTTLVars, + GUpdateBackupTimeVars, + GValidateBackupVars; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' + show + GBackupRestoreState, + GBindTrackInput, + GBooleanFilterInput, + GCategoryConditionInput, + GCategoryFilterInput, + GCategoryMetaTypeInput, + GCategoryOrderBy, + GChapterConditionInput, + GChapterFilterInput, + GChapterMetaTypeInput, + GChapterOrderBy, + GClearCachedImagesInput, + GClearDownloaderInput, + GCreateBackupInput, + GCreateCategoryInput, + GCursor, + GDeleteCategoryInput, + GDeleteCategoryMetaInput, + GDeleteChapterMetaInput, + GDeleteDownloadedChapterInput, + GDeleteDownloadedChaptersInput, + GDeleteGlobalMetaInput, + GDeleteMangaMetaInput, + GDeleteSourceMetaInput, + GDequeueChapterDownloadInput, + GDequeueChapterDownloadsInput, + GDoubleFilterInput, + GDownloadState, + GDownloaderState, + GEnqueueChapterDownloadInput, + GEnqueueChapterDownloadsInput, + GExtensionConditionInput, + GExtensionFilterInput, + GExtensionOrderBy, + GFetchChapterPagesInput, + GFetchChaptersInput, + GFetchExtensionsInput, + GFetchMangaInput, + GFetchSourceMangaInput, + GFetchSourceMangaType, + GFilterChangeInput, + GFloatFilterInput, + GGlobalMetaTypeInput, + GIncludeOrExclude, + GInstallExternalExtensionInput, + GIntFilterInput, + GLoginTrackerCredentialsInput, + GLoginTrackerOAuthInput, + GLogoutTrackerInput, + GLongFilterInput, + GLongString, + GMangaConditionInput, + GMangaFilterInput, + GMangaMetaTypeInput, + GMangaOrderBy, + GMangaStatus, + GMangaStatusFilterInput, + GMetaConditionInput, + GMetaFilterInput, + GMetaOrderBy, + GPartialSettingsTypeInput, + GReorderChapterDownloadInput, + GResetSettingsInput, + GRestoreBackupInput, + GSearchTrackerInput, + GSetCategoryMetaInput, + GSetChapterMetaInput, + GSetGlobalMetaInput, + GSetMangaMetaInput, + GSetSettingsInput, + GSetSourceMetaInput, + GSortOrder, + GSortSelectionInput, + GSourceConditionInput, + GSourceFilterInput, + GSourceMetaTypeInput, + GSourceOrderBy, + GSourcePreferenceChangeInput, + GStartDownloaderInput, + GStopDownloaderInput, + GStringFilterInput, + GTrackRecordConditionInput, + GTrackRecordFilterInput, + GTrackRecordOrderBy, + GTrackerConditionInput, + GTrackerOrderBy, + GTriState, + GUpdateCategoriesInput, + GUpdateCategoryInput, + GUpdateCategoryMangaInput, + GUpdateCategoryOrderInput, + GUpdateCategoryPatchInput, + GUpdateChapterInput, + GUpdateChapterPatchInput, + GUpdateChaptersInput, + GUpdateExtensionInput, + GUpdateExtensionPatchInput, + GUpdateExtensionsInput, + GUpdateLibraryMangaInput, + GUpdateMangaCategoriesInput, + GUpdateMangaCategoriesPatchInput, + GUpdateMangaInput, + GUpdateMangaPatchInput, + GUpdateMangasCategoriesInput, + GUpdateMangasInput, + GUpdateSourcePreferenceInput, + GUpdateState, + GUpdateStopInput, + GUpdateStrategy, + GUpdateTrackInput, + GValidateBackupInput, + GWebUIChannel, + GWebUIFlavor, + GWebUIInterface, + GWebUIUpdateInput; +import 'package:tachidesk_sorayomi/src/utils/misc/upload_serializer.dart' + show UploadSerializer; + +part 'serializers.gql.g.dart'; + +final SerializersBuilder _serializersBuilder = _$serializers.toBuilder() + ..add(OperationSerializer()) + ..add(UploadSerializer()) + ..addPlugin(StandardJsonPlugin()); +@SerializersFor([ + GAboutData, + GAboutData_aboutServer, + GAboutReq, + GAboutVars, + GAutomaticBackupSettingsData, + GAutomaticBackupSettingsData_settings, + GAutomaticBackupSettingsReq, + GAutomaticBackupSettingsVars, + GBackupRestoreState, + GBindTrackInput, + GBooleanFilterInput, + GCategoryConditionInput, + GCategoryFilterInput, + GCategoryMetaTypeInput, + GCategoryOrderBy, + GChapterConditionInput, + GChapterFilterInput, + GChapterMetaTypeInput, + GChapterOrderBy, + GClearCachedImagesInput, + GClearDownloaderInput, + GCreateBackupData, + GCreateBackupData_createBackup, + GCreateBackupInput, + GCreateBackupReq, + GCreateBackupVars, + GCreateCategoryInput, + GCursor, + GDeleteCategoryInput, + GDeleteCategoryMetaInput, + GDeleteChapterMetaInput, + GDeleteDownloadedChapterInput, + GDeleteDownloadedChaptersInput, + GDeleteGlobalMetaInput, + GDeleteMangaMetaInput, + GDeleteSourceMetaInput, + GDequeueChapterDownloadInput, + GDequeueChapterDownloadsInput, + GDoubleFilterInput, + GDownloadState, + GDownloaderState, + GEnqueueChapterDownloadInput, + GEnqueueChapterDownloadsInput, + GExtensionConditionInput, + GExtensionFilterInput, + GExtensionOrderBy, + GFetchChapterPagesInput, + GFetchChaptersInput, + GFetchExtensionsInput, + GFetchMangaInput, + GFetchSourceMangaInput, + GFetchSourceMangaType, + GFilterChangeInput, + GFloatFilterInput, + GGlobalMetaTypeInput, + GIncludeOrExclude, + GInstallExternalExtensionInput, + GIntFilterInput, + GLoginTrackerCredentialsInput, + GLoginTrackerOAuthInput, + GLogoutTrackerInput, + GLongFilterInput, + GLongString, + GMangaConditionInput, + GMangaFilterInput, + GMangaMetaTypeInput, + GMangaOrderBy, + GMangaStatus, + GMangaStatusFilterInput, + GMetaConditionInput, + GMetaFilterInput, + GMetaOrderBy, + GPartialSettingsTypeInput, + GReorderChapterDownloadInput, + GResetSettingsInput, + GRestoreBackupData, + GRestoreBackupData_restoreBackup, + GRestoreBackupData_restoreBackup_status, + GRestoreBackupInput, + GRestoreBackupReq, + GRestoreBackupVars, + GRestoreStatusData, + GRestoreStatusData_restoreStatus, + GRestoreStatusReq, + GRestoreStatusVars, + GSearchTrackerInput, + GServerUpdateData, + GServerUpdateData_checkForServerUpdates, + GServerUpdateReq, + GServerUpdateVars, + GSetCategoryMetaInput, + GSetChapterMetaInput, + GSetGlobalMetaInput, + GSetMangaMetaInput, + GSetSettingsInput, + GSetSourceMetaInput, + GSortOrder, + GSortSelectionInput, + GSourceConditionInput, + GSourceFilterInput, + GSourceMetaTypeInput, + GSourceOrderBy, + GSourcePreferenceChangeInput, + GStartDownloaderInput, + GStopDownloaderInput, + GStringFilterInput, + GTrackRecordConditionInput, + GTrackRecordFilterInput, + GTrackRecordOrderBy, + GTrackerConditionInput, + GTrackerOrderBy, + GTriState, + GUpdateBackupIntervalData, + GUpdateBackupIntervalData_setSettings, + GUpdateBackupIntervalData_setSettings_settings, + GUpdateBackupIntervalReq, + GUpdateBackupIntervalVars, + GUpdateBackupPathData, + GUpdateBackupPathData_setSettings, + GUpdateBackupPathData_setSettings_settings, + GUpdateBackupPathReq, + GUpdateBackupPathVars, + GUpdateBackupTTLData, + GUpdateBackupTTLData_setSettings, + GUpdateBackupTTLData_setSettings_settings, + GUpdateBackupTTLReq, + GUpdateBackupTTLVars, + GUpdateBackupTimeData, + GUpdateBackupTimeData_setSettings, + GUpdateBackupTimeData_setSettings_settings, + GUpdateBackupTimeReq, + GUpdateBackupTimeVars, + GUpdateCategoriesInput, + GUpdateCategoryInput, + GUpdateCategoryMangaInput, + GUpdateCategoryOrderInput, + GUpdateCategoryPatchInput, + GUpdateChapterInput, + GUpdateChapterPatchInput, + GUpdateChaptersInput, + GUpdateExtensionInput, + GUpdateExtensionPatchInput, + GUpdateExtensionsInput, + GUpdateLibraryMangaInput, + GUpdateMangaCategoriesInput, + GUpdateMangaCategoriesPatchInput, + GUpdateMangaInput, + GUpdateMangaPatchInput, + GUpdateMangasCategoriesInput, + GUpdateMangasInput, + GUpdateSourcePreferenceInput, + GUpdateState, + GUpdateStopInput, + GUpdateStrategy, + GUpdateTrackInput, + GValidateBackupData, + GValidateBackupData_validateBackup, + GValidateBackupData_validateBackup_missingSources, + GValidateBackupInput, + GValidateBackupReq, + GValidateBackupVars, + GWebUIChannel, + GWebUIFlavor, + GWebUIInterface, + GWebUIUpdateInput, +]) +final Serializers serializers = _serializersBuilder.build(); diff --git a/lib/src/graphql/__generated__/serializers.gql.g.dart b/lib/src/graphql/__generated__/serializers.gql.g.dart new file mode 100644 index 00000000..b762cbf4 --- /dev/null +++ b/lib/src/graphql/__generated__/serializers.gql.g.dart @@ -0,0 +1,334 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'serializers.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializers _$serializers = (new Serializers().toBuilder() + ..add(FetchPolicy.serializer) + ..add(GAboutData.serializer) + ..add(GAboutData_aboutServer.serializer) + ..add(GAboutReq.serializer) + ..add(GAboutVars.serializer) + ..add(GAutomaticBackupSettingsData.serializer) + ..add(GAutomaticBackupSettingsData_settings.serializer) + ..add(GAutomaticBackupSettingsReq.serializer) + ..add(GAutomaticBackupSettingsVars.serializer) + ..add(GBackupRestoreState.serializer) + ..add(GBindTrackInput.serializer) + ..add(GBooleanFilterInput.serializer) + ..add(GCategoryConditionInput.serializer) + ..add(GCategoryFilterInput.serializer) + ..add(GCategoryMetaTypeInput.serializer) + ..add(GCategoryOrderBy.serializer) + ..add(GChapterConditionInput.serializer) + ..add(GChapterFilterInput.serializer) + ..add(GChapterMetaTypeInput.serializer) + ..add(GChapterOrderBy.serializer) + ..add(GClearCachedImagesInput.serializer) + ..add(GClearDownloaderInput.serializer) + ..add(GCreateBackupData.serializer) + ..add(GCreateBackupData_createBackup.serializer) + ..add(GCreateBackupInput.serializer) + ..add(GCreateBackupReq.serializer) + ..add(GCreateBackupVars.serializer) + ..add(GCreateCategoryInput.serializer) + ..add(GCursor.serializer) + ..add(GDeleteCategoryInput.serializer) + ..add(GDeleteCategoryMetaInput.serializer) + ..add(GDeleteChapterMetaInput.serializer) + ..add(GDeleteDownloadedChapterInput.serializer) + ..add(GDeleteDownloadedChaptersInput.serializer) + ..add(GDeleteGlobalMetaInput.serializer) + ..add(GDeleteMangaMetaInput.serializer) + ..add(GDeleteSourceMetaInput.serializer) + ..add(GDequeueChapterDownloadInput.serializer) + ..add(GDequeueChapterDownloadsInput.serializer) + ..add(GDoubleFilterInput.serializer) + ..add(GDownloadState.serializer) + ..add(GDownloaderState.serializer) + ..add(GEnqueueChapterDownloadInput.serializer) + ..add(GEnqueueChapterDownloadsInput.serializer) + ..add(GExtensionConditionInput.serializer) + ..add(GExtensionFilterInput.serializer) + ..add(GExtensionOrderBy.serializer) + ..add(GFetchChapterPagesInput.serializer) + ..add(GFetchChaptersInput.serializer) + ..add(GFetchExtensionsInput.serializer) + ..add(GFetchMangaInput.serializer) + ..add(GFetchSourceMangaInput.serializer) + ..add(GFetchSourceMangaType.serializer) + ..add(GFilterChangeInput.serializer) + ..add(GFloatFilterInput.serializer) + ..add(GGlobalMetaTypeInput.serializer) + ..add(GIncludeOrExclude.serializer) + ..add(GInstallExternalExtensionInput.serializer) + ..add(GIntFilterInput.serializer) + ..add(GLoginTrackerCredentialsInput.serializer) + ..add(GLoginTrackerOAuthInput.serializer) + ..add(GLogoutTrackerInput.serializer) + ..add(GLongFilterInput.serializer) + ..add(GLongString.serializer) + ..add(GMangaConditionInput.serializer) + ..add(GMangaFilterInput.serializer) + ..add(GMangaMetaTypeInput.serializer) + ..add(GMangaOrderBy.serializer) + ..add(GMangaStatus.serializer) + ..add(GMangaStatusFilterInput.serializer) + ..add(GMetaConditionInput.serializer) + ..add(GMetaFilterInput.serializer) + ..add(GMetaOrderBy.serializer) + ..add(GPartialSettingsTypeInput.serializer) + ..add(GReorderChapterDownloadInput.serializer) + ..add(GResetSettingsInput.serializer) + ..add(GRestoreBackupData.serializer) + ..add(GRestoreBackupData_restoreBackup.serializer) + ..add(GRestoreBackupData_restoreBackup_status.serializer) + ..add(GRestoreBackupInput.serializer) + ..add(GRestoreBackupReq.serializer) + ..add(GRestoreBackupVars.serializer) + ..add(GRestoreStatusData.serializer) + ..add(GRestoreStatusData_restoreStatus.serializer) + ..add(GRestoreStatusReq.serializer) + ..add(GRestoreStatusVars.serializer) + ..add(GSearchTrackerInput.serializer) + ..add(GServerUpdateData.serializer) + ..add(GServerUpdateData_checkForServerUpdates.serializer) + ..add(GServerUpdateReq.serializer) + ..add(GServerUpdateVars.serializer) + ..add(GSetCategoryMetaInput.serializer) + ..add(GSetChapterMetaInput.serializer) + ..add(GSetGlobalMetaInput.serializer) + ..add(GSetMangaMetaInput.serializer) + ..add(GSetSettingsInput.serializer) + ..add(GSetSourceMetaInput.serializer) + ..add(GSortOrder.serializer) + ..add(GSortSelectionInput.serializer) + ..add(GSourceConditionInput.serializer) + ..add(GSourceFilterInput.serializer) + ..add(GSourceMetaTypeInput.serializer) + ..add(GSourceOrderBy.serializer) + ..add(GSourcePreferenceChangeInput.serializer) + ..add(GStartDownloaderInput.serializer) + ..add(GStopDownloaderInput.serializer) + ..add(GStringFilterInput.serializer) + ..add(GTrackRecordConditionInput.serializer) + ..add(GTrackRecordFilterInput.serializer) + ..add(GTrackRecordOrderBy.serializer) + ..add(GTrackerConditionInput.serializer) + ..add(GTrackerOrderBy.serializer) + ..add(GTriState.serializer) + ..add(GUpdateBackupIntervalData.serializer) + ..add(GUpdateBackupIntervalData_setSettings.serializer) + ..add(GUpdateBackupIntervalData_setSettings_settings.serializer) + ..add(GUpdateBackupIntervalReq.serializer) + ..add(GUpdateBackupIntervalVars.serializer) + ..add(GUpdateBackupPathData.serializer) + ..add(GUpdateBackupPathData_setSettings.serializer) + ..add(GUpdateBackupPathData_setSettings_settings.serializer) + ..add(GUpdateBackupPathReq.serializer) + ..add(GUpdateBackupPathVars.serializer) + ..add(GUpdateBackupTTLData.serializer) + ..add(GUpdateBackupTTLData_setSettings.serializer) + ..add(GUpdateBackupTTLData_setSettings_settings.serializer) + ..add(GUpdateBackupTTLReq.serializer) + ..add(GUpdateBackupTTLVars.serializer) + ..add(GUpdateBackupTimeData.serializer) + ..add(GUpdateBackupTimeData_setSettings.serializer) + ..add(GUpdateBackupTimeData_setSettings_settings.serializer) + ..add(GUpdateBackupTimeReq.serializer) + ..add(GUpdateBackupTimeVars.serializer) + ..add(GUpdateCategoriesInput.serializer) + ..add(GUpdateCategoryInput.serializer) + ..add(GUpdateCategoryMangaInput.serializer) + ..add(GUpdateCategoryOrderInput.serializer) + ..add(GUpdateCategoryPatchInput.serializer) + ..add(GUpdateChapterInput.serializer) + ..add(GUpdateChapterPatchInput.serializer) + ..add(GUpdateChaptersInput.serializer) + ..add(GUpdateExtensionInput.serializer) + ..add(GUpdateExtensionPatchInput.serializer) + ..add(GUpdateExtensionsInput.serializer) + ..add(GUpdateLibraryMangaInput.serializer) + ..add(GUpdateMangaCategoriesInput.serializer) + ..add(GUpdateMangaCategoriesPatchInput.serializer) + ..add(GUpdateMangaInput.serializer) + ..add(GUpdateMangaPatchInput.serializer) + ..add(GUpdateMangasCategoriesInput.serializer) + ..add(GUpdateMangasInput.serializer) + ..add(GUpdateSourcePreferenceInput.serializer) + ..add(GUpdateState.serializer) + ..add(GUpdateStopInput.serializer) + ..add(GUpdateStrategy.serializer) + ..add(GUpdateTrackInput.serializer) + ..add(GValidateBackupData.serializer) + ..add(GValidateBackupData_validateBackup.serializer) + ..add(GValidateBackupData_validateBackup_missingSources.serializer) + ..add(GValidateBackupInput.serializer) + ..add(GValidateBackupReq.serializer) + ..add(GValidateBackupVars.serializer) + ..add(GWebUIChannel.serializer) + ..add(GWebUIFlavor.serializer) + ..add(GWebUIInterface.serializer) + ..add(GWebUIUpdateInput.serializer) + ..addBuilderFactory( + const FullType( + BuiltList, const [const FullType(GCategoryFilterInput)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType( + BuiltList, const [const FullType(GCategoryFilterInput)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType( + BuiltList, const [const FullType(GChapterFilterInput)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType( + BuiltList, const [const FullType(GChapterFilterInput)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType( + BuiltList, const [const FullType(GExtensionFilterInput)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType( + BuiltList, const [const FullType(GExtensionFilterInput)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(GFilterChangeInput)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(GLongString)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(GLongString)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(GMangaFilterInput)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(GMangaFilterInput)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(GMangaStatus)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(GMangaStatus)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(GMetaFilterInput)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(GMetaFilterInput)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, + const [const FullType(GServerUpdateData_checkForServerUpdates)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(GSourceFilterInput)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(GSourceFilterInput)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType( + BuiltList, const [const FullType(GTrackRecordFilterInput)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType( + BuiltList, const [const FullType(GTrackRecordFilterInput)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [ + const FullType(GValidateBackupData_validateBackup_missingSources) + ]), + () => new ListBuilder< + GValidateBackupData_validateBackup_missingSources>()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(bool)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(bool)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(double)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(double)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(double)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(double)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(int)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(int)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(int)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(int)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(int)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(int)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(int)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(int)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(int)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(int)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(int)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(int)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(int)]), + () => new ListBuilder())) + .build(); + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/graphql/schema.graphql b/lib/src/graphql/schema.graphql new file mode 100644 index 00000000..2185e849 --- /dev/null +++ b/lib/src/graphql/schema.graphql @@ -0,0 +1,1973 @@ +"""Exposes a URL that specifies the behaviour of this scalar.""" +directive @specifiedBy( + """The URL that specifies the behaviour of this scalar.""" + url: String! +) on SCALAR + +type AboutServerPayload { + buildTime: LongString! + buildType: String! + discord: String! + github: String! + name: String! + revision: String! + version: String! +} + +type AboutWebUI { + channel: String! + tag: String! +} + +enum BackupRestoreState { + IDLE + SUCCESS + FAILURE + RESTORING_CATEGORIES + RESTORING_MANGA +} + +type BackupRestoreStatus { + mangaProgress: Int! + state: BackupRestoreState! + totalManga: Int! +} + +input BindTrackInput { + clientMutationId: String + mangaId: Int! + remoteId: LongString! + trackerId: Int! +} + +type BindTrackPayload { + clientMutationId: String + trackRecord: TrackRecordType! +} + +input BooleanFilterInput { + distinctFrom: Boolean + equalTo: Boolean + greaterThan: Boolean + greaterThanOrEqualTo: Boolean + in: [Boolean!] + isNull: Boolean + lessThan: Boolean + lessThanOrEqualTo: Boolean + notDistinctFrom: Boolean + notEqualTo: Boolean + notIn: [Boolean!] +} + +input CategoryConditionInput { + default: Boolean + id: Int + name: String + order: Int +} + +type CategoryEdge implements Edge { + cursor: Cursor! + node: CategoryType! +} + +input CategoryFilterInput { + and: [CategoryFilterInput!] + default: BooleanFilterInput + id: IntFilterInput + name: StringFilterInput + not: CategoryFilterInput + or: [CategoryFilterInput!] + order: IntFilterInput +} + +type CategoryMetaType implements MetaType { + categoryId: Int! + key: String! + value: String! + category: CategoryType! +} + +input CategoryMetaTypeInput { + categoryId: Int! + key: String! + value: String! +} + +type CategoryNodeList implements NodeList { + edges: [CategoryEdge!]! + nodes: [CategoryType!]! + pageInfo: PageInfo! + totalCount: Int! +} + +enum CategoryOrderBy { + ID + NAME + ORDER +} + +type CategoryType { + default: Boolean! + id: Int! + includeInDownload: IncludeOrExclude! + includeInUpdate: IncludeOrExclude! + name: String! + order: Int! + mangas: MangaNodeList! + meta: [CategoryMetaType!]! +} + +input ChapterConditionInput { + chapterNumber: Float + fetchedAt: LongString + id: Int + isBookmarked: Boolean + isDownloaded: Boolean + isRead: Boolean + lastPageRead: Int + lastReadAt: LongString + mangaId: Int + name: String + pageCount: Int + realUrl: String + scanlator: String + sourceOrder: Int + uploadDate: LongString + url: String +} + +type ChapterEdge implements Edge { + cursor: Cursor! + node: ChapterType! +} + +input ChapterFilterInput { + and: [ChapterFilterInput!] + chapterNumber: FloatFilterInput + fetchedAt: LongFilterInput + id: IntFilterInput + inLibrary: BooleanFilterInput + isBookmarked: BooleanFilterInput + isDownloaded: BooleanFilterInput + isRead: BooleanFilterInput + lastPageRead: IntFilterInput + lastReadAt: LongFilterInput + mangaId: IntFilterInput + name: StringFilterInput + not: ChapterFilterInput + or: [ChapterFilterInput!] + pageCount: IntFilterInput + realUrl: StringFilterInput + scanlator: StringFilterInput + sourceOrder: IntFilterInput + uploadDate: LongFilterInput + url: StringFilterInput +} + +type ChapterMetaType implements MetaType { + chapterId: Int! + key: String! + value: String! + chapter: ChapterType! +} + +input ChapterMetaTypeInput { + chapterId: Int! + key: String! + value: String! +} + +type ChapterNodeList implements NodeList { + edges: [ChapterEdge!]! + nodes: [ChapterType!]! + pageInfo: PageInfo! + totalCount: Int! +} + +enum ChapterOrderBy { + ID + SOURCE_ORDER + NAME + UPLOAD_DATE + CHAPTER_NUMBER + LAST_READ_AT + FETCHED_AT +} + +type ChapterType { + chapterNumber: Float! + fetchedAt: LongString! + id: Int! + isBookmarked: Boolean! + isDownloaded: Boolean! + isRead: Boolean! + lastPageRead: Int! + lastReadAt: LongString! + mangaId: Int! + name: String! + pageCount: Int! + realUrl: String + scanlator: String + sourceOrder: Int! + uploadDate: LongString! + url: String! + manga: MangaType! + meta: [ChapterMetaType!]! +} + +type CheckBoxFilter { + default: Boolean! + name: String! +} + +type CheckBoxPreference { + currentValue: Boolean + default: Boolean! + key: String! + summary: String + title: String! + visible: Boolean! +} + +type CheckForServerUpdatesPayload { + channel: String! + tag: String! + url: String! +} + +input ClearCachedImagesInput { + cachedPages: Boolean + cachedThumbnails: Boolean + clientMutationId: String + downloadedThumbnails: Boolean +} + +type ClearCachedImagesPayload { + cachedPages: Boolean + cachedThumbnails: Boolean + clientMutationId: String + downloadedThumbnails: Boolean +} + +input ClearDownloaderInput { + clientMutationId: String +} + +type ClearDownloaderPayload { + clientMutationId: String + downloadStatus: DownloadStatus! +} + +input CreateBackupInput { + clientMutationId: String + includeCategories: Boolean + includeChapters: Boolean +} + +type CreateBackupPayload { + clientMutationId: String + url: String! +} + +input CreateCategoryInput { + clientMutationId: String + default: Boolean + includeInDownload: IncludeOrExclude + includeInUpdate: IncludeOrExclude + name: String! + order: Int +} + +type CreateCategoryPayload { + category: CategoryType! + clientMutationId: String +} + +"""A location in a connection that can be used for resuming pagination.""" +scalar Cursor + +input DeleteCategoryInput { + categoryId: Int! + clientMutationId: String +} + +input DeleteCategoryMetaInput { + categoryId: Int! + clientMutationId: String + key: String! +} + +type DeleteCategoryMetaPayload { + category: CategoryType! + clientMutationId: String + meta: CategoryMetaType +} + +type DeleteCategoryPayload { + category: CategoryType + clientMutationId: String + mangas: [MangaType!]! +} + +input DeleteChapterMetaInput { + chapterId: Int! + clientMutationId: String + key: String! +} + +type DeleteChapterMetaPayload { + chapter: ChapterType! + clientMutationId: String + meta: ChapterMetaType +} + +input DeleteDownloadedChapterInput { + clientMutationId: String + id: Int! +} + +type DeleteDownloadedChapterPayload { + chapters: ChapterType! + clientMutationId: String +} + +input DeleteDownloadedChaptersInput { + clientMutationId: String + ids: [Int!]! +} + +type DeleteDownloadedChaptersPayload { + chapters: [ChapterType!]! + clientMutationId: String +} + +input DeleteGlobalMetaInput { + clientMutationId: String + key: String! +} + +type DeleteGlobalMetaPayload { + clientMutationId: String + meta: GlobalMetaType +} + +input DeleteMangaMetaInput { + clientMutationId: String + key: String! + mangaId: Int! +} + +type DeleteMangaMetaPayload { + clientMutationId: String + manga: MangaType! + meta: MangaMetaType +} + +input DeleteSourceMetaInput { + clientMutationId: String + key: String! + sourceId: LongString! +} + +type DeleteSourceMetaPayload { + clientMutationId: String + meta: SourceMetaType + source: SourceType +} + +input DequeueChapterDownloadInput { + clientMutationId: String + id: Int! +} + +type DequeueChapterDownloadPayload { + clientMutationId: String + downloadStatus: DownloadStatus! +} + +input DequeueChapterDownloadsInput { + clientMutationId: String + ids: [Int!]! +} + +type DequeueChapterDownloadsPayload { + clientMutationId: String + downloadStatus: DownloadStatus! +} + +input DoubleFilterInput { + distinctFrom: Float + equalTo: Float + greaterThan: Float + greaterThanOrEqualTo: Float + in: [Float!] + isNull: Boolean + lessThan: Float + lessThanOrEqualTo: Float + notDistinctFrom: Float + notEqualTo: Float + notIn: [Float!] +} + +type DownloadEdge implements Edge { + cursor: Cursor! + node: DownloadType! +} + +enum DownloaderState { + STARTED + STOPPED +} + +type DownloadNodeList implements NodeList { + edges: [DownloadEdge!]! + nodes: [DownloadType!]! + pageInfo: PageInfo! + totalCount: Int! +} + +enum DownloadState { + QUEUED + DOWNLOADING + FINISHED + ERROR +} + +type DownloadStatus { + queue: [DownloadType!]! + state: DownloaderState! +} + +type DownloadType { + progress: Float! + state: DownloadState! + tries: Int! + chapter: ChapterType! + manga: MangaType! +} + +interface Edge { + """A cursor for use in pagination.""" + cursor: Cursor! + + """The [T] at the end of the edge.""" + node: Node! +} + +type EditTextPreference { + currentValue: String + default: String + dialogMessage: String + dialogTitle: String + key: String! + summary: String + text: String + title: String + visible: Boolean! +} + +input EnqueueChapterDownloadInput { + clientMutationId: String + id: Int! +} + +type EnqueueChapterDownloadPayload { + clientMutationId: String + downloadStatus: DownloadStatus! +} + +input EnqueueChapterDownloadsInput { + clientMutationId: String + ids: [Int!]! +} + +type EnqueueChapterDownloadsPayload { + clientMutationId: String + downloadStatus: DownloadStatus! +} + +input ExtensionConditionInput { + apkName: String + hasUpdate: Boolean + iconUrl: String + isInstalled: Boolean + isNsfw: Boolean + isObsolete: Boolean + lang: String + name: String + pkgName: String + repo: String + versionCode: Int + versionName: String +} + +type ExtensionEdge implements Edge { + cursor: Cursor! + node: ExtensionType! +} + +input ExtensionFilterInput { + and: [ExtensionFilterInput!] + apkName: StringFilterInput + hasUpdate: BooleanFilterInput + iconUrl: StringFilterInput + isInstalled: BooleanFilterInput + isNsfw: BooleanFilterInput + isObsolete: BooleanFilterInput + lang: StringFilterInput + name: StringFilterInput + not: ExtensionFilterInput + or: [ExtensionFilterInput!] + pkgName: StringFilterInput + repo: StringFilterInput + versionCode: IntFilterInput + versionName: StringFilterInput +} + +type ExtensionNodeList implements NodeList { + edges: [ExtensionEdge!]! + nodes: [ExtensionType!]! + pageInfo: PageInfo! + totalCount: Int! +} + +enum ExtensionOrderBy { + PKG_NAME + NAME + APK_NAME +} + +type ExtensionType { + apkName: String! + hasUpdate: Boolean! + iconUrl: String! + isInstalled: Boolean! + isNsfw: Boolean! + isObsolete: Boolean! + lang: String! + name: String! + pkgName: String! + repo: String + versionCode: Int! + versionName: String! + source: SourceNodeList! +} + +input FetchChapterPagesInput { + chapterId: Int! + clientMutationId: String +} + +type FetchChapterPagesPayload { + chapter: ChapterType! + clientMutationId: String + pages: [String!]! +} + +input FetchChaptersInput { + clientMutationId: String + mangaId: Int! +} + +type FetchChaptersPayload { + chapters: [ChapterType!]! + clientMutationId: String +} + +input FetchExtensionsInput { + clientMutationId: String +} + +type FetchExtensionsPayload { + clientMutationId: String + extensions: [ExtensionType!]! +} + +input FetchMangaInput { + clientMutationId: String + id: Int! +} + +type FetchMangaPayload { + clientMutationId: String + manga: MangaType! +} + +input FetchSourceMangaInput { + clientMutationId: String + filters: [FilterChangeInput!] + page: Int! + query: String + source: LongString! + type: FetchSourceMangaType! +} + +type FetchSourceMangaPayload { + clientMutationId: String + hasNextPage: Boolean! + mangas: [MangaType!]! +} + +enum FetchSourceMangaType { + SEARCH + POPULAR + LATEST +} + +union Filter = CheckBoxFilter | GroupFilter | HeaderFilter | SelectFilter | SeparatorFilter | SortFilter | TextFilter | TriStateFilter + +input FilterChangeInput { + checkBoxState: Boolean + groupChange: FilterChangeInput + position: Int! + selectState: Int + sortState: SortSelectionInput + textState: String + triState: TriState +} + +input FloatFilterInput { + distinctFrom: Float + equalTo: Float + greaterThan: Float + greaterThanOrEqualTo: Float + in: [Float!] + isNull: Boolean + lessThan: Float + lessThanOrEqualTo: Float + notDistinctFrom: Float + notEqualTo: Float + notIn: [Float!] +} + +type GlobalMetaNodeList implements NodeList { + edges: [MetaEdge!]! + nodes: [GlobalMetaType!]! + pageInfo: PageInfo! + totalCount: Int! +} + +type GlobalMetaType implements MetaType { + key: String! + value: String! +} + +input GlobalMetaTypeInput { + key: String! + value: String! +} + +type GroupFilter { + filters: [Filter!]! + name: String! +} + +type HeaderFilter { + name: String! +} + +enum IncludeOrExclude { + EXCLUDE + INCLUDE + UNSET +} + +input InstallExternalExtensionInput { + clientMutationId: String + extensionFile: Upload! +} + +type InstallExternalExtensionPayload { + clientMutationId: String + extension: ExtensionType! +} + +input IntFilterInput { + distinctFrom: Int + equalTo: Int + greaterThan: Int + greaterThanOrEqualTo: Int + in: [Int!] + isNull: Boolean + lessThan: Int + lessThanOrEqualTo: Int + notDistinctFrom: Int + notEqualTo: Int + notIn: [Int!] +} + +type LastUpdateTimestampPayload { + timestamp: LongString! +} + +type ListPreference { + currentValue: String + default: String + entries: [String!]! + entryValues: [String!]! + key: String! + summary: String + title: String + visible: Boolean! +} + +input LoginTrackerCredentialsInput { + clientMutationId: String + password: String! + trackerId: Int! + username: String! +} + +type LoginTrackerCredentialsPayload { + clientMutationId: String + isLoggedIn: Boolean! + tracker: TrackerType! +} + +input LoginTrackerOAuthInput { + callbackUrl: String! + clientMutationId: String + trackerId: Int! +} + +type LoginTrackerOAuthPayload { + clientMutationId: String + isLoggedIn: Boolean! + tracker: TrackerType! +} + +input LogoutTrackerInput { + clientMutationId: String + trackerId: Int! +} + +type LogoutTrackerPayload { + clientMutationId: String + isLoggedIn: Boolean! + tracker: TrackerType! +} + +input LongFilterInput { + distinctFrom: LongString + equalTo: LongString + greaterThan: LongString + greaterThanOrEqualTo: LongString + in: [LongString!] + isNull: Boolean + lessThan: LongString + lessThanOrEqualTo: LongString + notDistinctFrom: LongString + notEqualTo: LongString + notIn: [LongString!] +} + +"""A 64-bit signed integer as a String""" +scalar LongString + +input MangaConditionInput { + artist: String + author: String + categoryIds: [Int!] + chaptersLastFetchedAt: LongString + description: String + genre: [String!] + id: Int + inLibrary: Boolean + inLibraryAt: LongString + initialized: Boolean + lastFetchedAt: LongString + realUrl: String + sourceId: LongString + status: MangaStatus + thumbnailUrl: String + title: String + url: String +} + +type MangaEdge implements Edge { + cursor: Cursor! + node: MangaType! +} + +input MangaFilterInput { + and: [MangaFilterInput!] + artist: StringFilterInput + author: StringFilterInput + categoryId: IntFilterInput + chaptersLastFetchedAt: LongFilterInput + description: StringFilterInput + genre: StringFilterInput + id: IntFilterInput + inLibrary: BooleanFilterInput + inLibraryAt: LongFilterInput + initialized: BooleanFilterInput + lastFetchedAt: LongFilterInput + not: MangaFilterInput + or: [MangaFilterInput!] + realUrl: StringFilterInput + sourceId: LongFilterInput + status: MangaStatusFilterInput + thumbnailUrl: StringFilterInput + title: StringFilterInput + url: StringFilterInput +} + +type MangaMetaType implements MetaType { + key: String! + mangaId: Int! + value: String! + manga: MangaType! +} + +input MangaMetaTypeInput { + key: String! + mangaId: Int! + value: String! +} + +type MangaNodeList implements NodeList { + edges: [MangaEdge!]! + nodes: [MangaType!]! + pageInfo: PageInfo! + totalCount: Int! +} + +enum MangaOrderBy { + ID + TITLE + IN_LIBRARY_AT + LAST_FETCHED_AT +} + +enum MangaStatus { + UNKNOWN + ONGOING + COMPLETED + LICENSED + PUBLISHING_FINISHED + CANCELLED + ON_HIATUS +} + +input MangaStatusFilterInput { + distinctFrom: MangaStatus + equalTo: MangaStatus + greaterThan: MangaStatus + greaterThanOrEqualTo: MangaStatus + in: [MangaStatus!] + isNull: Boolean + lessThan: MangaStatus + lessThanOrEqualTo: MangaStatus + notDistinctFrom: MangaStatus + notEqualTo: MangaStatus + notIn: [MangaStatus!] +} + +type MangaType { + artist: String + author: String + chaptersLastFetchedAt: LongString + description: String + genre: [String!]! + id: Int! + inLibrary: Boolean! + inLibraryAt: LongString! + initialized: Boolean! + lastFetchedAt: LongString + realUrl: String + sourceId: LongString! + status: MangaStatus! + thumbnailUrl: String + thumbnailUrlLastFetched: LongString + title: String! + updateStrategy: UpdateStrategy! + url: String! + age: LongString + categories: CategoryNodeList! + chapters: ChapterNodeList! + chaptersAge: LongString + downloadCount: Int! + lastReadChapter: ChapterType + latestFetchedChapter: ChapterType + latestReadChapter: ChapterType + latestUploadedChapter: ChapterType + meta: [MangaMetaType!]! + source: SourceType + trackRecords: TrackRecordNodeList! + unreadCount: Int! +} + +input MetaConditionInput { + key: String + value: String +} + +type MetaEdge implements Edge { + cursor: Cursor! + node: GlobalMetaType! +} + +input MetaFilterInput { + and: [MetaFilterInput!] + key: StringFilterInput + not: MetaFilterInput + or: [MetaFilterInput!] + value: StringFilterInput +} + +enum MetaOrderBy { + KEY + VALUE +} + +interface MetaType { + key: String! + value: String! +} + +type MultiSelectListPreference { + currentValue: [String!] + default: [String!] + dialogMessage: String + dialogTitle: String + entries: [String!]! + entryValues: [String!]! + key: String! + summary: String + title: String + visible: Boolean! +} + +type Mutation { + createBackup(input: CreateBackupInput): CreateBackupPayload! + restoreBackup(input: RestoreBackupInput!): RestoreBackupPayload! + createCategory(input: CreateCategoryInput!): CreateCategoryPayload! + deleteCategory(input: DeleteCategoryInput!): DeleteCategoryPayload! + deleteCategoryMeta(input: DeleteCategoryMetaInput!): DeleteCategoryMetaPayload! + setCategoryMeta(input: SetCategoryMetaInput!): SetCategoryMetaPayload! + updateCategories(input: UpdateCategoriesInput!): UpdateCategoriesPayload! + updateCategory(input: UpdateCategoryInput!): UpdateCategoryPayload! + updateCategoryOrder(input: UpdateCategoryOrderInput!): UpdateCategoryOrderPayload! + updateMangaCategories(input: UpdateMangaCategoriesInput!): UpdateMangaCategoriesPayload! + updateMangasCategories(input: UpdateMangasCategoriesInput!): UpdateMangasCategoriesPayload! + deleteChapterMeta(input: DeleteChapterMetaInput!): DeleteChapterMetaPayload! + fetchChapterPages(input: FetchChapterPagesInput!): FetchChapterPagesPayload! + fetchChapters(input: FetchChaptersInput!): FetchChaptersPayload! + setChapterMeta(input: SetChapterMetaInput!): SetChapterMetaPayload! + updateChapter(input: UpdateChapterInput!): UpdateChapterPayload! + updateChapters(input: UpdateChaptersInput!): UpdateChaptersPayload! + clearDownloader(input: ClearDownloaderInput!): ClearDownloaderPayload! + deleteDownloadedChapter(input: DeleteDownloadedChapterInput!): DeleteDownloadedChapterPayload! + deleteDownloadedChapters(input: DeleteDownloadedChaptersInput!): DeleteDownloadedChaptersPayload! + dequeueChapterDownload(input: DequeueChapterDownloadInput!): DequeueChapterDownloadPayload! + dequeueChapterDownloads(input: DequeueChapterDownloadsInput!): DequeueChapterDownloadsPayload! + enqueueChapterDownload(input: EnqueueChapterDownloadInput!): EnqueueChapterDownloadPayload! + enqueueChapterDownloads(input: EnqueueChapterDownloadsInput!): EnqueueChapterDownloadsPayload! + reorderChapterDownload(input: ReorderChapterDownloadInput!): ReorderChapterDownloadPayload! + startDownloader(input: StartDownloaderInput!): StartDownloaderPayload! + stopDownloader(input: StopDownloaderInput!): StopDownloaderPayload! + fetchExtensions(input: FetchExtensionsInput!): FetchExtensionsPayload! + installExternalExtension(input: InstallExternalExtensionInput!): InstallExternalExtensionPayload! + updateExtension(input: UpdateExtensionInput!): UpdateExtensionPayload! + updateExtensions(input: UpdateExtensionsInput!): UpdateExtensionsPayload! + clearCachedImages(input: ClearCachedImagesInput!): ClearCachedImagesPayload! + resetWebUIUpdateStatus: WebUIUpdateStatus! + updateWebUI(input: WebUIUpdateInput!): WebUIUpdatePayload! + deleteMangaMeta(input: DeleteMangaMetaInput!): DeleteMangaMetaPayload! + fetchManga(input: FetchMangaInput!): FetchMangaPayload! + setMangaMeta(input: SetMangaMetaInput!): SetMangaMetaPayload! + updateManga(input: UpdateMangaInput!): UpdateMangaPayload! + updateMangas(input: UpdateMangasInput!): UpdateMangasPayload! + deleteGlobalMeta(input: DeleteGlobalMetaInput!): DeleteGlobalMetaPayload! + setGlobalMeta(input: SetGlobalMetaInput!): SetGlobalMetaPayload! + resetSettings(input: ResetSettingsInput!): ResetSettingsPayload! + setSettings(input: SetSettingsInput!): SetSettingsPayload! + deleteSourceMeta(input: DeleteSourceMetaInput!): DeleteSourceMetaPayload! + fetchSourceManga(input: FetchSourceMangaInput!): FetchSourceMangaPayload! + setSourceMeta(input: SetSourceMetaInput!): SetSourceMetaPayload! + updateSourcePreference(input: UpdateSourcePreferenceInput!): UpdateSourcePreferencePayload! + bindTrack(input: BindTrackInput!): BindTrackPayload! + loginTrackerCredentials(input: LoginTrackerCredentialsInput!): LoginTrackerCredentialsPayload! + loginTrackerOAuth(input: LoginTrackerOAuthInput!): LoginTrackerOAuthPayload! + logoutTracker(input: LogoutTrackerInput!): LogoutTrackerPayload! + updateTrack(input: UpdateTrackInput!): UpdateTrackPayload! + updateCategoryManga(input: UpdateCategoryMangaInput!): UpdateCategoryMangaPayload! + updateLibraryManga(input: UpdateLibraryMangaInput!): UpdateLibraryMangaPayload! + updateStop(input: UpdateStopInput!): UpdateStopPayload! +} + +union Node = CategoryMetaType | CategoryType | ChapterMetaType | ChapterType | DownloadType | ExtensionType | GlobalMetaType | MangaMetaType | MangaType | PartialSettingsType | SettingsType | SourceMetaType | SourceType | TrackRecordType | TrackerType + +interface NodeList { + """ + A list of edges which contains the [T] and cursor to aid in pagination. + """ + edges: [Edge!]! + + """A list of [T] objects.""" + nodes: [Node!]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of all nodes you could get from the connection.""" + totalCount: Int! +} + +type PageInfo { + """When paginating forwards, the cursor to continue.""" + endCursor: Cursor + + """When paginating forwards, are there more items?""" + hasNextPage: Boolean! + + """When paginating backwards, are there more items?""" + hasPreviousPage: Boolean! + + """When paginating backwards, the cursor to continue.""" + startCursor: Cursor +} + +type PartialSettingsType implements Settings { + autoDownloadAheadLimit: Int @deprecated(reason: "Replaced with autoDownloadNewChaptersLimit, replace with autoDownloadNewChaptersLimit") + autoDownloadNewChapters: Boolean + autoDownloadNewChaptersLimit: Int + backupInterval: Int + backupPath: String + backupTTL: Int + backupTime: String + basicAuthEnabled: Boolean + basicAuthPassword: String + basicAuthUsername: String + debugLogsEnabled: Boolean + downloadAsCbz: Boolean + downloadsPath: String + electronPath: String + excludeCompleted: Boolean + excludeEntryWithUnreadChapters: Boolean + excludeNotStarted: Boolean + excludeUnreadChapters: Boolean + extensionRepos: [String!] + flareSolverrEnabled: Boolean + flareSolverrSessionName: String + flareSolverrSessionTtl: Int + flareSolverrTimeout: Int + flareSolverrUrl: String + globalUpdateInterval: Float + gqlDebugLogsEnabled: Boolean + initialOpenInBrowserEnabled: Boolean + ip: String + localSourcePath: String + maxSourcesInParallel: Int + port: Int + socksProxyEnabled: Boolean + socksProxyHost: String + socksProxyPassword: String + socksProxyPort: String + socksProxyUsername: String + socksProxyVersion: Int + systemTrayEnabled: Boolean + updateMangas: Boolean + webUIChannel: WebUIChannel + webUIFlavor: WebUIFlavor + webUIInterface: WebUIInterface + webUIUpdateCheckInterval: Float +} + +input PartialSettingsTypeInput { + autoDownloadNewChapters: Boolean + autoDownloadNewChaptersLimit: Int + backupInterval: Int + backupPath: String + backupTTL: Int + backupTime: String + basicAuthEnabled: Boolean + basicAuthPassword: String + basicAuthUsername: String + debugLogsEnabled: Boolean + downloadAsCbz: Boolean + downloadsPath: String + electronPath: String + excludeCompleted: Boolean + excludeEntryWithUnreadChapters: Boolean + excludeNotStarted: Boolean + excludeUnreadChapters: Boolean + extensionRepos: [String!] + flareSolverrEnabled: Boolean + flareSolverrSessionName: String + flareSolverrSessionTtl: Int + flareSolverrTimeout: Int + flareSolverrUrl: String + globalUpdateInterval: Float + gqlDebugLogsEnabled: Boolean + initialOpenInBrowserEnabled: Boolean + ip: String + localSourcePath: String + maxSourcesInParallel: Int + port: Int + socksProxyEnabled: Boolean + socksProxyHost: String + socksProxyPassword: String + socksProxyPort: String + socksProxyUsername: String + socksProxyVersion: Int + systemTrayEnabled: Boolean + updateMangas: Boolean + webUIChannel: WebUIChannel + webUIFlavor: WebUIFlavor + webUIInterface: WebUIInterface + webUIUpdateCheckInterval: Float +} + +union Preference = CheckBoxPreference | EditTextPreference | ListPreference | MultiSelectListPreference | SwitchPreference + +type Query { + restoreStatus(id: String!): BackupRestoreStatus + validateBackup(input: ValidateBackupInput!): ValidateBackupResult! + categories(condition: CategoryConditionInput, filter: CategoryFilterInput, orderBy: CategoryOrderBy, orderByType: SortOrder, before: Cursor, after: Cursor, first: Int, last: Int, offset: Int): CategoryNodeList! + category(id: Int!): CategoryType! + chapter(id: Int!): ChapterType! + chapters(condition: ChapterConditionInput, filter: ChapterFilterInput, orderBy: ChapterOrderBy, orderByType: SortOrder, before: Cursor, after: Cursor, first: Int, last: Int, offset: Int): ChapterNodeList! + downloadStatus: DownloadStatus! + extension(pkgName: String!): ExtensionType! + extensions(condition: ExtensionConditionInput, filter: ExtensionFilterInput, orderBy: ExtensionOrderBy, orderByType: SortOrder, before: Cursor, after: Cursor, first: Int, last: Int, offset: Int): ExtensionNodeList! + aboutServer: AboutServerPayload! + aboutWebUI: AboutWebUI! + checkForServerUpdates: [CheckForServerUpdatesPayload!]! + checkForWebUIUpdate: WebUIUpdateCheck! + getWebUIUpdateStatus: WebUIUpdateStatus! + manga(id: Int!): MangaType! + mangas(condition: MangaConditionInput, filter: MangaFilterInput, orderBy: MangaOrderBy, orderByType: SortOrder, before: Cursor, after: Cursor, first: Int, last: Int, offset: Int): MangaNodeList! + meta(key: String!): GlobalMetaType! + metas(condition: MetaConditionInput, filter: MetaFilterInput, orderBy: MetaOrderBy, orderByType: SortOrder, before: Cursor, after: Cursor, first: Int, last: Int, offset: Int): GlobalMetaNodeList! + settings: SettingsType! + source(id: LongString!): SourceType! + sources(condition: SourceConditionInput, filter: SourceFilterInput, orderBy: SourceOrderBy, orderByType: SortOrder, before: Cursor, after: Cursor, first: Int, last: Int, offset: Int): SourceNodeList! + searchTracker(input: SearchTrackerInput!): SearchTrackerPayload! + trackRecord(id: Int!): TrackRecordType! + trackRecords(condition: TrackRecordConditionInput, filter: TrackRecordFilterInput, orderBy: TrackRecordOrderBy, orderByType: SortOrder, before: Cursor, after: Cursor, first: Int, last: Int, offset: Int): TrackRecordNodeList! + tracker(id: Int!): TrackerType! + trackers(condition: TrackerConditionInput, orderBy: TrackerOrderBy, orderByType: SortOrder, before: Cursor, after: Cursor, first: Int, last: Int, offset: Int): TrackerNodeList! + lastUpdateTimestamp: LastUpdateTimestampPayload! + updateStatus: UpdateStatus! +} + +input ReorderChapterDownloadInput { + chapterId: Int! + clientMutationId: String + to: Int! +} + +type ReorderChapterDownloadPayload { + clientMutationId: String + downloadStatus: DownloadStatus! +} + +input ResetSettingsInput { + clientMutationId: String +} + +type ResetSettingsPayload { + clientMutationId: String + settings: SettingsType! +} + +input RestoreBackupInput { + backup: Upload! + clientMutationId: String +} + +type RestoreBackupPayload { + clientMutationId: String + id: String! + status: BackupRestoreStatus +} + +input SearchTrackerInput { + query: String! + trackerId: Int! +} + +type SearchTrackerPayload { + trackSearches: [TrackSearchType!]! +} + +type SelectFilter { + default: Int! + name: String! + values: [String!]! +} + +type SeparatorFilter { + name: String! +} + +input SetCategoryMetaInput { + clientMutationId: String + meta: CategoryMetaTypeInput! +} + +type SetCategoryMetaPayload { + clientMutationId: String + meta: CategoryMetaType! +} + +input SetChapterMetaInput { + clientMutationId: String + meta: ChapterMetaTypeInput! +} + +type SetChapterMetaPayload { + clientMutationId: String + meta: ChapterMetaType! +} + +input SetGlobalMetaInput { + clientMutationId: String + meta: GlobalMetaTypeInput! +} + +type SetGlobalMetaPayload { + clientMutationId: String + meta: GlobalMetaType! +} + +input SetMangaMetaInput { + clientMutationId: String + meta: MangaMetaTypeInput! +} + +type SetMangaMetaPayload { + clientMutationId: String + meta: MangaMetaType! +} + +input SetSettingsInput { + clientMutationId: String + settings: PartialSettingsTypeInput! +} + +type SetSettingsPayload { + clientMutationId: String + settings: SettingsType! +} + +input SetSourceMetaInput { + clientMutationId: String + meta: SourceMetaTypeInput! +} + +type SetSourceMetaPayload { + clientMutationId: String + meta: SourceMetaType! +} + +interface Settings { + autoDownloadAheadLimit: Int @deprecated(reason: "Replaced with autoDownloadNewChaptersLimit, replace with autoDownloadNewChaptersLimit") + autoDownloadNewChapters: Boolean + autoDownloadNewChaptersLimit: Int + backupInterval: Int + backupPath: String + backupTTL: Int + backupTime: String + basicAuthEnabled: Boolean + basicAuthPassword: String + basicAuthUsername: String + debugLogsEnabled: Boolean + downloadAsCbz: Boolean + downloadsPath: String + electronPath: String + excludeCompleted: Boolean + excludeEntryWithUnreadChapters: Boolean + excludeNotStarted: Boolean + excludeUnreadChapters: Boolean + extensionRepos: [String!] + flareSolverrEnabled: Boolean + flareSolverrSessionName: String + flareSolverrSessionTtl: Int + flareSolverrTimeout: Int + flareSolverrUrl: String + globalUpdateInterval: Float + gqlDebugLogsEnabled: Boolean + initialOpenInBrowserEnabled: Boolean + ip: String + localSourcePath: String + maxSourcesInParallel: Int + port: Int + socksProxyEnabled: Boolean + socksProxyHost: String + socksProxyPassword: String + socksProxyPort: String + socksProxyUsername: String + socksProxyVersion: Int + systemTrayEnabled: Boolean + updateMangas: Boolean + webUIChannel: WebUIChannel + webUIFlavor: WebUIFlavor + webUIInterface: WebUIInterface + webUIUpdateCheckInterval: Float +} + +type SettingsType implements Settings { + autoDownloadAheadLimit: Int! @deprecated(reason: "Replaced with autoDownloadNewChaptersLimit, replace with autoDownloadNewChaptersLimit") + autoDownloadNewChapters: Boolean! + autoDownloadNewChaptersLimit: Int! + backupInterval: Int! + backupPath: String! + backupTTL: Int! + backupTime: String! + basicAuthEnabled: Boolean! + basicAuthPassword: String! + basicAuthUsername: String! + debugLogsEnabled: Boolean! + downloadAsCbz: Boolean! + downloadsPath: String! + electronPath: String! + excludeCompleted: Boolean! + excludeEntryWithUnreadChapters: Boolean! + excludeNotStarted: Boolean! + excludeUnreadChapters: Boolean! + extensionRepos: [String!]! + flareSolverrEnabled: Boolean! + flareSolverrSessionName: String! + flareSolverrSessionTtl: Int! + flareSolverrTimeout: Int! + flareSolverrUrl: String! + globalUpdateInterval: Float! + gqlDebugLogsEnabled: Boolean! + initialOpenInBrowserEnabled: Boolean! + ip: String! + localSourcePath: String! + maxSourcesInParallel: Int! + port: Int! + socksProxyEnabled: Boolean! + socksProxyHost: String! + socksProxyPassword: String! + socksProxyPort: String! + socksProxyUsername: String! + socksProxyVersion: Int! + systemTrayEnabled: Boolean! + updateMangas: Boolean! + webUIChannel: WebUIChannel! + webUIFlavor: WebUIFlavor! + webUIInterface: WebUIInterface! + webUIUpdateCheckInterval: Float! +} + +type SortFilter { + default: SortSelection + name: String! + values: [String!]! +} + +enum SortOrder { + ASC + DESC + ASC_NULLS_FIRST + DESC_NULLS_FIRST + ASC_NULLS_LAST + DESC_NULLS_LAST +} + +type SortSelection { + ascending: Boolean! + index: Int! +} + +input SortSelectionInput { + ascending: Boolean! + index: Int! +} + +input SourceConditionInput { + id: LongString + isNsfw: Boolean + lang: String + name: String +} + +type SourceEdge implements Edge { + cursor: Cursor! + node: SourceType! +} + +input SourceFilterInput { + and: [SourceFilterInput!] + id: LongFilterInput + isNsfw: BooleanFilterInput + lang: StringFilterInput + name: StringFilterInput + not: SourceFilterInput + or: [SourceFilterInput!] +} + +type SourceMetaType implements MetaType { + key: String! + sourceId: LongString! + value: String! + source: SourceType! +} + +input SourceMetaTypeInput { + key: String! + sourceId: LongString! + value: String! +} + +type SourceNodeList implements NodeList { + edges: [SourceEdge!]! + nodes: [SourceType!]! + pageInfo: PageInfo! + totalCount: Int! +} + +enum SourceOrderBy { + ID + NAME + LANG +} + +input SourcePreferenceChangeInput { + checkBoxState: Boolean + editTextState: String + listState: String + multiSelectState: [String!] + position: Int! + switchState: Boolean +} + +type SourceType { + displayName: String! + iconUrl: String! + id: LongString! + isConfigurable: Boolean! + isNsfw: Boolean! + lang: String! + name: String! + supportsLatest: Boolean! + extension: ExtensionType! + filters: [Filter!]! + manga: MangaNodeList! + meta: [SourceMetaType!]! + preferences: [Preference!]! +} + +input StartDownloaderInput { + clientMutationId: String +} + +type StartDownloaderPayload { + clientMutationId: String + downloadStatus: DownloadStatus! +} + +input StopDownloaderInput { + clientMutationId: String +} + +type StopDownloaderPayload { + clientMutationId: String + downloadStatus: DownloadStatus! +} + +input StringFilterInput { + distinctFrom: String + distinctFromInsensitive: String + endsWith: String + endsWithInsensitive: String + equalTo: String + greaterThan: String + greaterThanInsensitive: String + greaterThanOrEqualTo: String + greaterThanOrEqualToInsensitive: String + in: [String!] + inInsensitive: [String!] + includes: String + includesInsensitive: String + isNull: Boolean + lessThan: String + lessThanInsensitive: String + lessThanOrEqualTo: String + lessThanOrEqualToInsensitive: String + like: String + likeInsensitive: String + notDistinctFrom: String + notDistinctFromInsensitive: String + notEndsWith: String + notEndsWithInsensitive: String + notEqualTo: String + notIn: [String!] + notInInsensitive: [String!] + notIncludes: String + notIncludesInsensitive: String + notLike: String + notLikeInsensitive: String + notStartsWith: String + notStartsWithInsensitive: String + startsWith: String + startsWithInsensitive: String +} + +type Subscription { + downloadChanged: DownloadStatus! + webUIUpdateStatusChange: WebUIUpdateStatus! + updateStatusChanged: UpdateStatus! +} + +type SwitchPreference { + currentValue: Boolean + default: Boolean! + key: String! + summary: String + title: String! + visible: Boolean! +} + +type TextFilter { + default: String! + name: String! +} + +input TrackerConditionInput { + icon: String + id: Int + isLoggedIn: Boolean + name: String +} + +type TrackerEdge implements Edge { + cursor: Cursor! + node: TrackerType! +} + +type TrackerNodeList implements NodeList { + edges: [TrackerEdge!]! + nodes: [TrackerType!]! + pageInfo: PageInfo! + totalCount: Int! +} + +enum TrackerOrderBy { + ID + NAME + IS_LOGGED_IN +} + +type TrackerType { + authUrl: String + icon: String! + id: Int! + isLoggedIn: Boolean! + name: String! + isTokenExpired: Boolean! + scores: [String!]! + statuses: [TrackStatusType!]! + trackRecords: TrackRecordNodeList! +} + +input TrackRecordConditionInput { + finishDate: LongString + id: Int + lastChapterRead: Float + libraryId: LongString + mangaId: Int + remoteId: LongString + remoteUrl: String + score: Float + startDate: LongString + status: Int + title: String + totalChapters: Int + trackerId: Int +} + +type TrackRecordEdge implements Edge { + cursor: Cursor! + node: TrackRecordType! +} + +input TrackRecordFilterInput { + and: [TrackRecordFilterInput!] + finishDate: LongFilterInput + id: IntFilterInput + lastChapterRead: DoubleFilterInput + libraryId: LongFilterInput + mangaId: IntFilterInput + not: TrackRecordFilterInput + or: [TrackRecordFilterInput!] + remoteId: LongFilterInput + remoteUrl: StringFilterInput + score: DoubleFilterInput + startDate: LongFilterInput + status: IntFilterInput + title: StringFilterInput + totalChapters: IntFilterInput + trackerId: IntFilterInput +} + +type TrackRecordNodeList implements NodeList { + edges: [TrackRecordEdge!]! + nodes: [TrackRecordType!]! + pageInfo: PageInfo! + totalCount: Int! +} + +enum TrackRecordOrderBy { + ID + MANGA_ID + TRACKER_ID + REMOTE_ID + TITLE + LAST_CHAPTER_READ + TOTAL_CHAPTERS + SCORE + START_DATE + FINISH_DATE +} + +type TrackRecordType { + finishDate: LongString! + id: Int! + lastChapterRead: Float! + libraryId: LongString + mangaId: Int! + remoteId: LongString! + remoteUrl: String! + score: Float! + startDate: LongString! + status: Int! + title: String! + totalChapters: Int! + trackerId: Int! + displayScore: String! + manga: MangaType! + tracker: TrackerType! +} + +type TrackSearchType { + coverUrl: String! + id: Int! + publishingStatus: String! + publishingType: String! + remoteId: LongString! + startDate: String! + summary: String! + title: String! + totalChapters: Int! + trackerId: Int! + trackingUrl: String! + tracker: TrackerType! +} + +type TrackStatusType { + name: String! + value: Int! +} + +enum TriState { + IGNORE + INCLUDE + EXCLUDE +} + +type TriStateFilter { + default: TriState! + name: String! +} + +input UpdateCategoriesInput { + clientMutationId: String + ids: [Int!]! + patch: UpdateCategoryPatchInput! +} + +type UpdateCategoriesPayload { + categories: [CategoryType!]! + clientMutationId: String +} + +input UpdateCategoryInput { + clientMutationId: String + id: Int! + patch: UpdateCategoryPatchInput! +} + +input UpdateCategoryMangaInput { + categories: [Int!]! + clientMutationId: String +} + +type UpdateCategoryMangaPayload { + clientMutationId: String + updateStatus: UpdateStatus! +} + +input UpdateCategoryOrderInput { + clientMutationId: String + id: Int! + position: Int! +} + +type UpdateCategoryOrderPayload { + categories: [CategoryType!]! + clientMutationId: String +} + +input UpdateCategoryPatchInput { + default: Boolean + includeInDownload: IncludeOrExclude + includeInUpdate: IncludeOrExclude + name: String +} + +type UpdateCategoryPayload { + category: CategoryType! + clientMutationId: String +} + +input UpdateChapterInput { + clientMutationId: String + id: Int! + patch: UpdateChapterPatchInput! +} + +input UpdateChapterPatchInput { + isBookmarked: Boolean + isRead: Boolean + lastPageRead: Int +} + +type UpdateChapterPayload { + chapter: ChapterType! + clientMutationId: String +} + +input UpdateChaptersInput { + clientMutationId: String + ids: [Int!]! + patch: UpdateChapterPatchInput! +} + +type UpdateChaptersPayload { + chapters: [ChapterType!]! + clientMutationId: String +} + +input UpdateExtensionInput { + clientMutationId: String + id: String! + patch: UpdateExtensionPatchInput! +} + +input UpdateExtensionPatchInput { + install: Boolean + uninstall: Boolean + update: Boolean +} + +type UpdateExtensionPayload { + clientMutationId: String + extension: ExtensionType +} + +input UpdateExtensionsInput { + clientMutationId: String + ids: [String!]! + patch: UpdateExtensionPatchInput! +} + +type UpdateExtensionsPayload { + clientMutationId: String + extensions: [ExtensionType!]! +} + +input UpdateLibraryMangaInput { + clientMutationId: String +} + +type UpdateLibraryMangaPayload { + clientMutationId: String + updateStatus: UpdateStatus! +} + +input UpdateMangaCategoriesInput { + clientMutationId: String + id: Int! + patch: UpdateMangaCategoriesPatchInput! +} + +input UpdateMangaCategoriesPatchInput { + addToCategories: [Int!] + clearCategories: Boolean + removeFromCategories: [Int!] +} + +type UpdateMangaCategoriesPayload { + clientMutationId: String + manga: MangaType! +} + +input UpdateMangaInput { + clientMutationId: String + id: Int! + patch: UpdateMangaPatchInput! +} + +input UpdateMangaPatchInput { + inLibrary: Boolean +} + +type UpdateMangaPayload { + clientMutationId: String + manga: MangaType! +} + +input UpdateMangasCategoriesInput { + clientMutationId: String + ids: [Int!]! + patch: UpdateMangaCategoriesPatchInput! +} + +type UpdateMangasCategoriesPayload { + clientMutationId: String + mangas: [MangaType!]! +} + +input UpdateMangasInput { + clientMutationId: String + ids: [Int!]! + patch: UpdateMangaPatchInput! +} + +type UpdateMangasPayload { + clientMutationId: String + mangas: [MangaType!]! +} + +input UpdateSourcePreferenceInput { + change: SourcePreferenceChangeInput! + clientMutationId: String + source: LongString! +} + +type UpdateSourcePreferencePayload { + clientMutationId: String + preferences: [Preference!]! + source: SourceType! +} + +enum UpdateState { + IDLE + DOWNLOADING + FINISHED + ERROR +} + +type UpdateStatus { + completeJobs: UpdateStatusType! + failedJobs: UpdateStatusType! + isRunning: Boolean! + pendingJobs: UpdateStatusType! + runningJobs: UpdateStatusType! + skippedCategories: UpdateStatusCategoryType! + skippedJobs: UpdateStatusType! + updatingCategories: UpdateStatusCategoryType! +} + +type UpdateStatusCategoryType { + categories: CategoryNodeList! +} + +type UpdateStatusType { + mangas: MangaNodeList! +} + +input UpdateStopInput { + clientMutationId: String +} + +type UpdateStopPayload { + clientMutationId: String +} + +enum UpdateStrategy { + ALWAYS_UPDATE + ONLY_FETCH_ONCE +} + +input UpdateTrackInput { + clientMutationId: String + finishDate: LongString + lastChapterRead: Float + recordId: Int! + scoreString: String + startDate: LongString + status: Int + unbind: Boolean +} + +type UpdateTrackPayload { + clientMutationId: String + trackRecord: TrackRecordType +} + +"""A file part in a multipart request""" +scalar Upload + +input ValidateBackupInput { + backup: Upload! +} + +type ValidateBackupResult { + missingSources: [ValidateBackupSource!]! +} + +type ValidateBackupSource { + id: LongString! + name: String! +} + +enum WebUIChannel { + BUNDLED + STABLE + PREVIEW +} + +enum WebUIFlavor { + WEBUI + VUI + CUSTOM +} + +enum WebUIInterface { + BROWSER + ELECTRON +} + +type WebUIUpdateCheck { + channel: String! + tag: String! + updateAvailable: Boolean! +} + +type WebUIUpdateInfo { + channel: String! + tag: String! +} + +input WebUIUpdateInput { + clientMutationId: String +} + +type WebUIUpdatePayload { + clientMutationId: String + updateStatus: WebUIUpdateStatus! +} + +type WebUIUpdateStatus { + info: WebUIUpdateInfo! + progress: Int! + state: UpdateState! +} + diff --git a/lib/src/l10n/app_en.arb b/lib/src/l10n/app_en.arb index 681db081..867bafda 100644 --- a/lib/src/l10n/app_en.arb +++ b/lib/src/l10n/app_en.arb @@ -33,9 +33,30 @@ "@authTypeNone": { "description": "Radio button text for no Authentication" }, + "@automaticBackup": { + "description": "Settings group title for automatic backup settings" + }, "@backup": { "description": "Screen title and Button text of Backup & Restore screen" }, + "@backupAndRestore": { + "description": "Title for Backup and Restore section in settings" + }, + "@backupCleanup": { + "description": "Title for file backup cleanup edit tile" + }, + "@backupInterval": { + "description": "Title for file backup interval edit tile" + }, + "@backupLocation": { + "description": "Title for backup file storage location edit tile" + }, + "@backupLocationDescription": { + "description": "description for editing backup location" + }, + "@backupTime": { + "description": "Title for file backup time edit tile" + }, "@badges": { "description": "Checkbox Group title to enable Badges on manga Cover in Library Screen" }, @@ -171,6 +192,12 @@ "@emptyCategory": { "description": "Description to show that category list is empty in Edit Category screen" }, + "@errorBackupCreate": { + "description": "Error Text to show that backup creating failed" + }, + "@errorBackupRestore": { + "description": "toast to show that backup restoration failed" + }, "@errorExtension": { "description": "Error Description to show when user selected unknown extension from list" }, @@ -237,6 +264,12 @@ "@inLibrary": { "description": "Button and Chip text to show that the manga is in Library" }, + "@includeCategories": { + "description": "Check box text to include categories during create backup" + }, + "@includeChapters": { + "description": "Check box text to include chapters during create backup" + }, "@install": { "description": "Button text to install the extension" }, @@ -315,6 +348,9 @@ "@moveToTop": { "description": "Button text to move download/category to the top of list" }, + "@nDays": { + "description": "to show Number of days with plural" + }, "@nameCountDisplay": { "description": "Text pattern to display an name and count in a string", "placeholders": { @@ -397,6 +433,9 @@ "@obsolete": { "description": "Text to show that the extension has become Obsolete" }, + "@or": { + "description": "text literal for word or" + }, "@page": { "description": "Text to show the last read Page number of the chapter in Manga details screen", "placeholders": { @@ -544,6 +583,9 @@ "@reset": { "description": "Button text of reset button in source filters" }, + "@restore": { + "description": "Button Text to create backup" + }, "@restoreBackupDescription": { "description": "Button text description to create backup" }, @@ -676,6 +718,9 @@ "@userName": { "description": "Title text for User Name field" }, + "@validating": { + "description": "toast to show backup validation is in progress" + }, "@versionAvailable": { "description": "Text to show that there is an update to App/Server", "placeholders": { @@ -712,7 +757,15 @@ "authType": "Authentication Type", "authTypeBasic": "Basic Auth", "authTypeNone": "None", + "automaticBackup": "Automatic Backup", "backup": "Backup & Restore", + "backupAndRestore": "Backup and Restore", + "backupCleanup": "Backup Cleanup", + "backupCleanupDescription": "{count, select, 0{Never} 01{Delete Backups that are older 1 day} other{Delete Backups that are older {count} days}}", + "backupInterval": "Backup Interval", + "backupLocation": "Backup Location", + "backupLocationDescription": "The path to the directory on the server where automated backups should get saved in", + "backupTime": "Backup Time", "badges": "Badges", "bookmarked": "Bookmarked", "browse": "Browse", @@ -754,6 +807,8 @@ "edit": "Edit", "editCategory": "Edit Category", "emptyCategory": "Category name can't be Empty", + "errorBackupCreate": "Failed to create Backup", + "errorBackupRestore": "Failed to restore backup!", "errorExtension": "Can't find the selected extension", "errorFilePick": "File not selected!", "errorFilePickUnknownExtension": "Please select a file with {extensionName} extension", @@ -774,6 +829,8 @@ "globalUpdate": "Global Update", "help": "Help", "inLibrary": "In library", + "includeCategories": "Categories", + "includeChapters": "Chapters", "install": "Install", "installing": "Installing", "installingExtension": "Installing Extension", @@ -800,6 +857,7 @@ "more": "More", "moveToBottom": "Move to Bottom", "moveToTop": "Move to top", + "nDays": "{count, select, 01{01 Day} other{{count} Days}}", "nameCountDisplay": "{name}: {count}", "newUpdateAvailable": "New update available", "nextChapter": "Next: {chapterTitle}", @@ -820,6 +878,7 @@ "nsfwInfo": "This does not prevent unofficial or potentially incorrectly flagged extensions from surfacing NSFW(18+) content within app", "numSelected": "{num} Selected", "obsolete": "Obsolete", + "or": "or", "page": "Page: {number}", "password": "Password", "pause": "Pause", @@ -868,6 +927,7 @@ "remove": "Remove", "removeFromLibrary": "Remove from Library?", "reset": "Reset", + "restore": "Restore", "restoreBackupDescription": "Restore Tachidesk from backup", "restoreBackupTitle": "Restore Backup", "restored": "Backup restored!", @@ -912,6 +972,7 @@ "updatesSummary": "Updates Summary", "updating": "Updating", "userName": "User Name", + "validating": "Validating", "versionAvailable": "Version {version} available for {app}!!", "webUI": "Open in WEB", "webView": "Web View", diff --git a/lib/src/sorayomi.dart b/lib/src/sorayomi.dart index d9b4827a..eddb6e70 100644 --- a/lib/src/sorayomi.dart +++ b/lib/src/sorayomi.dart @@ -29,7 +29,7 @@ class Sorayomi extends ConsumerWidget { final isTrueBlack = ref.watch(isTrueBlackProvider); return MaterialApp.router( builder: FToastBuilder(), - onGenerateTitle: (context) => context.l10n!.appTitle, + onGenerateTitle: (context) => context.l10n.appTitle, debugShowCheckedModeBanner: false, theme: FlexThemeData.light( scheme: appScheme, diff --git a/lib/src/utils/extensions/custom_extensions.dart b/lib/src/utils/extensions/custom_extensions.dart index 5cb7a22a..f378e104 100644 --- a/lib/src/utils/extensions/custom_extensions.dart +++ b/lib/src/utils/extensions/custom_extensions.dart @@ -6,9 +6,13 @@ import 'dart:math'; +import 'package:ferry/ferry.dart'; import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; import 'package:go_router/go_router.dart'; +// we use the gql_exec from ferry itself to avoid version incompatibility +// ignore: depend_on_referenced_packages +import 'package:gql_exec/gql_exec.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:intl/intl.dart'; @@ -22,6 +26,7 @@ part 'custom_extensions/bool_extensions.dart'; part 'custom_extensions/context_extensions.dart'; part 'custom_extensions/date_time_extensions.dart'; part 'custom_extensions/double_extensions.dart'; +part 'custom_extensions/ferry_extensions.dart'; part 'custom_extensions/int_extensions.dart'; part 'custom_extensions/iterable_extensions.dart'; part 'custom_extensions/map_extensions.dart'; diff --git a/lib/src/utils/extensions/custom_extensions/async_value_extensions.dart b/lib/src/utils/extensions/custom_extensions/async_value_extensions.dart index 83b34fae..e6964038 100644 --- a/lib/src/utils/extensions/custom_extensions/async_value_extensions.dart +++ b/lib/src/utils/extensions/custom_extensions/async_value_extensions.dart @@ -45,21 +45,21 @@ extension AsyncValueExtensions on AsyncValue { return when( data: data, skipError: true, - error: (error, trace) => AppUtils.wrapIf( + error: (error, trace) => AppUtils.wrapOn( wrapper, Emoticons( text: showGenericError - ? context.l10n!.errorSomethingWentWrong + ? context.l10n.errorSomethingWentWrong : error.toString(), button: refresh != null ? TextButton( onPressed: refresh, - child: Text(context.l10n!.refresh), + child: Text(context.l10n.refresh), ) : null, )), loading: () => - AppUtils.wrapIf(wrapper, const CenterSorayomiShimmerIndicator()), + AppUtils.wrapOn(wrapper, const CenterSorayomiShimmerIndicator()), ); } diff --git a/lib/src/utils/extensions/custom_extensions/context_extensions.dart b/lib/src/utils/extensions/custom_extensions/context_extensions.dart index f252089b..81bcdccb 100644 --- a/lib/src/utils/extensions/custom_extensions/context_extensions.dart +++ b/lib/src/utils/extensions/custom_extensions/context_extensions.dart @@ -190,7 +190,9 @@ extension ContextExtensions on BuildContext { /// True if the width is greater than 1200p bool get isDesktop => isDesktopOrWider; - AppLocalizations? get l10n => AppLocalizations.of(this); + AppLocalizations get l10n => AppLocalizations.of(this)!; + + navPop([T? result]) => Navigator.pop(this, result); Locale get currentLocale => Localizations.localeOf(this); @@ -227,4 +229,34 @@ extension ContextExtensions on BuildContext { ].whereType(); return strictValues.firstOrNull ?? looseValues.first; } + + Future pushBottomSheet(Widget sheet) async { + return showModalBottomSheet( + context: this, + useSafeArea: true, + isScrollControlled: true, + enableDrag: false, + isDismissible: false, + shape: const RoundedRectangleBorder( + borderRadius: BorderRadius.vertical(top: Radius.circular(16)), + ), + builder: (context) => Padding( + padding: + EdgeInsets.only(bottom: MediaQuery.of(context).viewInsets.bottom), + child: sheet, + ), + ); + } + + Future showFullScreenDialog(Widget dialog) async { + return showDialog( + context: this, + useSafeArea: true, + useRootNavigator: false, + barrierDismissible: true, + builder: (context) => Dialog.fullscreen( + child: dialog, + ), + ); + } } diff --git a/lib/src/utils/extensions/custom_extensions/date_time_extensions.dart b/lib/src/utils/extensions/custom_extensions/date_time_extensions.dart index 30b50692..e80e2261 100644 --- a/lib/src/utils/extensions/custom_extensions/date_time_extensions.dart +++ b/lib/src/utils/extensions/custom_extensions/date_time_extensions.dart @@ -104,11 +104,11 @@ extension DateTimeExtensions on DateTime { Duration diff = DateTime.now().difference(this); if (diff.inDays < 1) { - return context.l10n!.today; + return context.l10n.today; } else if (diff.inDays < 2) { - return context.l10n!.yesterday; + return context.l10n.yesterday; } else if (diff.inDays < 10) { - return context.l10n!.daysAgo(diff.inDays); + return context.l10n.daysAgo(diff.inDays); } else { return DateFormat.yMMMd(context.currentLocale.toLanguageTag()) .format(this); diff --git a/lib/src/utils/extensions/custom_extensions/ferry_extensions.dart b/lib/src/utils/extensions/custom_extensions/ferry_extensions.dart new file mode 100644 index 00000000..a497e604 --- /dev/null +++ b/lib/src/utils/extensions/custom_extensions/ferry_extensions.dart @@ -0,0 +1,29 @@ +part of '../custom_extensions.dart'; + +extension FerryExtensions on Client { + Stream fetch( + OperationRequest request, [ + T? Function(TData)? converter, + forward, + ]) => + this.request(request, forward).map((event) { + TData? data = event.data; + if (event.hasErrors) { + if (event.linkException != null) { + throw event.linkException!; + } else { + throw GraphQlException(event.graphqlErrors!); + } + } + return data != null ? converter?.call(data) : null; + }); +} + +class GraphQlException implements Exception { + final List errors; + + GraphQlException(this.errors); + + @override + String toString() => "GraphQlExceptions(errors: $errors)"; +} diff --git a/lib/src/utils/extensions/custom_extensions/int_extensions.dart b/lib/src/utils/extensions/custom_extensions/int_extensions.dart index 8c36defc..a64d4f67 100644 --- a/lib/src/utils/extensions/custom_extensions/int_extensions.dart +++ b/lib/src/utils/extensions/custom_extensions/int_extensions.dart @@ -19,6 +19,8 @@ extension IntExtensions on int? { bool? get toBool => (this == null || this == 0) ? null : this == 1; + int ifNull([int value = 0]) => isNull ? value : this!; + int ifNullOrZero([int value = 1]) => isNull || isZero ? value : this!; String get toDateString { if (isNull) return ""; return DateFormat.yMMMd().format( @@ -26,7 +28,7 @@ extension IntExtensions on int? { ); } - String? padLeft([int width = 2, String padding = '0']) { + String? padLeft({int width = 2, String padding = '0'}) { if (isNull) return null; return toString().padLeft(width, padding); } @@ -52,4 +54,30 @@ extension IntExtensions on int? { return DateTime.fromMillisecondsSinceEpoch(this! * 1000) .isSameDay(DateTime.fromMillisecondsSinceEpoch(anotherDate! * 1000)); } + + String? compact({ + int width = 2, + String padding = '0', + bool addPrefixAndSuffix = false, + String prefix = " (", + String suffix = ")", + bool returnNullOnZero = false, + int shortenAfter = 1000, + }) { + String? result; + if (this == null) { + result = null; + } else if (this == 0) { + result = returnNullOnZero ? null : toString(); + } else if (this! > shortenAfter) { + result = NumberFormat.compact(locale: const Locale('en', 'IN').toString()) + .format(this); + } else { + result = padLeft(width: width, padding: padding); + } + if (addPrefixAndSuffix) { + result = result?.wrap(prefix: prefix, suffix: suffix); + } + return result; + } } diff --git a/lib/src/utils/extensions/custom_extensions/string_extensions.dart b/lib/src/utils/extensions/custom_extensions/string_extensions.dart index c68a7c40..bde395e7 100644 --- a/lib/src/utils/extensions/custom_extensions/string_extensions.dart +++ b/lib/src/utils/extensions/custom_extensions/string_extensions.dart @@ -19,6 +19,15 @@ extension StringExtensions on String? { double? get tryParseInt => isNull ? null : double.tryParse(this!); + String ifNull([String value = '']) => isNull ? value : this!; + + String ifBlank([String value = '']) => isBlank ? value : this!; + + String? wrap({String? prefix = " (", String? suffix = ")"}) { + if (isBlank) return null; + return "${prefix.ifNull()}$this${suffix.ifNull()}"; + } + bool hasMatch(String pattern) => (isNull) ? false : RegExp(pattern).hasMatch(this!); @@ -100,4 +109,13 @@ extension StringExtensions on String? { if (isBlank) return null; return this!.replaceFirst(RegExp('http', caseSensitive: false), 'ws'); } + + TimeOfDay? get toTimeOfDay { + if (isBlank) return null; + final timeList = this!.split(':').map(int.tryParse).filterOutNulls!; + if (timeList.length != 2) { + return null; + } + return TimeOfDay(hour: timeList.first!, minute: timeList.last!); + } } diff --git a/lib/src/utils/hooks/polling_hook.dart b/lib/src/utils/hooks/polling_hook.dart new file mode 100644 index 00000000..2699977f --- /dev/null +++ b/lib/src/utils/hooks/polling_hook.dart @@ -0,0 +1,35 @@ +import 'dart:async'; + +import 'package:flutter_hooks/flutter_hooks.dart'; + +T? usePolling({ + required Duration pollingInterval, + required FutureOr Function() pollFunction, + bool delayedStart = false, +}) { + final data = useState(null); + + useEffect(() { + Future poll() async { + while (true) { + if (delayedStart) { + await Future.delayed(pollingInterval); + } + final result = await pollFunction(); + data.value = result; + if (!delayedStart) { + await Future.delayed(pollingInterval); + } + } + } + + poll(); + + // Cleanup function + return () { + // No cleanup needed for this simple example + }; + }, []); + + return data.value; +} diff --git a/lib/src/utils/launch_url_in_web.dart b/lib/src/utils/launch_url_in_web.dart index 8f2858f5..fb626651 100644 --- a/lib/src/utils/launch_url_in_web.dart +++ b/lib/src/utils/launch_url_in_web.dart @@ -19,6 +19,6 @@ Future launchUrlInWeb(BuildContext context, String url, webOnlyWindowName: "_blank", )) { await Clipboard.setData(ClipboardData(text: url)); - if (context.mounted) toast?.showError(context.l10n!.errorLaunchURL(url)); + if (context.mounted) toast?.showError(context.l10n.errorLaunchURL(url)); } } diff --git a/lib/src/utils/misc/app_utils.dart b/lib/src/utils/misc/app_utils.dart index 76649063..537622c0 100644 --- a/lib/src/utils/misc/app_utils.dart +++ b/lib/src/utils/misc/app_utils.dart @@ -1,10 +1,64 @@ +import 'dart:math'; + import 'package:flutter/material.dart'; +import '../extensions/custom_extensions.dart'; + abstract class AppUtils { - static Widget wrapIf(Widget Function(Widget)? wrapper, Widget child) { + static String? getPanFromGst(String gst) { + return gst.isBlank || gst.length < 10 + ? null + : gst.substring(2, min(12, gst.length)).toUpperCase(); + } + + static Widget wrapOn(Widget Function(Widget)? wrapper, Widget child) { if (wrapper != null) { return wrapper(child); } return child; } + + static Widget wrapChildIf({ + bool? condition, + Widget Function(Widget)? wrap, + Widget Function(Widget)? elseWrap, + required Widget child, + }) { + if (wrap != null && condition.ifNull()) { + return wrap(child); + } + return elseWrap?.call(child) ?? child; + } + + static T? wrapIf({ + bool? condition, + required U? child, + T? Function(U?)? wrap, + }) { + if (wrap != null && condition.ifNull()) { + return wrap(child); + } + return null; + } + + static T? returnIf( + bool? condition, + T? value, [ + T? elseValue, + ]) { + if (condition.ifNull()) { + return value; + } + return null; + } + + static String stringCompose( + List composeList, String param) { + String resultParam = param; + final reversedList = composeList.reversed; + for (Function f in reversedList) { + resultParam = f(resultParam); + } + return resultParam; + } } diff --git a/lib/src/utils/misc/file_picker_utils.dart b/lib/src/utils/misc/file_picker_utils.dart new file mode 100644 index 00000000..818436f2 --- /dev/null +++ b/lib/src/utils/misc/file_picker_utils.dart @@ -0,0 +1,56 @@ +import 'dart:async'; + +import 'package:file_picker/file_picker.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:http/http.dart'; + +import '../extensions/custom_extensions.dart'; + +abstract class FilePickerUtils { + static Future pickFile({ + BuildContext? context, + List? extensions, + }) async { + final pickedFiles = await FilePicker.platform.pickFiles( + type: FileType.custom, + allowedExtensions: extensions, + ); + final file = pickedFiles?.files.first; + if (context != null && context.mounted) { + if (file == null || + file.name.isBlank || + (kIsWeb && (file.bytes).isBlank || + (!kIsWeb && (file.path).isBlank))) { + throw context.l10n.errorFilePick; + } + if (extensions.isNotBlank && + !extensions!.any((e) => file.name.endsWith(".$e"))) { + throw context.l10n.errorFilePickUnknownExtension( + extensions.join(" ${context.l10n.or} ")); + } + } + return file; + } + + static Future convertToMultipartFile(PlatformFile file, + [String? fileName]) async { + final String newFileName = fileName ?? file.name.split('.').first; + final String newFileNameWithExtension = file.extension.isNotBlank + ? "$newFileName.${file.extension}" + : newFileName; + if (kIsWeb) { + return MultipartFile.fromBytes( + newFileName, + file.bytes!, + filename: newFileNameWithExtension, + ); + } else { + return MultipartFile.fromPath( + newFileName, + file.path!, + filename: newFileNameWithExtension, + ); + } + } +} diff --git a/lib/src/utils/misc/toast/toast.dart b/lib/src/utils/misc/toast/toast.dart index f576a286..e6ed79f2 100644 --- a/lib/src/utils/misc/toast/toast.dart +++ b/lib/src/utils/misc/toast/toast.dart @@ -10,6 +10,7 @@ import 'package:gap/gap.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; import '../../../constants/app_sizes.dart'; +import '../../extensions/custom_extensions.dart'; part 'toast.g.dart'; @@ -20,32 +21,51 @@ class Toast { final BuildContext _context; late FToast _fToast; - void instantShow(String msg) { - close(); - show(msg); - } - - void show(String msg, {bool withMicrotask = false}) { - if (withMicrotask) { - Future.microtask(() => _fToast.showToast( - child: ToastWidget(text: msg), - gravity: ToastGravity.BOTTOM, - )); - } else { + void show( + String msg, { + bool withMicrotask = false, + bool instantShow = false, + }) { + toast() { + if (instantShow) close(); _fToast.showToast( - child: ToastWidget(text: msg), + child: ToastWidget( + text: msg, + ), gravity: ToastGravity.BOTTOM, ); } + + if (withMicrotask) { + Future.microtask(toast); + } else { + toast(); + } } - void showError(String error) => _fToast.showToast( + void showError( + String error, { + bool withMicrotask = false, + bool instantShow = false, + }) { + toast() { + if (instantShow) close(); + _fToast.showToast( child: ToastWidget( text: error, backgroundColor: Colors.red.shade400, + textColor: Colors.white, ), gravity: ToastGravity.TOP, ); + } + + if (withMicrotask) { + Future.microtask(toast); + } else { + toast(); + } + } void close() => _fToast.removeCustomToast(); } @@ -66,14 +86,15 @@ class ToastWidget extends StatelessWidget { Widget build(BuildContext context) { Widget textWidget = Text( text, - style: TextStyle(color: textColor ?? Colors.white), + style: + TextStyle(color: textColor ?? context.colorScheme.onPrimaryContainer), textAlign: TextAlign.center, ); return Container( padding: KEdgeInsets.h16v8.size, decoration: BoxDecoration( borderRadius: KBorderRadius.r16.radius, - color: backgroundColor ?? Colors.black54, + color: backgroundColor ?? context.colorScheme.primaryContainer, ), child: icon != null ? Row( diff --git a/lib/src/utils/misc/upload_serializer.dart b/lib/src/utils/misc/upload_serializer.dart new file mode 100644 index 00000000..8d4a4727 --- /dev/null +++ b/lib/src/utils/misc/upload_serializer.dart @@ -0,0 +1,30 @@ +// ignore: depend_on_referenced_packages +import 'package:built_value/serializer.dart'; +import 'package:http/http.dart' show MultipartFile; + +class UploadSerializer extends PrimitiveSerializer { + @override + MultipartFile deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) { + assert(serialized is List, + "FileSerializer expected 'Uint8List' but got ${serialized.runtimeType}"); + return MultipartFile.fromBytes("field", serialized as List); + } + + @override + Object serialize( + Serializers serializers, + MultipartFile object, { + FullType specifiedType = FullType.unspecified, + }) => + object; + + @override + Iterable get types => [MultipartFile]; + + @override + String get wireName => "Upload"; +} diff --git a/lib/src/utils/storage/dio/dio_client.dart b/lib/src/utils/storage/dio/dio_client.dart index 538d4940..99d43b09 100644 --- a/lib/src/utils/storage/dio/dio_client.dart +++ b/lib/src/utils/storage/dio/dio_client.dart @@ -7,7 +7,7 @@ import 'package:dio/dio.dart'; import 'package:flutter/foundation.dart'; -import '../dio_error_util.dart'; +import 'dio_error_util.dart'; typedef ResponseDecoderCallBack = DecoderType Function(dynamic); diff --git a/lib/src/utils/storage/dio_error_util.dart b/lib/src/utils/storage/dio/dio_error_util.dart similarity index 100% rename from lib/src/utils/storage/dio_error_util.dart rename to lib/src/utils/storage/dio/dio_error_util.dart diff --git a/lib/src/utils/storage/ferry/network_module.dart b/lib/src/utils/storage/ferry/network_module.dart new file mode 100644 index 00000000..5bf1285a --- /dev/null +++ b/lib/src/utils/storage/ferry/network_module.dart @@ -0,0 +1,56 @@ +import 'dart:convert'; + +import 'package:ferry/ferry.dart'; +import 'package:ferry_hive_store/ferry_hive_store.dart'; +import 'package:flutter/foundation.dart'; +import 'package:gql_http_link/gql_http_link.dart'; +import "package:http/http.dart" as http; +import 'package:riverpod_annotation/riverpod_annotation.dart'; + +import '../../../constants/endpoints.dart'; +import '../../../constants/enum.dart'; +import '../../extensions/custom_extensions.dart'; + +part 'network_module.g.dart'; + +// Must be top-level function +FutureOr> httpResponseDecoder( + http.Response httpResponse) async => + await compute(jsonDecode, httpResponse.body) as Map; + +class FerryNetworkModule { + Client provideFerry({ + required String baseUrl, + int? port, + bool addPort = true, + required AuthType authType, + HiveStore? hiveStore, + String? credentials, + }) { + final cache = Cache(store: hiveStore); + + final link = HttpLink( + Endpoints.baseApi( + baseUrl: baseUrl, + port: port, + addPort: addPort, + isGraphQl: true, + ), + followRedirects: true, + httpResponseDecoder: httpResponseDecoder, + defaultHeaders: { + 'Content-Type': 'application/json; charset=utf-8', + if (authType == AuthType.basic && credentials.isNotBlank) + 'Authorization': credentials!, + }, + ); + return Client(link: link, cache: cache, defaultFetchPolicies: { + OperationType.query: FetchPolicy.CacheAndNetwork, + OperationType.mutation: FetchPolicy.NoCache, + OperationType.subscription: FetchPolicy.NoCache, + }); + } +} + +@riverpod +FerryNetworkModule ferryNetworkModule(ref) => FerryNetworkModule(); diff --git a/lib/src/features/settings/data/backup/backup_repository.g.dart b/lib/src/utils/storage/ferry/network_module.g.dart similarity index 53% rename from lib/src/features/settings/data/backup/backup_repository.g.dart rename to lib/src/utils/storage/ferry/network_module.g.dart index a5372112..e0f53da5 100644 --- a/lib/src/features/settings/data/backup/backup_repository.g.dart +++ b/lib/src/utils/storage/ferry/network_module.g.dart @@ -1,25 +1,27 @@ // GENERATED CODE - DO NOT MODIFY BY HAND -part of 'backup_repository.dart'; +part of 'network_module.dart'; // ************************************************************************** // RiverpodGenerator // ************************************************************************** -String _$backupRepositoryHash() => r'f23ad9ca70263d5a36808247d3868230cacaa3cd'; +String _$ferryNetworkModuleHash() => + r'26c3851eb0886ef92038a1f97e2988e62daaec72'; -/// See also [backupRepository]. -@ProviderFor(backupRepository) -final backupRepositoryProvider = AutoDisposeProvider.internal( - backupRepository, - name: r'backupRepositoryProvider', +/// See also [ferryNetworkModule]. +@ProviderFor(ferryNetworkModule) +final ferryNetworkModuleProvider = + AutoDisposeProvider.internal( + ferryNetworkModule, + name: r'ferryNetworkModuleProvider', debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null - : _$backupRepositoryHash, + : _$ferryNetworkModuleHash, dependencies: null, allTransitiveDependencies: null, ); -typedef BackupRepositoryRef = AutoDisposeProviderRef; +typedef FerryNetworkModuleRef = AutoDisposeProviderRef; // ignore_for_file: type=lint // ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member diff --git a/lib/src/widgets/async_buttons/async_elevated_button.dart b/lib/src/widgets/async_buttons/async_elevated_button.dart new file mode 100644 index 00000000..5665646b --- /dev/null +++ b/lib/src/widgets/async_buttons/async_elevated_button.dart @@ -0,0 +1,34 @@ +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_hooks/flutter_hooks.dart'; + +import '../custom_circular_progress_indicator.dart'; + +class AsyncElevatedButton extends HookWidget { + const AsyncElevatedButton({ + super.key, + required this.onPressed, + required this.child, + this.style, + }); + final AsyncCallback? onPressed; + final Widget child; + final ButtonStyle? style; + @override + Widget build(BuildContext context) { + final isLoading = useState(false); + return ElevatedButton( + onPressed: onPressed == null || isLoading.value + ? null + : () async { + isLoading.value = (true); + await onPressed?.call(); + isLoading.value = (false); + }, + style: style, + child: isLoading.value + ? const MiniCircularProgressIndicator(color: Colors.white) + : child, + ); + } +} diff --git a/lib/src/widgets/async_buttons/async_list_tile.dart b/lib/src/widgets/async_buttons/async_list_tile.dart new file mode 100644 index 00000000..efef1b00 --- /dev/null +++ b/lib/src/widgets/async_buttons/async_list_tile.dart @@ -0,0 +1,42 @@ +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_hooks/flutter_hooks.dart'; + +import '../custom_circular_progress_indicator.dart'; + +class AsyncListTile extends HookWidget { + const AsyncListTile({ + super.key, + this.leading, + this.title, + this.subtitle, + this.trailing, + this.onTap, + this.showInLeading = true, + }); + final Widget? leading; + final Widget? title; + final Widget? subtitle; + final Widget? trailing; + final AsyncValueSetter>? onTap; + final bool showInLeading; + @override + Widget build(BuildContext context) { + final isLoading = useState(false); + return ListTile( + leading: showInLeading && isLoading.value + ? const MiniCircularProgressIndicator() + : leading, + title: title, + subtitle: subtitle, + trailing: trailing, + onTap: onTap == null + ? null + : () async { + isLoading.value = true; + await onTap?.call(isLoading); + isLoading.value = false; + }, + ); + } +} diff --git a/lib/src/widgets/async_buttons/async_outline_button.dart b/lib/src/widgets/async_buttons/async_outline_button.dart new file mode 100644 index 00000000..09391ed2 --- /dev/null +++ b/lib/src/widgets/async_buttons/async_outline_button.dart @@ -0,0 +1,32 @@ +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_hooks/flutter_hooks.dart'; + +import '../custom_circular_progress_indicator.dart'; + +class AsyncOutlineButton extends HookWidget { + const AsyncOutlineButton({ + super.key, + required this.onPressed, + required this.child, + this.style, + }); + final AsyncCallback? onPressed; + final Widget child; + final ButtonStyle? style; + @override + Widget build(BuildContext context) { + final isLoading = useState(false); + return OutlinedButton( + onPressed: onPressed == null || isLoading.value + ? null + : () async { + isLoading.value = (true); + await onPressed?.call(); + isLoading.value = (false); + }, + style: style, + child: isLoading.value ? const MiniCircularProgressIndicator() : child, + ); + } +} diff --git a/lib/src/widgets/manga_cover/list/manga_cover_descriptive_list_tile.dart b/lib/src/widgets/manga_cover/list/manga_cover_descriptive_list_tile.dart index 57d65aac..b3995da7 100644 --- a/lib/src/widgets/manga_cover/list/manga_cover_descriptive_list_tile.dart +++ b/lib/src/widgets/manga_cover/list/manga_cover_descriptive_list_tile.dart @@ -33,7 +33,7 @@ class MangaCoverDescriptiveListTile extends StatelessWidget { @override Widget build(BuildContext context) { final sourceName = - " • ${manga.source?.displayName ?? context.l10n!.unknownSource}"; + " • ${manga.source?.displayName ?? context.l10n.unknownSource}"; return InkWell( onTap: onPressed, onLongPress: onLongPress, @@ -65,7 +65,7 @@ class MangaCoverDescriptiveListTile extends StatelessWidget { ? () => onTitleClicked!(manga.title) : null, child: Text( - (manga.title ?? context.l10n!.unknownManga), + (manga.title ?? context.l10n.unknownManga), style: context.textTheme.titleLarge, overflow: TextOverflow.ellipsis, maxLines: 2, @@ -75,7 +75,7 @@ class MangaCoverDescriptiveListTile extends StatelessWidget { Padding( padding: const EdgeInsets.symmetric(vertical: 2.0), child: Text( - manga.author ?? context.l10n!.unknownAuthor, + manga.author ?? context.l10n.unknownAuthor, overflow: TextOverflow.ellipsis, style: context.textTheme.bodySmall, ), diff --git a/lib/src/widgets/manga_cover/widgets/manga_chips.dart b/lib/src/widgets/manga_cover/widgets/manga_chips.dart index 78741d8c..b9ee0f66 100644 --- a/lib/src/widgets/manga_cover/widgets/manga_chips.dart +++ b/lib/src/widgets/manga_cover/widgets/manga_chips.dart @@ -31,7 +31,7 @@ class MangaChipsRow extends ConsumerWidget { children: [ if (!showCountBadges && (manga.inLibrary.ifNull())) MangaChip( - text: context.l10n!.inLibrary, + text: context.l10n.inLibrary, color: context.theme.colorScheme.primary, textColor: context.theme.colorScheme.onPrimary, ), @@ -41,18 +41,18 @@ class MangaChipsRow extends ConsumerWidget { children: [ if (manga.unreadCount.isGreaterThan(0) && unreadBadge) MangaChip( - text: context.l10n!.nameCountDisplay( + text: context.l10n.nameCountDisplay( manga.unreadCount.getValueOnNullOrNegative(), - context.l10n!.unread, + context.l10n.unread, ), color: context.theme.colorScheme.primary, textColor: context.theme.colorScheme.onPrimary, ), if (manga.downloadCount.isGreaterThan(0) && downloadedBadge) MangaChip( - text: context.l10n!.nameCountDisplay( + text: context.l10n.nameCountDisplay( manga.downloadCount.getValueOnNullOrNegative(), - context.l10n!.downloaded, + context.l10n.downloaded, ), color: context.theme.colorScheme.tertiary, textColor: context.theme.colorScheme.onTertiary, diff --git a/lib/src/widgets/multi_select_popup.dart b/lib/src/widgets/popup_widgets/multi_select_popup.dart similarity index 96% rename from lib/src/widgets/multi_select_popup.dart rename to lib/src/widgets/popup_widgets/multi_select_popup.dart index ff88be4d..16377fd3 100644 --- a/lib/src/widgets/multi_select_popup.dart +++ b/lib/src/widgets/popup_widgets/multi_select_popup.dart @@ -7,8 +7,8 @@ import 'package:flutter/material.dart'; import 'package:flutter_hooks/flutter_hooks.dart'; -import '../constants/app_sizes.dart'; -import '../utils/extensions/custom_extensions.dart'; +import '../../constants/app_sizes.dart'; +import '../../utils/extensions/custom_extensions.dart'; import 'pop_button.dart'; class MultiSelectPopup extends HookWidget { @@ -66,7 +66,7 @@ class MultiSelectPopup extends HookWidget { .toList(); onChange(selected); }, - child: Text(context.l10n!.save), + child: Text(context.l10n.save), ) ], ); diff --git a/lib/src/widgets/pop_button.dart b/lib/src/widgets/popup_widgets/pop_button.dart similarity index 83% rename from lib/src/widgets/pop_button.dart rename to lib/src/widgets/popup_widgets/pop_button.dart index eea34d55..45d98515 100644 --- a/lib/src/widgets/pop_button.dart +++ b/lib/src/widgets/popup_widgets/pop_button.dart @@ -6,7 +6,7 @@ import 'package:flutter/material.dart'; -import '../utils/extensions/custom_extensions.dart'; +import '../../utils/extensions/custom_extensions.dart'; class PopButton extends StatelessWidget { const PopButton({super.key, this.popText}); @@ -15,7 +15,7 @@ class PopButton extends StatelessWidget { Widget build(BuildContext context) { return TextButton( onPressed: () => Navigator.pop(context), - child: Text(popText ?? context.l10n!.cancel), + child: Text(popText ?? context.l10n.cancel), ); } } diff --git a/lib/src/widgets/radio_list_popup.dart b/lib/src/widgets/popup_widgets/radio_list_popup.dart similarity index 96% rename from lib/src/widgets/radio_list_popup.dart rename to lib/src/widgets/popup_widgets/radio_list_popup.dart index 82e8a572..50e0dd5c 100644 --- a/lib/src/widgets/radio_list_popup.dart +++ b/lib/src/widgets/popup_widgets/radio_list_popup.dart @@ -6,8 +6,8 @@ import 'package:flutter/material.dart'; -import '../constants/app_sizes.dart'; -import '../utils/extensions/custom_extensions.dart'; +import '../../constants/app_sizes.dart'; +import '../../utils/extensions/custom_extensions.dart'; import 'pop_button.dart'; class RadioListPopup extends StatelessWidget { diff --git a/lib/src/widgets/popup_widgets/slider_popup.dart b/lib/src/widgets/popup_widgets/slider_popup.dart new file mode 100644 index 00000000..06538dab --- /dev/null +++ b/lib/src/widgets/popup_widgets/slider_popup.dart @@ -0,0 +1,89 @@ +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_hooks/flutter_hooks.dart'; +import 'package:gap/gap.dart'; + +import '../../constants/app_sizes.dart'; +import '../../utils/extensions/custom_extensions.dart'; +import '../async_buttons/async_elevated_button.dart'; +import 'pop_button.dart'; + +class SliderPopup extends HookWidget { + const SliderPopup({ + super.key, + required this.title, + this.subtitle, + required this.initialValue, + required this.onChange, + this.min = 0, + this.max = 100, + }); + + final String title; + final String? subtitle; + final int initialValue; + final AsyncValueSetter onChange; + final int min; + final int max; + @override + Widget build(context) { + final slideValue = useState(initialValue); + return AlertDialog( + contentPadding: KEdgeInsets.a16.size, + title: Text(title), + content: Padding( + padding: KEdgeInsets.h8.size, + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + if (subtitle.isNotBlank) ...[ + Padding(padding: KEdgeInsets.v4.size, child: Text(subtitle!)), + const Gap(8), + ], + Text( + slideValue.value.compact(returnNullOnZero: false).ifNull('0'), + style: const TextStyle(fontSize: 22), + ), + Padding( + padding: KEdgeInsets.v8.size, + child: Row( + children: [ + IconButton( + onPressed: () => slideValue.value -= 1, + icon: const Icon(Icons.remove), + ), + Expanded( + child: SliderTheme( + data: const SliderThemeData( + showValueIndicator: ShowValueIndicator.always, + ), + child: Slider( + value: slideValue.value.toDouble(), + onChanged: (value) => slideValue.value = value.toInt(), + min: min.toDouble(), + max: max.toDouble(), + label: slideValue.value.compact(), + secondaryTrackValue: slideValue.value.toDouble(), + ), + ), + ), + IconButton( + onPressed: () => slideValue.value += 1, + icon: const Icon(Icons.add), + ), + ], + ), + ), + ], + ), + ), + actions: [ + const PopButton(), + AsyncElevatedButton( + onPressed: () => onChange(slideValue.value), + child: Text(context.l10n.save), + ) + ], + ); + } +} diff --git a/lib/src/widgets/text_field_popup.dart b/lib/src/widgets/popup_widgets/text_field_popup.dart similarity index 82% rename from lib/src/widgets/text_field_popup.dart rename to lib/src/widgets/popup_widgets/text_field_popup.dart index ab05d073..f0637bed 100644 --- a/lib/src/widgets/text_field_popup.dart +++ b/lib/src/widgets/popup_widgets/text_field_popup.dart @@ -4,11 +4,13 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. +import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter_hooks/flutter_hooks.dart'; -import '../constants/app_sizes.dart'; -import '../utils/extensions/custom_extensions.dart'; +import '../../constants/app_sizes.dart'; +import '../../utils/extensions/custom_extensions.dart'; +import '../async_buttons/async_elevated_button.dart'; import 'pop_button.dart'; class TextFieldPopup extends HookWidget { @@ -23,7 +25,7 @@ class TextFieldPopup extends HookWidget { final String title; final String? subtitle; final String? initialValue; - final ValueChanged onChange; + final AsyncValueSetter onChange; @override Widget build(BuildContext context) { @@ -61,11 +63,9 @@ class TextFieldPopup extends HookWidget { ), actions: [ const PopButton(), - ElevatedButton( - onPressed: () { - onChange(textEditingController.text); - }, - child: Text(context.l10n!.save), + AsyncElevatedButton( + onPressed: () => onChange(textEditingController.text), + child: Text(context.l10n.save), ) ], ); diff --git a/lib/src/widgets/search_field.dart b/lib/src/widgets/search_field.dart index 4630118f..b268dfb4 100644 --- a/lib/src/widgets/search_field.dart +++ b/lib/src/widgets/search_field.dart @@ -55,7 +55,7 @@ class SearchField extends HookWidget { decoration: InputDecoration( isDense: true, border: const OutlineInputBorder(), - labelText: hintText ?? context.l10n!.search, + labelText: hintText ?? context.l10n.search, suffixIcon: closeIcon, ), ), diff --git a/lib/src/widgets/section_title.dart b/lib/src/widgets/section_title.dart new file mode 100644 index 00000000..56fc0501 --- /dev/null +++ b/lib/src/widgets/section_title.dart @@ -0,0 +1,14 @@ +import 'package:flutter/material.dart'; + +import '../constants/app_sizes.dart'; +import '../utils/extensions/custom_extensions.dart'; + +class SectionTitle extends StatelessWidget { + const SectionTitle({super.key, required this.title}); + final String title; + @override + Widget build(BuildContext context) => Padding( + padding: KEdgeInsets.h16.size + KEdgeInsets.v4.size, + child: Text(title, style: TextStyle(color: context.theme.primaryColor)), + ); +} diff --git a/lib/src/widgets/server_image.dart b/lib/src/widgets/server_image.dart index 4a494e4a..130e7586 100644 --- a/lib/src/widgets/server_image.dart +++ b/lib/src/widgets/server_image.dart @@ -73,7 +73,7 @@ class ServerImage extends HookConsumerWidget { finalProgressIndicatorBuilder( BuildContext context, String url, DownloadProgress progress) => - AppUtils.wrapIf( + AppUtils.wrapOn( wrapper, progressIndicatorBuilder?.call(context, url, progress) ?? const CenterSorayomiShimmerIndicator(), @@ -81,7 +81,7 @@ class ServerImage extends HookConsumerWidget { Widget errorWidget(BuildContext context, String error, stackTrace) { if (showReloadButton) { - return AppUtils.wrapIf( + return AppUtils.wrapOn( wrapper, Padding( padding: KEdgeInsets.a8.size, @@ -99,7 +99,7 @@ class ServerImage extends HookConsumerWidget { onPressed: () { key.value = (UniqueKey()); }, - child: Text(context.l10n!.reload), + child: Text(context.l10n.reload), ), ], ), @@ -107,7 +107,7 @@ class ServerImage extends HookConsumerWidget { ), ); } else { - return AppUtils.wrapIf( + return AppUtils.wrapOn( wrapper, const Icon( Icons.broken_image_rounded, diff --git a/lib/src/widgets/shell/big_screen_navigation_bar.dart b/lib/src/widgets/shell/big_screen_navigation_bar.dart index 51db62b5..f924d141 100644 --- a/lib/src/widgets/shell/big_screen_navigation_bar.dart +++ b/lib/src/widgets/shell/big_screen_navigation_bar.dart @@ -35,7 +35,7 @@ class BigScreenNavigationBar extends StatelessWidget { AssetImage(Assets.icons.darkIcon.path), size: 48, ), - label: Text(context.l10n!.appTitle), + label: Text(context.l10n.appTitle), style: TextButton.styleFrom( foregroundColor: context.textTheme.bodyLarge?.color, ), diff --git a/lib/src/widgets/shell/shell_screen.dart b/lib/src/widgets/shell/shell_screen.dart index f3d4e66f..740d7785 100644 --- a/lib/src/widgets/shell/shell_screen.dart +++ b/lib/src/widgets/shell/shell_screen.dart @@ -6,14 +6,12 @@ import 'package:flutter/material.dart'; import 'package:flutter_hooks/flutter_hooks.dart'; - import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:pub_semver/pub_semver.dart'; import '../../features/about/data/about_repository.dart'; import '../../features/about/presentation/about/controllers/about_controller.dart'; import '../../features/about/presentation/about/widget/app_update_dialog.dart'; - import '../../utils/extensions/custom_extensions.dart'; import '../../utils/misc/toast/toast.dart'; import 'big_screen_navigation_bar.dart'; @@ -34,21 +32,19 @@ class ShellScreen extends HookConsumerWidget { }) async { final AsyncValue versionResult = await updateCallback(); toast.close(); - if (context.mounted) { - versionResult.whenOrNull( - data: (version) { - if (version != null) { - appUpdateDialog( - title: title ?? context.l10n!.appTitle, - newRelease: "v${version.canonicalizedVersion}", - context: context, - toast: toast, - ); - } - }, - ); - } - return; + if (!context.mounted) return; + versionResult.whenOrNull( + data: (version) { + if (version != null) { + appUpdateDialog( + title: title ?? context.l10n.appTitle, + newRelease: "v${version.canonicalizedVersion}", + context: context, + toast: toast, + ); + } + }, + ); } @override diff --git a/macos/Podfile.lock b/macos/Podfile.lock index 749bbfda..0fa5bb8d 100644 --- a/macos/Podfile.lock +++ b/macos/Podfile.lock @@ -1,8 +1,5 @@ PODS: - FlutterMacOS (1.0.0) - - FMDB (2.7.5): - - FMDB/standard (= 2.7.5) - - FMDB/standard (2.7.5) - network_info_plus (0.0.1): - FlutterMacOS - package_info_plus (0.0.1): @@ -13,9 +10,9 @@ PODS: - shared_preferences_foundation (0.0.1): - Flutter - FlutterMacOS - - sqflite (0.0.2): + - sqflite (0.0.3): + - Flutter - FlutterMacOS - - FMDB (>= 2.7.5) - url_launcher_macos (0.0.1): - FlutterMacOS @@ -25,13 +22,9 @@ DEPENDENCIES: - package_info_plus (from `Flutter/ephemeral/.symlinks/plugins/package_info_plus/macos`) - path_provider_foundation (from `Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin`) - shared_preferences_foundation (from `Flutter/ephemeral/.symlinks/plugins/shared_preferences_foundation/darwin`) - - sqflite (from `Flutter/ephemeral/.symlinks/plugins/sqflite/macos`) + - sqflite (from `Flutter/ephemeral/.symlinks/plugins/sqflite/darwin`) - url_launcher_macos (from `Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos`) -SPEC REPOS: - trunk: - - FMDB - EXTERNAL SOURCES: FlutterMacOS: :path: Flutter/ephemeral @@ -44,18 +37,17 @@ EXTERNAL SOURCES: shared_preferences_foundation: :path: Flutter/ephemeral/.symlinks/plugins/shared_preferences_foundation/darwin sqflite: - :path: Flutter/ephemeral/.symlinks/plugins/sqflite/macos + :path: Flutter/ephemeral/.symlinks/plugins/sqflite/darwin url_launcher_macos: :path: Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos SPEC CHECKSUMS: FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24 - FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a network_info_plus: f4fbc7877ab7b3294500d9441dfa53cd54972d05 package_info_plus: 02d7a575e80f194102bef286361c6c326e4c29ce path_provider_foundation: 3784922295ac71e43754bd15e0653ccfd36a147c shared_preferences_foundation: b4c3b4cddf1c21f02770737f147a3f5da9d39695 - sqflite: a5789cceda41d54d23f31d6de539d65bb14100ea + sqflite: 673a0e54cc04b7d6dba8d24fb8095b31c3a99eec url_launcher_macos: d2691c7dd33ed713bf3544850a623080ec693d95 PODFILE CHECKSUM: dac0ddf03d136db544afc27b87cc6c08492e67b9 diff --git a/macos/Runner.xcodeproj/project.pbxproj b/macos/Runner.xcodeproj/project.pbxproj index c6d22fcc..27030f08 100644 --- a/macos/Runner.xcodeproj/project.pbxproj +++ b/macos/Runner.xcodeproj/project.pbxproj @@ -202,7 +202,7 @@ isa = PBXProject; attributes = { LastSwiftUpdateCheck = 0920; - LastUpgradeCheck = 1430; + LastUpgradeCheck = 1510; ORGANIZATIONNAME = ""; TargetAttributes = { 33CC10EC2044A3C60003C045 = { diff --git a/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index 50eff254..9e9ade05 100644 --- a/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -1,6 +1,6 @@ =3.2.0 <4.0.0" - flutter: ">=3.16.0" + dart: ">=3.3.0 <4.0.0" + flutter: ">=3.19.0" diff --git a/pubspec.yaml b/pubspec.yaml index f8dd5801..712cb83f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -14,6 +14,9 @@ dependencies: dio: ^5.0.0 dio_cache_interceptor: ^3.4.0 dio_cache_interceptor_hive_store: ^3.2.1 + ferry: ^0.16.0+1 + ferry_flutter: ^0.9.0-dev.2 + ferry_hive_store: ^0.5.2 file_picker: ^6.0.0 flex_color_scheme: ^7.3.1 flutter: @@ -29,7 +32,11 @@ dependencies: freezed_annotation: ^2.2.0 gap: ^3.0.1 go_router: ^13.0.1 + gql_http_link: ^1.0.1+1 + hive: ^2.2.3 + hive_flutter: ^1.1.0 hooks_riverpod: ^2.1.1 + http: ^1.2.0 infinite_scroll_pagination: ^4.0.0 intl: ^0.18.0 json_annotation: ^4.8.1 @@ -50,6 +57,7 @@ dependencies: dev_dependencies: build_runner: ^2.3.2 # flutter_flavorizr: ^2.1.5 + ferry_generator: ^0.10.0 flutter_gen_runner: ^5.1.0+1 flutter_launcher_icons: ^0.13.0 flutter_lints: ^3.0.0 From ed40b212bab78054547a3d6de34881a865b69039 Mon Sep 17 00:00:00 2001 From: DattatreyaReddy Panta <58727124+DattatreyaReddy@users.noreply.github.com> Date: Wed, 3 Apr 2024 00:41:25 +0530 Subject: [PATCH 2/5] updated server, Browser settings --- .github/workflows/publish.yml | 33 +- .vscode/settings.json | 1 + README.md | 4 +- android/app/src/main/AndroidManifest.xml | 2 +- ios/Runner/Info.plist | 2 +- lib/main.dart | 1 - lib/src/constants/app_sizes.dart | 2 +- lib/src/constants/enum.dart | 18 +- lib/src/constants/navigation_bar_data.dart | 22 - lib/src/constants/urls.dart | 5 +- lib/src/domain/meta_data.dart | 15 + lib/src/domain/meta_data.freezed.dart | 166 + lib/src/domain/meta_data.g.dart | 19 + lib/src/domain/page.dart | 26 + lib/src/domain/page.freezed.dart | 195 + lib/src/domain/page_info.dart | 13 + lib/src/domain/page_info.freezed.dart | 200 + lib/src/domain/page_request.dart | 15 + lib/src/domain/page_request.freezed.dart | 151 + .../features/about/data/about_repository.dart | 21 +- .../__generated__/about_query.ast.gql.dart | 80 +- .../__generated__/about_query.data.gql.dart | 35 +- .../__generated__/about_query.data.gql.g.dart | 178 +- .../about/data/graphql/about_query.graphql | 15 +- .../about/domain/about/about_dto.dart | 18 +- .../about/domain/about/about_dto.freezed.dart | 261 - .../__generated__/fragment.ast.gql.dart | 67 + .../__generated__/fragment.data.gql.dart | 70 + .../__generated__/fragment.data.gql.g.dart | 314 + .../__generated__/fragment.req.gql.dart | 65 + .../__generated__/fragment.req.gql.g.dart | 230 + .../__generated__/fragment.var.gql.dart | 33 + .../__generated__/fragment.var.gql.g.dart | 94 + .../domain/about/graphql/fragment.graphql | 9 + .../__generated__/fragment.ast.gql.dart | 39 + .../__generated__/fragment.data.gql.dart | 56 + .../__generated__/fragment.data.gql.g.dart | 215 + .../__generated__/fragment.req.gql.dart | 67 + .../__generated__/fragment.req.gql.g.dart | 237 + .../__generated__/fragment.var.gql.dart | 34 + .../__generated__/fragment.var.gql.g.dart | 98 + .../server_update/graphql/fragment.dart | 6 + .../server_update/graphql/fragment.graphql | 6 + .../presentation/about/about_screen.dart | 46 +- .../about/controllers/about_controller.dart | 7 +- .../about/controllers/about_controller.g.dart | 2 +- .../about/widget/app_update_dialog.dart | 2 +- .../about/widget/clipboard_list_tile.dart | 30 +- .../about/widget/media_launch_button.dart | 2 +- .../extension_repository.dart | 6 +- .../source_repository/source_repository.dart | 15 +- .../domain/extension/extension_model.dart | 30 +- .../extension/extension_model.freezed.dart | 409 - .../domain/extension/extension_model.g.dart | 37 - .../__generated__/fragment.ast.gql.dart | 102 + .../__generated__/fragment.data.gql.dart | 83 + .../__generated__/fragment.data.gql.g.dart | 409 + .../__generated__/fragment.req.gql.dart | 67 + .../__generated__/fragment.req.gql.g.dart | 236 + .../__generated__/fragment.var.gql.dart | 33 + .../__generated__/fragment.var.gql.g.dart | 97 + .../domain/extension/graphql/fragment.graphql | 15 + .../domain/manga_page/manga_page.dart | 4 - .../domain/manga_page/manga_page.freezed.dart | 21 +- .../domain/manga_page/manga_page.g.dart | 21 - .../__generated__/fragment.ast.gql.dart | 618 + .../__generated__/fragment.data.gql.dart | 1327 ++ .../__generated__/fragment.data.gql.g.dart | 5552 +++++ .../__generated__/fragment.req.gql.dart | 115 + .../__generated__/fragment.req.gql.g.dart | 458 + .../__generated__/fragment.var.gql.dart | 56 + .../__generated__/fragment.var.gql.g.dart | 185 + .../domain/source/graphql/fragment.graphql | 104 + .../domain/source/source_model.dart | 26 +- .../domain/source/source_model.freezed.dart | 333 - .../domain/source/source_model.g.dart | 30 - .../__generated__/fragment.ast.gql.dart | 341 + .../__generated__/fragment.data.gql.dart | 396 + .../__generated__/fragment.data.gql.g.dart | 1952 ++ .../__generated__/fragment.req.gql.dart | 68 + .../__generated__/fragment.req.gql.g.dart | 241 + .../__generated__/fragment.var.gql.dart | 35 + .../__generated__/fragment.var.gql.g.dart | 101 + .../graphql/fragment.graphql | 51 + .../graphql/source_preference_converter.dart | 8 + .../source_preference/source_preference.dart | 92 +- .../source_preference.freezed.dart | 2338 ++- .../source_preference.g.dart | 158 +- .../source_preference_prop.dart | 75 - .../source_preference_prop.freezed.dart | 2374 --- .../source_preference_prop.g.dart | 158 - .../presentation/browse/browse_screen.dart | 40 +- .../controller/extension_controller.dart | 4 +- .../controller/extension_controller.g.dart | 2 +- .../extension/extension_screen.dart | 13 +- .../widgets/extension_list_tile.dart | 46 +- .../widgets/install_extension_file.dart | 25 +- .../source_quick_search_controller.dart | 4 +- .../source_quick_search_controller.g.dart | 2 +- .../global_search/global_search_screen.dart | 16 +- .../widgets/source_short_search.dart | 12 +- .../source/controller/source_controller.dart | 4 +- .../controller/source_controller.g.dart | 2 +- .../presentation/source/source_screen.dart | 5 +- .../source/widgets/source_list_tile.dart | 28 +- .../source_manga_list_screen.dart | 28 +- .../widgets/filter_to_widget.dart | 2 +- .../widgets/source_manga_display_view.dart | 13 +- .../widgets/source_manga_grid_view.dart | 21 +- .../widgets/source_manga_list_view.dart | 13 +- .../source_preference_controller.dart | 3 +- .../source_preference_controller.g.dart | 2 +- .../source_preference_screen.dart | 2 +- .../widgets/source_preference_to_widget.dart | 9 +- .../{category => }/category_repository.dart | 64 +- .../{category => }/category_repository.g.dart | 2 +- .../__generated__/category_query.ast.gql.dart | 124 + .../category_query.data.gql.dart | 250 + .../category_query.data.gql.g.dart | 1391 ++ .../__generated__/category_query.req.gql.dart | 97 + .../category_query.req.gql.g.dart | 367 + .../__generated__/category_query.var.gql.dart | 39 + .../category_query.var.gql.g.dart | 228 + .../library/data/graphql/category_query.dart | 6 + .../data/graphql/category_query.graphql | 21 + .../domain/category/category_model.dart | 32 +- .../category/category_model.freezed.dart | 219 - .../domain/category/category_model.g.dart | 23 - .../__generated__/fragment.ast.gql.dart | 97 + .../__generated__/fragment.data.gql.dart | 159 + .../__generated__/fragment.data.gql.g.dart | 695 + .../__generated__/fragment.req.gql.dart | 67 + .../__generated__/fragment.req.gql.g.dart | 236 + .../__generated__/fragment.var.gql.dart | 33 + .../__generated__/fragment.var.gql.g.dart | 97 + .../domain/category/graphql/fragment.graphql | 16 + .../controller/edit_category_controller.dart | 62 +- .../edit_category_controller.g.dart | 8 +- .../category/edit_category_screen.dart | 23 +- .../category/widgets/category_tile.dart | 49 +- .../widgets/edit_category_dialog.dart | 14 +- .../library/category_manga_list.dart | 89 +- .../controller/library_controller.dart | 14 +- .../controller/library_controller.g.dart | 2 +- .../presentation/library/library_screen.dart | 206 +- .../data/downloads/downloads_repository.dart | 6 +- .../data/manga_book_repository.dart | 11 +- .../data/updates/updates_repository.dart | 13 +- .../domain/chapter/chapter_model.dart | 45 +- .../domain/chapter/chapter_model.freezed.dart | 530 - .../domain/chapter/chapter_model.g.dart | 53 - .../__generated__/fragment.ast.gql.dart | 152 + .../__generated__/fragment.data.gql.dart | 144 + .../__generated__/fragment.data.gql.g.dart | 729 + .../__generated__/fragment.req.gql.dart | 67 + .../__generated__/fragment.req.gql.g.dart | 235 + .../__generated__/fragment.var.gql.dart | 33 + .../__generated__/fragment.var.gql.g.dart | 97 + .../domain/chapter/graphql/fragment.graphql | 22 + .../chapter_page/chapter_page_model.dart | 7 - .../chapter_page_model.freezed.dart | 83 +- .../chapter_page/chapter_page_model.g.dart | 39 - .../domain/downloads/downloads_model.dart | 4 - .../downloads/downloads_model.freezed.dart | 21 +- .../domain/downloads/downloads_model.g.dart | 21 - .../downloads_queue_model.dart | 4 - .../downloads_queue_model.freezed.dart | 68 +- .../downloads_queue_model.g.dart | 34 - .../__generated__/fragment.ast.gql.dart | 263 + .../__generated__/fragment.data.gql.dart | 963 + .../__generated__/fragment.data.gql.g.dart | 4574 +++++ .../__generated__/fragment.req.gql.dart | 65 + .../__generated__/fragment.req.gql.g.dart | 230 + .../__generated__/fragment.var.gql.dart | 33 + .../__generated__/fragment.var.gql.g.dart | 94 + .../domain/manga/graphql/fragment.graphql | 45 + .../manga_book/domain/manga/manga_model.dart | 92 +- .../domain/manga/manga_model.freezed.dart | 724 - .../domain/manga/manga_model.g.dart | 64 - .../update_status/update_status_model.dart | 4 - .../update_status_model.freezed.dart | 21 +- .../update_status/update_status_model.g.dart | 31 - .../downloads/downloads_screen.dart | 6 +- .../widgets/download_progress_list_tile.dart | 5 +- .../downloads/widgets/downloads_fab.dart | 4 +- .../controller/manga_details_controller.dart | 26 +- .../manga_details_controller.g.dart | 8 +- .../manga_details/manga_details_screen.dart | 33 +- .../widgets/big_screen_manga_details.dart | 4 +- .../widgets/chapter_list_tile.dart | 83 +- .../widgets/edit_manga_category_dialog.dart | 87 +- .../widgets/manga_description.dart | 11 +- .../widgets/small_screen_manga_details.dart | 4 +- .../presentation/reader/reader_screen.dart | 8 +- .../reader/widgets/chapter_separator.dart | 29 +- .../reader_mode/continuous_reader_mode.dart | 12 +- .../reader_mode/single_page_reader_mode.dart | 18 +- .../reader/widgets/reader_wrapper.dart | 94 +- .../presentation/updates/updates_screen.dart | 25 +- .../widgets/chapter_manga_list_tile.dart | 16 +- .../multi_chapters_action_icon.dart | 2 +- ...multi_chapters_actions_bottom_app_bar.dart | 31 +- .../single_chapter_action_icon.dart | 2 +- .../widgets/download_status_icon.dart | 14 +- .../manga_book/widgets/update_status_fab.dart | 4 +- .../widgets/update_status_popup_menu.dart | 3 +- .../widgets/update_status_summary_sheet.dart | 2 +- .../domain/quick_search_result.freezed.dart | 236 +- .../controller/quick_search_controller.dart | 9 +- .../controller/quick_search_controller.g.dart | 2 +- .../widgets/category_query_list_tile.dart | 10 +- .../widgets/source_query_list_tile.dart | 20 +- .../controller/server_controller.dart | 16 + .../controller/server_controller.g.dart | 25 + .../controller/settings_controller.dart | 16 - .../__generated__/settings_query.ast.gql.dart | 558 +- .../settings_query.data.gql.dart | 912 +- .../settings_query.data.gql.g.dart | 5222 +---- .../__generated__/settings_query.req.gql.dart | 685 +- .../settings_query.req.gql.g.dart | 3207 +-- .../__generated__/settings_query.var.gql.dart | 218 +- .../settings_query.var.gql.g.dart | 1135 +- .../settings/data/graphql/settings_query.dart | 52 +- .../data/graphql/settings_query.graphql | 88 +- .../settings/data/settings_repository.dart | 68 +- .../automatic_backup_settings_dto.dart | 3 + .../__generated__/fragment.ast.gql.dart | 47 + .../__generated__/fragment.data.gql.dart | 62 + .../__generated__/fragment.data.gql.g.dart | 248 + .../__generated__/fragment.req.gql.dart | 73 + .../__generated__/fragment.req.gql.g.dart | 248 + .../__generated__/fragment.var.gql.dart | 36 + .../__generated__/fragment.var.gql.g.dart | 105 + .../graphql/fragment.graphql | 7 + .../domain/automatic_backup_settings_dto.dart | 14 - ...automatic_backup_settings_dto.freezed.dart | 205 - .../domain/browse/browse_settings.dart | 3 + .../__generated__/fragment.ast.gql.dart | 39 + .../__generated__/fragment.data.gql.dart | 58 + .../__generated__/fragment.data.gql.g.dart | 242 + .../__generated__/fragment.req.gql.dart | 67 + .../__generated__/fragment.req.gql.g.dart | 241 + .../__generated__/fragment.var.gql.dart | 35 + .../__generated__/fragment.var.gql.g.dart | 101 + .../domain/browse/graphql/fragment.graphql | 6 + .../domain/cloud_flare/cloud_flare.dart | 3 + .../__generated__/fragment.ast.gql.dart | 53 + .../__generated__/fragment.data.gql.dart | 63 + .../__generated__/fragment.data.gql.g.dart | 272 + .../__generated__/fragment.req.gql.dart | 68 + .../__generated__/fragment.req.gql.g.dart | 241 + .../__generated__/fragment.var.gql.dart | 35 + .../__generated__/fragment.var.gql.g.dart | 101 + .../cloud_flare/graphql/fragment.graphql | 8 + .../__generated__/fragment.ast.gql.dart | 39 + .../__generated__/fragment.data.gql.dart | 56 + .../__generated__/fragment.data.gql.g.dart | 226 + .../__generated__/fragment.req.gql.dart | 67 + .../__generated__/fragment.req.gql.g.dart | 237 + .../__generated__/fragment.var.gql.dart | 34 + .../__generated__/fragment.var.gql.g.dart | 98 + .../misc_settings/graphql/fragment.graphql | 6 + .../domain/misc_settings/misc_settings.dart | 3 + .../settings/domain/restore_status.dart | 18 - .../domain/restore_status.freezed.dart | 189 - .../settings/domain/restore_status.g.dart | 29 - .../__generated__/fragment.ast.gql.dart | 39 + .../__generated__/fragment.data.gql.dart | 58 + .../__generated__/fragment.data.gql.g.dart | 219 + .../__generated__/fragment.req.gql.dart | 67 + .../__generated__/fragment.req.gql.g.dart | 238 + .../__generated__/fragment.var.gql.dart | 34 + .../__generated__/fragment.var.gql.g.dart | 99 + .../restore_status/graphql/fragment.graphql | 6 + .../domain/restore_status/restore_status.dart | 11 + .../__generated__/fragment.ast.gql.dart | 32 + .../__generated__/fragment.data.gql.dart | 53 + .../__generated__/fragment.data.gql.g.dart | 191 + .../__generated__/fragment.req.gql.dart | 67 + .../__generated__/fragment.req.gql.g.dart | 238 + .../__generated__/fragment.var.gql.dart | 34 + .../__generated__/fragment.var.gql.g.dart | 99 + .../server_binding/graphql/fragment.graphql | 4 + .../domain/server_binding/server_binding.dart | 3 + .../__generated__/fragment.ast.gql.dart | 60 + .../__generated__/fragment.data.gql.dart | 65 + .../__generated__/fragment.data.gql.g.dart | 289 + .../__generated__/fragment.req.gql.dart | 67 + .../__generated__/fragment.req.gql.g.dart | 236 + .../__generated__/fragment.var.gql.dart | 33 + .../__generated__/fragment.var.gql.g.dart | 98 + .../socks_proxy/graphql/fragment.graphql | 9 + .../domain/socks_proxy/socks_proxy.dart | 3 + .../settings/enums/restore_state.dart | 24 - .../appearance/appearance_screen.dart | 4 +- .../app_theme_selector.dart | 64 +- .../grid_cover_width_slider.dart} | 14 +- .../grid_cover_width_slider.g.dart} | 2 +- .../is_true_black/is_true_black_tile.dart | 2 +- .../automatic_backup_section.dart | 118 - .../presentation/backup/backup_screen.dart | 8 +- .../backup/controllers/backup_controller.dart | 10 + .../controllers/backup_controller.g.dart} | 23 +- .../data/backup_settings_repository.dart | 79 + .../data/backup_settings_repository.g.dart | 28 + .../backup_settings_query.ast.gql.dart | 481 + .../backup_settings_query.data.gql.dart | 918 + .../backup_settings_query.data.gql.g.dart | 6110 ++++++ .../backup_settings_query.req.gql.dart | 659 + .../backup_settings_query.req.gql.g.dart | 2900 +++ .../backup_settings_query.var.gql.dart | 205 + .../backup_settings_query.var.gql.g.dart | 1098 + .../data/graphql/backup_settings_query.dart | 52 + .../graphql/backup_settings_query.graphql | 68 + .../automatic_backup_section.dart | 129 + .../backup_and_restore_section.dart | 41 +- .../widgets/backup_missing_dialog.dart | 4 +- .../widgets/create_backup_dialog.dart | 24 +- .../widgets/restore_status_progress.dart | 12 +- .../browse/browse_settings_screen.dart | 111 +- .../data/browse_settings_repository.dart | 41 + .../data/browse_settings_repository.g.dart | 28 + .../browse_settings_query.ast.gql.dart | 207 + .../browse_settings_query.data.gql.dart | 448 + .../browse_settings_query.data.gql.g.dart | 3224 +++ .../browse_settings_query.req.gql.dart | 264 + .../browse_settings_query.req.gql.g.dart | 1126 + .../browse_settings_query.var.gql.dart | 86 + .../browse_settings_query.var.gql.g.dart | 438 + .../data/graphql/browse_settings_query.dart | 16 + .../graphql/browse_settings_query.graphql | 25 + .../extension_repository_screen.dart | 124 + .../show_nsfw_switch/show_nsfw_switch.dart | 4 +- .../extension_repository_screen.dart | 14 + .../presentation/general/general_screen.dart | 4 +- .../library/library_settings_screen.dart | 2 +- .../presentation/more/more_screen.dart | 8 +- .../reader_magnifier_size_slider.dart | 4 +- .../server_settings_query.ast.gql.dart | 948 + .../server_settings_query.data.gql.dart | 2314 +++ .../server_settings_query.data.gql.g.dart | 16961 ++++++++++++++++ .../server_settings_query.req.gql.dart | 1325 ++ .../server_settings_query.req.gql.g.dart | 5900 ++++++ .../server_settings_query.var.gql.dart | 406 + .../server_settings_query.var.gql.g.dart | 2187 ++ .../data/graphql/server_settings_query.dart | 56 + .../graphql/server_settings_query.graphql | 129 + .../data/server_settings_repository.dart | 132 + .../data/server_settings_repository.g.dart | 28 + .../presentation/server/server_screen.dart | 96 +- .../auth_type}/auth_type_tile.dart | 8 +- .../authentication_section.dart | 36 + .../server/widget/client/client_section.dart | 22 + .../server_port_tile/server_port_tile.dart | 59 + .../server_port_tile/server_port_tile.g.dart | 0 .../server_url_tile/server_search_button.dart | 14 +- .../server_url_tile/server_url_tile.dart | 50 + .../server_url_tile/server_url_tile.g.dart | 0 .../cloud_flare/cloud_flare_section.dart | 125 + .../misc_settings/misc_settings_section.dart | 63 + .../server_binding_section.dart | 66 + .../socks_proxy/socks_proxy_section.dart | 128 + .../settings/settings_screen.dart | 14 +- .../server_port_tile/server_port_tile.dart | 112 - .../server_url_tile/server_url_tile.dart | 90 - .../slider_setting_tile.dart | 2 +- .../global_providers/global_providers.dart | 4 +- .../__generated__/fragments.ast.gql.dart | 46 + .../__generated__/fragments.data.gql.dart | 61 + .../__generated__/fragments.data.gql.g.dart | 260 + .../__generated__/fragments.req.gql.dart | 67 + .../__generated__/fragments.req.gql.g.dart | 236 + .../__generated__/fragments.var.gql.dart | 33 + .../__generated__/fragments.var.gql.g.dart | 97 + .../__generated__/serializers.gql.dart | 487 +- .../__generated__/serializers.gql.g.dart | 387 +- lib/src/graphql/fragments.graphql | 6 + lib/src/l10n/app_ar.arb | 4 +- lib/src/l10n/app_de.arb | 6 +- lib/src/l10n/app_en.arb | 143 +- lib/src/l10n/app_es.arb | 2 +- lib/src/l10n/app_fr.arb | 6 +- lib/src/l10n/app_ko.arb | 6 +- lib/src/l10n/app_pt.arb | 2 +- lib/src/l10n/app_pt_PT.arb | 2 +- lib/src/l10n/app_uk.arb | 6 +- lib/src/l10n/app_zh.arb | 4 +- lib/src/l10n/app_zh_Hans.arb | 4 +- lib/src/l10n/app_zh_Hant.arb | 6 +- lib/src/routes/router_config.dart | 455 +- lib/src/routes/router_config.g.dart | 543 +- lib/src/routes/sub_routes/browser_routes.dart | 88 + lib/src/routes/sub_routes/common_routes.dart | 77 + .../routes/sub_routes/downloads_routes.dart | 11 + lib/src/routes/sub_routes/library_routes.dart | 14 + lib/src/routes/sub_routes/more_routes.dart | 88 + lib/src/routes/sub_routes/updates_routes.dart | 11 + .../extensions/cache_manager_extensions.dart | 4 +- .../async_value_extensions.dart | 7 +- .../custom_extensions/ferry_extensions.dart | 15 +- .../custom_extensions/map_extensions.dart | 12 + .../custom_extensions/string_extensions.dart | 9 + lib/src/utils/misc/app_utils.dart | 9 + .../utils/misc/number_range_formatter.dart | 34 + lib/src/utils/misc/toast/toast.dart | 9 +- lib/src/utils/misc/toast/toast.g.dart | 155 +- .../utils/storage/ferry/network_module.dart | 11 +- lib/src/widgets/emoticons.dart | 18 +- .../input_popup/domain/input_popup_type.dart | 21 + .../domain/input_popup_type.freezed.dart | 694 + lib/src/widgets/input_popup/input_popup.dart | 134 + .../grid/manga_cover_grid_tile.dart | 2 +- .../manga_cover_descriptive_list_tile.dart | 10 +- .../list/manga_cover_list_tile.dart | 2 +- .../widgets/number_picker/number_picker.dart | 96 + .../number_picker_with_label.dart | 45 + .../widgets/popup_widgets/slider_popup.dart | 118 +- lib/src/widgets/search_field.dart | 3 +- lib/src/widgets/section_title.dart | 6 +- lib/src/widgets/server_image.dart | 4 +- .../shell/big_screen_navigation_bar.dart | 17 +- ...reen.dart => navigation_shell_screen.dart} | 30 +- .../shell/small_screen_navigation_bar.dart | 14 +- linux/my_application.cc | 4 +- macos/Podfile.lock | 4 +- macos/Runner.xcodeproj/project.pbxproj | 6 +- .../xcshareddata/xcschemes/Runner.xcscheme | 8 +- .../AppIcon.appiconset/app_icon_1024.png | Bin 53475 -> 61845 bytes .../AppIcon.appiconset/app_icon_128.png | Bin 5874 -> 9515 bytes .../AppIcon.appiconset/app_icon_16.png | Bin 535 -> 3235 bytes .../AppIcon.appiconset/app_icon_256.png | Bin 12335 -> 17055 bytes .../AppIcon.appiconset/app_icon_32.png | Bin 1254 -> 4064 bytes .../AppIcon.appiconset/app_icon_512.png | Bin 25804 -> 32238 bytes .../AppIcon.appiconset/app_icon_64.png | Bin 2716 -> 5748 bytes macos/Runner/Configs/AppInfo.xcconfig | 2 +- pubspec.lock | 146 +- pubspec.yaml | 9 +- scripts/tachidesk-sorayomi-arm64.wxs | 75 + scripts/tachidesk-sorayomi-x64.wxs | 8 +- scripts/tachidesk-sorayomi.desktop | 2 +- web/index.html | 16 +- windows/runner/main.cpp | 2 +- 442 files changed, 91714 insertions(+), 19430 deletions(-) create mode 100644 lib/src/domain/meta_data.dart create mode 100644 lib/src/domain/meta_data.freezed.dart create mode 100644 lib/src/domain/meta_data.g.dart create mode 100644 lib/src/domain/page.dart create mode 100644 lib/src/domain/page.freezed.dart create mode 100644 lib/src/domain/page_info.dart create mode 100644 lib/src/domain/page_info.freezed.dart create mode 100644 lib/src/domain/page_request.dart create mode 100644 lib/src/domain/page_request.freezed.dart delete mode 100644 lib/src/features/about/domain/about/about_dto.freezed.dart create mode 100644 lib/src/features/about/domain/about/graphql/__generated__/fragment.ast.gql.dart create mode 100644 lib/src/features/about/domain/about/graphql/__generated__/fragment.data.gql.dart create mode 100644 lib/src/features/about/domain/about/graphql/__generated__/fragment.data.gql.g.dart create mode 100644 lib/src/features/about/domain/about/graphql/__generated__/fragment.req.gql.dart create mode 100644 lib/src/features/about/domain/about/graphql/__generated__/fragment.req.gql.g.dart create mode 100644 lib/src/features/about/domain/about/graphql/__generated__/fragment.var.gql.dart create mode 100644 lib/src/features/about/domain/about/graphql/__generated__/fragment.var.gql.g.dart create mode 100644 lib/src/features/about/domain/about/graphql/fragment.graphql create mode 100644 lib/src/features/about/domain/server_update/graphql/__generated__/fragment.ast.gql.dart create mode 100644 lib/src/features/about/domain/server_update/graphql/__generated__/fragment.data.gql.dart create mode 100644 lib/src/features/about/domain/server_update/graphql/__generated__/fragment.data.gql.g.dart create mode 100644 lib/src/features/about/domain/server_update/graphql/__generated__/fragment.req.gql.dart create mode 100644 lib/src/features/about/domain/server_update/graphql/__generated__/fragment.req.gql.g.dart create mode 100644 lib/src/features/about/domain/server_update/graphql/__generated__/fragment.var.gql.dart create mode 100644 lib/src/features/about/domain/server_update/graphql/__generated__/fragment.var.gql.g.dart create mode 100644 lib/src/features/about/domain/server_update/graphql/fragment.dart create mode 100644 lib/src/features/about/domain/server_update/graphql/fragment.graphql delete mode 100644 lib/src/features/browse_center/domain/extension/extension_model.freezed.dart delete mode 100644 lib/src/features/browse_center/domain/extension/extension_model.g.dart create mode 100644 lib/src/features/browse_center/domain/extension/graphql/__generated__/fragment.ast.gql.dart create mode 100644 lib/src/features/browse_center/domain/extension/graphql/__generated__/fragment.data.gql.dart create mode 100644 lib/src/features/browse_center/domain/extension/graphql/__generated__/fragment.data.gql.g.dart create mode 100644 lib/src/features/browse_center/domain/extension/graphql/__generated__/fragment.req.gql.dart create mode 100644 lib/src/features/browse_center/domain/extension/graphql/__generated__/fragment.req.gql.g.dart create mode 100644 lib/src/features/browse_center/domain/extension/graphql/__generated__/fragment.var.gql.dart create mode 100644 lib/src/features/browse_center/domain/extension/graphql/__generated__/fragment.var.gql.g.dart create mode 100644 lib/src/features/browse_center/domain/extension/graphql/fragment.graphql delete mode 100644 lib/src/features/browse_center/domain/manga_page/manga_page.g.dart create mode 100644 lib/src/features/browse_center/domain/source/graphql/__generated__/fragment.ast.gql.dart create mode 100644 lib/src/features/browse_center/domain/source/graphql/__generated__/fragment.data.gql.dart create mode 100644 lib/src/features/browse_center/domain/source/graphql/__generated__/fragment.data.gql.g.dart create mode 100644 lib/src/features/browse_center/domain/source/graphql/__generated__/fragment.req.gql.dart create mode 100644 lib/src/features/browse_center/domain/source/graphql/__generated__/fragment.req.gql.g.dart create mode 100644 lib/src/features/browse_center/domain/source/graphql/__generated__/fragment.var.gql.dart create mode 100644 lib/src/features/browse_center/domain/source/graphql/__generated__/fragment.var.gql.g.dart create mode 100644 lib/src/features/browse_center/domain/source/graphql/fragment.graphql delete mode 100644 lib/src/features/browse_center/domain/source/source_model.freezed.dart delete mode 100644 lib/src/features/browse_center/domain/source/source_model.g.dart create mode 100644 lib/src/features/browse_center/domain/source_preference/graphql/__generated__/fragment.ast.gql.dart create mode 100644 lib/src/features/browse_center/domain/source_preference/graphql/__generated__/fragment.data.gql.dart create mode 100644 lib/src/features/browse_center/domain/source_preference/graphql/__generated__/fragment.data.gql.g.dart create mode 100644 lib/src/features/browse_center/domain/source_preference/graphql/__generated__/fragment.req.gql.dart create mode 100644 lib/src/features/browse_center/domain/source_preference/graphql/__generated__/fragment.req.gql.g.dart create mode 100644 lib/src/features/browse_center/domain/source_preference/graphql/__generated__/fragment.var.gql.dart create mode 100644 lib/src/features/browse_center/domain/source_preference/graphql/__generated__/fragment.var.gql.g.dart create mode 100644 lib/src/features/browse_center/domain/source_preference/graphql/fragment.graphql create mode 100644 lib/src/features/browse_center/domain/source_preference/graphql/source_preference_converter.dart delete mode 100644 lib/src/features/browse_center/domain/source_preference_prop/source_preference_prop.dart delete mode 100644 lib/src/features/browse_center/domain/source_preference_prop/source_preference_prop.freezed.dart delete mode 100644 lib/src/features/browse_center/domain/source_preference_prop/source_preference_prop.g.dart rename lib/src/features/library/data/{category => }/category_repository.dart (53%) rename lib/src/features/library/data/{category => }/category_repository.g.dart (94%) create mode 100644 lib/src/features/library/data/graphql/__generated__/category_query.ast.gql.dart create mode 100644 lib/src/features/library/data/graphql/__generated__/category_query.data.gql.dart create mode 100644 lib/src/features/library/data/graphql/__generated__/category_query.data.gql.g.dart create mode 100644 lib/src/features/library/data/graphql/__generated__/category_query.req.gql.dart create mode 100644 lib/src/features/library/data/graphql/__generated__/category_query.req.gql.g.dart create mode 100644 lib/src/features/library/data/graphql/__generated__/category_query.var.gql.dart create mode 100644 lib/src/features/library/data/graphql/__generated__/category_query.var.gql.g.dart create mode 100644 lib/src/features/library/data/graphql/category_query.dart create mode 100644 lib/src/features/library/data/graphql/category_query.graphql delete mode 100644 lib/src/features/library/domain/category/category_model.freezed.dart delete mode 100644 lib/src/features/library/domain/category/category_model.g.dart create mode 100644 lib/src/features/library/domain/category/graphql/__generated__/fragment.ast.gql.dart create mode 100644 lib/src/features/library/domain/category/graphql/__generated__/fragment.data.gql.dart create mode 100644 lib/src/features/library/domain/category/graphql/__generated__/fragment.data.gql.g.dart create mode 100644 lib/src/features/library/domain/category/graphql/__generated__/fragment.req.gql.dart create mode 100644 lib/src/features/library/domain/category/graphql/__generated__/fragment.req.gql.g.dart create mode 100644 lib/src/features/library/domain/category/graphql/__generated__/fragment.var.gql.dart create mode 100644 lib/src/features/library/domain/category/graphql/__generated__/fragment.var.gql.g.dart create mode 100644 lib/src/features/library/domain/category/graphql/fragment.graphql delete mode 100644 lib/src/features/manga_book/domain/chapter/chapter_model.freezed.dart delete mode 100644 lib/src/features/manga_book/domain/chapter/chapter_model.g.dart create mode 100644 lib/src/features/manga_book/domain/chapter/graphql/__generated__/fragment.ast.gql.dart create mode 100644 lib/src/features/manga_book/domain/chapter/graphql/__generated__/fragment.data.gql.dart create mode 100644 lib/src/features/manga_book/domain/chapter/graphql/__generated__/fragment.data.gql.g.dart create mode 100644 lib/src/features/manga_book/domain/chapter/graphql/__generated__/fragment.req.gql.dart create mode 100644 lib/src/features/manga_book/domain/chapter/graphql/__generated__/fragment.req.gql.g.dart create mode 100644 lib/src/features/manga_book/domain/chapter/graphql/__generated__/fragment.var.gql.dart create mode 100644 lib/src/features/manga_book/domain/chapter/graphql/__generated__/fragment.var.gql.g.dart create mode 100644 lib/src/features/manga_book/domain/chapter/graphql/fragment.graphql delete mode 100644 lib/src/features/manga_book/domain/chapter_page/chapter_page_model.g.dart delete mode 100644 lib/src/features/manga_book/domain/downloads/downloads_model.g.dart delete mode 100644 lib/src/features/manga_book/domain/downloads_queue/downloads_queue_model.g.dart create mode 100644 lib/src/features/manga_book/domain/manga/graphql/__generated__/fragment.ast.gql.dart create mode 100644 lib/src/features/manga_book/domain/manga/graphql/__generated__/fragment.data.gql.dart create mode 100644 lib/src/features/manga_book/domain/manga/graphql/__generated__/fragment.data.gql.g.dart create mode 100644 lib/src/features/manga_book/domain/manga/graphql/__generated__/fragment.req.gql.dart create mode 100644 lib/src/features/manga_book/domain/manga/graphql/__generated__/fragment.req.gql.g.dart create mode 100644 lib/src/features/manga_book/domain/manga/graphql/__generated__/fragment.var.gql.dart create mode 100644 lib/src/features/manga_book/domain/manga/graphql/__generated__/fragment.var.gql.g.dart create mode 100644 lib/src/features/manga_book/domain/manga/graphql/fragment.graphql delete mode 100644 lib/src/features/manga_book/domain/update_status/update_status_model.g.dart create mode 100644 lib/src/features/settings/controller/server_controller.dart create mode 100644 lib/src/features/settings/controller/server_controller.g.dart delete mode 100644 lib/src/features/settings/controller/settings_controller.dart create mode 100644 lib/src/features/settings/domain/automatic_backup_settings/automatic_backup_settings_dto.dart create mode 100644 lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.ast.gql.dart create mode 100644 lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.data.gql.dart create mode 100644 lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.data.gql.g.dart create mode 100644 lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.req.gql.dart create mode 100644 lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.req.gql.g.dart create mode 100644 lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.var.gql.dart create mode 100644 lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.var.gql.g.dart create mode 100644 lib/src/features/settings/domain/automatic_backup_settings/graphql/fragment.graphql delete mode 100644 lib/src/features/settings/domain/automatic_backup_settings_dto.dart delete mode 100644 lib/src/features/settings/domain/automatic_backup_settings_dto.freezed.dart create mode 100644 lib/src/features/settings/domain/browse/browse_settings.dart create mode 100644 lib/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart create mode 100644 lib/src/features/settings/domain/browse/graphql/__generated__/fragment.data.gql.dart create mode 100644 lib/src/features/settings/domain/browse/graphql/__generated__/fragment.data.gql.g.dart create mode 100644 lib/src/features/settings/domain/browse/graphql/__generated__/fragment.req.gql.dart create mode 100644 lib/src/features/settings/domain/browse/graphql/__generated__/fragment.req.gql.g.dart create mode 100644 lib/src/features/settings/domain/browse/graphql/__generated__/fragment.var.gql.dart create mode 100644 lib/src/features/settings/domain/browse/graphql/__generated__/fragment.var.gql.g.dart create mode 100644 lib/src/features/settings/domain/browse/graphql/fragment.graphql create mode 100644 lib/src/features/settings/domain/cloud_flare/cloud_flare.dart create mode 100644 lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart create mode 100644 lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.data.gql.dart create mode 100644 lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.data.gql.g.dart create mode 100644 lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.req.gql.dart create mode 100644 lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.req.gql.g.dart create mode 100644 lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.var.gql.dart create mode 100644 lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.var.gql.g.dart create mode 100644 lib/src/features/settings/domain/cloud_flare/graphql/fragment.graphql create mode 100644 lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart create mode 100644 lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.data.gql.dart create mode 100644 lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.data.gql.g.dart create mode 100644 lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.req.gql.dart create mode 100644 lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.req.gql.g.dart create mode 100644 lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.var.gql.dart create mode 100644 lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.var.gql.g.dart create mode 100644 lib/src/features/settings/domain/misc_settings/graphql/fragment.graphql create mode 100644 lib/src/features/settings/domain/misc_settings/misc_settings.dart delete mode 100644 lib/src/features/settings/domain/restore_status.dart delete mode 100644 lib/src/features/settings/domain/restore_status.freezed.dart delete mode 100644 lib/src/features/settings/domain/restore_status.g.dart create mode 100644 lib/src/features/settings/domain/restore_status/graphql/__generated__/fragment.ast.gql.dart create mode 100644 lib/src/features/settings/domain/restore_status/graphql/__generated__/fragment.data.gql.dart create mode 100644 lib/src/features/settings/domain/restore_status/graphql/__generated__/fragment.data.gql.g.dart create mode 100644 lib/src/features/settings/domain/restore_status/graphql/__generated__/fragment.req.gql.dart create mode 100644 lib/src/features/settings/domain/restore_status/graphql/__generated__/fragment.req.gql.g.dart create mode 100644 lib/src/features/settings/domain/restore_status/graphql/__generated__/fragment.var.gql.dart create mode 100644 lib/src/features/settings/domain/restore_status/graphql/__generated__/fragment.var.gql.g.dart create mode 100644 lib/src/features/settings/domain/restore_status/graphql/fragment.graphql create mode 100644 lib/src/features/settings/domain/restore_status/restore_status.dart create mode 100644 lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart create mode 100644 lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.data.gql.dart create mode 100644 lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.data.gql.g.dart create mode 100644 lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.req.gql.dart create mode 100644 lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.req.gql.g.dart create mode 100644 lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.var.gql.dart create mode 100644 lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.var.gql.g.dart create mode 100644 lib/src/features/settings/domain/server_binding/graphql/fragment.graphql create mode 100644 lib/src/features/settings/domain/server_binding/server_binding.dart create mode 100644 lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart create mode 100644 lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.data.gql.dart create mode 100644 lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.data.gql.g.dart create mode 100644 lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.req.gql.dart create mode 100644 lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.req.gql.g.dart create mode 100644 lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.var.gql.dart create mode 100644 lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.var.gql.g.dart create mode 100644 lib/src/features/settings/domain/socks_proxy/graphql/fragment.graphql create mode 100644 lib/src/features/settings/domain/socks_proxy/socks_proxy.dart delete mode 100644 lib/src/features/settings/enums/restore_state.dart rename lib/src/features/settings/presentation/appearance/widgets/{grid_cover_min_width.dart => grid_cover_width_slider/grid_cover_width_slider.dart} (73%) rename lib/src/features/settings/presentation/appearance/widgets/{grid_cover_min_width.g.dart => grid_cover_width_slider/grid_cover_width_slider.g.dart} (95%) delete mode 100644 lib/src/features/settings/presentation/backup/automatic_backup/automatic_backup_section.dart create mode 100644 lib/src/features/settings/presentation/backup/controllers/backup_controller.dart rename lib/src/features/settings/{controller/settings_controller.g.dart => presentation/backup/controllers/backup_controller.g.dart} (85%) create mode 100644 lib/src/features/settings/presentation/backup/data/backup_settings_repository.dart create mode 100644 lib/src/features/settings/presentation/backup/data/backup_settings_repository.g.dart create mode 100644 lib/src/features/settings/presentation/backup/data/graphql/__generated__/backup_settings_query.ast.gql.dart create mode 100644 lib/src/features/settings/presentation/backup/data/graphql/__generated__/backup_settings_query.data.gql.dart create mode 100644 lib/src/features/settings/presentation/backup/data/graphql/__generated__/backup_settings_query.data.gql.g.dart create mode 100644 lib/src/features/settings/presentation/backup/data/graphql/__generated__/backup_settings_query.req.gql.dart create mode 100644 lib/src/features/settings/presentation/backup/data/graphql/__generated__/backup_settings_query.req.gql.g.dart create mode 100644 lib/src/features/settings/presentation/backup/data/graphql/__generated__/backup_settings_query.var.gql.dart create mode 100644 lib/src/features/settings/presentation/backup/data/graphql/__generated__/backup_settings_query.var.gql.g.dart create mode 100644 lib/src/features/settings/presentation/backup/data/graphql/backup_settings_query.dart create mode 100644 lib/src/features/settings/presentation/backup/data/graphql/backup_settings_query.graphql create mode 100644 lib/src/features/settings/presentation/backup/widgets/automatic_backup/automatic_backup_section.dart rename lib/src/features/settings/presentation/backup/{ => widgets}/backup_and_restore/backup_and_restore_section.dart (78%) rename lib/src/features/settings/presentation/backup/{ => widgets}/backup_and_restore/widgets/backup_missing_dialog.dart (90%) rename lib/src/features/settings/presentation/backup/{ => widgets}/backup_and_restore/widgets/create_backup_dialog.dart (74%) rename lib/src/features/settings/presentation/backup/{ => widgets}/backup_and_restore/widgets/restore_status_progress.dart (82%) create mode 100644 lib/src/features/settings/presentation/browse/data/browse_settings_repository.dart create mode 100644 lib/src/features/settings/presentation/browse/data/browse_settings_repository.g.dart create mode 100644 lib/src/features/settings/presentation/browse/data/graphql/__generated__/browse_settings_query.ast.gql.dart create mode 100644 lib/src/features/settings/presentation/browse/data/graphql/__generated__/browse_settings_query.data.gql.dart create mode 100644 lib/src/features/settings/presentation/browse/data/graphql/__generated__/browse_settings_query.data.gql.g.dart create mode 100644 lib/src/features/settings/presentation/browse/data/graphql/__generated__/browse_settings_query.req.gql.dart create mode 100644 lib/src/features/settings/presentation/browse/data/graphql/__generated__/browse_settings_query.req.gql.g.dart create mode 100644 lib/src/features/settings/presentation/browse/data/graphql/__generated__/browse_settings_query.var.gql.dart create mode 100644 lib/src/features/settings/presentation/browse/data/graphql/__generated__/browse_settings_query.var.gql.g.dart create mode 100644 lib/src/features/settings/presentation/browse/data/graphql/browse_settings_query.dart create mode 100644 lib/src/features/settings/presentation/browse/data/graphql/browse_settings_query.graphql create mode 100644 lib/src/features/settings/presentation/browse/widgets/extension_repository/extension_repository_screen.dart create mode 100644 lib/src/features/settings/presentation/extension_repository/extension_repository_screen.dart create mode 100644 lib/src/features/settings/presentation/server/data/graphql/__generated__/server_settings_query.ast.gql.dart create mode 100644 lib/src/features/settings/presentation/server/data/graphql/__generated__/server_settings_query.data.gql.dart create mode 100644 lib/src/features/settings/presentation/server/data/graphql/__generated__/server_settings_query.data.gql.g.dart create mode 100644 lib/src/features/settings/presentation/server/data/graphql/__generated__/server_settings_query.req.gql.dart create mode 100644 lib/src/features/settings/presentation/server/data/graphql/__generated__/server_settings_query.req.gql.g.dart create mode 100644 lib/src/features/settings/presentation/server/data/graphql/__generated__/server_settings_query.var.gql.dart create mode 100644 lib/src/features/settings/presentation/server/data/graphql/__generated__/server_settings_query.var.gql.g.dart create mode 100644 lib/src/features/settings/presentation/server/data/graphql/server_settings_query.dart create mode 100644 lib/src/features/settings/presentation/server/data/graphql/server_settings_query.graphql create mode 100644 lib/src/features/settings/presentation/server/data/server_settings_repository.dart create mode 100644 lib/src/features/settings/presentation/server/data/server_settings_repository.g.dart rename lib/src/features/settings/presentation/server/widget/{ => authentication/auth_type}/auth_type_tile.dart (82%) create mode 100644 lib/src/features/settings/presentation/server/widget/authentication/authentication_section.dart create mode 100644 lib/src/features/settings/presentation/server/widget/client/client_section.dart create mode 100644 lib/src/features/settings/presentation/server/widget/client/server_port_tile/server_port_tile.dart rename lib/src/features/settings/{widgets => presentation/server/widget/client}/server_port_tile/server_port_tile.g.dart (100%) rename lib/src/features/settings/{widgets => presentation/server/widget/client}/server_url_tile/server_search_button.dart (85%) create mode 100644 lib/src/features/settings/presentation/server/widget/client/server_url_tile/server_url_tile.dart rename lib/src/features/settings/{widgets => presentation/server/widget/client}/server_url_tile/server_url_tile.g.dart (100%) create mode 100644 lib/src/features/settings/presentation/server/widget/cloud_flare/cloud_flare_section.dart create mode 100644 lib/src/features/settings/presentation/server/widget/misc_settings/misc_settings_section.dart create mode 100644 lib/src/features/settings/presentation/server/widget/server_binding/server_binding_section.dart create mode 100644 lib/src/features/settings/presentation/server/widget/socks_proxy/socks_proxy_section.dart delete mode 100644 lib/src/features/settings/widgets/server_port_tile/server_port_tile.dart delete mode 100644 lib/src/features/settings/widgets/server_url_tile/server_url_tile.dart create mode 100644 lib/src/graphql/__generated__/fragments.ast.gql.dart create mode 100644 lib/src/graphql/__generated__/fragments.data.gql.dart create mode 100644 lib/src/graphql/__generated__/fragments.data.gql.g.dart create mode 100644 lib/src/graphql/__generated__/fragments.req.gql.dart create mode 100644 lib/src/graphql/__generated__/fragments.req.gql.g.dart create mode 100644 lib/src/graphql/__generated__/fragments.var.gql.dart create mode 100644 lib/src/graphql/__generated__/fragments.var.gql.g.dart create mode 100644 lib/src/graphql/fragments.graphql create mode 100644 lib/src/routes/sub_routes/browser_routes.dart create mode 100644 lib/src/routes/sub_routes/common_routes.dart create mode 100644 lib/src/routes/sub_routes/downloads_routes.dart create mode 100644 lib/src/routes/sub_routes/library_routes.dart create mode 100644 lib/src/routes/sub_routes/more_routes.dart create mode 100644 lib/src/routes/sub_routes/updates_routes.dart create mode 100644 lib/src/utils/misc/number_range_formatter.dart create mode 100644 lib/src/widgets/input_popup/domain/input_popup_type.dart create mode 100644 lib/src/widgets/input_popup/domain/input_popup_type.freezed.dart create mode 100644 lib/src/widgets/input_popup/input_popup.dart create mode 100644 lib/src/widgets/number_picker/number_picker.dart create mode 100644 lib/src/widgets/number_picker/number_picker_with_label.dart rename lib/src/widgets/shell/{shell_screen.dart => navigation_shell_screen.dart} (73%) create mode 100644 scripts/tachidesk-sorayomi-arm64.wxs diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fb7952fe..7b137161 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -38,6 +38,9 @@ jobs: - os: windows-latest target: windows build_path: build\windows\x64\runner\Release + - os: windows-latest + target: windows-arm64 + build_path: build\windows\arm64\runner\Release steps: - uses: subosito/flutter-action@v2 @@ -104,6 +107,15 @@ jobs: Copy-Item (vswhere -latest -find 'VC\Redist\MSVC\*\x64\*\vcruntime140.dll') . Copy-Item (vswhere -latest -find 'VC\Redist\MSVC\*\x64\*\vcruntime140_1.dll') . + # Windows packaging + - name: Copy VC redistributables to release directory for Windows + if: matrix.target == 'windows-arm64' + working-directory: ${{ matrix.build_path }} + run: | + Copy-Item (vswhere -latest -find 'VC\Redist\MSVC\*\arm64\*\msvcp140.dll') . + Copy-Item (vswhere -latest -find 'VC\Redist\MSVC\*\arm64\*\vcruntime140.dll') . + Copy-Item (vswhere -latest -find 'VC\Redist\MSVC\*\arm64\*\vcruntime140_1.dll') . + # Android packaging - name: Rename build for Android if: matrix.target == 'android' @@ -161,7 +173,7 @@ jobs: - name: Compress build for macOS if: matrix.target == 'macos' working-directory: ${{ matrix.build_path }} - run: ditto -c -k --sequesterRsrc --keepParent "Tachidesk Sorayomi.app" "$GITHUB_WORKSPACE/${{ env.pkg_name }}-${{ github.ref_name }}-${{ matrix.target }}-x64.zip" + run: ditto -c -k --sequesterRsrc --keepParent "Sorayomi.app" "$GITHUB_WORKSPACE/${{ env.pkg_name }}-${{ github.ref_name }}-${{ matrix.target }}-x64.zip" # Windows packaging - name: Compress build for Windows @@ -169,6 +181,12 @@ jobs: working-directory: ${{ matrix.build_path }} run: compress-archive -Path * -DestinationPath "${env:GITHUB_WORKSPACE}\${{ env.pkg_name }}-${{ github.ref_name }}-${{ matrix.target }}-x64.zip" + # Windows packaging + - name: Compress build for Windows + if: matrix.target == 'windows' + working-directory: ${{ matrix.build_path }} + run: compress-archive -Path * -DestinationPath "${env:GITHUB_WORKSPACE}\${{ env.pkg_name }}-${{ github.ref_name }}-${{ matrix.target }}-arm64.zip" + - name: Create MSI Package if: matrix.target == 'windows' && startsWith(github.ref, 'refs/tags/') working-directory: ${{ matrix.build_path }} @@ -182,6 +200,19 @@ jobs: light -b data "${{ env.pkg_name }}-x64.wixobj" data.wixobj -o "${{ env.pkg_name }}-${{ github.ref_name }}-${{ matrix.target }}-x64.msi" Move-Item "${{ env.pkg_name }}-${{ github.ref_name }}-${{ matrix.target }}-x64.msi" "${env:GITHUB_WORKSPACE}" + - name: Create arm64 MSI Package + if: matrix.target == 'windows-arm64' && startsWith(github.ref, 'refs/tags/') + working-directory: ${{ matrix.build_path }} + run: | + $env:Path += ";C:\Program Files (x86)\WiX Toolset v3.11\bin" + $upgradeCode = [guid]::NewGuid().Guid + Copy-Item "${env:GITHUB_WORKSPACE}\scripts\${{ env.pkg_name }}-arm64.wxs" . + Copy-Item "${env:GITHUB_WORKSPACE}\assets\icons\launcher\sorayomi_icon.ico" . + heat dir data -cg data -dr data -sreg -sfrag -gg -o data.wxs + candle -arch arm64 -dVersion="${{ github.ref_name }}" -dUpgradeCode="$upgradeCode" -dIcon="sorayomi_icon.ico" "${{ env.pkg_name }}-arm64.wxs" data.wxs + light -b data "${{ env.pkg_name }}-arm64.wixobj" data.wixobj -o "${{ env.pkg_name }}-${{ github.ref_name }}-${{ matrix.target }}-arm64.msi" + Move-Item "${{ env.pkg_name }}-${{ github.ref_name }}-${{ matrix.target }}-arm64.msi" "${env:GITHUB_WORKSPACE}" + - name: Add packaged build to release draft uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') diff --git a/.vscode/settings.json b/.vscode/settings.json index 6331c984..b781eac2 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -16,6 +16,7 @@ "reddy", "Scanlator", "scanlators", + "Solverr", "sublist", "suwayomi", "tachidesk", diff --git a/README.md b/README.md index 384553fc..dafafb9d 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@

- Tachidesk Sorayomi logo + Sorayomi logo

-

Tachidesk Sorayomi

+

Sorayomi

diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 6cb2f6af..87f10f84 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -2,7 +2,7 @@ package="com.suwayomi.tachidesk_sorayomi"> CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleDisplayName - Tachidesk Sorayomi + Sorayomi CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier diff --git a/lib/main.dart b/lib/main.dart index 26baf9cb..68b5cf85 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -54,7 +54,6 @@ Future main() async { SystemChrome.setPreferredOrientations(DeviceOrientation.values); GoRouter.optionURLReflectsImperativeAPIs = true; - runApp( ProviderScope( overrides: [ diff --git a/lib/src/constants/app_sizes.dart b/lib/src/constants/app_sizes.dart index b3cef0c7..803ceb89 100644 --- a/lib/src/constants/app_sizes.dart +++ b/lib/src/constants/app_sizes.dart @@ -12,7 +12,7 @@ import 'app_constants.dart'; import 'db_keys.dart'; const kTabSize = Size.fromHeight(kAppBarBottomHeight); -const kAppBarBottomHeight = 64.0; +const kAppBarBottomHeight = 46.0; const kDrawerWidth = 384.0; Size kCalculateAppBarBottomSize(List checks) { diff --git a/lib/src/constants/enum.dart b/lib/src/constants/enum.dart index b5d366ec..4abe18b7 100644 --- a/lib/src/constants/enum.dart +++ b/lib/src/constants/enum.dart @@ -5,7 +5,9 @@ // file, You can obtain one at http://mozilla.org/MPL/2.0/. import 'package:flutter/material.dart'; +import 'package:freezed_annotation/freezed_annotation.dart'; +import '../abstracts/value_enum.dart'; import '../utils/extensions/custom_extensions.dart'; enum AuthType { @@ -71,14 +73,12 @@ enum ReaderNavigationLayout { enum MangaSort { alphabetical, dateAdded, - unread, - lastRead; + unread; String toLocale(BuildContext context) => switch (this) { MangaSort.alphabetical => context.l10n.mangaSortAlphabetical, MangaSort.dateAdded => context.l10n.mangaSortDateAdded, MangaSort.unread => context.l10n.mangaSortUnread, - MangaSort.lastRead => context.l10n.mangaSortLastRead }; } @@ -166,3 +166,15 @@ enum SourceType { SourceType.filter => context.l10n.sourceTypeFilter }; } + +@JsonEnum(valueField: 'value') +enum IncludeOrExclude implements ValueEnum { + include("INCLUDE"), + exclude("EXCLUDE"), + unset("UNSET"); + + const IncludeOrExclude(this.value); + + @override + final String value; +} diff --git a/lib/src/constants/navigation_bar_data.dart b/lib/src/constants/navigation_bar_data.dart index dbb845d1..62d9f0c5 100644 --- a/lib/src/constants/navigation_bar_data.dart +++ b/lib/src/constants/navigation_bar_data.dart @@ -6,65 +6,43 @@ import 'package:flutter/material.dart'; -import '../routes/router_config.dart'; import '../utils/extensions/custom_extensions.dart'; class NavigationBarData { final String Function(BuildContext context) label; - final ValueSetter go; final IconData icon; final IconData activeIcon; - final List activeOn; - - static int indexWherePathOrZero(path) { - final index = navList - .indexWhere((e) => e.activeOn.any((element) => path.contains(element))); - return index > 0 ? index : 0; - } - static final navList = [ NavigationBarData( icon: Icons.collections_bookmark_outlined, activeIcon: Icons.collections_bookmark_rounded, label: (context) => context.l10n.library, - go: const LibraryRoute().go, - activeOn: [const LibraryRoute().location], ), NavigationBarData( icon: Icons.new_releases_outlined, activeIcon: Icons.new_releases_rounded, label: (context) => context.l10n.updates, - go: const UpdatesRoute().go, - activeOn: [const UpdatesRoute().location], ), NavigationBarData( icon: Icons.explore_outlined, activeIcon: Icons.explore_rounded, label: (context) => context.l10n.browse, - go: const BrowseRoute().go, - activeOn: [const BrowseRoute().location], ), NavigationBarData( icon: Icons.download_outlined, activeIcon: Icons.download_rounded, label: (context) => context.l10n.downloads, - go: const DownloadsRoute().go, - activeOn: [const DownloadsRoute().location], ), NavigationBarData( icon: Icons.more_horiz_outlined, activeIcon: Icons.more_horiz_rounded, label: (context) => context.l10n.more, - go: const MoreRoute().go, - activeOn: [const MoreRoute().location, const SettingsRoute().location], ), ]; NavigationBarData({ required this.label, - required this.go, required this.icon, required this.activeIcon, - required this.activeOn, }); } diff --git a/lib/src/constants/urls.dart b/lib/src/constants/urls.dart index f42fcee9..6c5c920d 100644 --- a/lib/src/constants/urls.dart +++ b/lib/src/constants/urls.dart @@ -15,7 +15,10 @@ enum AppUrls { sorayomiLatestReleaseApiUrl( url: "https://api.github.com/repos/Suwayomi/Tachidesk-Sorayomi/releases/latest", - ); + ), + flareSolverr( + url: + "https://github.com/FlareSolverr/FlareSolverr?tab=readme-ov-file#installation"); const AppUrls({required this.url}); diff --git a/lib/src/domain/meta_data.dart b/lib/src/domain/meta_data.dart new file mode 100644 index 00000000..6db7721d --- /dev/null +++ b/lib/src/domain/meta_data.dart @@ -0,0 +1,15 @@ +import 'package:freezed_annotation/freezed_annotation.dart'; + +part 'meta_data.freezed.dart'; +part 'meta_data.g.dart'; + +@freezed +class MetaData with _$MetaData { + factory MetaData({ + String? key, + String? value, + }) = _MetaData; + + factory MetaData.fromJson(Map json) => + _$MetaDataFromJson(json); +} diff --git a/lib/src/domain/meta_data.freezed.dart b/lib/src/domain/meta_data.freezed.dart new file mode 100644 index 00000000..201738dd --- /dev/null +++ b/lib/src/domain/meta_data.freezed.dart @@ -0,0 +1,166 @@ +// coverage:ignore-file +// GENERATED CODE - DO NOT MODIFY BY HAND +// 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 'meta_data.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +T _$identity(T value) => value; + +final _privateConstructorUsedError = UnsupportedError( + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); + +MetaData _$MetaDataFromJson(Map json) { + return _MetaData.fromJson(json); +} + +/// @nodoc +mixin _$MetaData { + String? get key => throw _privateConstructorUsedError; + String? get value => throw _privateConstructorUsedError; + + Map toJson() => throw _privateConstructorUsedError; + @JsonKey(ignore: true) + $MetaDataCopyWith get copyWith => + throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class $MetaDataCopyWith<$Res> { + factory $MetaDataCopyWith(MetaData value, $Res Function(MetaData) then) = + _$MetaDataCopyWithImpl<$Res, MetaData>; + @useResult + $Res call({String? key, String? value}); +} + +/// @nodoc +class _$MetaDataCopyWithImpl<$Res, $Val extends MetaData> + implements $MetaDataCopyWith<$Res> { + _$MetaDataCopyWithImpl(this._value, this._then); + + // ignore: unused_field + final $Val _value; + // ignore: unused_field + final $Res Function($Val) _then; + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? key = freezed, + Object? value = freezed, + }) { + return _then(_value.copyWith( + key: freezed == key + ? _value.key + : key // ignore: cast_nullable_to_non_nullable + as String?, + value: freezed == value + ? _value.value + : value // ignore: cast_nullable_to_non_nullable + as String?, + ) as $Val); + } +} + +/// @nodoc +abstract class _$$MetaDataImplCopyWith<$Res> + implements $MetaDataCopyWith<$Res> { + factory _$$MetaDataImplCopyWith( + _$MetaDataImpl value, $Res Function(_$MetaDataImpl) then) = + __$$MetaDataImplCopyWithImpl<$Res>; + @override + @useResult + $Res call({String? key, String? value}); +} + +/// @nodoc +class __$$MetaDataImplCopyWithImpl<$Res> + extends _$MetaDataCopyWithImpl<$Res, _$MetaDataImpl> + implements _$$MetaDataImplCopyWith<$Res> { + __$$MetaDataImplCopyWithImpl( + _$MetaDataImpl _value, $Res Function(_$MetaDataImpl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? key = freezed, + Object? value = freezed, + }) { + return _then(_$MetaDataImpl( + key: freezed == key + ? _value.key + : key // ignore: cast_nullable_to_non_nullable + as String?, + value: freezed == value + ? _value.value + : value // ignore: cast_nullable_to_non_nullable + as String?, + )); + } +} + +/// @nodoc +@JsonSerializable() +class _$MetaDataImpl implements _MetaData { + _$MetaDataImpl({this.key, this.value}); + + factory _$MetaDataImpl.fromJson(Map json) => + _$$MetaDataImplFromJson(json); + + @override + final String? key; + @override + final String? value; + + @override + String toString() { + return 'MetaData(key: $key, value: $value)'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$MetaDataImpl && + (identical(other.key, key) || other.key == key) && + (identical(other.value, value) || other.value == value)); + } + + @JsonKey(ignore: true) + @override + int get hashCode => Object.hash(runtimeType, key, value); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$MetaDataImplCopyWith<_$MetaDataImpl> get copyWith => + __$$MetaDataImplCopyWithImpl<_$MetaDataImpl>(this, _$identity); + + @override + Map toJson() { + return _$$MetaDataImplToJson( + this, + ); + } +} + +abstract class _MetaData implements MetaData { + factory _MetaData({final String? key, final String? value}) = _$MetaDataImpl; + + factory _MetaData.fromJson(Map json) = + _$MetaDataImpl.fromJson; + + @override + String? get key; + @override + String? get value; + @override + @JsonKey(ignore: true) + _$$MetaDataImplCopyWith<_$MetaDataImpl> get copyWith => + throw _privateConstructorUsedError; +} diff --git a/lib/src/domain/meta_data.g.dart b/lib/src/domain/meta_data.g.dart new file mode 100644 index 00000000..c767db2e --- /dev/null +++ b/lib/src/domain/meta_data.g.dart @@ -0,0 +1,19 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'meta_data.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +_$MetaDataImpl _$$MetaDataImplFromJson(Map json) => + _$MetaDataImpl( + key: json['key'] as String?, + value: json['value'] as String?, + ); + +Map _$$MetaDataImplToJson(_$MetaDataImpl instance) => + { + 'key': instance.key, + 'value': instance.value, + }; diff --git a/lib/src/domain/page.dart b/lib/src/domain/page.dart new file mode 100644 index 00000000..7f457307 --- /dev/null +++ b/lib/src/domain/page.dart @@ -0,0 +1,26 @@ +import 'package:freezed_annotation/freezed_annotation.dart'; + +import 'page_info.dart'; + +part 'page.freezed.dart'; + +@freezed +class Page with _$Page { + Page._(); + factory Page({ + List? nodes, + PageInfo? pageInfo, + int? totalCount, + }) = _Page; + + Page appendPage(Page newPage) { + return copyWith( + nodes: [...?nodes, ...?newPage.nodes], + pageInfo: pageInfo?.copyWith( + endCursor: newPage.pageInfo?.endCursor ?? pageInfo?.endCursor, + hasNextPage: newPage.pageInfo?.hasNextPage ?? pageInfo?.hasNextPage, + ), + totalCount: newPage.totalCount ?? totalCount, + ); + } +} diff --git a/lib/src/domain/page.freezed.dart b/lib/src/domain/page.freezed.dart new file mode 100644 index 00000000..39bf99ff --- /dev/null +++ b/lib/src/domain/page.freezed.dart @@ -0,0 +1,195 @@ +// coverage:ignore-file +// GENERATED CODE - DO NOT MODIFY BY HAND +// 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 'page.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +T _$identity(T value) => value; + +final _privateConstructorUsedError = UnsupportedError( + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); + +/// @nodoc +mixin _$Page { + List? get nodes => throw _privateConstructorUsedError; + PageInfo? get pageInfo => throw _privateConstructorUsedError; + int? get totalCount => throw _privateConstructorUsedError; + + @JsonKey(ignore: true) + $PageCopyWith> get copyWith => throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class $PageCopyWith { + factory $PageCopyWith(Page value, $Res Function(Page) then) = + _$PageCopyWithImpl>; + @useResult + $Res call({List? nodes, PageInfo? pageInfo, int? totalCount}); + + $PageInfoCopyWith<$Res>? get pageInfo; +} + +/// @nodoc +class _$PageCopyWithImpl> + implements $PageCopyWith { + _$PageCopyWithImpl(this._value, this._then); + + // ignore: unused_field + final $Val _value; + // ignore: unused_field + final $Res Function($Val) _then; + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? nodes = freezed, + Object? pageInfo = freezed, + Object? totalCount = freezed, + }) { + return _then(_value.copyWith( + nodes: freezed == nodes + ? _value.nodes + : nodes // ignore: cast_nullable_to_non_nullable + as List?, + pageInfo: freezed == pageInfo + ? _value.pageInfo + : pageInfo // ignore: cast_nullable_to_non_nullable + as PageInfo?, + totalCount: freezed == totalCount + ? _value.totalCount + : totalCount // ignore: cast_nullable_to_non_nullable + as int?, + ) as $Val); + } + + @override + @pragma('vm:prefer-inline') + $PageInfoCopyWith<$Res>? get pageInfo { + if (_value.pageInfo == null) { + return null; + } + + return $PageInfoCopyWith<$Res>(_value.pageInfo!, (value) { + return _then(_value.copyWith(pageInfo: value) as $Val); + }); + } +} + +/// @nodoc +abstract class _$$PageImplCopyWith implements $PageCopyWith { + factory _$$PageImplCopyWith( + _$PageImpl value, $Res Function(_$PageImpl) then) = + __$$PageImplCopyWithImpl; + @override + @useResult + $Res call({List? nodes, PageInfo? pageInfo, int? totalCount}); + + @override + $PageInfoCopyWith<$Res>? get pageInfo; +} + +/// @nodoc +class __$$PageImplCopyWithImpl + extends _$PageCopyWithImpl> + implements _$$PageImplCopyWith { + __$$PageImplCopyWithImpl( + _$PageImpl _value, $Res Function(_$PageImpl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? nodes = freezed, + Object? pageInfo = freezed, + Object? totalCount = freezed, + }) { + return _then(_$PageImpl( + nodes: freezed == nodes + ? _value._nodes + : nodes // ignore: cast_nullable_to_non_nullable + as List?, + pageInfo: freezed == pageInfo + ? _value.pageInfo + : pageInfo // ignore: cast_nullable_to_non_nullable + as PageInfo?, + totalCount: freezed == totalCount + ? _value.totalCount + : totalCount // ignore: cast_nullable_to_non_nullable + as int?, + )); + } +} + +/// @nodoc + +class _$PageImpl extends _Page { + _$PageImpl({final List? nodes, this.pageInfo, this.totalCount}) + : _nodes = nodes, + super._(); + + final List? _nodes; + @override + List? get nodes { + final value = _nodes; + if (value == null) return null; + if (_nodes is EqualUnmodifiableListView) return _nodes; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); + } + + @override + final PageInfo? pageInfo; + @override + final int? totalCount; + + @override + String toString() { + return 'Page<$T>(nodes: $nodes, pageInfo: $pageInfo, totalCount: $totalCount)'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$PageImpl && + const DeepCollectionEquality().equals(other._nodes, _nodes) && + (identical(other.pageInfo, pageInfo) || + other.pageInfo == pageInfo) && + (identical(other.totalCount, totalCount) || + other.totalCount == totalCount)); + } + + @override + int get hashCode => Object.hash(runtimeType, + const DeepCollectionEquality().hash(_nodes), pageInfo, totalCount); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$PageImplCopyWith> get copyWith => + __$$PageImplCopyWithImpl>(this, _$identity); +} + +abstract class _Page extends Page { + factory _Page( + {final List? nodes, + final PageInfo? pageInfo, + final int? totalCount}) = _$PageImpl; + _Page._() : super._(); + + @override + List? get nodes; + @override + PageInfo? get pageInfo; + @override + int? get totalCount; + @override + @JsonKey(ignore: true) + _$$PageImplCopyWith> get copyWith => + throw _privateConstructorUsedError; +} diff --git a/lib/src/domain/page_info.dart b/lib/src/domain/page_info.dart new file mode 100644 index 00000000..56ed99a7 --- /dev/null +++ b/lib/src/domain/page_info.dart @@ -0,0 +1,13 @@ +import 'package:freezed_annotation/freezed_annotation.dart'; + +part 'page_info.freezed.dart'; + +@freezed +class PageInfo with _$PageInfo { + factory PageInfo({ + String? endCursor, + bool? hasNextPage, + bool? hasPreviousPage, + String? startCursor, + }) = _PageInfo; +} diff --git a/lib/src/domain/page_info.freezed.dart b/lib/src/domain/page_info.freezed.dart new file mode 100644 index 00000000..d4ca11d9 --- /dev/null +++ b/lib/src/domain/page_info.freezed.dart @@ -0,0 +1,200 @@ +// coverage:ignore-file +// GENERATED CODE - DO NOT MODIFY BY HAND +// 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 'page_info.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +T _$identity(T value) => value; + +final _privateConstructorUsedError = UnsupportedError( + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); + +/// @nodoc +mixin _$PageInfo { + String? get endCursor => throw _privateConstructorUsedError; + bool? get hasNextPage => throw _privateConstructorUsedError; + bool? get hasPreviousPage => throw _privateConstructorUsedError; + String? get startCursor => throw _privateConstructorUsedError; + + @JsonKey(ignore: true) + $PageInfoCopyWith get copyWith => + throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class $PageInfoCopyWith<$Res> { + factory $PageInfoCopyWith(PageInfo value, $Res Function(PageInfo) then) = + _$PageInfoCopyWithImpl<$Res, PageInfo>; + @useResult + $Res call( + {String? endCursor, + bool? hasNextPage, + bool? hasPreviousPage, + String? startCursor}); +} + +/// @nodoc +class _$PageInfoCopyWithImpl<$Res, $Val extends PageInfo> + implements $PageInfoCopyWith<$Res> { + _$PageInfoCopyWithImpl(this._value, this._then); + + // ignore: unused_field + final $Val _value; + // ignore: unused_field + final $Res Function($Val) _then; + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? endCursor = freezed, + Object? hasNextPage = freezed, + Object? hasPreviousPage = freezed, + Object? startCursor = freezed, + }) { + return _then(_value.copyWith( + endCursor: freezed == endCursor + ? _value.endCursor + : endCursor // ignore: cast_nullable_to_non_nullable + as String?, + hasNextPage: freezed == hasNextPage + ? _value.hasNextPage + : hasNextPage // ignore: cast_nullable_to_non_nullable + as bool?, + hasPreviousPage: freezed == hasPreviousPage + ? _value.hasPreviousPage + : hasPreviousPage // ignore: cast_nullable_to_non_nullable + as bool?, + startCursor: freezed == startCursor + ? _value.startCursor + : startCursor // ignore: cast_nullable_to_non_nullable + as String?, + ) as $Val); + } +} + +/// @nodoc +abstract class _$$PageInfoImplCopyWith<$Res> + implements $PageInfoCopyWith<$Res> { + factory _$$PageInfoImplCopyWith( + _$PageInfoImpl value, $Res Function(_$PageInfoImpl) then) = + __$$PageInfoImplCopyWithImpl<$Res>; + @override + @useResult + $Res call( + {String? endCursor, + bool? hasNextPage, + bool? hasPreviousPage, + String? startCursor}); +} + +/// @nodoc +class __$$PageInfoImplCopyWithImpl<$Res> + extends _$PageInfoCopyWithImpl<$Res, _$PageInfoImpl> + implements _$$PageInfoImplCopyWith<$Res> { + __$$PageInfoImplCopyWithImpl( + _$PageInfoImpl _value, $Res Function(_$PageInfoImpl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? endCursor = freezed, + Object? hasNextPage = freezed, + Object? hasPreviousPage = freezed, + Object? startCursor = freezed, + }) { + return _then(_$PageInfoImpl( + endCursor: freezed == endCursor + ? _value.endCursor + : endCursor // ignore: cast_nullable_to_non_nullable + as String?, + hasNextPage: freezed == hasNextPage + ? _value.hasNextPage + : hasNextPage // ignore: cast_nullable_to_non_nullable + as bool?, + hasPreviousPage: freezed == hasPreviousPage + ? _value.hasPreviousPage + : hasPreviousPage // ignore: cast_nullable_to_non_nullable + as bool?, + startCursor: freezed == startCursor + ? _value.startCursor + : startCursor // ignore: cast_nullable_to_non_nullable + as String?, + )); + } +} + +/// @nodoc + +class _$PageInfoImpl implements _PageInfo { + _$PageInfoImpl( + {this.endCursor, + this.hasNextPage, + this.hasPreviousPage, + this.startCursor}); + + @override + final String? endCursor; + @override + final bool? hasNextPage; + @override + final bool? hasPreviousPage; + @override + final String? startCursor; + + @override + String toString() { + return 'PageInfo(endCursor: $endCursor, hasNextPage: $hasNextPage, hasPreviousPage: $hasPreviousPage, startCursor: $startCursor)'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$PageInfoImpl && + (identical(other.endCursor, endCursor) || + other.endCursor == endCursor) && + (identical(other.hasNextPage, hasNextPage) || + other.hasNextPage == hasNextPage) && + (identical(other.hasPreviousPage, hasPreviousPage) || + other.hasPreviousPage == hasPreviousPage) && + (identical(other.startCursor, startCursor) || + other.startCursor == startCursor)); + } + + @override + int get hashCode => Object.hash( + runtimeType, endCursor, hasNextPage, hasPreviousPage, startCursor); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$PageInfoImplCopyWith<_$PageInfoImpl> get copyWith => + __$$PageInfoImplCopyWithImpl<_$PageInfoImpl>(this, _$identity); +} + +abstract class _PageInfo implements PageInfo { + factory _PageInfo( + {final String? endCursor, + final bool? hasNextPage, + final bool? hasPreviousPage, + final String? startCursor}) = _$PageInfoImpl; + + @override + String? get endCursor; + @override + bool? get hasNextPage; + @override + bool? get hasPreviousPage; + @override + String? get startCursor; + @override + @JsonKey(ignore: true) + _$$PageInfoImplCopyWith<_$PageInfoImpl> get copyWith => + throw _privateConstructorUsedError; +} diff --git a/lib/src/domain/page_request.dart b/lib/src/domain/page_request.dart new file mode 100644 index 00000000..98134075 --- /dev/null +++ b/lib/src/domain/page_request.dart @@ -0,0 +1,15 @@ +import 'package:freezed_annotation/freezed_annotation.dart'; + +part 'page_request.freezed.dart'; + +@freezed +class PageRequest with _$PageRequest { + factory PageRequest({ + required int page, + @Default(10) int size, + }) = _PageRequest; + + const PageRequest._(); + + int get offset => page * size; +} diff --git a/lib/src/domain/page_request.freezed.dart b/lib/src/domain/page_request.freezed.dart new file mode 100644 index 00000000..d604600a --- /dev/null +++ b/lib/src/domain/page_request.freezed.dart @@ -0,0 +1,151 @@ +// coverage:ignore-file +// GENERATED CODE - DO NOT MODIFY BY HAND +// 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 'page_request.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +T _$identity(T value) => value; + +final _privateConstructorUsedError = UnsupportedError( + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); + +/// @nodoc +mixin _$PageRequest { + int get page => throw _privateConstructorUsedError; + int get size => throw _privateConstructorUsedError; + + @JsonKey(ignore: true) + $PageRequestCopyWith get copyWith => + throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class $PageRequestCopyWith<$Res> { + factory $PageRequestCopyWith( + PageRequest value, $Res Function(PageRequest) then) = + _$PageRequestCopyWithImpl<$Res, PageRequest>; + @useResult + $Res call({int page, int size}); +} + +/// @nodoc +class _$PageRequestCopyWithImpl<$Res, $Val extends PageRequest> + implements $PageRequestCopyWith<$Res> { + _$PageRequestCopyWithImpl(this._value, this._then); + + // ignore: unused_field + final $Val _value; + // ignore: unused_field + final $Res Function($Val) _then; + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? page = null, + Object? size = null, + }) { + return _then(_value.copyWith( + page: null == page + ? _value.page + : page // ignore: cast_nullable_to_non_nullable + as int, + size: null == size + ? _value.size + : size // ignore: cast_nullable_to_non_nullable + as int, + ) as $Val); + } +} + +/// @nodoc +abstract class _$$PageRequestImplCopyWith<$Res> + implements $PageRequestCopyWith<$Res> { + factory _$$PageRequestImplCopyWith( + _$PageRequestImpl value, $Res Function(_$PageRequestImpl) then) = + __$$PageRequestImplCopyWithImpl<$Res>; + @override + @useResult + $Res call({int page, int size}); +} + +/// @nodoc +class __$$PageRequestImplCopyWithImpl<$Res> + extends _$PageRequestCopyWithImpl<$Res, _$PageRequestImpl> + implements _$$PageRequestImplCopyWith<$Res> { + __$$PageRequestImplCopyWithImpl( + _$PageRequestImpl _value, $Res Function(_$PageRequestImpl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? page = null, + Object? size = null, + }) { + return _then(_$PageRequestImpl( + page: null == page + ? _value.page + : page // ignore: cast_nullable_to_non_nullable + as int, + size: null == size + ? _value.size + : size // ignore: cast_nullable_to_non_nullable + as int, + )); + } +} + +/// @nodoc + +class _$PageRequestImpl extends _PageRequest { + _$PageRequestImpl({required this.page, this.size = 10}) : super._(); + + @override + final int page; + @override + @JsonKey() + final int size; + + @override + String toString() { + return 'PageRequest(page: $page, size: $size)'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$PageRequestImpl && + (identical(other.page, page) || other.page == page) && + (identical(other.size, size) || other.size == size)); + } + + @override + int get hashCode => Object.hash(runtimeType, page, size); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$PageRequestImplCopyWith<_$PageRequestImpl> get copyWith => + __$$PageRequestImplCopyWithImpl<_$PageRequestImpl>(this, _$identity); +} + +abstract class _PageRequest extends PageRequest { + factory _PageRequest({required final int page, final int size}) = + _$PageRequestImpl; + _PageRequest._() : super._(); + + @override + int get page; + @override + int get size; + @override + @JsonKey(ignore: true) + _$$PageRequestImplCopyWith<_$PageRequestImpl> get copyWith => + throw _privateConstructorUsedError; +} diff --git a/lib/src/features/about/data/about_repository.dart b/lib/src/features/about/data/about_repository.dart index f980f2a5..22d52172 100644 --- a/lib/src/features/about/data/about_repository.dart +++ b/lib/src/features/about/data/about_repository.dart @@ -17,8 +17,10 @@ import '../../../constants/urls.dart'; import '../../../global_providers/global_providers.dart'; import '../../../utils/extensions/custom_extensions.dart'; import '../domain/about/about_dto.dart'; +import '../domain/server_update/graphql/fragment.dart'; import '../domain/server_update/server_update.dart'; import '../presentation/about/controllers/about_controller.dart'; +import 'graphql/__generated__/about_query.data.gql.dart'; import 'graphql/about_query.dart'; part 'about_repository.g.dart'; @@ -33,27 +35,14 @@ class AboutRepository { Stream getAbout() => ferryClient.fetch( AboutQuery.getAboutQuery, - (data) => AboutDto( - name: data.aboutServer.name, - version: data.aboutServer.version, - revision: data.aboutServer.revision, - buildType: data.aboutServer.buildType, - buildTime: int.tryParse(data.aboutServer.buildTime.value), - github: data.aboutServer.github, - discord: data.aboutServer.discord, - ), + (GAboutData data) => data.aboutServer, ); Future?> checkServerUpdate() => ferryClient .fetch( AboutQuery.serverUpdateQuery, - (data) => data.checkForServerUpdates - .map((data) => ServerUpdate( - channel: data.channel, - tag: data.tag, - url: data.url, - )) - .toList(), + (data) => + data.checkForServerUpdates.map((update) => update.toDto).toList(), ) .first; diff --git a/lib/src/features/about/data/graphql/__generated__/about_query.ast.gql.dart b/lib/src/features/about/data/graphql/__generated__/about_query.ast.gql.dart index 6c8b14b7..82da649e 100644 --- a/lib/src/features/about/data/graphql/__generated__/about_query.ast.gql.dart +++ b/lib/src/features/about/data/graphql/__generated__/about_query.ast.gql.dart @@ -3,6 +3,10 @@ // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/about/domain/about/graphql/__generated__/fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/about/domain/server_update/graphql/__generated__/fragment.ast.gql.dart' + as _i3; const About = _i1.OperationDefinitionNode( type: _i1.OperationType.query, @@ -16,55 +20,10 @@ const About = _i1.OperationDefinitionNode( arguments: [], directives: [], selectionSet: _i1.SelectionSetNode(selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'name'), - alias: null, - arguments: [], + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'AboutFragment'), directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'version'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'revision'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'buildType'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'buildTime'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'discord'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'github'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), + ) ]), ) ]), @@ -81,27 +40,10 @@ const ServerUpdate = _i1.OperationDefinitionNode( arguments: [], directives: [], selectionSet: _i1.SelectionSetNode(selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'channel'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'tag'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'url'), - alias: null, - arguments: [], + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'ServerUpdateFragment'), directives: [], - selectionSet: null, - ), + ) ]), ) ]), @@ -109,4 +51,6 @@ const ServerUpdate = _i1.OperationDefinitionNode( const document = _i1.DocumentNode(definitions: [ About, ServerUpdate, + _i2.AboutFragment, + _i3.ServerUpdateFragment, ]); diff --git a/lib/src/features/about/data/graphql/__generated__/about_query.data.gql.dart b/lib/src/features/about/data/graphql/__generated__/about_query.data.gql.dart index 82c0b1b8..32ad7d80 100644 --- a/lib/src/features/about/data/graphql/__generated__/about_query.data.gql.dart +++ b/lib/src/features/about/data/graphql/__generated__/about_query.data.gql.dart @@ -5,8 +5,12 @@ import 'package:built_collection/built_collection.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; -import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' +import 'package:tachidesk_sorayomi/src/features/about/domain/about/graphql/__generated__/fragment.data.gql.dart' as _i2; +import 'package:tachidesk_sorayomi/src/features/about/domain/server_update/graphql/__generated__/fragment.data.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' + as _i3; import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' as _i1; @@ -39,7 +43,9 @@ abstract class GAboutData implements Built { } abstract class GAboutData_aboutServer - implements Built { + implements + Built, + _i2.GAboutFragment { GAboutData_aboutServer._(); factory GAboutData_aboutServer( @@ -49,18 +55,27 @@ abstract class GAboutData_aboutServer static void _initializeBuilder(GAboutData_aboutServerBuilder b) => b..G__typename = 'AboutServerPayload'; + @override @BuiltValueField(wireName: '__typename') String get G__typename; - String get name; - String get version; - String get revision; + @override + _i3.GLongString get buildTime; + @override String get buildType; - _i2.GLongString get buildTime; + @override String get discord; + @override String get github; + @override + String get name; + @override + String get revision; + @override + String get version; static Serializer get serializer => _$gAboutDataAboutServerSerializer; + @override Map toJson() => (_i1.serializers.serializeWith( GAboutData_aboutServer.serializer, this, @@ -105,7 +120,8 @@ abstract class GServerUpdateData abstract class GServerUpdateData_checkForServerUpdates implements Built { + GServerUpdateData_checkForServerUpdatesBuilder>, + _i4.GServerUpdateFragment { GServerUpdateData_checkForServerUpdates._(); factory GServerUpdateData_checkForServerUpdates( @@ -116,14 +132,19 @@ abstract class GServerUpdateData_checkForServerUpdates GServerUpdateData_checkForServerUpdatesBuilder b) => b..G__typename = 'CheckForServerUpdatesPayload'; + @override @BuiltValueField(wireName: '__typename') String get G__typename; + @override String get channel; + @override String get tag; + @override String get url; static Serializer get serializer => _$gServerUpdateDataCheckForServerUpdatesSerializer; + @override Map toJson() => (_i1.serializers.serializeWith( GServerUpdateData_checkForServerUpdates.serializer, this, diff --git a/lib/src/features/about/data/graphql/__generated__/about_query.data.gql.g.dart b/lib/src/features/about/data/graphql/__generated__/about_query.data.gql.g.dart index 141ad027..2a8a5ad0 100644 --- a/lib/src/features/about/data/graphql/__generated__/about_query.data.gql.g.dart +++ b/lib/src/features/about/data/graphql/__generated__/about_query.data.gql.g.dart @@ -81,26 +81,26 @@ class _$GAboutData_aboutServerSerializer '__typename', serializers.serialize(object.G__typename, specifiedType: const FullType(String)), - 'name', - serializers.serialize(object.name, specifiedType: const FullType(String)), - 'version', - serializers.serialize(object.version, - specifiedType: const FullType(String)), - 'revision', - serializers.serialize(object.revision, - specifiedType: const FullType(String)), + 'buildTime', + serializers.serialize(object.buildTime, + specifiedType: const FullType(_i3.GLongString)), 'buildType', serializers.serialize(object.buildType, specifiedType: const FullType(String)), - 'buildTime', - serializers.serialize(object.buildTime, - specifiedType: const FullType(_i2.GLongString)), 'discord', serializers.serialize(object.discord, specifiedType: const FullType(String)), 'github', serializers.serialize(object.github, specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'revision', + serializers.serialize(object.revision, + specifiedType: const FullType(String)), + 'version', + serializers.serialize(object.version, + specifiedType: const FullType(String)), ]; return result; @@ -122,27 +122,15 @@ class _$GAboutData_aboutServerSerializer result.G__typename = serializers.deserialize(value, specifiedType: const FullType(String))! as String; break; - case 'name': - result.name = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; - break; - case 'version': - result.version = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; - break; - case 'revision': - result.revision = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; + case 'buildTime': + result.buildTime.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GLongString))! + as _i3.GLongString); break; case 'buildType': result.buildType = serializers.deserialize(value, specifiedType: const FullType(String))! as String; break; - case 'buildTime': - result.buildTime.replace(serializers.deserialize(value, - specifiedType: const FullType(_i2.GLongString))! - as _i2.GLongString); - break; case 'discord': result.discord = serializers.deserialize(value, specifiedType: const FullType(String))! as String; @@ -151,6 +139,18 @@ class _$GAboutData_aboutServerSerializer result.github = serializers.deserialize(value, specifiedType: const FullType(String))! as String; break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'revision': + result.revision = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'version': + result.version = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; } } @@ -394,19 +394,19 @@ class _$GAboutData_aboutServer extends GAboutData_aboutServer { @override final String G__typename; @override - final String name; - @override - final String version; - @override - final String revision; + final _i3.GLongString buildTime; @override final String buildType; @override - final _i2.GLongString buildTime; - @override final String discord; @override final String github; + @override + final String name; + @override + final String revision; + @override + final String version; factory _$GAboutData_aboutServer( [void Function(GAboutData_aboutServerBuilder)? updates]) => @@ -414,30 +414,30 @@ class _$GAboutData_aboutServer extends GAboutData_aboutServer { _$GAboutData_aboutServer._( {required this.G__typename, - required this.name, - required this.version, - required this.revision, - required this.buildType, required this.buildTime, + required this.buildType, required this.discord, - required this.github}) + required this.github, + required this.name, + required this.revision, + required this.version}) : super._() { BuiltValueNullFieldError.checkNotNull( G__typename, r'GAboutData_aboutServer', 'G__typename'); BuiltValueNullFieldError.checkNotNull( - name, r'GAboutData_aboutServer', 'name'); - BuiltValueNullFieldError.checkNotNull( - version, r'GAboutData_aboutServer', 'version'); - BuiltValueNullFieldError.checkNotNull( - revision, r'GAboutData_aboutServer', 'revision'); + buildTime, r'GAboutData_aboutServer', 'buildTime'); BuiltValueNullFieldError.checkNotNull( buildType, r'GAboutData_aboutServer', 'buildType'); - BuiltValueNullFieldError.checkNotNull( - buildTime, r'GAboutData_aboutServer', 'buildTime'); BuiltValueNullFieldError.checkNotNull( discord, r'GAboutData_aboutServer', 'discord'); BuiltValueNullFieldError.checkNotNull( github, r'GAboutData_aboutServer', 'github'); + BuiltValueNullFieldError.checkNotNull( + name, r'GAboutData_aboutServer', 'name'); + BuiltValueNullFieldError.checkNotNull( + revision, r'GAboutData_aboutServer', 'revision'); + BuiltValueNullFieldError.checkNotNull( + version, r'GAboutData_aboutServer', 'version'); } @override @@ -454,26 +454,26 @@ class _$GAboutData_aboutServer extends GAboutData_aboutServer { if (identical(other, this)) return true; return other is GAboutData_aboutServer && G__typename == other.G__typename && - name == other.name && - version == other.version && - revision == other.revision && - buildType == other.buildType && buildTime == other.buildTime && + buildType == other.buildType && discord == other.discord && - github == other.github; + github == other.github && + name == other.name && + revision == other.revision && + version == other.version; } @override int get hashCode { var _$hash = 0; _$hash = $jc(_$hash, G__typename.hashCode); - _$hash = $jc(_$hash, name.hashCode); - _$hash = $jc(_$hash, version.hashCode); - _$hash = $jc(_$hash, revision.hashCode); - _$hash = $jc(_$hash, buildType.hashCode); _$hash = $jc(_$hash, buildTime.hashCode); + _$hash = $jc(_$hash, buildType.hashCode); _$hash = $jc(_$hash, discord.hashCode); _$hash = $jc(_$hash, github.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, revision.hashCode); + _$hash = $jc(_$hash, version.hashCode); _$hash = $jf(_$hash); return _$hash; } @@ -482,13 +482,13 @@ class _$GAboutData_aboutServer extends GAboutData_aboutServer { String toString() { return (newBuiltValueToStringHelper(r'GAboutData_aboutServer') ..add('G__typename', G__typename) - ..add('name', name) - ..add('version', version) - ..add('revision', revision) - ..add('buildType', buildType) ..add('buildTime', buildTime) + ..add('buildType', buildType) ..add('discord', discord) - ..add('github', github)) + ..add('github', github) + ..add('name', name) + ..add('revision', revision) + ..add('version', version)) .toString(); } } @@ -501,28 +501,16 @@ class GAboutData_aboutServerBuilder String? get G__typename => _$this._G__typename; set G__typename(String? G__typename) => _$this._G__typename = G__typename; - String? _name; - String? get name => _$this._name; - set name(String? name) => _$this._name = name; - - String? _version; - String? get version => _$this._version; - set version(String? version) => _$this._version = version; - - String? _revision; - String? get revision => _$this._revision; - set revision(String? revision) => _$this._revision = revision; + _i3.GLongStringBuilder? _buildTime; + _i3.GLongStringBuilder get buildTime => + _$this._buildTime ??= new _i3.GLongStringBuilder(); + set buildTime(_i3.GLongStringBuilder? buildTime) => + _$this._buildTime = buildTime; String? _buildType; String? get buildType => _$this._buildType; set buildType(String? buildType) => _$this._buildType = buildType; - _i2.GLongStringBuilder? _buildTime; - _i2.GLongStringBuilder get buildTime => - _$this._buildTime ??= new _i2.GLongStringBuilder(); - set buildTime(_i2.GLongStringBuilder? buildTime) => - _$this._buildTime = buildTime; - String? _discord; String? get discord => _$this._discord; set discord(String? discord) => _$this._discord = discord; @@ -531,6 +519,18 @@ class GAboutData_aboutServerBuilder String? get github => _$this._github; set github(String? github) => _$this._github = github; + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + String? _revision; + String? get revision => _$this._revision; + set revision(String? revision) => _$this._revision = revision; + + String? _version; + String? get version => _$this._version; + set version(String? version) => _$this._version = version; + GAboutData_aboutServerBuilder() { GAboutData_aboutServer._initializeBuilder(this); } @@ -539,13 +539,13 @@ class GAboutData_aboutServerBuilder final $v = _$v; if ($v != null) { _G__typename = $v.G__typename; - _name = $v.name; - _version = $v.version; - _revision = $v.revision; - _buildType = $v.buildType; _buildTime = $v.buildTime.toBuilder(); + _buildType = $v.buildType; _discord = $v.discord; _github = $v.github; + _name = $v.name; + _revision = $v.revision; + _version = $v.version; _$v = null; } return this; @@ -572,19 +572,19 @@ class GAboutData_aboutServerBuilder new _$GAboutData_aboutServer._( G__typename: BuiltValueNullFieldError.checkNotNull( G__typename, r'GAboutData_aboutServer', 'G__typename'), - name: BuiltValueNullFieldError.checkNotNull( - name, r'GAboutData_aboutServer', 'name'), - version: BuiltValueNullFieldError.checkNotNull( - version, r'GAboutData_aboutServer', 'version'), - revision: BuiltValueNullFieldError.checkNotNull( - revision, r'GAboutData_aboutServer', 'revision'), + buildTime: buildTime.build(), buildType: BuiltValueNullFieldError.checkNotNull( buildType, r'GAboutData_aboutServer', 'buildType'), - buildTime: buildTime.build(), discord: BuiltValueNullFieldError.checkNotNull( discord, r'GAboutData_aboutServer', 'discord'), github: BuiltValueNullFieldError.checkNotNull( - github, r'GAboutData_aboutServer', 'github')); + github, r'GAboutData_aboutServer', 'github'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'GAboutData_aboutServer', 'name'), + revision: BuiltValueNullFieldError.checkNotNull( + revision, r'GAboutData_aboutServer', 'revision'), + version: BuiltValueNullFieldError.checkNotNull( + version, r'GAboutData_aboutServer', 'version')); } catch (_) { late String _$failedField; try { diff --git a/lib/src/features/about/data/graphql/about_query.graphql b/lib/src/features/about/data/graphql/about_query.graphql index da10ba56..c3697f66 100644 --- a/lib/src/features/about/data/graphql/about_query.graphql +++ b/lib/src/features/about/data/graphql/about_query.graphql @@ -1,19 +1,14 @@ +# import '/src/features/about/domain/about/graphql/fragment.graphql' +# import '/src/features/about/domain/server_update/graphql/fragment.graphql' + query About { aboutServer { - name - version - revision - buildType - buildTime - discord - github + ...AboutFragment } } query ServerUpdate { checkForServerUpdates { - channel - tag - url + ...ServerUpdateFragment } } diff --git a/lib/src/features/about/domain/about/about_dto.dart b/lib/src/features/about/domain/about/about_dto.dart index cd4a4201..e007b21e 100644 --- a/lib/src/features/about/domain/about/about_dto.dart +++ b/lib/src/features/about/domain/about/about_dto.dart @@ -4,20 +4,6 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -import 'package:freezed_annotation/freezed_annotation.dart'; +import 'graphql/__generated__/fragment.data.gql.dart'; -part 'about_dto.freezed.dart'; - -@freezed -class AboutDto with _$AboutDto { - const AboutDto._(); - const factory AboutDto({ - String? name, - String? version, - String? revision, - String? buildType, - int? buildTime, - String? github, - String? discord, - }) = _AboutDto; -} +typedef AboutDto = GAboutFragment; diff --git a/lib/src/features/about/domain/about/about_dto.freezed.dart b/lib/src/features/about/domain/about/about_dto.freezed.dart deleted file mode 100644 index 37fd53f5..00000000 --- a/lib/src/features/about/domain/about/about_dto.freezed.dart +++ /dev/null @@ -1,261 +0,0 @@ -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// 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 'about_dto.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -T _$identity(T value) => value; - -final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); - -/// @nodoc -mixin _$AboutDto { - String? get name => throw _privateConstructorUsedError; - String? get version => throw _privateConstructorUsedError; - String? get revision => throw _privateConstructorUsedError; - String? get buildType => throw _privateConstructorUsedError; - int? get buildTime => throw _privateConstructorUsedError; - String? get github => throw _privateConstructorUsedError; - String? get discord => throw _privateConstructorUsedError; - - @JsonKey(ignore: true) - $AboutDtoCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $AboutDtoCopyWith<$Res> { - factory $AboutDtoCopyWith(AboutDto value, $Res Function(AboutDto) then) = - _$AboutDtoCopyWithImpl<$Res, AboutDto>; - @useResult - $Res call( - {String? name, - String? version, - String? revision, - String? buildType, - int? buildTime, - String? github, - String? discord}); -} - -/// @nodoc -class _$AboutDtoCopyWithImpl<$Res, $Val extends AboutDto> - implements $AboutDtoCopyWith<$Res> { - _$AboutDtoCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? name = freezed, - Object? version = freezed, - Object? revision = freezed, - Object? buildType = freezed, - Object? buildTime = freezed, - Object? github = freezed, - Object? discord = freezed, - }) { - return _then(_value.copyWith( - name: freezed == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String?, - version: freezed == version - ? _value.version - : version // ignore: cast_nullable_to_non_nullable - as String?, - revision: freezed == revision - ? _value.revision - : revision // ignore: cast_nullable_to_non_nullable - as String?, - buildType: freezed == buildType - ? _value.buildType - : buildType // ignore: cast_nullable_to_non_nullable - as String?, - buildTime: freezed == buildTime - ? _value.buildTime - : buildTime // ignore: cast_nullable_to_non_nullable - as int?, - github: freezed == github - ? _value.github - : github // ignore: cast_nullable_to_non_nullable - as String?, - discord: freezed == discord - ? _value.discord - : discord // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$AboutDtoImplCopyWith<$Res> - implements $AboutDtoCopyWith<$Res> { - factory _$$AboutDtoImplCopyWith( - _$AboutDtoImpl value, $Res Function(_$AboutDtoImpl) then) = - __$$AboutDtoImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {String? name, - String? version, - String? revision, - String? buildType, - int? buildTime, - String? github, - String? discord}); -} - -/// @nodoc -class __$$AboutDtoImplCopyWithImpl<$Res> - extends _$AboutDtoCopyWithImpl<$Res, _$AboutDtoImpl> - implements _$$AboutDtoImplCopyWith<$Res> { - __$$AboutDtoImplCopyWithImpl( - _$AboutDtoImpl _value, $Res Function(_$AboutDtoImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? name = freezed, - Object? version = freezed, - Object? revision = freezed, - Object? buildType = freezed, - Object? buildTime = freezed, - Object? github = freezed, - Object? discord = freezed, - }) { - return _then(_$AboutDtoImpl( - name: freezed == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String?, - version: freezed == version - ? _value.version - : version // ignore: cast_nullable_to_non_nullable - as String?, - revision: freezed == revision - ? _value.revision - : revision // ignore: cast_nullable_to_non_nullable - as String?, - buildType: freezed == buildType - ? _value.buildType - : buildType // ignore: cast_nullable_to_non_nullable - as String?, - buildTime: freezed == buildTime - ? _value.buildTime - : buildTime // ignore: cast_nullable_to_non_nullable - as int?, - github: freezed == github - ? _value.github - : github // ignore: cast_nullable_to_non_nullable - as String?, - discord: freezed == discord - ? _value.discord - : discord // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc - -class _$AboutDtoImpl extends _AboutDto { - const _$AboutDtoImpl( - {this.name, - this.version, - this.revision, - this.buildType, - this.buildTime, - this.github, - this.discord}) - : super._(); - - @override - final String? name; - @override - final String? version; - @override - final String? revision; - @override - final String? buildType; - @override - final int? buildTime; - @override - final String? github; - @override - final String? discord; - - @override - String toString() { - return 'AboutDto(name: $name, version: $version, revision: $revision, buildType: $buildType, buildTime: $buildTime, github: $github, discord: $discord)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$AboutDtoImpl && - (identical(other.name, name) || other.name == name) && - (identical(other.version, version) || other.version == version) && - (identical(other.revision, revision) || - other.revision == revision) && - (identical(other.buildType, buildType) || - other.buildType == buildType) && - (identical(other.buildTime, buildTime) || - other.buildTime == buildTime) && - (identical(other.github, github) || other.github == github) && - (identical(other.discord, discord) || other.discord == discord)); - } - - @override - int get hashCode => Object.hash(runtimeType, name, version, revision, - buildType, buildTime, github, discord); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$AboutDtoImplCopyWith<_$AboutDtoImpl> get copyWith => - __$$AboutDtoImplCopyWithImpl<_$AboutDtoImpl>(this, _$identity); -} - -abstract class _AboutDto extends AboutDto { - const factory _AboutDto( - {final String? name, - final String? version, - final String? revision, - final String? buildType, - final int? buildTime, - final String? github, - final String? discord}) = _$AboutDtoImpl; - const _AboutDto._() : super._(); - - @override - String? get name; - @override - String? get version; - @override - String? get revision; - @override - String? get buildType; - @override - int? get buildTime; - @override - String? get github; - @override - String? get discord; - @override - @JsonKey(ignore: true) - _$$AboutDtoImplCopyWith<_$AboutDtoImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/features/about/domain/about/graphql/__generated__/fragment.ast.gql.dart b/lib/src/features/about/domain/about/graphql/__generated__/fragment.ast.gql.dart new file mode 100644 index 00000000..0cff9efe --- /dev/null +++ b/lib/src/features/about/domain/about/graphql/__generated__/fragment.ast.gql.dart @@ -0,0 +1,67 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const AboutFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'AboutFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'AboutServerPayload'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'buildTime'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'buildType'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'discord'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'github'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'revision'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'version'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), +); +const document = _i1.DocumentNode(definitions: [AboutFragment]); diff --git a/lib/src/features/about/domain/about/graphql/__generated__/fragment.data.gql.dart b/lib/src/features/about/domain/about/graphql/__generated__/fragment.data.gql.dart new file mode 100644 index 00000000..49e8c946 --- /dev/null +++ b/lib/src/features/about/domain/about/graphql/__generated__/fragment.data.gql.dart @@ -0,0 +1,70 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' + as _i1; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i2; + +part 'fragment.data.gql.g.dart'; + +abstract class GAboutFragment { + String get G__typename; + _i1.GLongString get buildTime; + String get buildType; + String get discord; + String get github; + String get name; + String get revision; + String get version; + Map toJson(); +} + +abstract class GAboutFragmentData + implements + Built, + GAboutFragment { + GAboutFragmentData._(); + + factory GAboutFragmentData( + [void Function(GAboutFragmentDataBuilder b) updates]) = + _$GAboutFragmentData; + + static void _initializeBuilder(GAboutFragmentDataBuilder b) => + b..G__typename = 'AboutServerPayload'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + _i1.GLongString get buildTime; + @override + String get buildType; + @override + String get discord; + @override + String get github; + @override + String get name; + @override + String get revision; + @override + String get version; + static Serializer get serializer => + _$gAboutFragmentDataSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GAboutFragmentData.serializer, + this, + ) as Map); + + static GAboutFragmentData? fromJson(Map json) => + _i2.serializers.deserializeWith( + GAboutFragmentData.serializer, + json, + ); +} diff --git a/lib/src/features/about/domain/about/graphql/__generated__/fragment.data.gql.g.dart b/lib/src/features/about/domain/about/graphql/__generated__/fragment.data.gql.g.dart new file mode 100644 index 00000000..7b424fd2 --- /dev/null +++ b/lib/src/features/about/domain/about/graphql/__generated__/fragment.data.gql.g.dart @@ -0,0 +1,314 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gAboutFragmentDataSerializer = + new _$GAboutFragmentDataSerializer(); + +class _$GAboutFragmentDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GAboutFragmentData, _$GAboutFragmentData]; + @override + final String wireName = 'GAboutFragmentData'; + + @override + Iterable serialize( + Serializers serializers, GAboutFragmentData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'buildTime', + serializers.serialize(object.buildTime, + specifiedType: const FullType(_i1.GLongString)), + 'buildType', + serializers.serialize(object.buildType, + specifiedType: const FullType(String)), + 'discord', + serializers.serialize(object.discord, + specifiedType: const FullType(String)), + 'github', + serializers.serialize(object.github, + specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'revision', + serializers.serialize(object.revision, + specifiedType: const FullType(String)), + 'version', + serializers.serialize(object.version, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GAboutFragmentData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAboutFragmentDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'buildTime': + result.buildTime.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'buildType': + result.buildType = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'discord': + result.discord = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'github': + result.github = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'revision': + result.revision = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'version': + result.version = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GAboutFragmentData extends GAboutFragmentData { + @override + final String G__typename; + @override + final _i1.GLongString buildTime; + @override + final String buildType; + @override + final String discord; + @override + final String github; + @override + final String name; + @override + final String revision; + @override + final String version; + + factory _$GAboutFragmentData( + [void Function(GAboutFragmentDataBuilder)? updates]) => + (new GAboutFragmentDataBuilder()..update(updates))._build(); + + _$GAboutFragmentData._( + {required this.G__typename, + required this.buildTime, + required this.buildType, + required this.discord, + required this.github, + required this.name, + required this.revision, + required this.version}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GAboutFragmentData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + buildTime, r'GAboutFragmentData', 'buildTime'); + BuiltValueNullFieldError.checkNotNull( + buildType, r'GAboutFragmentData', 'buildType'); + BuiltValueNullFieldError.checkNotNull( + discord, r'GAboutFragmentData', 'discord'); + BuiltValueNullFieldError.checkNotNull( + github, r'GAboutFragmentData', 'github'); + BuiltValueNullFieldError.checkNotNull(name, r'GAboutFragmentData', 'name'); + BuiltValueNullFieldError.checkNotNull( + revision, r'GAboutFragmentData', 'revision'); + BuiltValueNullFieldError.checkNotNull( + version, r'GAboutFragmentData', 'version'); + } + + @override + GAboutFragmentData rebuild( + void Function(GAboutFragmentDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAboutFragmentDataBuilder toBuilder() => + new GAboutFragmentDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAboutFragmentData && + G__typename == other.G__typename && + buildTime == other.buildTime && + buildType == other.buildType && + discord == other.discord && + github == other.github && + name == other.name && + revision == other.revision && + version == other.version; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, buildTime.hashCode); + _$hash = $jc(_$hash, buildType.hashCode); + _$hash = $jc(_$hash, discord.hashCode); + _$hash = $jc(_$hash, github.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, revision.hashCode); + _$hash = $jc(_$hash, version.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GAboutFragmentData') + ..add('G__typename', G__typename) + ..add('buildTime', buildTime) + ..add('buildType', buildType) + ..add('discord', discord) + ..add('github', github) + ..add('name', name) + ..add('revision', revision) + ..add('version', version)) + .toString(); + } +} + +class GAboutFragmentDataBuilder + implements Builder { + _$GAboutFragmentData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + _i1.GLongStringBuilder? _buildTime; + _i1.GLongStringBuilder get buildTime => + _$this._buildTime ??= new _i1.GLongStringBuilder(); + set buildTime(_i1.GLongStringBuilder? buildTime) => + _$this._buildTime = buildTime; + + String? _buildType; + String? get buildType => _$this._buildType; + set buildType(String? buildType) => _$this._buildType = buildType; + + String? _discord; + String? get discord => _$this._discord; + set discord(String? discord) => _$this._discord = discord; + + String? _github; + String? get github => _$this._github; + set github(String? github) => _$this._github = github; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + String? _revision; + String? get revision => _$this._revision; + set revision(String? revision) => _$this._revision = revision; + + String? _version; + String? get version => _$this._version; + set version(String? version) => _$this._version = version; + + GAboutFragmentDataBuilder() { + GAboutFragmentData._initializeBuilder(this); + } + + GAboutFragmentDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _buildTime = $v.buildTime.toBuilder(); + _buildType = $v.buildType; + _discord = $v.discord; + _github = $v.github; + _name = $v.name; + _revision = $v.revision; + _version = $v.version; + _$v = null; + } + return this; + } + + @override + void replace(GAboutFragmentData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAboutFragmentData; + } + + @override + void update(void Function(GAboutFragmentDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAboutFragmentData build() => _build(); + + _$GAboutFragmentData _build() { + _$GAboutFragmentData _$result; + try { + _$result = _$v ?? + new _$GAboutFragmentData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GAboutFragmentData', 'G__typename'), + buildTime: buildTime.build(), + buildType: BuiltValueNullFieldError.checkNotNull( + buildType, r'GAboutFragmentData', 'buildType'), + discord: BuiltValueNullFieldError.checkNotNull( + discord, r'GAboutFragmentData', 'discord'), + github: BuiltValueNullFieldError.checkNotNull( + github, r'GAboutFragmentData', 'github'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'GAboutFragmentData', 'name'), + revision: BuiltValueNullFieldError.checkNotNull( + revision, r'GAboutFragmentData', 'revision'), + version: BuiltValueNullFieldError.checkNotNull( + version, r'GAboutFragmentData', 'version')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'buildTime'; + buildTime.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GAboutFragmentData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/about/domain/about/graphql/__generated__/fragment.req.gql.dart b/lib/src/features/about/domain/about/graphql/__generated__/fragment.req.gql.dart new file mode 100644 index 00000000..03ee0850 --- /dev/null +++ b/lib/src/features/about/domain/about/graphql/__generated__/fragment.req.gql.dart @@ -0,0 +1,65 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql/ast.dart' as _i5; +import 'package:tachidesk_sorayomi/src/features/about/domain/about/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/about/domain/about/graphql/__generated__/fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/about/domain/about/graphql/__generated__/fragment.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'fragment.req.gql.g.dart'; + +abstract class GAboutFragmentReq + implements + Built, + _i1.FragmentRequest<_i2.GAboutFragmentData, _i3.GAboutFragmentVars> { + GAboutFragmentReq._(); + + factory GAboutFragmentReq( + [void Function(GAboutFragmentReqBuilder b) updates]) = + _$GAboutFragmentReq; + + static void _initializeBuilder(GAboutFragmentReqBuilder b) => b + ..document = _i4.document + ..fragmentName = 'AboutFragment'; + + @override + _i3.GAboutFragmentVars get vars; + @override + _i5.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GAboutFragmentData? parseData(Map json) => + _i2.GAboutFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GAboutFragmentData data) => data.toJson(); + + static Serializer get serializer => + _$gAboutFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GAboutFragmentReq.serializer, + this, + ) as Map); + + static GAboutFragmentReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GAboutFragmentReq.serializer, + json, + ); +} diff --git a/lib/src/features/about/domain/about/graphql/__generated__/fragment.req.gql.g.dart b/lib/src/features/about/domain/about/graphql/__generated__/fragment.req.gql.g.dart new file mode 100644 index 00000000..1a1480f1 --- /dev/null +++ b/lib/src/features/about/domain/about/graphql/__generated__/fragment.req.gql.g.dart @@ -0,0 +1,230 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gAboutFragmentReqSerializer = + new _$GAboutFragmentReqSerializer(); + +class _$GAboutFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GAboutFragmentReq, _$GAboutFragmentReq]; + @override + final String wireName = 'GAboutFragmentReq'; + + @override + Iterable serialize(Serializers serializers, GAboutFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GAboutFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i5.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GAboutFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAboutFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GAboutFragmentVars))! + as _i3.GAboutFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i5.DocumentNode))! + as _i5.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GAboutFragmentReq extends GAboutFragmentReq { + @override + final _i3.GAboutFragmentVars vars; + @override + final _i5.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GAboutFragmentReq( + [void Function(GAboutFragmentReqBuilder)? updates]) => + (new GAboutFragmentReqBuilder()..update(updates))._build(); + + _$GAboutFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GAboutFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GAboutFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GAboutFragmentReq', 'idFields'); + } + + @override + GAboutFragmentReq rebuild(void Function(GAboutFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAboutFragmentReqBuilder toBuilder() => + new GAboutFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAboutFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GAboutFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GAboutFragmentReqBuilder + implements Builder { + _$GAboutFragmentReq? _$v; + + _i3.GAboutFragmentVarsBuilder? _vars; + _i3.GAboutFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GAboutFragmentVarsBuilder(); + set vars(_i3.GAboutFragmentVarsBuilder? vars) => _$this._vars = vars; + + _i5.DocumentNode? _document; + _i5.DocumentNode? get document => _$this._document; + set document(_i5.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GAboutFragmentReqBuilder() { + GAboutFragmentReq._initializeBuilder(this); + } + + GAboutFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GAboutFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAboutFragmentReq; + } + + @override + void update(void Function(GAboutFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAboutFragmentReq build() => _build(); + + _$GAboutFragmentReq _build() { + _$GAboutFragmentReq _$result; + try { + _$result = _$v ?? + new _$GAboutFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GAboutFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GAboutFragmentReq', 'idFields')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GAboutFragmentReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/about/domain/about/graphql/__generated__/fragment.var.gql.dart b/lib/src/features/about/domain/about/graphql/__generated__/fragment.var.gql.dart new file mode 100644 index 00000000..a4fce2ea --- /dev/null +++ b/lib/src/features/about/domain/about/graphql/__generated__/fragment.var.gql.dart @@ -0,0 +1,33 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragment.var.gql.g.dart'; + +abstract class GAboutFragmentVars + implements Built { + GAboutFragmentVars._(); + + factory GAboutFragmentVars( + [void Function(GAboutFragmentVarsBuilder b) updates]) = + _$GAboutFragmentVars; + + static Serializer get serializer => + _$gAboutFragmentVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GAboutFragmentVars.serializer, + this, + ) as Map); + + static GAboutFragmentVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GAboutFragmentVars.serializer, + json, + ); +} diff --git a/lib/src/features/about/domain/about/graphql/__generated__/fragment.var.gql.g.dart b/lib/src/features/about/domain/about/graphql/__generated__/fragment.var.gql.g.dart new file mode 100644 index 00000000..b2e8020b --- /dev/null +++ b/lib/src/features/about/domain/about/graphql/__generated__/fragment.var.gql.g.dart @@ -0,0 +1,94 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gAboutFragmentVarsSerializer = + new _$GAboutFragmentVarsSerializer(); + +class _$GAboutFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GAboutFragmentVars, _$GAboutFragmentVars]; + @override + final String wireName = 'GAboutFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GAboutFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GAboutFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GAboutFragmentVarsBuilder().build(); + } +} + +class _$GAboutFragmentVars extends GAboutFragmentVars { + factory _$GAboutFragmentVars( + [void Function(GAboutFragmentVarsBuilder)? updates]) => + (new GAboutFragmentVarsBuilder()..update(updates))._build(); + + _$GAboutFragmentVars._() : super._(); + + @override + GAboutFragmentVars rebuild( + void Function(GAboutFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAboutFragmentVarsBuilder toBuilder() => + new GAboutFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAboutFragmentVars; + } + + @override + int get hashCode { + return 756068277; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GAboutFragmentVars').toString(); + } +} + +class GAboutFragmentVarsBuilder + implements Builder { + _$GAboutFragmentVars? _$v; + + GAboutFragmentVarsBuilder(); + + @override + void replace(GAboutFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAboutFragmentVars; + } + + @override + void update(void Function(GAboutFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAboutFragmentVars build() => _build(); + + _$GAboutFragmentVars _build() { + final _$result = _$v ?? new _$GAboutFragmentVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/about/domain/about/graphql/fragment.graphql b/lib/src/features/about/domain/about/graphql/fragment.graphql new file mode 100644 index 00000000..13726b5b --- /dev/null +++ b/lib/src/features/about/domain/about/graphql/fragment.graphql @@ -0,0 +1,9 @@ +fragment AboutFragment on AboutServerPayload { + buildTime + buildType + discord + github + name + revision + version +} diff --git a/lib/src/features/about/domain/server_update/graphql/__generated__/fragment.ast.gql.dart b/lib/src/features/about/domain/server_update/graphql/__generated__/fragment.ast.gql.dart new file mode 100644 index 00000000..5025154f --- /dev/null +++ b/lib/src/features/about/domain/server_update/graphql/__generated__/fragment.ast.gql.dart @@ -0,0 +1,39 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const ServerUpdateFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'ServerUpdateFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CheckForServerUpdatesPayload'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'channel'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'tag'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'url'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), +); +const document = _i1.DocumentNode(definitions: [ServerUpdateFragment]); diff --git a/lib/src/features/about/domain/server_update/graphql/__generated__/fragment.data.gql.dart b/lib/src/features/about/domain/server_update/graphql/__generated__/fragment.data.gql.dart new file mode 100644 index 00000000..0e320a22 --- /dev/null +++ b/lib/src/features/about/domain/server_update/graphql/__generated__/fragment.data.gql.dart @@ -0,0 +1,56 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragment.data.gql.g.dart'; + +abstract class GServerUpdateFragment { + String get G__typename; + String get channel; + String get tag; + String get url; + Map toJson(); +} + +abstract class GServerUpdateFragmentData + implements + Built, + GServerUpdateFragment { + GServerUpdateFragmentData._(); + + factory GServerUpdateFragmentData( + [void Function(GServerUpdateFragmentDataBuilder b) updates]) = + _$GServerUpdateFragmentData; + + static void _initializeBuilder(GServerUpdateFragmentDataBuilder b) => + b..G__typename = 'CheckForServerUpdatesPayload'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get channel; + @override + String get tag; + @override + String get url; + static Serializer get serializer => + _$gServerUpdateFragmentDataSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GServerUpdateFragmentData.serializer, + this, + ) as Map); + + static GServerUpdateFragmentData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GServerUpdateFragmentData.serializer, + json, + ); +} diff --git a/lib/src/features/about/domain/server_update/graphql/__generated__/fragment.data.gql.g.dart b/lib/src/features/about/domain/server_update/graphql/__generated__/fragment.data.gql.g.dart new file mode 100644 index 00000000..42e4a85e --- /dev/null +++ b/lib/src/features/about/domain/server_update/graphql/__generated__/fragment.data.gql.g.dart @@ -0,0 +1,215 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gServerUpdateFragmentDataSerializer = + new _$GServerUpdateFragmentDataSerializer(); + +class _$GServerUpdateFragmentDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GServerUpdateFragmentData, + _$GServerUpdateFragmentData + ]; + @override + final String wireName = 'GServerUpdateFragmentData'; + + @override + Iterable serialize( + Serializers serializers, GServerUpdateFragmentData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'channel', + serializers.serialize(object.channel, + specifiedType: const FullType(String)), + 'tag', + serializers.serialize(object.tag, specifiedType: const FullType(String)), + 'url', + serializers.serialize(object.url, specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GServerUpdateFragmentData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GServerUpdateFragmentDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'channel': + result.channel = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'tag': + result.tag = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'url': + result.url = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GServerUpdateFragmentData extends GServerUpdateFragmentData { + @override + final String G__typename; + @override + final String channel; + @override + final String tag; + @override + final String url; + + factory _$GServerUpdateFragmentData( + [void Function(GServerUpdateFragmentDataBuilder)? updates]) => + (new GServerUpdateFragmentDataBuilder()..update(updates))._build(); + + _$GServerUpdateFragmentData._( + {required this.G__typename, + required this.channel, + required this.tag, + required this.url}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GServerUpdateFragmentData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + channel, r'GServerUpdateFragmentData', 'channel'); + BuiltValueNullFieldError.checkNotNull( + tag, r'GServerUpdateFragmentData', 'tag'); + BuiltValueNullFieldError.checkNotNull( + url, r'GServerUpdateFragmentData', 'url'); + } + + @override + GServerUpdateFragmentData rebuild( + void Function(GServerUpdateFragmentDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GServerUpdateFragmentDataBuilder toBuilder() => + new GServerUpdateFragmentDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GServerUpdateFragmentData && + G__typename == other.G__typename && + channel == other.channel && + tag == other.tag && + url == other.url; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, channel.hashCode); + _$hash = $jc(_$hash, tag.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GServerUpdateFragmentData') + ..add('G__typename', G__typename) + ..add('channel', channel) + ..add('tag', tag) + ..add('url', url)) + .toString(); + } +} + +class GServerUpdateFragmentDataBuilder + implements + Builder { + _$GServerUpdateFragmentData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _channel; + String? get channel => _$this._channel; + set channel(String? channel) => _$this._channel = channel; + + String? _tag; + String? get tag => _$this._tag; + set tag(String? tag) => _$this._tag = tag; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + GServerUpdateFragmentDataBuilder() { + GServerUpdateFragmentData._initializeBuilder(this); + } + + GServerUpdateFragmentDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _channel = $v.channel; + _tag = $v.tag; + _url = $v.url; + _$v = null; + } + return this; + } + + @override + void replace(GServerUpdateFragmentData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GServerUpdateFragmentData; + } + + @override + void update(void Function(GServerUpdateFragmentDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GServerUpdateFragmentData build() => _build(); + + _$GServerUpdateFragmentData _build() { + final _$result = _$v ?? + new _$GServerUpdateFragmentData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GServerUpdateFragmentData', 'G__typename'), + channel: BuiltValueNullFieldError.checkNotNull( + channel, r'GServerUpdateFragmentData', 'channel'), + tag: BuiltValueNullFieldError.checkNotNull( + tag, r'GServerUpdateFragmentData', 'tag'), + url: BuiltValueNullFieldError.checkNotNull( + url, r'GServerUpdateFragmentData', 'url')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/about/domain/server_update/graphql/__generated__/fragment.req.gql.dart b/lib/src/features/about/domain/server_update/graphql/__generated__/fragment.req.gql.dart new file mode 100644 index 00000000..3b51ed6a --- /dev/null +++ b/lib/src/features/about/domain/server_update/graphql/__generated__/fragment.req.gql.dart @@ -0,0 +1,67 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql/ast.dart' as _i5; +import 'package:tachidesk_sorayomi/src/features/about/domain/server_update/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/about/domain/server_update/graphql/__generated__/fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/about/domain/server_update/graphql/__generated__/fragment.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'fragment.req.gql.g.dart'; + +abstract class GServerUpdateFragmentReq + implements + Built, + _i1.FragmentRequest<_i2.GServerUpdateFragmentData, + _i3.GServerUpdateFragmentVars> { + GServerUpdateFragmentReq._(); + + factory GServerUpdateFragmentReq( + [void Function(GServerUpdateFragmentReqBuilder b) updates]) = + _$GServerUpdateFragmentReq; + + static void _initializeBuilder(GServerUpdateFragmentReqBuilder b) => b + ..document = _i4.document + ..fragmentName = 'ServerUpdateFragment'; + + @override + _i3.GServerUpdateFragmentVars get vars; + @override + _i5.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GServerUpdateFragmentData? parseData(Map json) => + _i2.GServerUpdateFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GServerUpdateFragmentData data) => + data.toJson(); + + static Serializer get serializer => + _$gServerUpdateFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GServerUpdateFragmentReq.serializer, + this, + ) as Map); + + static GServerUpdateFragmentReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GServerUpdateFragmentReq.serializer, + json, + ); +} diff --git a/lib/src/features/about/domain/server_update/graphql/__generated__/fragment.req.gql.g.dart b/lib/src/features/about/domain/server_update/graphql/__generated__/fragment.req.gql.g.dart new file mode 100644 index 00000000..af9e12fe --- /dev/null +++ b/lib/src/features/about/domain/server_update/graphql/__generated__/fragment.req.gql.g.dart @@ -0,0 +1,237 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gServerUpdateFragmentReqSerializer = + new _$GServerUpdateFragmentReqSerializer(); + +class _$GServerUpdateFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GServerUpdateFragmentReq, + _$GServerUpdateFragmentReq + ]; + @override + final String wireName = 'GServerUpdateFragmentReq'; + + @override + Iterable serialize( + Serializers serializers, GServerUpdateFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GServerUpdateFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i5.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GServerUpdateFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GServerUpdateFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GServerUpdateFragmentVars))! + as _i3.GServerUpdateFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i5.DocumentNode))! + as _i5.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GServerUpdateFragmentReq extends GServerUpdateFragmentReq { + @override + final _i3.GServerUpdateFragmentVars vars; + @override + final _i5.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GServerUpdateFragmentReq( + [void Function(GServerUpdateFragmentReqBuilder)? updates]) => + (new GServerUpdateFragmentReqBuilder()..update(updates))._build(); + + _$GServerUpdateFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GServerUpdateFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GServerUpdateFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GServerUpdateFragmentReq', 'idFields'); + } + + @override + GServerUpdateFragmentReq rebuild( + void Function(GServerUpdateFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GServerUpdateFragmentReqBuilder toBuilder() => + new GServerUpdateFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GServerUpdateFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GServerUpdateFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GServerUpdateFragmentReqBuilder + implements + Builder { + _$GServerUpdateFragmentReq? _$v; + + _i3.GServerUpdateFragmentVarsBuilder? _vars; + _i3.GServerUpdateFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GServerUpdateFragmentVarsBuilder(); + set vars(_i3.GServerUpdateFragmentVarsBuilder? vars) => _$this._vars = vars; + + _i5.DocumentNode? _document; + _i5.DocumentNode? get document => _$this._document; + set document(_i5.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GServerUpdateFragmentReqBuilder() { + GServerUpdateFragmentReq._initializeBuilder(this); + } + + GServerUpdateFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GServerUpdateFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GServerUpdateFragmentReq; + } + + @override + void update(void Function(GServerUpdateFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GServerUpdateFragmentReq build() => _build(); + + _$GServerUpdateFragmentReq _build() { + _$GServerUpdateFragmentReq _$result; + try { + _$result = _$v ?? + new _$GServerUpdateFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GServerUpdateFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GServerUpdateFragmentReq', 'idFields')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GServerUpdateFragmentReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/about/domain/server_update/graphql/__generated__/fragment.var.gql.dart b/lib/src/features/about/domain/server_update/graphql/__generated__/fragment.var.gql.dart new file mode 100644 index 00000000..0700e44d --- /dev/null +++ b/lib/src/features/about/domain/server_update/graphql/__generated__/fragment.var.gql.dart @@ -0,0 +1,34 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragment.var.gql.g.dart'; + +abstract class GServerUpdateFragmentVars + implements + Built { + GServerUpdateFragmentVars._(); + + factory GServerUpdateFragmentVars( + [void Function(GServerUpdateFragmentVarsBuilder b) updates]) = + _$GServerUpdateFragmentVars; + + static Serializer get serializer => + _$gServerUpdateFragmentVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GServerUpdateFragmentVars.serializer, + this, + ) as Map); + + static GServerUpdateFragmentVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GServerUpdateFragmentVars.serializer, + json, + ); +} diff --git a/lib/src/features/about/domain/server_update/graphql/__generated__/fragment.var.gql.g.dart b/lib/src/features/about/domain/server_update/graphql/__generated__/fragment.var.gql.g.dart new file mode 100644 index 00000000..1eac269d --- /dev/null +++ b/lib/src/features/about/domain/server_update/graphql/__generated__/fragment.var.gql.g.dart @@ -0,0 +1,98 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gServerUpdateFragmentVarsSerializer = + new _$GServerUpdateFragmentVarsSerializer(); + +class _$GServerUpdateFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GServerUpdateFragmentVars, + _$GServerUpdateFragmentVars + ]; + @override + final String wireName = 'GServerUpdateFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GServerUpdateFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GServerUpdateFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GServerUpdateFragmentVarsBuilder().build(); + } +} + +class _$GServerUpdateFragmentVars extends GServerUpdateFragmentVars { + factory _$GServerUpdateFragmentVars( + [void Function(GServerUpdateFragmentVarsBuilder)? updates]) => + (new GServerUpdateFragmentVarsBuilder()..update(updates))._build(); + + _$GServerUpdateFragmentVars._() : super._(); + + @override + GServerUpdateFragmentVars rebuild( + void Function(GServerUpdateFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GServerUpdateFragmentVarsBuilder toBuilder() => + new GServerUpdateFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GServerUpdateFragmentVars; + } + + @override + int get hashCode { + return 601218436; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GServerUpdateFragmentVars').toString(); + } +} + +class GServerUpdateFragmentVarsBuilder + implements + Builder { + _$GServerUpdateFragmentVars? _$v; + + GServerUpdateFragmentVarsBuilder(); + + @override + void replace(GServerUpdateFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GServerUpdateFragmentVars; + } + + @override + void update(void Function(GServerUpdateFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GServerUpdateFragmentVars build() => _build(); + + _$GServerUpdateFragmentVars _build() { + final _$result = _$v ?? new _$GServerUpdateFragmentVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/about/domain/server_update/graphql/fragment.dart b/lib/src/features/about/domain/server_update/graphql/fragment.dart new file mode 100644 index 00000000..08a41bf8 --- /dev/null +++ b/lib/src/features/about/domain/server_update/graphql/fragment.dart @@ -0,0 +1,6 @@ +import '../server_update.dart'; +import '__generated__/fragment.data.gql.dart'; + +extension ServerUpdateConverter on GServerUpdateFragment { + ServerUpdate get toDto => ServerUpdate(channel: channel, tag: tag, url: url); +} diff --git a/lib/src/features/about/domain/server_update/graphql/fragment.graphql b/lib/src/features/about/domain/server_update/graphql/fragment.graphql new file mode 100644 index 00000000..df0c7196 --- /dev/null +++ b/lib/src/features/about/domain/server_update/graphql/fragment.graphql @@ -0,0 +1,6 @@ + +fragment ServerUpdateFragment on CheckForServerUpdatesPayload { + channel + tag + url +} diff --git a/lib/src/features/about/presentation/about/about_screen.dart b/lib/src/features/about/presentation/about/about_screen.dart index c30feeed..19fbd5fb 100644 --- a/lib/src/features/about/presentation/about/about_screen.dart +++ b/lib/src/features/about/presentation/about/about_screen.dart @@ -33,12 +33,12 @@ class AboutScreen extends HookConsumerWidget { required String serverVer, required AboutDto about, required Future?> Function() updateCallback, - required Toast toast, + required Toast? toast, }) { - toast.show(context.l10n.searchingForUpdates); + toast?.show(context.l10n.searchingForUpdates); AsyncValue.guard(updateCallback).then( (value) { - toast.close(); + toast?.close(); try { value.whenOrNull( data: (data) { @@ -51,7 +51,7 @@ class AboutScreen extends HookConsumerWidget { final newVer = Version.parse(newUpdate.tag?.substring(1) ?? ""); if ((newVer.compareTo(currentVer)).isGreaterThan(0)) { appUpdateDialog( - title: about.name ?? context.l10n.server, + title: about.name, newRelease: "${newVer.canonicalizedVersion}" " (${newUpdate.channel})", context: context, @@ -59,13 +59,17 @@ class AboutScreen extends HookConsumerWidget { url: newUpdate.url, ); } else { - toast.show(context.l10n.noUpdatesAvailable); + toast?.show(context.l10n.noUpdatesAvailable); + } + }, + error: (error, stackTrace) { + if (toast != null) { + value.showToastOnError(toast); } }, - error: (error, stackTrace) => value.showToastOnError(toast), ); } catch (e) { - toast.showError( + toast?.showError( kDebugMode ? e.toString() : context.l10n.errorSomethingWentWrong, ); } @@ -77,12 +81,12 @@ class AboutScreen extends HookConsumerWidget { required String? title, required BuildContext context, required Future> Function() updateCallback, - required Toast toast, + required Toast? toast, }) async { - toast.show(context.l10n.searchingForUpdates); + toast?.show(context.l10n.searchingForUpdates); final result = await updateCallback(); if (!context.mounted) return; - toast.close(); + toast?.close(); result.whenOrNull( data: (version) { if (version != null) { @@ -93,16 +97,20 @@ class AboutScreen extends HookConsumerWidget { toast: toast, ); } else { - toast.show(context.l10n.noUpdatesAvailable); + toast?.show(context.l10n.noUpdatesAvailable); + } + }, + error: (error, stackTrace) { + if (toast != null) { + result.showToastOnError(toast); } }, - error: (error, stackTrace) => result.showToastOnError(toast), ); } @override Widget build(BuildContext context, WidgetRef ref) { - final toast = ref.watch(toastProvider(context)); + final toast = ref.watch(toastProvider); final aboutAsync = ref.watch(aboutProvider); final about = aboutAsync.valueOrNull; final serverVer = about?.buildType == "Stable" @@ -111,7 +119,9 @@ class AboutScreen extends HookConsumerWidget { final packageInfo = ref.watch(packageInfoProvider); useEffect(() { - aboutAsync.showToastOnError(toast, withMicrotask: true); + if (toast != null) { + aboutAsync.showToastOnError(toast, withMicrotask: true); + } return; }, [aboutAsync.valueOrNull]); @@ -167,10 +177,12 @@ class AboutScreen extends HookConsumerWidget { ), ClipboardListTile( title: context.l10n.buildTime, - value: (about.buildTime).isNull + value: (about.buildTime.value).isNull ? null : DateTime.fromMillisecondsSinceEpoch( - (about.buildTime.getValueOnNullOrNegative()) * 1000, + (int.tryParse(about.buildTime.value) + .getValueOnNullOrNegative()) * + 1000, ).toDateString, ), if (serverVer.isNotBlank) @@ -201,7 +213,7 @@ class AboutScreen extends HookConsumerWidget { MediaLaunchButton( title: context.l10n.discord, iconData: FontAwesomeIcons.discord, - url: about!.discord!, + url: about!.discord, toast: toast, ), MediaLaunchButton( diff --git a/lib/src/features/about/presentation/about/controllers/about_controller.dart b/lib/src/features/about/presentation/about/controllers/about_controller.dart index e05c6f8d..b7666403 100644 --- a/lib/src/features/about/presentation/about/controllers/about_controller.dart +++ b/lib/src/features/about/presentation/about/controllers/about_controller.dart @@ -15,11 +15,8 @@ import '../../../domain/about/about_dto.dart'; part 'about_controller.g.dart'; @riverpod -Stream about(AboutRef ref) { - final result = ref.watch(aboutRepositoryProvider).getAbout(); - ref.keepAlive(); - return result; -} +Stream about(AboutRef ref) => + ref.watch(aboutRepositoryProvider).getAbout(); @riverpod PackageInfo packageInfo(ref) => throw UnimplementedError(); diff --git a/lib/src/features/about/presentation/about/controllers/about_controller.g.dart b/lib/src/features/about/presentation/about/controllers/about_controller.g.dart index e3777762..dc311da7 100644 --- a/lib/src/features/about/presentation/about/controllers/about_controller.g.dart +++ b/lib/src/features/about/presentation/about/controllers/about_controller.g.dart @@ -6,7 +6,7 @@ part of 'about_controller.dart'; // RiverpodGenerator // ************************************************************************** -String _$aboutHash() => r'b095c8ac883226d5e0282b5d019cc97405b02042'; +String _$aboutHash() => r'22aff615621e72e774553fe544e58c7eb13e7f0b'; /// See also [about]. @ProviderFor(about) diff --git a/lib/src/features/about/presentation/about/widget/app_update_dialog.dart b/lib/src/features/about/presentation/about/widget/app_update_dialog.dart index 82386180..ad0e3813 100644 --- a/lib/src/features/about/presentation/about/widget/app_update_dialog.dart +++ b/lib/src/features/about/presentation/about/widget/app_update_dialog.dart @@ -16,7 +16,7 @@ void appUpdateDialog({ required String title, required String newRelease, required BuildContext context, - required Toast toast, + required Toast? toast, String? url, }) => showDialog( diff --git a/lib/src/features/about/presentation/about/widget/clipboard_list_tile.dart b/lib/src/features/about/presentation/about/widget/clipboard_list_tile.dart index a03653e6..6901e162 100644 --- a/lib/src/features/about/presentation/about/widget/clipboard_list_tile.dart +++ b/lib/src/features/about/presentation/about/widget/clipboard_list_tile.dart @@ -20,21 +20,17 @@ class ClipboardListTile extends ConsumerWidget { final String title; final String? value; @override - Widget build(BuildContext context, WidgetRef ref) { - return ListTile( - title: Text(title), - subtitle: value.isNotBlank ? Text(value!) : null, - onTap: value.isNotBlank - ? () { - final msg = "$title: $value"; - Clipboard.setData( - ClipboardData(text: msg), - ); - ref - .read(toastProvider(context)) - .show(context.l10n.copyMsg(msg), instantShow: true); - } - : null, - ); - } + Widget build(BuildContext context, WidgetRef ref) => ListTile( + title: Text(title), + subtitle: value.isNotBlank ? Text(value!) : null, + onTap: value.isNotBlank + ? () { + final msg = "$title: $value"; + Clipboard.setData(ClipboardData(text: msg)); + ref + .read(toastProvider) + ?.show(context.l10n.copyMsg(msg), instantShow: true); + } + : null, + ); } diff --git a/lib/src/features/about/presentation/about/widget/media_launch_button.dart b/lib/src/features/about/presentation/about/widget/media_launch_button.dart index 59439074..fb100d60 100644 --- a/lib/src/features/about/presentation/about/widget/media_launch_button.dart +++ b/lib/src/features/about/presentation/about/widget/media_launch_button.dart @@ -19,7 +19,7 @@ class MediaLaunchButton extends StatelessWidget { required this.url, }); - final Toast toast; + final Toast? toast; final String title; final IconData iconData; final String url; diff --git a/lib/src/features/browse_center/data/extension_repository/extension_repository.dart b/lib/src/features/browse_center/data/extension_repository/extension_repository.dart index b2bc0ad3..9b56eb95 100644 --- a/lib/src/features/browse_center/data/extension_repository/extension_repository.dart +++ b/lib/src/features/browse_center/data/extension_repository/extension_repository.dart @@ -5,17 +5,16 @@ // file, You can obtain one at http://mozilla.org/MPL/2.0/. import 'package:dio/dio.dart'; - import 'package:file_picker/file_picker.dart'; import 'package:flutter/material.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; import '../../../../constants/endpoints.dart'; import '../../../../global_providers/global_providers.dart'; - import '../../../../utils/extensions/custom_extensions.dart'; import '../../../../utils/storage/dio/dio_client.dart'; import '../../domain/extension/extension_model.dart'; +import '../../domain/extension/graphql/__generated__/fragment.data.gql.dart'; part 'extension_repository.g.dart'; @@ -80,8 +79,7 @@ class ExtensionRepository { Future?> getExtensionList({CancelToken? cancelToken}) async => (await dioClient.get, Extension>( ExtensionUrl.list, - decoder: (e) => - e is Map ? Extension.fromJson(e) : Extension(), + decoder: (e) => GExtensionFragmentData(), cancelToken: cancelToken, )) .data; diff --git a/lib/src/features/browse_center/data/source_repository/source_repository.dart b/lib/src/features/browse_center/data/source_repository/source_repository.dart index bdfe59ec..52df9880 100644 --- a/lib/src/features/browse_center/data/source_repository/source_repository.dart +++ b/lib/src/features/browse_center/data/source_repository/source_repository.dart @@ -13,6 +13,7 @@ import '../../../../global_providers/global_providers.dart'; import '../../../../utils/storage/dio/dio_client.dart'; import '../../domain/filter/filter_model.dart'; import '../../domain/manga_page/manga_page.dart'; +import '../../domain/source/graphql/__generated__/fragment.data.gql.dart'; import '../../domain/source/source_model.dart'; import '../../domain/source_preference/source_preference.dart'; @@ -26,8 +27,7 @@ class SourceRepository { Future?> getSourceList({CancelToken? cancelToken}) async => (await dioClient.get, Source>( SourceUrl.sourceList, - decoder: (e) => - e is Map ? Source.fromJson(e) : Source(), + decoder: (e) => GSourceFragmentData(), cancelToken: cancelToken, )) .data; @@ -43,8 +43,7 @@ class SourceRepository { if (sourceType != SourceType.filter) { return (await dioClient.get( SourceUrl.getMangaList(sourceId, sourceType.name, pageNum), - decoder: (e) => - e is Map ? MangaPage.fromJson(e) : null, + decoder: (e) => null, //TODO: Implement decoder cancelToken: cancelToken, )) .data; @@ -58,8 +57,7 @@ class SourceRepository { "searchTerm": query ?? "", "filter": [...?filter], }, - decoder: (e) => - e is Map ? MangaPage.fromJson(e) : null, + decoder: (e) => null, cancelToken: cancelToken, )) .data; @@ -82,8 +80,7 @@ class SourceRepository { {required String sourceId, CancelToken? cancelToken}) async => (await dioClient.get( SourceUrl.withId(sourceId), - decoder: (e) => - e is Map ? Source.fromJson(e) : Source(), + decoder: (e) => GSourceFragmentData(), cancelToken: cancelToken, )) .data; @@ -96,7 +93,7 @@ class SourceRepository { SourceUrl.preferences(sourceId), decoder: (e) => e is Map ? SourcePreference.fromJson(e) - : SourcePreference(), + : const SourcePreference.fallback(), cancelToken: cancelToken, )) .data; diff --git a/lib/src/features/browse_center/domain/extension/extension_model.dart b/lib/src/features/browse_center/domain/extension/extension_model.dart index 7ecf60bb..da710aed 100644 --- a/lib/src/features/browse_center/domain/extension/extension_model.dart +++ b/lib/src/features/browse_center/domain/extension/extension_model.dart @@ -4,34 +4,12 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -import 'package:freezed_annotation/freezed_annotation.dart'; - import '../../../../utils/freezed_converters/language_json_converter.dart'; import '../language/language_model.dart'; +import 'graphql/__generated__/fragment.data.gql.dart'; -part 'extension_model.freezed.dart'; -part 'extension_model.g.dart'; - -@freezed -class Extension with _$Extension { - factory Extension({ - String? apkName, - bool? hasUpdate, - String? iconUrl, - bool? installed, - bool? isNsfw, - @JsonKey( - fromJson: LanguageJsonConverter.fromJson, - toJson: LanguageJsonConverter.toJson, - ) - Language? lang, - String? name, - bool? obsolete, - String? pkgName, - int? versionCode, - String? versionName, - }) = _Extension; +typedef Extension = GExtensionFragment; - factory Extension.fromJson(Map json) => - _$ExtensionFromJson(json); +extension ExtensionExtensions on GExtensionFragment { + Language? get language => LanguageJsonConverter.fromJson(lang); } diff --git a/lib/src/features/browse_center/domain/extension/extension_model.freezed.dart b/lib/src/features/browse_center/domain/extension/extension_model.freezed.dart deleted file mode 100644 index fa6fdc7e..00000000 --- a/lib/src/features/browse_center/domain/extension/extension_model.freezed.dart +++ /dev/null @@ -1,409 +0,0 @@ -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// 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 'extension_model.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -T _$identity(T value) => value; - -final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); - -Extension _$ExtensionFromJson(Map json) { - return _Extension.fromJson(json); -} - -/// @nodoc -mixin _$Extension { - String? get apkName => throw _privateConstructorUsedError; - bool? get hasUpdate => throw _privateConstructorUsedError; - String? get iconUrl => throw _privateConstructorUsedError; - bool? get installed => throw _privateConstructorUsedError; - bool? get isNsfw => throw _privateConstructorUsedError; - @JsonKey( - fromJson: LanguageJsonConverter.fromJson, - toJson: LanguageJsonConverter.toJson) - Language? get lang => throw _privateConstructorUsedError; - String? get name => throw _privateConstructorUsedError; - bool? get obsolete => throw _privateConstructorUsedError; - String? get pkgName => throw _privateConstructorUsedError; - int? get versionCode => throw _privateConstructorUsedError; - String? get versionName => throw _privateConstructorUsedError; - - Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) - $ExtensionCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ExtensionCopyWith<$Res> { - factory $ExtensionCopyWith(Extension value, $Res Function(Extension) then) = - _$ExtensionCopyWithImpl<$Res, Extension>; - @useResult - $Res call( - {String? apkName, - bool? hasUpdate, - String? iconUrl, - bool? installed, - bool? isNsfw, - @JsonKey( - fromJson: LanguageJsonConverter.fromJson, - toJson: LanguageJsonConverter.toJson) - Language? lang, - String? name, - bool? obsolete, - String? pkgName, - int? versionCode, - String? versionName}); - - $LanguageCopyWith<$Res>? get lang; -} - -/// @nodoc -class _$ExtensionCopyWithImpl<$Res, $Val extends Extension> - implements $ExtensionCopyWith<$Res> { - _$ExtensionCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? apkName = freezed, - Object? hasUpdate = freezed, - Object? iconUrl = freezed, - Object? installed = freezed, - Object? isNsfw = freezed, - Object? lang = freezed, - Object? name = freezed, - Object? obsolete = freezed, - Object? pkgName = freezed, - Object? versionCode = freezed, - Object? versionName = freezed, - }) { - return _then(_value.copyWith( - apkName: freezed == apkName - ? _value.apkName - : apkName // ignore: cast_nullable_to_non_nullable - as String?, - hasUpdate: freezed == hasUpdate - ? _value.hasUpdate - : hasUpdate // ignore: cast_nullable_to_non_nullable - as bool?, - iconUrl: freezed == iconUrl - ? _value.iconUrl - : iconUrl // ignore: cast_nullable_to_non_nullable - as String?, - installed: freezed == installed - ? _value.installed - : installed // ignore: cast_nullable_to_non_nullable - as bool?, - isNsfw: freezed == isNsfw - ? _value.isNsfw - : isNsfw // ignore: cast_nullable_to_non_nullable - as bool?, - lang: freezed == lang - ? _value.lang - : lang // ignore: cast_nullable_to_non_nullable - as Language?, - name: freezed == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String?, - obsolete: freezed == obsolete - ? _value.obsolete - : obsolete // ignore: cast_nullable_to_non_nullable - as bool?, - pkgName: freezed == pkgName - ? _value.pkgName - : pkgName // ignore: cast_nullable_to_non_nullable - as String?, - versionCode: freezed == versionCode - ? _value.versionCode - : versionCode // ignore: cast_nullable_to_non_nullable - as int?, - versionName: freezed == versionName - ? _value.versionName - : versionName // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } - - @override - @pragma('vm:prefer-inline') - $LanguageCopyWith<$Res>? get lang { - if (_value.lang == null) { - return null; - } - - return $LanguageCopyWith<$Res>(_value.lang!, (value) { - return _then(_value.copyWith(lang: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$ExtensionImplCopyWith<$Res> - implements $ExtensionCopyWith<$Res> { - factory _$$ExtensionImplCopyWith( - _$ExtensionImpl value, $Res Function(_$ExtensionImpl) then) = - __$$ExtensionImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {String? apkName, - bool? hasUpdate, - String? iconUrl, - bool? installed, - bool? isNsfw, - @JsonKey( - fromJson: LanguageJsonConverter.fromJson, - toJson: LanguageJsonConverter.toJson) - Language? lang, - String? name, - bool? obsolete, - String? pkgName, - int? versionCode, - String? versionName}); - - @override - $LanguageCopyWith<$Res>? get lang; -} - -/// @nodoc -class __$$ExtensionImplCopyWithImpl<$Res> - extends _$ExtensionCopyWithImpl<$Res, _$ExtensionImpl> - implements _$$ExtensionImplCopyWith<$Res> { - __$$ExtensionImplCopyWithImpl( - _$ExtensionImpl _value, $Res Function(_$ExtensionImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? apkName = freezed, - Object? hasUpdate = freezed, - Object? iconUrl = freezed, - Object? installed = freezed, - Object? isNsfw = freezed, - Object? lang = freezed, - Object? name = freezed, - Object? obsolete = freezed, - Object? pkgName = freezed, - Object? versionCode = freezed, - Object? versionName = freezed, - }) { - return _then(_$ExtensionImpl( - apkName: freezed == apkName - ? _value.apkName - : apkName // ignore: cast_nullable_to_non_nullable - as String?, - hasUpdate: freezed == hasUpdate - ? _value.hasUpdate - : hasUpdate // ignore: cast_nullable_to_non_nullable - as bool?, - iconUrl: freezed == iconUrl - ? _value.iconUrl - : iconUrl // ignore: cast_nullable_to_non_nullable - as String?, - installed: freezed == installed - ? _value.installed - : installed // ignore: cast_nullable_to_non_nullable - as bool?, - isNsfw: freezed == isNsfw - ? _value.isNsfw - : isNsfw // ignore: cast_nullable_to_non_nullable - as bool?, - lang: freezed == lang - ? _value.lang - : lang // ignore: cast_nullable_to_non_nullable - as Language?, - name: freezed == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String?, - obsolete: freezed == obsolete - ? _value.obsolete - : obsolete // ignore: cast_nullable_to_non_nullable - as bool?, - pkgName: freezed == pkgName - ? _value.pkgName - : pkgName // ignore: cast_nullable_to_non_nullable - as String?, - versionCode: freezed == versionCode - ? _value.versionCode - : versionCode // ignore: cast_nullable_to_non_nullable - as int?, - versionName: freezed == versionName - ? _value.versionName - : versionName // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$ExtensionImpl implements _Extension { - _$ExtensionImpl( - {this.apkName, - this.hasUpdate, - this.iconUrl, - this.installed, - this.isNsfw, - @JsonKey( - fromJson: LanguageJsonConverter.fromJson, - toJson: LanguageJsonConverter.toJson) - this.lang, - this.name, - this.obsolete, - this.pkgName, - this.versionCode, - this.versionName}); - - factory _$ExtensionImpl.fromJson(Map json) => - _$$ExtensionImplFromJson(json); - - @override - final String? apkName; - @override - final bool? hasUpdate; - @override - final String? iconUrl; - @override - final bool? installed; - @override - final bool? isNsfw; - @override - @JsonKey( - fromJson: LanguageJsonConverter.fromJson, - toJson: LanguageJsonConverter.toJson) - final Language? lang; - @override - final String? name; - @override - final bool? obsolete; - @override - final String? pkgName; - @override - final int? versionCode; - @override - final String? versionName; - - @override - String toString() { - return 'Extension(apkName: $apkName, hasUpdate: $hasUpdate, iconUrl: $iconUrl, installed: $installed, isNsfw: $isNsfw, lang: $lang, name: $name, obsolete: $obsolete, pkgName: $pkgName, versionCode: $versionCode, versionName: $versionName)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ExtensionImpl && - (identical(other.apkName, apkName) || other.apkName == apkName) && - (identical(other.hasUpdate, hasUpdate) || - other.hasUpdate == hasUpdate) && - (identical(other.iconUrl, iconUrl) || other.iconUrl == iconUrl) && - (identical(other.installed, installed) || - other.installed == installed) && - (identical(other.isNsfw, isNsfw) || other.isNsfw == isNsfw) && - (identical(other.lang, lang) || other.lang == lang) && - (identical(other.name, name) || other.name == name) && - (identical(other.obsolete, obsolete) || - other.obsolete == obsolete) && - (identical(other.pkgName, pkgName) || other.pkgName == pkgName) && - (identical(other.versionCode, versionCode) || - other.versionCode == versionCode) && - (identical(other.versionName, versionName) || - other.versionName == versionName)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => Object.hash( - runtimeType, - apkName, - hasUpdate, - iconUrl, - installed, - isNsfw, - lang, - name, - obsolete, - pkgName, - versionCode, - versionName); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$ExtensionImplCopyWith<_$ExtensionImpl> get copyWith => - __$$ExtensionImplCopyWithImpl<_$ExtensionImpl>(this, _$identity); - - @override - Map toJson() { - return _$$ExtensionImplToJson( - this, - ); - } -} - -abstract class _Extension implements Extension { - factory _Extension( - {final String? apkName, - final bool? hasUpdate, - final String? iconUrl, - final bool? installed, - final bool? isNsfw, - @JsonKey( - fromJson: LanguageJsonConverter.fromJson, - toJson: LanguageJsonConverter.toJson) - final Language? lang, - final String? name, - final bool? obsolete, - final String? pkgName, - final int? versionCode, - final String? versionName}) = _$ExtensionImpl; - - factory _Extension.fromJson(Map json) = - _$ExtensionImpl.fromJson; - - @override - String? get apkName; - @override - bool? get hasUpdate; - @override - String? get iconUrl; - @override - bool? get installed; - @override - bool? get isNsfw; - @override - @JsonKey( - fromJson: LanguageJsonConverter.fromJson, - toJson: LanguageJsonConverter.toJson) - Language? get lang; - @override - String? get name; - @override - bool? get obsolete; - @override - String? get pkgName; - @override - int? get versionCode; - @override - String? get versionName; - @override - @JsonKey(ignore: true) - _$$ExtensionImplCopyWith<_$ExtensionImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/features/browse_center/domain/extension/extension_model.g.dart b/lib/src/features/browse_center/domain/extension/extension_model.g.dart deleted file mode 100644 index 1ca8db5b..00000000 --- a/lib/src/features/browse_center/domain/extension/extension_model.g.dart +++ /dev/null @@ -1,37 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'extension_model.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ExtensionImpl _$$ExtensionImplFromJson(Map json) => - _$ExtensionImpl( - apkName: json['apkName'] as String?, - hasUpdate: json['hasUpdate'] as bool?, - iconUrl: json['iconUrl'] as String?, - installed: json['installed'] as bool?, - isNsfw: json['isNsfw'] as bool?, - lang: LanguageJsonConverter.fromJson(json['lang'] as String?), - name: json['name'] as String?, - obsolete: json['obsolete'] as bool?, - pkgName: json['pkgName'] as String?, - versionCode: json['versionCode'] as int?, - versionName: json['versionName'] as String?, - ); - -Map _$$ExtensionImplToJson(_$ExtensionImpl instance) => - { - 'apkName': instance.apkName, - 'hasUpdate': instance.hasUpdate, - 'iconUrl': instance.iconUrl, - 'installed': instance.installed, - 'isNsfw': instance.isNsfw, - 'lang': LanguageJsonConverter.toJson(instance.lang), - 'name': instance.name, - 'obsolete': instance.obsolete, - 'pkgName': instance.pkgName, - 'versionCode': instance.versionCode, - 'versionName': instance.versionName, - }; diff --git a/lib/src/features/browse_center/domain/extension/graphql/__generated__/fragment.ast.gql.dart b/lib/src/features/browse_center/domain/extension/graphql/__generated__/fragment.ast.gql.dart new file mode 100644 index 00000000..9b9465cb --- /dev/null +++ b/lib/src/features/browse_center/domain/extension/graphql/__generated__/fragment.ast.gql.dart @@ -0,0 +1,102 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const ExtensionFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'ExtensionFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionType'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'apkName'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'hasUpdate'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'iconUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'isInstalled'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'isNsfw'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'isObsolete'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'lang'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'pkgName'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'repo'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'versionCode'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'versionName'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), +); +const document = _i1.DocumentNode(definitions: [ExtensionFragment]); diff --git a/lib/src/features/browse_center/domain/extension/graphql/__generated__/fragment.data.gql.dart b/lib/src/features/browse_center/domain/extension/graphql/__generated__/fragment.data.gql.dart new file mode 100644 index 00000000..6980a36f --- /dev/null +++ b/lib/src/features/browse_center/domain/extension/graphql/__generated__/fragment.data.gql.dart @@ -0,0 +1,83 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragment.data.gql.g.dart'; + +abstract class GExtensionFragment { + String get G__typename; + String get apkName; + bool get hasUpdate; + String get iconUrl; + bool get isInstalled; + bool get isNsfw; + bool get isObsolete; + String get lang; + String get name; + String get pkgName; + String? get repo; + int get versionCode; + String get versionName; + Map toJson(); +} + +abstract class GExtensionFragmentData + implements + Built, + GExtensionFragment { + GExtensionFragmentData._(); + + factory GExtensionFragmentData( + [void Function(GExtensionFragmentDataBuilder b) updates]) = + _$GExtensionFragmentData; + + static void _initializeBuilder(GExtensionFragmentDataBuilder b) => + b..G__typename = 'ExtensionType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get apkName; + @override + bool get hasUpdate; + @override + String get iconUrl; + @override + bool get isInstalled; + @override + bool get isNsfw; + @override + bool get isObsolete; + @override + String get lang; + @override + String get name; + @override + String get pkgName; + @override + String? get repo; + @override + int get versionCode; + @override + String get versionName; + static Serializer get serializer => + _$gExtensionFragmentDataSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GExtensionFragmentData.serializer, + this, + ) as Map); + + static GExtensionFragmentData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GExtensionFragmentData.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/domain/extension/graphql/__generated__/fragment.data.gql.g.dart b/lib/src/features/browse_center/domain/extension/graphql/__generated__/fragment.data.gql.g.dart new file mode 100644 index 00000000..fa4aaae0 --- /dev/null +++ b/lib/src/features/browse_center/domain/extension/graphql/__generated__/fragment.data.gql.g.dart @@ -0,0 +1,409 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gExtensionFragmentDataSerializer = + new _$GExtensionFragmentDataSerializer(); + +class _$GExtensionFragmentDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GExtensionFragmentData, + _$GExtensionFragmentData + ]; + @override + final String wireName = 'GExtensionFragmentData'; + + @override + Iterable serialize( + Serializers serializers, GExtensionFragmentData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'apkName', + serializers.serialize(object.apkName, + specifiedType: const FullType(String)), + 'hasUpdate', + serializers.serialize(object.hasUpdate, + specifiedType: const FullType(bool)), + 'iconUrl', + serializers.serialize(object.iconUrl, + specifiedType: const FullType(String)), + 'isInstalled', + serializers.serialize(object.isInstalled, + specifiedType: const FullType(bool)), + 'isNsfw', + serializers.serialize(object.isNsfw, specifiedType: const FullType(bool)), + 'isObsolete', + serializers.serialize(object.isObsolete, + specifiedType: const FullType(bool)), + 'lang', + serializers.serialize(object.lang, specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'pkgName', + serializers.serialize(object.pkgName, + specifiedType: const FullType(String)), + 'versionCode', + serializers.serialize(object.versionCode, + specifiedType: const FullType(int)), + 'versionName', + serializers.serialize(object.versionName, + specifiedType: const FullType(String)), + ]; + Object? value; + value = object.repo; + if (value != null) { + result + ..add('repo') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GExtensionFragmentData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GExtensionFragmentDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'apkName': + result.apkName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'hasUpdate': + result.hasUpdate = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'iconUrl': + result.iconUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'isInstalled': + result.isInstalled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isNsfw': + result.isNsfw = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isObsolete': + result.isObsolete = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'lang': + result.lang = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'pkgName': + result.pkgName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'repo': + result.repo = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'versionCode': + result.versionCode = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'versionName': + result.versionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GExtensionFragmentData extends GExtensionFragmentData { + @override + final String G__typename; + @override + final String apkName; + @override + final bool hasUpdate; + @override + final String iconUrl; + @override + final bool isInstalled; + @override + final bool isNsfw; + @override + final bool isObsolete; + @override + final String lang; + @override + final String name; + @override + final String pkgName; + @override + final String? repo; + @override + final int versionCode; + @override + final String versionName; + + factory _$GExtensionFragmentData( + [void Function(GExtensionFragmentDataBuilder)? updates]) => + (new GExtensionFragmentDataBuilder()..update(updates))._build(); + + _$GExtensionFragmentData._( + {required this.G__typename, + required this.apkName, + required this.hasUpdate, + required this.iconUrl, + required this.isInstalled, + required this.isNsfw, + required this.isObsolete, + required this.lang, + required this.name, + required this.pkgName, + this.repo, + required this.versionCode, + required this.versionName}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GExtensionFragmentData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + apkName, r'GExtensionFragmentData', 'apkName'); + BuiltValueNullFieldError.checkNotNull( + hasUpdate, r'GExtensionFragmentData', 'hasUpdate'); + BuiltValueNullFieldError.checkNotNull( + iconUrl, r'GExtensionFragmentData', 'iconUrl'); + BuiltValueNullFieldError.checkNotNull( + isInstalled, r'GExtensionFragmentData', 'isInstalled'); + BuiltValueNullFieldError.checkNotNull( + isNsfw, r'GExtensionFragmentData', 'isNsfw'); + BuiltValueNullFieldError.checkNotNull( + isObsolete, r'GExtensionFragmentData', 'isObsolete'); + BuiltValueNullFieldError.checkNotNull( + lang, r'GExtensionFragmentData', 'lang'); + BuiltValueNullFieldError.checkNotNull( + name, r'GExtensionFragmentData', 'name'); + BuiltValueNullFieldError.checkNotNull( + pkgName, r'GExtensionFragmentData', 'pkgName'); + BuiltValueNullFieldError.checkNotNull( + versionCode, r'GExtensionFragmentData', 'versionCode'); + BuiltValueNullFieldError.checkNotNull( + versionName, r'GExtensionFragmentData', 'versionName'); + } + + @override + GExtensionFragmentData rebuild( + void Function(GExtensionFragmentDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GExtensionFragmentDataBuilder toBuilder() => + new GExtensionFragmentDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GExtensionFragmentData && + G__typename == other.G__typename && + apkName == other.apkName && + hasUpdate == other.hasUpdate && + iconUrl == other.iconUrl && + isInstalled == other.isInstalled && + isNsfw == other.isNsfw && + isObsolete == other.isObsolete && + lang == other.lang && + name == other.name && + pkgName == other.pkgName && + repo == other.repo && + versionCode == other.versionCode && + versionName == other.versionName; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, apkName.hashCode); + _$hash = $jc(_$hash, hasUpdate.hashCode); + _$hash = $jc(_$hash, iconUrl.hashCode); + _$hash = $jc(_$hash, isInstalled.hashCode); + _$hash = $jc(_$hash, isNsfw.hashCode); + _$hash = $jc(_$hash, isObsolete.hashCode); + _$hash = $jc(_$hash, lang.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, pkgName.hashCode); + _$hash = $jc(_$hash, repo.hashCode); + _$hash = $jc(_$hash, versionCode.hashCode); + _$hash = $jc(_$hash, versionName.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GExtensionFragmentData') + ..add('G__typename', G__typename) + ..add('apkName', apkName) + ..add('hasUpdate', hasUpdate) + ..add('iconUrl', iconUrl) + ..add('isInstalled', isInstalled) + ..add('isNsfw', isNsfw) + ..add('isObsolete', isObsolete) + ..add('lang', lang) + ..add('name', name) + ..add('pkgName', pkgName) + ..add('repo', repo) + ..add('versionCode', versionCode) + ..add('versionName', versionName)) + .toString(); + } +} + +class GExtensionFragmentDataBuilder + implements Builder { + _$GExtensionFragmentData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _apkName; + String? get apkName => _$this._apkName; + set apkName(String? apkName) => _$this._apkName = apkName; + + bool? _hasUpdate; + bool? get hasUpdate => _$this._hasUpdate; + set hasUpdate(bool? hasUpdate) => _$this._hasUpdate = hasUpdate; + + String? _iconUrl; + String? get iconUrl => _$this._iconUrl; + set iconUrl(String? iconUrl) => _$this._iconUrl = iconUrl; + + bool? _isInstalled; + bool? get isInstalled => _$this._isInstalled; + set isInstalled(bool? isInstalled) => _$this._isInstalled = isInstalled; + + bool? _isNsfw; + bool? get isNsfw => _$this._isNsfw; + set isNsfw(bool? isNsfw) => _$this._isNsfw = isNsfw; + + bool? _isObsolete; + bool? get isObsolete => _$this._isObsolete; + set isObsolete(bool? isObsolete) => _$this._isObsolete = isObsolete; + + String? _lang; + String? get lang => _$this._lang; + set lang(String? lang) => _$this._lang = lang; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + String? _pkgName; + String? get pkgName => _$this._pkgName; + set pkgName(String? pkgName) => _$this._pkgName = pkgName; + + String? _repo; + String? get repo => _$this._repo; + set repo(String? repo) => _$this._repo = repo; + + int? _versionCode; + int? get versionCode => _$this._versionCode; + set versionCode(int? versionCode) => _$this._versionCode = versionCode; + + String? _versionName; + String? get versionName => _$this._versionName; + set versionName(String? versionName) => _$this._versionName = versionName; + + GExtensionFragmentDataBuilder() { + GExtensionFragmentData._initializeBuilder(this); + } + + GExtensionFragmentDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _apkName = $v.apkName; + _hasUpdate = $v.hasUpdate; + _iconUrl = $v.iconUrl; + _isInstalled = $v.isInstalled; + _isNsfw = $v.isNsfw; + _isObsolete = $v.isObsolete; + _lang = $v.lang; + _name = $v.name; + _pkgName = $v.pkgName; + _repo = $v.repo; + _versionCode = $v.versionCode; + _versionName = $v.versionName; + _$v = null; + } + return this; + } + + @override + void replace(GExtensionFragmentData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GExtensionFragmentData; + } + + @override + void update(void Function(GExtensionFragmentDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GExtensionFragmentData build() => _build(); + + _$GExtensionFragmentData _build() { + final _$result = _$v ?? + new _$GExtensionFragmentData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GExtensionFragmentData', 'G__typename'), + apkName: BuiltValueNullFieldError.checkNotNull( + apkName, r'GExtensionFragmentData', 'apkName'), + hasUpdate: BuiltValueNullFieldError.checkNotNull( + hasUpdate, r'GExtensionFragmentData', 'hasUpdate'), + iconUrl: BuiltValueNullFieldError.checkNotNull( + iconUrl, r'GExtensionFragmentData', 'iconUrl'), + isInstalled: BuiltValueNullFieldError.checkNotNull( + isInstalled, r'GExtensionFragmentData', 'isInstalled'), + isNsfw: BuiltValueNullFieldError.checkNotNull( + isNsfw, r'GExtensionFragmentData', 'isNsfw'), + isObsolete: BuiltValueNullFieldError.checkNotNull( + isObsolete, r'GExtensionFragmentData', 'isObsolete'), + lang: BuiltValueNullFieldError.checkNotNull( + lang, r'GExtensionFragmentData', 'lang'), + name: + BuiltValueNullFieldError.checkNotNull(name, r'GExtensionFragmentData', 'name'), + pkgName: BuiltValueNullFieldError.checkNotNull(pkgName, r'GExtensionFragmentData', 'pkgName'), + repo: repo, + versionCode: BuiltValueNullFieldError.checkNotNull(versionCode, r'GExtensionFragmentData', 'versionCode'), + versionName: BuiltValueNullFieldError.checkNotNull(versionName, r'GExtensionFragmentData', 'versionName')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/domain/extension/graphql/__generated__/fragment.req.gql.dart b/lib/src/features/browse_center/domain/extension/graphql/__generated__/fragment.req.gql.dart new file mode 100644 index 00000000..df260034 --- /dev/null +++ b/lib/src/features/browse_center/domain/extension/graphql/__generated__/fragment.req.gql.dart @@ -0,0 +1,67 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql/ast.dart' as _i5; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/extension/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/extension/graphql/__generated__/fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/extension/graphql/__generated__/fragment.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'fragment.req.gql.g.dart'; + +abstract class GExtensionFragmentReq + implements + Built, + _i1.FragmentRequest<_i2.GExtensionFragmentData, + _i3.GExtensionFragmentVars> { + GExtensionFragmentReq._(); + + factory GExtensionFragmentReq( + [void Function(GExtensionFragmentReqBuilder b) updates]) = + _$GExtensionFragmentReq; + + static void _initializeBuilder(GExtensionFragmentReqBuilder b) => b + ..document = _i4.document + ..fragmentName = 'ExtensionFragment'; + + @override + _i3.GExtensionFragmentVars get vars; + @override + _i5.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GExtensionFragmentData? parseData(Map json) => + _i2.GExtensionFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GExtensionFragmentData data) => + data.toJson(); + + static Serializer get serializer => + _$gExtensionFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GExtensionFragmentReq.serializer, + this, + ) as Map); + + static GExtensionFragmentReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GExtensionFragmentReq.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/domain/extension/graphql/__generated__/fragment.req.gql.g.dart b/lib/src/features/browse_center/domain/extension/graphql/__generated__/fragment.req.gql.g.dart new file mode 100644 index 00000000..ca6697ce --- /dev/null +++ b/lib/src/features/browse_center/domain/extension/graphql/__generated__/fragment.req.gql.g.dart @@ -0,0 +1,236 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gExtensionFragmentReqSerializer = + new _$GExtensionFragmentReqSerializer(); + +class _$GExtensionFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GExtensionFragmentReq, + _$GExtensionFragmentReq + ]; + @override + final String wireName = 'GExtensionFragmentReq'; + + @override + Iterable serialize( + Serializers serializers, GExtensionFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GExtensionFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i5.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GExtensionFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GExtensionFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GExtensionFragmentVars))! + as _i3.GExtensionFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i5.DocumentNode))! + as _i5.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GExtensionFragmentReq extends GExtensionFragmentReq { + @override + final _i3.GExtensionFragmentVars vars; + @override + final _i5.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GExtensionFragmentReq( + [void Function(GExtensionFragmentReqBuilder)? updates]) => + (new GExtensionFragmentReqBuilder()..update(updates))._build(); + + _$GExtensionFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GExtensionFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GExtensionFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GExtensionFragmentReq', 'idFields'); + } + + @override + GExtensionFragmentReq rebuild( + void Function(GExtensionFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GExtensionFragmentReqBuilder toBuilder() => + new GExtensionFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GExtensionFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GExtensionFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GExtensionFragmentReqBuilder + implements Builder { + _$GExtensionFragmentReq? _$v; + + _i3.GExtensionFragmentVarsBuilder? _vars; + _i3.GExtensionFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GExtensionFragmentVarsBuilder(); + set vars(_i3.GExtensionFragmentVarsBuilder? vars) => _$this._vars = vars; + + _i5.DocumentNode? _document; + _i5.DocumentNode? get document => _$this._document; + set document(_i5.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GExtensionFragmentReqBuilder() { + GExtensionFragmentReq._initializeBuilder(this); + } + + GExtensionFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GExtensionFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GExtensionFragmentReq; + } + + @override + void update(void Function(GExtensionFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GExtensionFragmentReq build() => _build(); + + _$GExtensionFragmentReq _build() { + _$GExtensionFragmentReq _$result; + try { + _$result = _$v ?? + new _$GExtensionFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GExtensionFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GExtensionFragmentReq', 'idFields')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GExtensionFragmentReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/domain/extension/graphql/__generated__/fragment.var.gql.dart b/lib/src/features/browse_center/domain/extension/graphql/__generated__/fragment.var.gql.dart new file mode 100644 index 00000000..779c9247 --- /dev/null +++ b/lib/src/features/browse_center/domain/extension/graphql/__generated__/fragment.var.gql.dart @@ -0,0 +1,33 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragment.var.gql.g.dart'; + +abstract class GExtensionFragmentVars + implements Built { + GExtensionFragmentVars._(); + + factory GExtensionFragmentVars( + [void Function(GExtensionFragmentVarsBuilder b) updates]) = + _$GExtensionFragmentVars; + + static Serializer get serializer => + _$gExtensionFragmentVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GExtensionFragmentVars.serializer, + this, + ) as Map); + + static GExtensionFragmentVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GExtensionFragmentVars.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/domain/extension/graphql/__generated__/fragment.var.gql.g.dart b/lib/src/features/browse_center/domain/extension/graphql/__generated__/fragment.var.gql.g.dart new file mode 100644 index 00000000..4fca1c58 --- /dev/null +++ b/lib/src/features/browse_center/domain/extension/graphql/__generated__/fragment.var.gql.g.dart @@ -0,0 +1,97 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gExtensionFragmentVarsSerializer = + new _$GExtensionFragmentVarsSerializer(); + +class _$GExtensionFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GExtensionFragmentVars, + _$GExtensionFragmentVars + ]; + @override + final String wireName = 'GExtensionFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GExtensionFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GExtensionFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GExtensionFragmentVarsBuilder().build(); + } +} + +class _$GExtensionFragmentVars extends GExtensionFragmentVars { + factory _$GExtensionFragmentVars( + [void Function(GExtensionFragmentVarsBuilder)? updates]) => + (new GExtensionFragmentVarsBuilder()..update(updates))._build(); + + _$GExtensionFragmentVars._() : super._(); + + @override + GExtensionFragmentVars rebuild( + void Function(GExtensionFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GExtensionFragmentVarsBuilder toBuilder() => + new GExtensionFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GExtensionFragmentVars; + } + + @override + int get hashCode { + return 82269504; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GExtensionFragmentVars').toString(); + } +} + +class GExtensionFragmentVarsBuilder + implements Builder { + _$GExtensionFragmentVars? _$v; + + GExtensionFragmentVarsBuilder(); + + @override + void replace(GExtensionFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GExtensionFragmentVars; + } + + @override + void update(void Function(GExtensionFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GExtensionFragmentVars build() => _build(); + + _$GExtensionFragmentVars _build() { + final _$result = _$v ?? new _$GExtensionFragmentVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/domain/extension/graphql/fragment.graphql b/lib/src/features/browse_center/domain/extension/graphql/fragment.graphql new file mode 100644 index 00000000..a0759067 --- /dev/null +++ b/lib/src/features/browse_center/domain/extension/graphql/fragment.graphql @@ -0,0 +1,15 @@ + +fragment ExtensionFragment on ExtensionType { + apkName + hasUpdate + iconUrl + isInstalled + isNsfw + isObsolete + lang + name + pkgName + repo + versionCode + versionName +} diff --git a/lib/src/features/browse_center/domain/manga_page/manga_page.dart b/lib/src/features/browse_center/domain/manga_page/manga_page.dart index 4208e249..ead2e367 100644 --- a/lib/src/features/browse_center/domain/manga_page/manga_page.dart +++ b/lib/src/features/browse_center/domain/manga_page/manga_page.dart @@ -9,7 +9,6 @@ import 'package:freezed_annotation/freezed_annotation.dart'; import '../../../manga_book/domain/manga/manga_model.dart'; part 'manga_page.freezed.dart'; -part 'manga_page.g.dart'; @freezed class MangaPage with _$MangaPage { @@ -17,7 +16,4 @@ class MangaPage with _$MangaPage { List? mangaList, bool? hasNextPage, }) = _MangaPage; - - factory MangaPage.fromJson(Map json) => - _$MangaPageFromJson(json); } diff --git a/lib/src/features/browse_center/domain/manga_page/manga_page.freezed.dart b/lib/src/features/browse_center/domain/manga_page/manga_page.freezed.dart index fb8e4c09..f2f90e5c 100644 --- a/lib/src/features/browse_center/domain/manga_page/manga_page.freezed.dart +++ b/lib/src/features/browse_center/domain/manga_page/manga_page.freezed.dart @@ -14,16 +14,11 @@ T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); -MangaPage _$MangaPageFromJson(Map json) { - return _MangaPage.fromJson(json); -} - /// @nodoc mixin _$MangaPage { List? get mangaList => throw _privateConstructorUsedError; bool? get hasNextPage => throw _privateConstructorUsedError; - Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) $MangaPageCopyWith get copyWith => throw _privateConstructorUsedError; @@ -105,14 +100,11 @@ class __$$MangaPageImplCopyWithImpl<$Res> } /// @nodoc -@JsonSerializable() + class _$MangaPageImpl implements _MangaPage { _$MangaPageImpl({final List? mangaList, this.hasNextPage}) : _mangaList = mangaList; - factory _$MangaPageImpl.fromJson(Map json) => - _$$MangaPageImplFromJson(json); - final List? _mangaList; @override List? get mangaList { @@ -142,7 +134,6 @@ class _$MangaPageImpl implements _MangaPage { other.hasNextPage == hasNextPage)); } - @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, const DeepCollectionEquality().hash(_mangaList), hasNextPage); @@ -152,22 +143,12 @@ class _$MangaPageImpl implements _MangaPage { @pragma('vm:prefer-inline') _$$MangaPageImplCopyWith<_$MangaPageImpl> get copyWith => __$$MangaPageImplCopyWithImpl<_$MangaPageImpl>(this, _$identity); - - @override - Map toJson() { - return _$$MangaPageImplToJson( - this, - ); - } } abstract class _MangaPage implements MangaPage { factory _MangaPage({final List? mangaList, final bool? hasNextPage}) = _$MangaPageImpl; - factory _MangaPage.fromJson(Map json) = - _$MangaPageImpl.fromJson; - @override List? get mangaList; @override diff --git a/lib/src/features/browse_center/domain/manga_page/manga_page.g.dart b/lib/src/features/browse_center/domain/manga_page/manga_page.g.dart deleted file mode 100644 index 50f73aeb..00000000 --- a/lib/src/features/browse_center/domain/manga_page/manga_page.g.dart +++ /dev/null @@ -1,21 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'manga_page.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$MangaPageImpl _$$MangaPageImplFromJson(Map json) => - _$MangaPageImpl( - mangaList: (json['mangaList'] as List?) - ?.map((e) => Manga.fromJson(e as Map)) - .toList(), - hasNextPage: json['hasNextPage'] as bool?, - ); - -Map _$$MangaPageImplToJson(_$MangaPageImpl instance) => - { - 'mangaList': instance.mangaList?.map((e) => e.toJson()).toList(), - 'hasNextPage': instance.hasNextPage, - }; diff --git a/lib/src/features/browse_center/domain/source/graphql/__generated__/fragment.ast.gql.dart b/lib/src/features/browse_center/domain/source/graphql/__generated__/fragment.ast.gql.dart new file mode 100644 index 00000000..9d5078ea --- /dev/null +++ b/lib/src/features/browse_center/domain/source/graphql/__generated__/fragment.ast.gql.dart @@ -0,0 +1,618 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const SourceFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'SourceFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceType'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'displayName'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'iconUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'id'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'isConfigurable'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'isNsfw'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'lang'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'supportsLatest'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'extension'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'pkgName'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'repo'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + ]), +); +const FullSourceFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'FullSourceFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceType'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SourceFragment'), + directives: [], + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'filters'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.InlineFragmentNode( + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CheckBoxFilter'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: '__typename'), + alias: _i1.NameNode(value: 'type'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'default'), + alias: _i1.NameNode(value: 'CheckBoxFilterDefault'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + _i1.InlineFragmentNode( + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'HeaderFilter'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: '__typename'), + alias: _i1.NameNode(value: 'type'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + _i1.InlineFragmentNode( + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SelectFilter'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: '__typename'), + alias: _i1.NameNode(value: 'type'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'default'), + alias: _i1.NameNode(value: 'SelectFilterDefault'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'values'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + _i1.InlineFragmentNode( + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TriStateFilter'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: '__typename'), + alias: _i1.NameNode(value: 'type'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'default'), + alias: _i1.NameNode(value: 'TriStateFilterDefault'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + _i1.InlineFragmentNode( + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TextFilter'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: '__typename'), + alias: _i1.NameNode(value: 'type'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'default'), + alias: _i1.NameNode(value: 'TextFilterDefault'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + _i1.InlineFragmentNode( + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SortFilter'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: '__typename'), + alias: _i1.NameNode(value: 'type'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'default'), + alias: _i1.NameNode(value: 'SortFilterDefault'), + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'ascending'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'index'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'values'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + _i1.InlineFragmentNode( + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SeparatorFilter'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: '__typename'), + alias: _i1.NameNode(value: 'type'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + _i1.InlineFragmentNode( + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'GroupFilter'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: '__typename'), + alias: _i1.NameNode(value: 'type'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'filters'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.InlineFragmentNode( + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CheckBoxFilter'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: '__typename'), + alias: _i1.NameNode(value: 'type'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'default'), + alias: _i1.NameNode(value: 'CheckBoxFilterDefault'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + _i1.InlineFragmentNode( + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'HeaderFilter'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: '__typename'), + alias: _i1.NameNode(value: 'type'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + _i1.InlineFragmentNode( + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SelectFilter'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: '__typename'), + alias: _i1.NameNode(value: 'type'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'default'), + alias: _i1.NameNode(value: 'SelectFilterDefault'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'values'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + _i1.InlineFragmentNode( + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TriStateFilter'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: '__typename'), + alias: _i1.NameNode(value: 'type'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'default'), + alias: _i1.NameNode(value: 'TriStateFilterDefault'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + _i1.InlineFragmentNode( + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TextFilter'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: '__typename'), + alias: _i1.NameNode(value: 'type'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'default'), + alias: _i1.NameNode(value: 'TextFilterDefault'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + _i1.InlineFragmentNode( + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SortFilter'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: '__typename'), + alias: _i1.NameNode(value: 'type'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'default'), + alias: _i1.NameNode(value: 'SortFilterDefault'), + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'ascending'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'index'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'values'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + _i1.InlineFragmentNode( + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SeparatorFilter'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: '__typename'), + alias: _i1.NameNode(value: 'type'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + ]), + ), + ]), + ), + ]), + ), + ]), +); +const document = _i1.DocumentNode(definitions: [ + SourceFragment, + FullSourceFragment, +]); diff --git a/lib/src/features/browse_center/domain/source/graphql/__generated__/fragment.data.gql.dart b/lib/src/features/browse_center/domain/source/graphql/__generated__/fragment.data.gql.dart new file mode 100644 index 00000000..c72415ec --- /dev/null +++ b/lib/src/features/browse_center/domain/source/graphql/__generated__/fragment.data.gql.dart @@ -0,0 +1,1327 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:gql_code_builder/src/serializers/inline_fragment_serializer.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' + as _i1; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i2; + +part 'fragment.data.gql.g.dart'; + +abstract class GSourceFragment { + String get G__typename; + String get displayName; + String get iconUrl; + _i1.GLongString get id; + bool get isConfigurable; + bool get isNsfw; + String get lang; + String get name; + bool get supportsLatest; + GSourceFragment_extension get extension; + Map toJson(); +} + +abstract class GSourceFragment_extension { + String get G__typename; + String get pkgName; + String? get repo; + Map toJson(); +} + +abstract class GSourceFragmentData + implements + Built, + GSourceFragment { + GSourceFragmentData._(); + + factory GSourceFragmentData( + [void Function(GSourceFragmentDataBuilder b) updates]) = + _$GSourceFragmentData; + + static void _initializeBuilder(GSourceFragmentDataBuilder b) => + b..G__typename = 'SourceType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get displayName; + @override + String get iconUrl; + @override + _i1.GLongString get id; + @override + bool get isConfigurable; + @override + bool get isNsfw; + @override + String get lang; + @override + String get name; + @override + bool get supportsLatest; + @override + GSourceFragmentData_extension get extension; + static Serializer get serializer => + _$gSourceFragmentDataSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GSourceFragmentData.serializer, + this, + ) as Map); + + static GSourceFragmentData? fromJson(Map json) => + _i2.serializers.deserializeWith( + GSourceFragmentData.serializer, + json, + ); +} + +abstract class GSourceFragmentData_extension + implements + Built, + GSourceFragment_extension { + GSourceFragmentData_extension._(); + + factory GSourceFragmentData_extension( + [void Function(GSourceFragmentData_extensionBuilder b) updates]) = + _$GSourceFragmentData_extension; + + static void _initializeBuilder(GSourceFragmentData_extensionBuilder b) => + b..G__typename = 'ExtensionType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get pkgName; + @override + String? get repo; + static Serializer get serializer => + _$gSourceFragmentDataExtensionSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GSourceFragmentData_extension.serializer, + this, + ) as Map); + + static GSourceFragmentData_extension? fromJson(Map json) => + _i2.serializers.deserializeWith( + GSourceFragmentData_extension.serializer, + json, + ); +} + +abstract class GFullSourceFragment implements GSourceFragment { + @override + String get G__typename; + @override + String get displayName; + @override + String get iconUrl; + @override + _i1.GLongString get id; + @override + bool get isConfigurable; + @override + bool get isNsfw; + @override + String get lang; + @override + String get name; + @override + bool get supportsLatest; + @override + GFullSourceFragment_extension get extension; + BuiltList get filters; + @override + Map toJson(); +} + +abstract class GFullSourceFragment_extension + implements GSourceFragment_extension { + @override + String get G__typename; + @override + String get pkgName; + @override + String? get repo; + @override + Map toJson(); +} + +abstract class GFullSourceFragment_filters { + String get G__typename; +} + +abstract class GFullSourceFragment_filters__base + implements GFullSourceFragment_filters { + @override + String get G__typename; + @override + Map toJson(); +} + +abstract class GFullSourceFragment_filters__asCheckBoxFilter + implements GFullSourceFragment_filters { + @override + String get G__typename; + String get type; + bool get CheckBoxFilterDefault; + String get name; + @override + Map toJson(); +} + +abstract class GFullSourceFragment_filters__asHeaderFilter + implements GFullSourceFragment_filters { + @override + String get G__typename; + String get type; + String get name; + @override + Map toJson(); +} + +abstract class GFullSourceFragment_filters__asSelectFilter + implements GFullSourceFragment_filters { + @override + String get G__typename; + String get type; + int get SelectFilterDefault; + String get name; + BuiltList get Gvalues; + @override + Map toJson(); +} + +abstract class GFullSourceFragment_filters__asTriStateFilter + implements GFullSourceFragment_filters { + @override + String get G__typename; + String get type; + _i1.GTriState get TriStateFilterDefault; + String get name; + @override + Map toJson(); +} + +abstract class GFullSourceFragment_filters__asTextFilter + implements GFullSourceFragment_filters { + @override + String get G__typename; + String get type; + String get TextFilterDefault; + String get name; + @override + Map toJson(); +} + +abstract class GFullSourceFragment_filters__asSortFilter + implements GFullSourceFragment_filters { + @override + String get G__typename; + String get type; + GFullSourceFragment_filters__asSortFilter_SortFilterDefault? + get SortFilterDefault; + String get name; + BuiltList get Gvalues; + @override + Map toJson(); +} + +abstract class GFullSourceFragment_filters__asSortFilter_SortFilterDefault { + String get G__typename; + bool get ascending; + int get index; + Map toJson(); +} + +abstract class GFullSourceFragment_filters__asSeparatorFilter + implements GFullSourceFragment_filters { + @override + String get G__typename; + String get type; + String get name; + @override + Map toJson(); +} + +abstract class GFullSourceFragment_filters__asGroupFilter + implements GFullSourceFragment_filters { + @override + String get G__typename; + String get type; + String get name; + BuiltList get filters; + @override + Map toJson(); +} + +abstract class GFullSourceFragment_filters__asGroupFilter_filters { + String get G__typename; +} + +abstract class GFullSourceFragment_filters__asGroupFilter_filters__base + implements GFullSourceFragment_filters__asGroupFilter_filters { + @override + String get G__typename; + @override + Map toJson(); +} + +abstract class GFullSourceFragment_filters__asGroupFilter_filters__asCheckBoxFilter + implements GFullSourceFragment_filters__asGroupFilter_filters { + @override + String get G__typename; + String get type; + bool get CheckBoxFilterDefault; + String get name; + @override + Map toJson(); +} + +abstract class GFullSourceFragment_filters__asGroupFilter_filters__asHeaderFilter + implements GFullSourceFragment_filters__asGroupFilter_filters { + @override + String get G__typename; + String get type; + String get name; + @override + Map toJson(); +} + +abstract class GFullSourceFragment_filters__asGroupFilter_filters__asSelectFilter + implements GFullSourceFragment_filters__asGroupFilter_filters { + @override + String get G__typename; + String get type; + int get SelectFilterDefault; + String get name; + BuiltList get Gvalues; + @override + Map toJson(); +} + +abstract class GFullSourceFragment_filters__asGroupFilter_filters__asTriStateFilter + implements GFullSourceFragment_filters__asGroupFilter_filters { + @override + String get G__typename; + String get type; + _i1.GTriState get TriStateFilterDefault; + String get name; + @override + Map toJson(); +} + +abstract class GFullSourceFragment_filters__asGroupFilter_filters__asTextFilter + implements GFullSourceFragment_filters__asGroupFilter_filters { + @override + String get G__typename; + String get type; + String get TextFilterDefault; + String get name; + @override + Map toJson(); +} + +abstract class GFullSourceFragment_filters__asGroupFilter_filters__asSortFilter + implements GFullSourceFragment_filters__asGroupFilter_filters { + @override + String get G__typename; + String get type; + GFullSourceFragment_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault? + get SortFilterDefault; + String get name; + BuiltList get Gvalues; + @override + Map toJson(); +} + +abstract class GFullSourceFragment_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault { + String get G__typename; + bool get ascending; + int get index; + Map toJson(); +} + +abstract class GFullSourceFragment_filters__asGroupFilter_filters__asSeparatorFilter + implements GFullSourceFragment_filters__asGroupFilter_filters { + @override + String get G__typename; + String get type; + String get name; + @override + Map toJson(); +} + +abstract class GFullSourceFragmentData + implements + Built, + GFullSourceFragment, + GSourceFragment { + GFullSourceFragmentData._(); + + factory GFullSourceFragmentData( + [void Function(GFullSourceFragmentDataBuilder b) updates]) = + _$GFullSourceFragmentData; + + static void _initializeBuilder(GFullSourceFragmentDataBuilder b) => + b..G__typename = 'SourceType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get displayName; + @override + String get iconUrl; + @override + _i1.GLongString get id; + @override + bool get isConfigurable; + @override + bool get isNsfw; + @override + String get lang; + @override + String get name; + @override + bool get supportsLatest; + @override + GFullSourceFragmentData_extension get extension; + @override + BuiltList get filters; + static Serializer get serializer => + _$gFullSourceFragmentDataSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GFullSourceFragmentData.serializer, + this, + ) as Map); + + static GFullSourceFragmentData? fromJson(Map json) => + _i2.serializers.deserializeWith( + GFullSourceFragmentData.serializer, + json, + ); +} + +abstract class GFullSourceFragmentData_extension + implements + Built, + GFullSourceFragment_extension, + GSourceFragment_extension { + GFullSourceFragmentData_extension._(); + + factory GFullSourceFragmentData_extension( + [void Function(GFullSourceFragmentData_extensionBuilder b) updates]) = + _$GFullSourceFragmentData_extension; + + static void _initializeBuilder(GFullSourceFragmentData_extensionBuilder b) => + b..G__typename = 'ExtensionType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get pkgName; + @override + String? get repo; + static Serializer get serializer => + _$gFullSourceFragmentDataExtensionSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GFullSourceFragmentData_extension.serializer, + this, + ) as Map); + + static GFullSourceFragmentData_extension? fromJson( + Map json) => + _i2.serializers.deserializeWith( + GFullSourceFragmentData_extension.serializer, + json, + ); +} + +abstract class GFullSourceFragmentData_filters + implements GFullSourceFragment_filters { + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + static Serializer get serializer => + _i3.InlineFragmentSerializer( + 'GFullSourceFragmentData_filters', + GFullSourceFragmentData_filters__base, + { + 'CheckBoxFilter': GFullSourceFragmentData_filters__asCheckBoxFilter, + 'HeaderFilter': GFullSourceFragmentData_filters__asHeaderFilter, + 'SelectFilter': GFullSourceFragmentData_filters__asSelectFilter, + 'TriStateFilter': GFullSourceFragmentData_filters__asTriStateFilter, + 'TextFilter': GFullSourceFragmentData_filters__asTextFilter, + 'SortFilter': GFullSourceFragmentData_filters__asSortFilter, + 'SeparatorFilter': GFullSourceFragmentData_filters__asSeparatorFilter, + 'GroupFilter': GFullSourceFragmentData_filters__asGroupFilter, + }, + ); + + Map toJson() => (_i2.serializers.serializeWith( + GFullSourceFragmentData_filters.serializer, + this, + ) as Map); + + static GFullSourceFragmentData_filters? fromJson(Map json) => + _i2.serializers.deserializeWith( + GFullSourceFragmentData_filters.serializer, + json, + ); +} + +abstract class GFullSourceFragmentData_filters__base + implements + Built, + GFullSourceFragmentData_filters { + GFullSourceFragmentData_filters__base._(); + + factory GFullSourceFragmentData_filters__base( + [void Function(GFullSourceFragmentData_filters__baseBuilder b) + updates]) = _$GFullSourceFragmentData_filters__base; + + static void _initializeBuilder( + GFullSourceFragmentData_filters__baseBuilder b) => + b..G__typename = 'Filter'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + static Serializer get serializer => + _$gFullSourceFragmentDataFiltersBaseSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GFullSourceFragmentData_filters__base.serializer, + this, + ) as Map); + + static GFullSourceFragmentData_filters__base? fromJson( + Map json) => + _i2.serializers.deserializeWith( + GFullSourceFragmentData_filters__base.serializer, + json, + ); +} + +abstract class GFullSourceFragmentData_filters__asCheckBoxFilter + implements + Built, + GFullSourceFragmentData_filters { + GFullSourceFragmentData_filters__asCheckBoxFilter._(); + + factory GFullSourceFragmentData_filters__asCheckBoxFilter( + [void Function(GFullSourceFragmentData_filters__asCheckBoxFilterBuilder b) + updates]) = _$GFullSourceFragmentData_filters__asCheckBoxFilter; + + static void _initializeBuilder( + GFullSourceFragmentData_filters__asCheckBoxFilterBuilder b) => + b..G__typename = 'CheckBoxFilter'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + String get type; + bool get CheckBoxFilterDefault; + String get name; + static Serializer + get serializer => + _$gFullSourceFragmentDataFiltersAsCheckBoxFilterSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GFullSourceFragmentData_filters__asCheckBoxFilter.serializer, + this, + ) as Map); + + static GFullSourceFragmentData_filters__asCheckBoxFilter? fromJson( + Map json) => + _i2.serializers.deserializeWith( + GFullSourceFragmentData_filters__asCheckBoxFilter.serializer, + json, + ); +} + +abstract class GFullSourceFragmentData_filters__asHeaderFilter + implements + Built, + GFullSourceFragmentData_filters { + GFullSourceFragmentData_filters__asHeaderFilter._(); + + factory GFullSourceFragmentData_filters__asHeaderFilter( + [void Function(GFullSourceFragmentData_filters__asHeaderFilterBuilder b) + updates]) = _$GFullSourceFragmentData_filters__asHeaderFilter; + + static void _initializeBuilder( + GFullSourceFragmentData_filters__asHeaderFilterBuilder b) => + b..G__typename = 'HeaderFilter'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + String get type; + String get name; + static Serializer + get serializer => + _$gFullSourceFragmentDataFiltersAsHeaderFilterSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GFullSourceFragmentData_filters__asHeaderFilter.serializer, + this, + ) as Map); + + static GFullSourceFragmentData_filters__asHeaderFilter? fromJson( + Map json) => + _i2.serializers.deserializeWith( + GFullSourceFragmentData_filters__asHeaderFilter.serializer, + json, + ); +} + +abstract class GFullSourceFragmentData_filters__asSelectFilter + implements + Built, + GFullSourceFragmentData_filters { + GFullSourceFragmentData_filters__asSelectFilter._(); + + factory GFullSourceFragmentData_filters__asSelectFilter( + [void Function(GFullSourceFragmentData_filters__asSelectFilterBuilder b) + updates]) = _$GFullSourceFragmentData_filters__asSelectFilter; + + static void _initializeBuilder( + GFullSourceFragmentData_filters__asSelectFilterBuilder b) => + b..G__typename = 'SelectFilter'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + String get type; + int get SelectFilterDefault; + String get name; + @BuiltValueField(wireName: 'values') + BuiltList get Gvalues; + static Serializer + get serializer => + _$gFullSourceFragmentDataFiltersAsSelectFilterSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GFullSourceFragmentData_filters__asSelectFilter.serializer, + this, + ) as Map); + + static GFullSourceFragmentData_filters__asSelectFilter? fromJson( + Map json) => + _i2.serializers.deserializeWith( + GFullSourceFragmentData_filters__asSelectFilter.serializer, + json, + ); +} + +abstract class GFullSourceFragmentData_filters__asTriStateFilter + implements + Built, + GFullSourceFragmentData_filters { + GFullSourceFragmentData_filters__asTriStateFilter._(); + + factory GFullSourceFragmentData_filters__asTriStateFilter( + [void Function(GFullSourceFragmentData_filters__asTriStateFilterBuilder b) + updates]) = _$GFullSourceFragmentData_filters__asTriStateFilter; + + static void _initializeBuilder( + GFullSourceFragmentData_filters__asTriStateFilterBuilder b) => + b..G__typename = 'TriStateFilter'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + String get type; + _i1.GTriState get TriStateFilterDefault; + String get name; + static Serializer + get serializer => + _$gFullSourceFragmentDataFiltersAsTriStateFilterSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GFullSourceFragmentData_filters__asTriStateFilter.serializer, + this, + ) as Map); + + static GFullSourceFragmentData_filters__asTriStateFilter? fromJson( + Map json) => + _i2.serializers.deserializeWith( + GFullSourceFragmentData_filters__asTriStateFilter.serializer, + json, + ); +} + +abstract class GFullSourceFragmentData_filters__asTextFilter + implements + Built, + GFullSourceFragmentData_filters { + GFullSourceFragmentData_filters__asTextFilter._(); + + factory GFullSourceFragmentData_filters__asTextFilter( + [void Function(GFullSourceFragmentData_filters__asTextFilterBuilder b) + updates]) = _$GFullSourceFragmentData_filters__asTextFilter; + + static void _initializeBuilder( + GFullSourceFragmentData_filters__asTextFilterBuilder b) => + b..G__typename = 'TextFilter'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + String get type; + String get TextFilterDefault; + String get name; + static Serializer + get serializer => _$gFullSourceFragmentDataFiltersAsTextFilterSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GFullSourceFragmentData_filters__asTextFilter.serializer, + this, + ) as Map); + + static GFullSourceFragmentData_filters__asTextFilter? fromJson( + Map json) => + _i2.serializers.deserializeWith( + GFullSourceFragmentData_filters__asTextFilter.serializer, + json, + ); +} + +abstract class GFullSourceFragmentData_filters__asSortFilter + implements + Built, + GFullSourceFragmentData_filters { + GFullSourceFragmentData_filters__asSortFilter._(); + + factory GFullSourceFragmentData_filters__asSortFilter( + [void Function(GFullSourceFragmentData_filters__asSortFilterBuilder b) + updates]) = _$GFullSourceFragmentData_filters__asSortFilter; + + static void _initializeBuilder( + GFullSourceFragmentData_filters__asSortFilterBuilder b) => + b..G__typename = 'SortFilter'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + String get type; + GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault? + get SortFilterDefault; + String get name; + @BuiltValueField(wireName: 'values') + BuiltList get Gvalues; + static Serializer + get serializer => _$gFullSourceFragmentDataFiltersAsSortFilterSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GFullSourceFragmentData_filters__asSortFilter.serializer, + this, + ) as Map); + + static GFullSourceFragmentData_filters__asSortFilter? fromJson( + Map json) => + _i2.serializers.deserializeWith( + GFullSourceFragmentData_filters__asSortFilter.serializer, + json, + ); +} + +abstract class GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault + implements + Built { + GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault._(); + + factory GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault( + [void Function( + GFullSourceFragmentData_filters__asSortFilter_SortFilterDefaultBuilder + b) + updates]) = + _$GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault; + + static void _initializeBuilder( + GFullSourceFragmentData_filters__asSortFilter_SortFilterDefaultBuilder + b) => + b..G__typename = 'SortSelection'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + bool get ascending; + int get index; + static Serializer< + GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault> + get serializer => + _$gFullSourceFragmentDataFiltersAsSortFilterSortFilterDefaultSerializer; + + Map toJson() => (_i2.serializers.serializeWith( + GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault + .serializer, + this, + ) as Map); + + static GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault? + fromJson(Map json) => _i2.serializers.deserializeWith( + GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault + .serializer, + json, + ); +} + +abstract class GFullSourceFragmentData_filters__asSeparatorFilter + implements + Built, + GFullSourceFragmentData_filters { + GFullSourceFragmentData_filters__asSeparatorFilter._(); + + factory GFullSourceFragmentData_filters__asSeparatorFilter( + [void Function( + GFullSourceFragmentData_filters__asSeparatorFilterBuilder b) + updates]) = _$GFullSourceFragmentData_filters__asSeparatorFilter; + + static void _initializeBuilder( + GFullSourceFragmentData_filters__asSeparatorFilterBuilder b) => + b..G__typename = 'SeparatorFilter'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + String get type; + String get name; + static Serializer + get serializer => + _$gFullSourceFragmentDataFiltersAsSeparatorFilterSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GFullSourceFragmentData_filters__asSeparatorFilter.serializer, + this, + ) as Map); + + static GFullSourceFragmentData_filters__asSeparatorFilter? fromJson( + Map json) => + _i2.serializers.deserializeWith( + GFullSourceFragmentData_filters__asSeparatorFilter.serializer, + json, + ); +} + +abstract class GFullSourceFragmentData_filters__asGroupFilter + implements + Built, + GFullSourceFragmentData_filters { + GFullSourceFragmentData_filters__asGroupFilter._(); + + factory GFullSourceFragmentData_filters__asGroupFilter( + [void Function(GFullSourceFragmentData_filters__asGroupFilterBuilder b) + updates]) = _$GFullSourceFragmentData_filters__asGroupFilter; + + static void _initializeBuilder( + GFullSourceFragmentData_filters__asGroupFilterBuilder b) => + b..G__typename = 'GroupFilter'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + String get type; + String get name; + BuiltList get filters; + static Serializer + get serializer => _$gFullSourceFragmentDataFiltersAsGroupFilterSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GFullSourceFragmentData_filters__asGroupFilter.serializer, + this, + ) as Map); + + static GFullSourceFragmentData_filters__asGroupFilter? fromJson( + Map json) => + _i2.serializers.deserializeWith( + GFullSourceFragmentData_filters__asGroupFilter.serializer, + json, + ); +} + +abstract class GFullSourceFragmentData_filters__asGroupFilter_filters { + @BuiltValueField(wireName: '__typename') + String get G__typename; + static Serializer + get serializer => _i3.InlineFragmentSerializer< + GFullSourceFragmentData_filters__asGroupFilter_filters>( + 'GFullSourceFragmentData_filters__asGroupFilter_filters', + GFullSourceFragmentData_filters__asGroupFilter_filters__base, + { + 'CheckBoxFilter': + GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter, + 'HeaderFilter': + GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter, + 'SelectFilter': + GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter, + 'TriStateFilter': + GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter, + 'TextFilter': + GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter, + 'SortFilter': + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter, + 'SeparatorFilter': + GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter, + }, + ); + + Map toJson() => (_i2.serializers.serializeWith( + GFullSourceFragmentData_filters__asGroupFilter_filters.serializer, + this, + ) as Map); + + static GFullSourceFragmentData_filters__asGroupFilter_filters? fromJson( + Map json) => + _i2.serializers.deserializeWith( + GFullSourceFragmentData_filters__asGroupFilter_filters.serializer, + json, + ); +} + +abstract class GFullSourceFragmentData_filters__asGroupFilter_filters__base + implements + Built, + GFullSourceFragmentData_filters__asGroupFilter_filters { + GFullSourceFragmentData_filters__asGroupFilter_filters__base._(); + + factory GFullSourceFragmentData_filters__asGroupFilter_filters__base( + [void Function( + GFullSourceFragmentData_filters__asGroupFilter_filters__baseBuilder + b) + updates]) = + _$GFullSourceFragmentData_filters__asGroupFilter_filters__base; + + static void _initializeBuilder( + GFullSourceFragmentData_filters__asGroupFilter_filters__baseBuilder + b) => + b..G__typename = 'Filter'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + static Serializer< + GFullSourceFragmentData_filters__asGroupFilter_filters__base> + get serializer => + _$gFullSourceFragmentDataFiltersAsGroupFilterFiltersBaseSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GFullSourceFragmentData_filters__asGroupFilter_filters__base.serializer, + this, + ) as Map); + + static GFullSourceFragmentData_filters__asGroupFilter_filters__base? fromJson( + Map json) => + _i2.serializers.deserializeWith( + GFullSourceFragmentData_filters__asGroupFilter_filters__base.serializer, + json, + ); +} + +abstract class GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter + implements + Built< + GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter, + GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilterBuilder>, + GFullSourceFragmentData_filters__asGroupFilter_filters { + GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter._(); + + factory GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter( + [void Function( + GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilterBuilder + b) + updates]) = + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter; + + static void _initializeBuilder( + GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilterBuilder + b) => + b..G__typename = 'CheckBoxFilter'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + String get type; + bool get CheckBoxFilterDefault; + String get name; + static Serializer< + GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter> + get serializer => + _$gFullSourceFragmentDataFiltersAsGroupFilterFiltersAsCheckBoxFilterSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter + .serializer, + this, + ) as Map); + + static GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter? + fromJson(Map json) => _i2.serializers.deserializeWith( + GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter + .serializer, + json, + ); +} + +abstract class GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter + implements + Built< + GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter, + GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilterBuilder>, + GFullSourceFragmentData_filters__asGroupFilter_filters { + GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter._(); + + factory GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter( + [void Function( + GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilterBuilder + b) + updates]) = + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter; + + static void _initializeBuilder( + GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilterBuilder + b) => + b..G__typename = 'HeaderFilter'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + String get type; + String get name; + static Serializer< + GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter> + get serializer => + _$gFullSourceFragmentDataFiltersAsGroupFilterFiltersAsHeaderFilterSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter + .serializer, + this, + ) as Map); + + static GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter? + fromJson(Map json) => _i2.serializers.deserializeWith( + GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter + .serializer, + json, + ); +} + +abstract class GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter + implements + Built< + GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter, + GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilterBuilder>, + GFullSourceFragmentData_filters__asGroupFilter_filters { + GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter._(); + + factory GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter( + [void Function( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilterBuilder + b) + updates]) = + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter; + + static void _initializeBuilder( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilterBuilder + b) => + b..G__typename = 'SelectFilter'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + String get type; + int get SelectFilterDefault; + String get name; + @BuiltValueField(wireName: 'values') + BuiltList get Gvalues; + static Serializer< + GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter> + get serializer => + _$gFullSourceFragmentDataFiltersAsGroupFilterFiltersAsSelectFilterSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter + .serializer, + this, + ) as Map); + + static GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter? + fromJson(Map json) => _i2.serializers.deserializeWith( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter + .serializer, + json, + ); +} + +abstract class GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter + implements + Built< + GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter, + GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilterBuilder>, + GFullSourceFragmentData_filters__asGroupFilter_filters { + GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter._(); + + factory GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter( + [void Function( + GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilterBuilder + b) + updates]) = + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter; + + static void _initializeBuilder( + GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilterBuilder + b) => + b..G__typename = 'TriStateFilter'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + String get type; + _i1.GTriState get TriStateFilterDefault; + String get name; + static Serializer< + GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter> + get serializer => + _$gFullSourceFragmentDataFiltersAsGroupFilterFiltersAsTriStateFilterSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter + .serializer, + this, + ) as Map); + + static GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter? + fromJson(Map json) => _i2.serializers.deserializeWith( + GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter + .serializer, + json, + ); +} + +abstract class GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter + implements + Built< + GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter, + GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilterBuilder>, + GFullSourceFragmentData_filters__asGroupFilter_filters { + GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter._(); + + factory GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter( + [void Function( + GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilterBuilder + b) + updates]) = + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter; + + static void _initializeBuilder( + GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilterBuilder + b) => + b..G__typename = 'TextFilter'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + String get type; + String get TextFilterDefault; + String get name; + static Serializer< + GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter> + get serializer => + _$gFullSourceFragmentDataFiltersAsGroupFilterFiltersAsTextFilterSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter + .serializer, + this, + ) as Map); + + static GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter? + fromJson(Map json) => _i2.serializers.deserializeWith( + GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter + .serializer, + json, + ); +} + +abstract class GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter + implements + Built< + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter, + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilterBuilder>, + GFullSourceFragmentData_filters__asGroupFilter_filters { + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter._(); + + factory GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter( + [void Function( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilterBuilder + b) + updates]) = + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter; + + static void _initializeBuilder( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilterBuilder + b) => + b..G__typename = 'SortFilter'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + String get type; + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault? + get SortFilterDefault; + String get name; + @BuiltValueField(wireName: 'values') + BuiltList get Gvalues; + static Serializer< + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter> + get serializer => + _$gFullSourceFragmentDataFiltersAsGroupFilterFiltersAsSortFilterSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter + .serializer, + this, + ) as Map); + + static GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter? + fromJson(Map json) => _i2.serializers.deserializeWith( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter + .serializer, + json, + ); +} + +abstract class GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault + implements + Built< + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault, + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefaultBuilder> { + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault._(); + + factory GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault( + [void Function( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefaultBuilder + b) + updates]) = + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault; + + static void _initializeBuilder( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefaultBuilder + b) => + b..G__typename = 'SortSelection'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + bool get ascending; + int get index; + static Serializer< + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault> + get serializer => + _$gFullSourceFragmentDataFiltersAsGroupFilterFiltersAsSortFilterSortFilterDefaultSerializer; + + Map toJson() => (_i2.serializers.serializeWith( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault + .serializer, + this, + ) as Map); + + static GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault? + fromJson(Map json) => _i2.serializers.deserializeWith( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault + .serializer, + json, + ); +} + +abstract class GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter + implements + Built< + GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter, + GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilterBuilder>, + GFullSourceFragmentData_filters__asGroupFilter_filters { + GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter._(); + + factory GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter( + [void Function( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilterBuilder + b) + updates]) = + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter; + + static void _initializeBuilder( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilterBuilder + b) => + b..G__typename = 'SeparatorFilter'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + String get type; + String get name; + static Serializer< + GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter> + get serializer => + _$gFullSourceFragmentDataFiltersAsGroupFilterFiltersAsSeparatorFilterSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter + .serializer, + this, + ) as Map); + + static GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter? + fromJson(Map json) => _i2.serializers.deserializeWith( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter + .serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/domain/source/graphql/__generated__/fragment.data.gql.g.dart b/lib/src/features/browse_center/domain/source/graphql/__generated__/fragment.data.gql.g.dart new file mode 100644 index 00000000..03a0fe56 --- /dev/null +++ b/lib/src/features/browse_center/domain/source/graphql/__generated__/fragment.data.gql.g.dart @@ -0,0 +1,5552 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gSourceFragmentDataSerializer = + new _$GSourceFragmentDataSerializer(); +Serializer + _$gSourceFragmentDataExtensionSerializer = + new _$GSourceFragmentData_extensionSerializer(); +Serializer _$gFullSourceFragmentDataSerializer = + new _$GFullSourceFragmentDataSerializer(); +Serializer + _$gFullSourceFragmentDataExtensionSerializer = + new _$GFullSourceFragmentData_extensionSerializer(); +Serializer + _$gFullSourceFragmentDataFiltersBaseSerializer = + new _$GFullSourceFragmentData_filters__baseSerializer(); +Serializer + _$gFullSourceFragmentDataFiltersAsCheckBoxFilterSerializer = + new _$GFullSourceFragmentData_filters__asCheckBoxFilterSerializer(); +Serializer + _$gFullSourceFragmentDataFiltersAsHeaderFilterSerializer = + new _$GFullSourceFragmentData_filters__asHeaderFilterSerializer(); +Serializer + _$gFullSourceFragmentDataFiltersAsSelectFilterSerializer = + new _$GFullSourceFragmentData_filters__asSelectFilterSerializer(); +Serializer + _$gFullSourceFragmentDataFiltersAsTriStateFilterSerializer = + new _$GFullSourceFragmentData_filters__asTriStateFilterSerializer(); +Serializer + _$gFullSourceFragmentDataFiltersAsTextFilterSerializer = + new _$GFullSourceFragmentData_filters__asTextFilterSerializer(); +Serializer + _$gFullSourceFragmentDataFiltersAsSortFilterSerializer = + new _$GFullSourceFragmentData_filters__asSortFilterSerializer(); +Serializer + _$gFullSourceFragmentDataFiltersAsSortFilterSortFilterDefaultSerializer = + new _$GFullSourceFragmentData_filters__asSortFilter_SortFilterDefaultSerializer(); +Serializer + _$gFullSourceFragmentDataFiltersAsSeparatorFilterSerializer = + new _$GFullSourceFragmentData_filters__asSeparatorFilterSerializer(); +Serializer + _$gFullSourceFragmentDataFiltersAsGroupFilterSerializer = + new _$GFullSourceFragmentData_filters__asGroupFilterSerializer(); +Serializer + _$gFullSourceFragmentDataFiltersAsGroupFilterFiltersBaseSerializer = + new _$GFullSourceFragmentData_filters__asGroupFilter_filters__baseSerializer(); +Serializer< + GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter> + _$gFullSourceFragmentDataFiltersAsGroupFilterFiltersAsCheckBoxFilterSerializer = + new _$GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilterSerializer(); +Serializer< + GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter> + _$gFullSourceFragmentDataFiltersAsGroupFilterFiltersAsHeaderFilterSerializer = + new _$GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilterSerializer(); +Serializer< + GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter> + _$gFullSourceFragmentDataFiltersAsGroupFilterFiltersAsSelectFilterSerializer = + new _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilterSerializer(); +Serializer< + GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter> + _$gFullSourceFragmentDataFiltersAsGroupFilterFiltersAsTriStateFilterSerializer = + new _$GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilterSerializer(); +Serializer + _$gFullSourceFragmentDataFiltersAsGroupFilterFiltersAsTextFilterSerializer = + new _$GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilterSerializer(); +Serializer + _$gFullSourceFragmentDataFiltersAsGroupFilterFiltersAsSortFilterSerializer = + new _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilterSerializer(); +Serializer< + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault> + _$gFullSourceFragmentDataFiltersAsGroupFilterFiltersAsSortFilterSortFilterDefaultSerializer = + new _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefaultSerializer(); +Serializer< + GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter> + _$gFullSourceFragmentDataFiltersAsGroupFilterFiltersAsSeparatorFilterSerializer = + new _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilterSerializer(); + +class _$GSourceFragmentDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSourceFragmentData, + _$GSourceFragmentData + ]; + @override + final String wireName = 'GSourceFragmentData'; + + @override + Iterable serialize( + Serializers serializers, GSourceFragmentData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'displayName', + serializers.serialize(object.displayName, + specifiedType: const FullType(String)), + 'iconUrl', + serializers.serialize(object.iconUrl, + specifiedType: const FullType(String)), + 'id', + serializers.serialize(object.id, + specifiedType: const FullType(_i1.GLongString)), + 'isConfigurable', + serializers.serialize(object.isConfigurable, + specifiedType: const FullType(bool)), + 'isNsfw', + serializers.serialize(object.isNsfw, specifiedType: const FullType(bool)), + 'lang', + serializers.serialize(object.lang, specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'supportsLatest', + serializers.serialize(object.supportsLatest, + specifiedType: const FullType(bool)), + 'extension', + serializers.serialize(object.extension, + specifiedType: const FullType(GSourceFragmentData_extension)), + ]; + + return result; + } + + @override + GSourceFragmentData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourceFragmentDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'displayName': + result.displayName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'iconUrl': + result.iconUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'id': + result.id.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'isConfigurable': + result.isConfigurable = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isNsfw': + result.isNsfw = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'lang': + result.lang = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'supportsLatest': + result.supportsLatest = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extension': + result.extension.replace(serializers.deserialize(value, + specifiedType: const FullType(GSourceFragmentData_extension))! + as GSourceFragmentData_extension); + break; + } + } + + return result.build(); + } +} + +class _$GSourceFragmentData_extensionSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSourceFragmentData_extension, + _$GSourceFragmentData_extension + ]; + @override + final String wireName = 'GSourceFragmentData_extension'; + + @override + Iterable serialize( + Serializers serializers, GSourceFragmentData_extension object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'pkgName', + serializers.serialize(object.pkgName, + specifiedType: const FullType(String)), + ]; + Object? value; + value = object.repo; + if (value != null) { + result + ..add('repo') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSourceFragmentData_extension deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourceFragmentData_extensionBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'pkgName': + result.pkgName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'repo': + result.repo = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GFullSourceFragmentDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GFullSourceFragmentData, + _$GFullSourceFragmentData + ]; + @override + final String wireName = 'GFullSourceFragmentData'; + + @override + Iterable serialize( + Serializers serializers, GFullSourceFragmentData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'displayName', + serializers.serialize(object.displayName, + specifiedType: const FullType(String)), + 'iconUrl', + serializers.serialize(object.iconUrl, + specifiedType: const FullType(String)), + 'id', + serializers.serialize(object.id, + specifiedType: const FullType(_i1.GLongString)), + 'isConfigurable', + serializers.serialize(object.isConfigurable, + specifiedType: const FullType(bool)), + 'isNsfw', + serializers.serialize(object.isNsfw, specifiedType: const FullType(bool)), + 'lang', + serializers.serialize(object.lang, specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'supportsLatest', + serializers.serialize(object.supportsLatest, + specifiedType: const FullType(bool)), + 'extension', + serializers.serialize(object.extension, + specifiedType: const FullType(GFullSourceFragmentData_extension)), + 'filters', + serializers.serialize(object.filters, + specifiedType: const FullType(BuiltList, + const [const FullType(GFullSourceFragmentData_filters)])), + ]; + + return result; + } + + @override + GFullSourceFragmentData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GFullSourceFragmentDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'displayName': + result.displayName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'iconUrl': + result.iconUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'id': + result.id.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'isConfigurable': + result.isConfigurable = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isNsfw': + result.isNsfw = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'lang': + result.lang = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'supportsLatest': + result.supportsLatest = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extension': + result.extension.replace(serializers.deserialize(value, + specifiedType: + const FullType(GFullSourceFragmentData_extension))! + as GFullSourceFragmentData_extension); + break; + case 'filters': + result.filters.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GFullSourceFragmentData_filters) + ]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GFullSourceFragmentData_extensionSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GFullSourceFragmentData_extension, + _$GFullSourceFragmentData_extension + ]; + @override + final String wireName = 'GFullSourceFragmentData_extension'; + + @override + Iterable serialize( + Serializers serializers, GFullSourceFragmentData_extension object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'pkgName', + serializers.serialize(object.pkgName, + specifiedType: const FullType(String)), + ]; + Object? value; + value = object.repo; + if (value != null) { + result + ..add('repo') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GFullSourceFragmentData_extension deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GFullSourceFragmentData_extensionBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'pkgName': + result.pkgName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'repo': + result.repo = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GFullSourceFragmentData_filters__baseSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GFullSourceFragmentData_filters__base, + _$GFullSourceFragmentData_filters__base + ]; + @override + final String wireName = 'GFullSourceFragmentData_filters__base'; + + @override + Iterable serialize( + Serializers serializers, GFullSourceFragmentData_filters__base object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GFullSourceFragmentData_filters__base deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GFullSourceFragmentData_filters__baseBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GFullSourceFragmentData_filters__asCheckBoxFilterSerializer + implements + StructuredSerializer< + GFullSourceFragmentData_filters__asCheckBoxFilter> { + @override + final Iterable types = const [ + GFullSourceFragmentData_filters__asCheckBoxFilter, + _$GFullSourceFragmentData_filters__asCheckBoxFilter + ]; + @override + final String wireName = 'GFullSourceFragmentData_filters__asCheckBoxFilter'; + + @override + Iterable serialize(Serializers serializers, + GFullSourceFragmentData_filters__asCheckBoxFilter object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'type', + serializers.serialize(object.type, specifiedType: const FullType(String)), + 'CheckBoxFilterDefault', + serializers.serialize(object.CheckBoxFilterDefault, + specifiedType: const FullType(bool)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GFullSourceFragmentData_filters__asCheckBoxFilter deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GFullSourceFragmentData_filters__asCheckBoxFilterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'type': + result.type = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'CheckBoxFilterDefault': + result.CheckBoxFilterDefault = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GFullSourceFragmentData_filters__asHeaderFilterSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GFullSourceFragmentData_filters__asHeaderFilter, + _$GFullSourceFragmentData_filters__asHeaderFilter + ]; + @override + final String wireName = 'GFullSourceFragmentData_filters__asHeaderFilter'; + + @override + Iterable serialize(Serializers serializers, + GFullSourceFragmentData_filters__asHeaderFilter object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'type', + serializers.serialize(object.type, specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GFullSourceFragmentData_filters__asHeaderFilter deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GFullSourceFragmentData_filters__asHeaderFilterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'type': + result.type = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GFullSourceFragmentData_filters__asSelectFilterSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GFullSourceFragmentData_filters__asSelectFilter, + _$GFullSourceFragmentData_filters__asSelectFilter + ]; + @override + final String wireName = 'GFullSourceFragmentData_filters__asSelectFilter'; + + @override + Iterable serialize(Serializers serializers, + GFullSourceFragmentData_filters__asSelectFilter object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'type', + serializers.serialize(object.type, specifiedType: const FullType(String)), + 'SelectFilterDefault', + serializers.serialize(object.SelectFilterDefault, + specifiedType: const FullType(int)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'values', + serializers.serialize(object.Gvalues, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + ]; + + return result; + } + + @override + GFullSourceFragmentData_filters__asSelectFilter deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GFullSourceFragmentData_filters__asSelectFilterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'type': + result.type = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'SelectFilterDefault': + result.SelectFilterDefault = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'values': + result.Gvalues.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GFullSourceFragmentData_filters__asTriStateFilterSerializer + implements + StructuredSerializer< + GFullSourceFragmentData_filters__asTriStateFilter> { + @override + final Iterable types = const [ + GFullSourceFragmentData_filters__asTriStateFilter, + _$GFullSourceFragmentData_filters__asTriStateFilter + ]; + @override + final String wireName = 'GFullSourceFragmentData_filters__asTriStateFilter'; + + @override + Iterable serialize(Serializers serializers, + GFullSourceFragmentData_filters__asTriStateFilter object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'type', + serializers.serialize(object.type, specifiedType: const FullType(String)), + 'TriStateFilterDefault', + serializers.serialize(object.TriStateFilterDefault, + specifiedType: const FullType(_i1.GTriState)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GFullSourceFragmentData_filters__asTriStateFilter deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GFullSourceFragmentData_filters__asTriStateFilterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'type': + result.type = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'TriStateFilterDefault': + result.TriStateFilterDefault = serializers.deserialize(value, + specifiedType: const FullType(_i1.GTriState))! as _i1.GTriState; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GFullSourceFragmentData_filters__asTextFilterSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GFullSourceFragmentData_filters__asTextFilter, + _$GFullSourceFragmentData_filters__asTextFilter + ]; + @override + final String wireName = 'GFullSourceFragmentData_filters__asTextFilter'; + + @override + Iterable serialize(Serializers serializers, + GFullSourceFragmentData_filters__asTextFilter object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'type', + serializers.serialize(object.type, specifiedType: const FullType(String)), + 'TextFilterDefault', + serializers.serialize(object.TextFilterDefault, + specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GFullSourceFragmentData_filters__asTextFilter deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GFullSourceFragmentData_filters__asTextFilterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'type': + result.type = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'TextFilterDefault': + result.TextFilterDefault = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GFullSourceFragmentData_filters__asSortFilterSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GFullSourceFragmentData_filters__asSortFilter, + _$GFullSourceFragmentData_filters__asSortFilter + ]; + @override + final String wireName = 'GFullSourceFragmentData_filters__asSortFilter'; + + @override + Iterable serialize(Serializers serializers, + GFullSourceFragmentData_filters__asSortFilter object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'type', + serializers.serialize(object.type, specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'values', + serializers.serialize(object.Gvalues, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + ]; + Object? value; + value = object.SortFilterDefault; + if (value != null) { + result + ..add('SortFilterDefault') + ..add(serializers.serialize(value, + specifiedType: const FullType( + GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault))); + } + return result; + } + + @override + GFullSourceFragmentData_filters__asSortFilter deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GFullSourceFragmentData_filters__asSortFilterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'type': + result.type = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'SortFilterDefault': + result.SortFilterDefault.replace(serializers.deserialize(value, + specifiedType: const FullType( + GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault))! + as GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault); + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'values': + result.Gvalues.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GFullSourceFragmentData_filters__asSortFilter_SortFilterDefaultSerializer + implements + StructuredSerializer< + GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault> { + @override + final Iterable types = const [ + GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault, + _$GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault + ]; + @override + final String wireName = + 'GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault'; + + @override + Iterable serialize(Serializers serializers, + GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'ascending', + serializers.serialize(object.ascending, + specifiedType: const FullType(bool)), + 'index', + serializers.serialize(object.index, specifiedType: const FullType(int)), + ]; + + return result; + } + + @override + GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GFullSourceFragmentData_filters__asSortFilter_SortFilterDefaultBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ascending': + result.ascending = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'index': + result.index = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GFullSourceFragmentData_filters__asSeparatorFilterSerializer + implements + StructuredSerializer< + GFullSourceFragmentData_filters__asSeparatorFilter> { + @override + final Iterable types = const [ + GFullSourceFragmentData_filters__asSeparatorFilter, + _$GFullSourceFragmentData_filters__asSeparatorFilter + ]; + @override + final String wireName = 'GFullSourceFragmentData_filters__asSeparatorFilter'; + + @override + Iterable serialize(Serializers serializers, + GFullSourceFragmentData_filters__asSeparatorFilter object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'type', + serializers.serialize(object.type, specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GFullSourceFragmentData_filters__asSeparatorFilter deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GFullSourceFragmentData_filters__asSeparatorFilterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'type': + result.type = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GFullSourceFragmentData_filters__asGroupFilterSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GFullSourceFragmentData_filters__asGroupFilter, + _$GFullSourceFragmentData_filters__asGroupFilter + ]; + @override + final String wireName = 'GFullSourceFragmentData_filters__asGroupFilter'; + + @override + Iterable serialize(Serializers serializers, + GFullSourceFragmentData_filters__asGroupFilter object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'type', + serializers.serialize(object.type, specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'filters', + serializers.serialize(object.filters, + specifiedType: const FullType(BuiltList, const [ + const FullType( + GFullSourceFragmentData_filters__asGroupFilter_filters) + ])), + ]; + + return result; + } + + @override + GFullSourceFragmentData_filters__asGroupFilter deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GFullSourceFragmentData_filters__asGroupFilterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'type': + result.type = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'filters': + result.filters.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType( + GFullSourceFragmentData_filters__asGroupFilter_filters) + ]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GFullSourceFragmentData_filters__asGroupFilter_filters__baseSerializer + implements + StructuredSerializer< + GFullSourceFragmentData_filters__asGroupFilter_filters__base> { + @override + final Iterable types = const [ + GFullSourceFragmentData_filters__asGroupFilter_filters__base, + _$GFullSourceFragmentData_filters__asGroupFilter_filters__base + ]; + @override + final String wireName = + 'GFullSourceFragmentData_filters__asGroupFilter_filters__base'; + + @override + Iterable serialize(Serializers serializers, + GFullSourceFragmentData_filters__asGroupFilter_filters__base object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GFullSourceFragmentData_filters__asGroupFilter_filters__base deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GFullSourceFragmentData_filters__asGroupFilter_filters__baseBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilterSerializer + implements + StructuredSerializer< + GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter> { + @override + final Iterable types = const [ + GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter, + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter + ]; + @override + final String wireName = + 'GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter'; + + @override + Iterable serialize( + Serializers serializers, + GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter + object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'type', + serializers.serialize(object.type, specifiedType: const FullType(String)), + 'CheckBoxFilterDefault', + serializers.serialize(object.CheckBoxFilterDefault, + specifiedType: const FullType(bool)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter + deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'type': + result.type = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'CheckBoxFilterDefault': + result.CheckBoxFilterDefault = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilterSerializer + implements + StructuredSerializer< + GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter> { + @override + final Iterable types = const [ + GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter, + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter + ]; + @override + final String wireName = + 'GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter'; + + @override + Iterable serialize( + Serializers serializers, + GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter + object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'type', + serializers.serialize(object.type, specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter + deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'type': + result.type = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilterSerializer + implements + StructuredSerializer< + GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter> { + @override + final Iterable types = const [ + GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter, + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter + ]; + @override + final String wireName = + 'GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter'; + + @override + Iterable serialize( + Serializers serializers, + GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter + object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'type', + serializers.serialize(object.type, specifiedType: const FullType(String)), + 'SelectFilterDefault', + serializers.serialize(object.SelectFilterDefault, + specifiedType: const FullType(int)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'values', + serializers.serialize(object.Gvalues, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + ]; + + return result; + } + + @override + GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter + deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'type': + result.type = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'SelectFilterDefault': + result.SelectFilterDefault = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'values': + result.Gvalues.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilterSerializer + implements + StructuredSerializer< + GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter> { + @override + final Iterable types = const [ + GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter, + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter + ]; + @override + final String wireName = + 'GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter'; + + @override + Iterable serialize( + Serializers serializers, + GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter + object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'type', + serializers.serialize(object.type, specifiedType: const FullType(String)), + 'TriStateFilterDefault', + serializers.serialize(object.TriStateFilterDefault, + specifiedType: const FullType(_i1.GTriState)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter + deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'type': + result.type = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'TriStateFilterDefault': + result.TriStateFilterDefault = serializers.deserialize(value, + specifiedType: const FullType(_i1.GTriState))! as _i1.GTriState; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilterSerializer + implements + StructuredSerializer< + GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter> { + @override + final Iterable types = const [ + GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter, + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter + ]; + @override + final String wireName = + 'GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter'; + + @override + Iterable serialize( + Serializers serializers, + GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter + object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'type', + serializers.serialize(object.type, specifiedType: const FullType(String)), + 'TextFilterDefault', + serializers.serialize(object.TextFilterDefault, + specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter + deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'type': + result.type = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'TextFilterDefault': + result.TextFilterDefault = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilterSerializer + implements + StructuredSerializer< + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter> { + @override + final Iterable types = const [ + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter, + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter + ]; + @override + final String wireName = + 'GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter'; + + @override + Iterable serialize( + Serializers serializers, + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter + object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'type', + serializers.serialize(object.type, specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'values', + serializers.serialize(object.Gvalues, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + ]; + Object? value; + value = object.SortFilterDefault; + if (value != null) { + result + ..add('SortFilterDefault') + ..add(serializers.serialize(value, + specifiedType: const FullType( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault))); + } + return result; + } + + @override + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter + deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'type': + result.type = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'SortFilterDefault': + result.SortFilterDefault.replace(serializers.deserialize(value, + specifiedType: const FullType( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault))! + as GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault); + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'values': + result.Gvalues.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefaultSerializer + implements + StructuredSerializer< + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault> { + @override + final Iterable types = const [ + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault, + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault + ]; + @override + final String wireName = + 'GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault'; + + @override + Iterable serialize( + Serializers serializers, + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault + object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'ascending', + serializers.serialize(object.ascending, + specifiedType: const FullType(bool)), + 'index', + serializers.serialize(object.index, specifiedType: const FullType(int)), + ]; + + return result; + } + + @override + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault + deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefaultBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ascending': + result.ascending = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'index': + result.index = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilterSerializer + implements + StructuredSerializer< + GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter> { + @override + final Iterable types = const [ + GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter, + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter + ]; + @override + final String wireName = + 'GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter'; + + @override + Iterable serialize( + Serializers serializers, + GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter + object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'type', + serializers.serialize(object.type, specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter + deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'type': + result.type = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GSourceFragmentData extends GSourceFragmentData { + @override + final String G__typename; + @override + final String displayName; + @override + final String iconUrl; + @override + final _i1.GLongString id; + @override + final bool isConfigurable; + @override + final bool isNsfw; + @override + final String lang; + @override + final String name; + @override + final bool supportsLatest; + @override + final GSourceFragmentData_extension extension; + + factory _$GSourceFragmentData( + [void Function(GSourceFragmentDataBuilder)? updates]) => + (new GSourceFragmentDataBuilder()..update(updates))._build(); + + _$GSourceFragmentData._( + {required this.G__typename, + required this.displayName, + required this.iconUrl, + required this.id, + required this.isConfigurable, + required this.isNsfw, + required this.lang, + required this.name, + required this.supportsLatest, + required this.extension}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSourceFragmentData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + displayName, r'GSourceFragmentData', 'displayName'); + BuiltValueNullFieldError.checkNotNull( + iconUrl, r'GSourceFragmentData', 'iconUrl'); + BuiltValueNullFieldError.checkNotNull(id, r'GSourceFragmentData', 'id'); + BuiltValueNullFieldError.checkNotNull( + isConfigurable, r'GSourceFragmentData', 'isConfigurable'); + BuiltValueNullFieldError.checkNotNull( + isNsfw, r'GSourceFragmentData', 'isNsfw'); + BuiltValueNullFieldError.checkNotNull(lang, r'GSourceFragmentData', 'lang'); + BuiltValueNullFieldError.checkNotNull(name, r'GSourceFragmentData', 'name'); + BuiltValueNullFieldError.checkNotNull( + supportsLatest, r'GSourceFragmentData', 'supportsLatest'); + BuiltValueNullFieldError.checkNotNull( + extension, r'GSourceFragmentData', 'extension'); + } + + @override + GSourceFragmentData rebuild( + void Function(GSourceFragmentDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceFragmentDataBuilder toBuilder() => + new GSourceFragmentDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceFragmentData && + G__typename == other.G__typename && + displayName == other.displayName && + iconUrl == other.iconUrl && + id == other.id && + isConfigurable == other.isConfigurable && + isNsfw == other.isNsfw && + lang == other.lang && + name == other.name && + supportsLatest == other.supportsLatest && + extension == other.extension; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, displayName.hashCode); + _$hash = $jc(_$hash, iconUrl.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, isConfigurable.hashCode); + _$hash = $jc(_$hash, isNsfw.hashCode); + _$hash = $jc(_$hash, lang.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, supportsLatest.hashCode); + _$hash = $jc(_$hash, extension.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourceFragmentData') + ..add('G__typename', G__typename) + ..add('displayName', displayName) + ..add('iconUrl', iconUrl) + ..add('id', id) + ..add('isConfigurable', isConfigurable) + ..add('isNsfw', isNsfw) + ..add('lang', lang) + ..add('name', name) + ..add('supportsLatest', supportsLatest) + ..add('extension', extension)) + .toString(); + } +} + +class GSourceFragmentDataBuilder + implements Builder { + _$GSourceFragmentData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _displayName; + String? get displayName => _$this._displayName; + set displayName(String? displayName) => _$this._displayName = displayName; + + String? _iconUrl; + String? get iconUrl => _$this._iconUrl; + set iconUrl(String? iconUrl) => _$this._iconUrl = iconUrl; + + _i1.GLongStringBuilder? _id; + _i1.GLongStringBuilder get id => _$this._id ??= new _i1.GLongStringBuilder(); + set id(_i1.GLongStringBuilder? id) => _$this._id = id; + + bool? _isConfigurable; + bool? get isConfigurable => _$this._isConfigurable; + set isConfigurable(bool? isConfigurable) => + _$this._isConfigurable = isConfigurable; + + bool? _isNsfw; + bool? get isNsfw => _$this._isNsfw; + set isNsfw(bool? isNsfw) => _$this._isNsfw = isNsfw; + + String? _lang; + String? get lang => _$this._lang; + set lang(String? lang) => _$this._lang = lang; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + bool? _supportsLatest; + bool? get supportsLatest => _$this._supportsLatest; + set supportsLatest(bool? supportsLatest) => + _$this._supportsLatest = supportsLatest; + + GSourceFragmentData_extensionBuilder? _extension; + GSourceFragmentData_extensionBuilder get extension => + _$this._extension ??= new GSourceFragmentData_extensionBuilder(); + set extension(GSourceFragmentData_extensionBuilder? extension) => + _$this._extension = extension; + + GSourceFragmentDataBuilder() { + GSourceFragmentData._initializeBuilder(this); + } + + GSourceFragmentDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _displayName = $v.displayName; + _iconUrl = $v.iconUrl; + _id = $v.id.toBuilder(); + _isConfigurable = $v.isConfigurable; + _isNsfw = $v.isNsfw; + _lang = $v.lang; + _name = $v.name; + _supportsLatest = $v.supportsLatest; + _extension = $v.extension.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GSourceFragmentData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceFragmentData; + } + + @override + void update(void Function(GSourceFragmentDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourceFragmentData build() => _build(); + + _$GSourceFragmentData _build() { + _$GSourceFragmentData _$result; + try { + _$result = _$v ?? + new _$GSourceFragmentData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSourceFragmentData', 'G__typename'), + displayName: BuiltValueNullFieldError.checkNotNull( + displayName, r'GSourceFragmentData', 'displayName'), + iconUrl: BuiltValueNullFieldError.checkNotNull( + iconUrl, r'GSourceFragmentData', 'iconUrl'), + id: id.build(), + isConfigurable: BuiltValueNullFieldError.checkNotNull( + isConfigurable, r'GSourceFragmentData', 'isConfigurable'), + isNsfw: BuiltValueNullFieldError.checkNotNull( + isNsfw, r'GSourceFragmentData', 'isNsfw'), + lang: BuiltValueNullFieldError.checkNotNull( + lang, r'GSourceFragmentData', 'lang'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'GSourceFragmentData', 'name'), + supportsLatest: BuiltValueNullFieldError.checkNotNull( + supportsLatest, r'GSourceFragmentData', 'supportsLatest'), + extension: extension.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'id'; + id.build(); + + _$failedField = 'extension'; + extension.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourceFragmentData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSourceFragmentData_extension extends GSourceFragmentData_extension { + @override + final String G__typename; + @override + final String pkgName; + @override + final String? repo; + + factory _$GSourceFragmentData_extension( + [void Function(GSourceFragmentData_extensionBuilder)? updates]) => + (new GSourceFragmentData_extensionBuilder()..update(updates))._build(); + + _$GSourceFragmentData_extension._( + {required this.G__typename, required this.pkgName, this.repo}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSourceFragmentData_extension', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + pkgName, r'GSourceFragmentData_extension', 'pkgName'); + } + + @override + GSourceFragmentData_extension rebuild( + void Function(GSourceFragmentData_extensionBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceFragmentData_extensionBuilder toBuilder() => + new GSourceFragmentData_extensionBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceFragmentData_extension && + G__typename == other.G__typename && + pkgName == other.pkgName && + repo == other.repo; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, pkgName.hashCode); + _$hash = $jc(_$hash, repo.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourceFragmentData_extension') + ..add('G__typename', G__typename) + ..add('pkgName', pkgName) + ..add('repo', repo)) + .toString(); + } +} + +class GSourceFragmentData_extensionBuilder + implements + Builder { + _$GSourceFragmentData_extension? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _pkgName; + String? get pkgName => _$this._pkgName; + set pkgName(String? pkgName) => _$this._pkgName = pkgName; + + String? _repo; + String? get repo => _$this._repo; + set repo(String? repo) => _$this._repo = repo; + + GSourceFragmentData_extensionBuilder() { + GSourceFragmentData_extension._initializeBuilder(this); + } + + GSourceFragmentData_extensionBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _pkgName = $v.pkgName; + _repo = $v.repo; + _$v = null; + } + return this; + } + + @override + void replace(GSourceFragmentData_extension other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceFragmentData_extension; + } + + @override + void update(void Function(GSourceFragmentData_extensionBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourceFragmentData_extension build() => _build(); + + _$GSourceFragmentData_extension _build() { + final _$result = _$v ?? + new _$GSourceFragmentData_extension._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSourceFragmentData_extension', 'G__typename'), + pkgName: BuiltValueNullFieldError.checkNotNull( + pkgName, r'GSourceFragmentData_extension', 'pkgName'), + repo: repo); + replace(_$result); + return _$result; + } +} + +class _$GFullSourceFragmentData extends GFullSourceFragmentData { + @override + final String G__typename; + @override + final String displayName; + @override + final String iconUrl; + @override + final _i1.GLongString id; + @override + final bool isConfigurable; + @override + final bool isNsfw; + @override + final String lang; + @override + final String name; + @override + final bool supportsLatest; + @override + final GFullSourceFragmentData_extension extension; + @override + final BuiltList filters; + + factory _$GFullSourceFragmentData( + [void Function(GFullSourceFragmentDataBuilder)? updates]) => + (new GFullSourceFragmentDataBuilder()..update(updates))._build(); + + _$GFullSourceFragmentData._( + {required this.G__typename, + required this.displayName, + required this.iconUrl, + required this.id, + required this.isConfigurable, + required this.isNsfw, + required this.lang, + required this.name, + required this.supportsLatest, + required this.extension, + required this.filters}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GFullSourceFragmentData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + displayName, r'GFullSourceFragmentData', 'displayName'); + BuiltValueNullFieldError.checkNotNull( + iconUrl, r'GFullSourceFragmentData', 'iconUrl'); + BuiltValueNullFieldError.checkNotNull(id, r'GFullSourceFragmentData', 'id'); + BuiltValueNullFieldError.checkNotNull( + isConfigurable, r'GFullSourceFragmentData', 'isConfigurable'); + BuiltValueNullFieldError.checkNotNull( + isNsfw, r'GFullSourceFragmentData', 'isNsfw'); + BuiltValueNullFieldError.checkNotNull( + lang, r'GFullSourceFragmentData', 'lang'); + BuiltValueNullFieldError.checkNotNull( + name, r'GFullSourceFragmentData', 'name'); + BuiltValueNullFieldError.checkNotNull( + supportsLatest, r'GFullSourceFragmentData', 'supportsLatest'); + BuiltValueNullFieldError.checkNotNull( + extension, r'GFullSourceFragmentData', 'extension'); + BuiltValueNullFieldError.checkNotNull( + filters, r'GFullSourceFragmentData', 'filters'); + } + + @override + GFullSourceFragmentData rebuild( + void Function(GFullSourceFragmentDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GFullSourceFragmentDataBuilder toBuilder() => + new GFullSourceFragmentDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFullSourceFragmentData && + G__typename == other.G__typename && + displayName == other.displayName && + iconUrl == other.iconUrl && + id == other.id && + isConfigurable == other.isConfigurable && + isNsfw == other.isNsfw && + lang == other.lang && + name == other.name && + supportsLatest == other.supportsLatest && + extension == other.extension && + filters == other.filters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, displayName.hashCode); + _$hash = $jc(_$hash, iconUrl.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, isConfigurable.hashCode); + _$hash = $jc(_$hash, isNsfw.hashCode); + _$hash = $jc(_$hash, lang.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, supportsLatest.hashCode); + _$hash = $jc(_$hash, extension.hashCode); + _$hash = $jc(_$hash, filters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GFullSourceFragmentData') + ..add('G__typename', G__typename) + ..add('displayName', displayName) + ..add('iconUrl', iconUrl) + ..add('id', id) + ..add('isConfigurable', isConfigurable) + ..add('isNsfw', isNsfw) + ..add('lang', lang) + ..add('name', name) + ..add('supportsLatest', supportsLatest) + ..add('extension', extension) + ..add('filters', filters)) + .toString(); + } +} + +class GFullSourceFragmentDataBuilder + implements + Builder { + _$GFullSourceFragmentData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _displayName; + String? get displayName => _$this._displayName; + set displayName(String? displayName) => _$this._displayName = displayName; + + String? _iconUrl; + String? get iconUrl => _$this._iconUrl; + set iconUrl(String? iconUrl) => _$this._iconUrl = iconUrl; + + _i1.GLongStringBuilder? _id; + _i1.GLongStringBuilder get id => _$this._id ??= new _i1.GLongStringBuilder(); + set id(_i1.GLongStringBuilder? id) => _$this._id = id; + + bool? _isConfigurable; + bool? get isConfigurable => _$this._isConfigurable; + set isConfigurable(bool? isConfigurable) => + _$this._isConfigurable = isConfigurable; + + bool? _isNsfw; + bool? get isNsfw => _$this._isNsfw; + set isNsfw(bool? isNsfw) => _$this._isNsfw = isNsfw; + + String? _lang; + String? get lang => _$this._lang; + set lang(String? lang) => _$this._lang = lang; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + bool? _supportsLatest; + bool? get supportsLatest => _$this._supportsLatest; + set supportsLatest(bool? supportsLatest) => + _$this._supportsLatest = supportsLatest; + + GFullSourceFragmentData_extensionBuilder? _extension; + GFullSourceFragmentData_extensionBuilder get extension => + _$this._extension ??= new GFullSourceFragmentData_extensionBuilder(); + set extension(GFullSourceFragmentData_extensionBuilder? extension) => + _$this._extension = extension; + + ListBuilder? _filters; + ListBuilder get filters => + _$this._filters ??= new ListBuilder(); + set filters(ListBuilder? filters) => + _$this._filters = filters; + + GFullSourceFragmentDataBuilder() { + GFullSourceFragmentData._initializeBuilder(this); + } + + GFullSourceFragmentDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _displayName = $v.displayName; + _iconUrl = $v.iconUrl; + _id = $v.id.toBuilder(); + _isConfigurable = $v.isConfigurable; + _isNsfw = $v.isNsfw; + _lang = $v.lang; + _name = $v.name; + _supportsLatest = $v.supportsLatest; + _extension = $v.extension.toBuilder(); + _filters = $v.filters.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GFullSourceFragmentData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFullSourceFragmentData; + } + + @override + void update(void Function(GFullSourceFragmentDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GFullSourceFragmentData build() => _build(); + + _$GFullSourceFragmentData _build() { + _$GFullSourceFragmentData _$result; + try { + _$result = _$v ?? + new _$GFullSourceFragmentData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GFullSourceFragmentData', 'G__typename'), + displayName: BuiltValueNullFieldError.checkNotNull( + displayName, r'GFullSourceFragmentData', 'displayName'), + iconUrl: BuiltValueNullFieldError.checkNotNull( + iconUrl, r'GFullSourceFragmentData', 'iconUrl'), + id: id.build(), + isConfigurable: BuiltValueNullFieldError.checkNotNull( + isConfigurable, r'GFullSourceFragmentData', 'isConfigurable'), + isNsfw: BuiltValueNullFieldError.checkNotNull( + isNsfw, r'GFullSourceFragmentData', 'isNsfw'), + lang: BuiltValueNullFieldError.checkNotNull( + lang, r'GFullSourceFragmentData', 'lang'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'GFullSourceFragmentData', 'name'), + supportsLatest: BuiltValueNullFieldError.checkNotNull( + supportsLatest, r'GFullSourceFragmentData', 'supportsLatest'), + extension: extension.build(), + filters: filters.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'id'; + id.build(); + + _$failedField = 'extension'; + extension.build(); + _$failedField = 'filters'; + filters.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GFullSourceFragmentData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GFullSourceFragmentData_extension + extends GFullSourceFragmentData_extension { + @override + final String G__typename; + @override + final String pkgName; + @override + final String? repo; + + factory _$GFullSourceFragmentData_extension( + [void Function(GFullSourceFragmentData_extensionBuilder)? updates]) => + (new GFullSourceFragmentData_extensionBuilder()..update(updates)) + ._build(); + + _$GFullSourceFragmentData_extension._( + {required this.G__typename, required this.pkgName, this.repo}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GFullSourceFragmentData_extension', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + pkgName, r'GFullSourceFragmentData_extension', 'pkgName'); + } + + @override + GFullSourceFragmentData_extension rebuild( + void Function(GFullSourceFragmentData_extensionBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GFullSourceFragmentData_extensionBuilder toBuilder() => + new GFullSourceFragmentData_extensionBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFullSourceFragmentData_extension && + G__typename == other.G__typename && + pkgName == other.pkgName && + repo == other.repo; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, pkgName.hashCode); + _$hash = $jc(_$hash, repo.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GFullSourceFragmentData_extension') + ..add('G__typename', G__typename) + ..add('pkgName', pkgName) + ..add('repo', repo)) + .toString(); + } +} + +class GFullSourceFragmentData_extensionBuilder + implements + Builder { + _$GFullSourceFragmentData_extension? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _pkgName; + String? get pkgName => _$this._pkgName; + set pkgName(String? pkgName) => _$this._pkgName = pkgName; + + String? _repo; + String? get repo => _$this._repo; + set repo(String? repo) => _$this._repo = repo; + + GFullSourceFragmentData_extensionBuilder() { + GFullSourceFragmentData_extension._initializeBuilder(this); + } + + GFullSourceFragmentData_extensionBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _pkgName = $v.pkgName; + _repo = $v.repo; + _$v = null; + } + return this; + } + + @override + void replace(GFullSourceFragmentData_extension other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFullSourceFragmentData_extension; + } + + @override + void update( + void Function(GFullSourceFragmentData_extensionBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GFullSourceFragmentData_extension build() => _build(); + + _$GFullSourceFragmentData_extension _build() { + final _$result = _$v ?? + new _$GFullSourceFragmentData_extension._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GFullSourceFragmentData_extension', 'G__typename'), + pkgName: BuiltValueNullFieldError.checkNotNull( + pkgName, r'GFullSourceFragmentData_extension', 'pkgName'), + repo: repo); + replace(_$result); + return _$result; + } +} + +class _$GFullSourceFragmentData_filters__base + extends GFullSourceFragmentData_filters__base { + @override + final String G__typename; + + factory _$GFullSourceFragmentData_filters__base( + [void Function(GFullSourceFragmentData_filters__baseBuilder)? + updates]) => + (new GFullSourceFragmentData_filters__baseBuilder()..update(updates)) + ._build(); + + _$GFullSourceFragmentData_filters__base._({required this.G__typename}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GFullSourceFragmentData_filters__base', 'G__typename'); + } + + @override + GFullSourceFragmentData_filters__base rebuild( + void Function(GFullSourceFragmentData_filters__baseBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GFullSourceFragmentData_filters__baseBuilder toBuilder() => + new GFullSourceFragmentData_filters__baseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFullSourceFragmentData_filters__base && + G__typename == other.G__typename; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GFullSourceFragmentData_filters__base') + ..add('G__typename', G__typename)) + .toString(); + } +} + +class GFullSourceFragmentData_filters__baseBuilder + implements + Builder { + _$GFullSourceFragmentData_filters__base? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GFullSourceFragmentData_filters__baseBuilder() { + GFullSourceFragmentData_filters__base._initializeBuilder(this); + } + + GFullSourceFragmentData_filters__baseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _$v = null; + } + return this; + } + + @override + void replace(GFullSourceFragmentData_filters__base other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFullSourceFragmentData_filters__base; + } + + @override + void update( + void Function(GFullSourceFragmentData_filters__baseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GFullSourceFragmentData_filters__base build() => _build(); + + _$GFullSourceFragmentData_filters__base _build() { + final _$result = _$v ?? + new _$GFullSourceFragmentData_filters__base._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GFullSourceFragmentData_filters__base', 'G__typename')); + replace(_$result); + return _$result; + } +} + +class _$GFullSourceFragmentData_filters__asCheckBoxFilter + extends GFullSourceFragmentData_filters__asCheckBoxFilter { + @override + final String G__typename; + @override + final String type; + @override + final bool CheckBoxFilterDefault; + @override + final String name; + + factory _$GFullSourceFragmentData_filters__asCheckBoxFilter( + [void Function( + GFullSourceFragmentData_filters__asCheckBoxFilterBuilder)? + updates]) => + (new GFullSourceFragmentData_filters__asCheckBoxFilterBuilder() + ..update(updates)) + ._build(); + + _$GFullSourceFragmentData_filters__asCheckBoxFilter._( + {required this.G__typename, + required this.type, + required this.CheckBoxFilterDefault, + required this.name}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GFullSourceFragmentData_filters__asCheckBoxFilter', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + type, r'GFullSourceFragmentData_filters__asCheckBoxFilter', 'type'); + BuiltValueNullFieldError.checkNotNull( + CheckBoxFilterDefault, + r'GFullSourceFragmentData_filters__asCheckBoxFilter', + 'CheckBoxFilterDefault'); + BuiltValueNullFieldError.checkNotNull( + name, r'GFullSourceFragmentData_filters__asCheckBoxFilter', 'name'); + } + + @override + GFullSourceFragmentData_filters__asCheckBoxFilter rebuild( + void Function( + GFullSourceFragmentData_filters__asCheckBoxFilterBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GFullSourceFragmentData_filters__asCheckBoxFilterBuilder toBuilder() => + new GFullSourceFragmentData_filters__asCheckBoxFilterBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFullSourceFragmentData_filters__asCheckBoxFilter && + G__typename == other.G__typename && + type == other.type && + CheckBoxFilterDefault == other.CheckBoxFilterDefault && + name == other.name; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, CheckBoxFilterDefault.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GFullSourceFragmentData_filters__asCheckBoxFilter') + ..add('G__typename', G__typename) + ..add('type', type) + ..add('CheckBoxFilterDefault', CheckBoxFilterDefault) + ..add('name', name)) + .toString(); + } +} + +class GFullSourceFragmentData_filters__asCheckBoxFilterBuilder + implements + Builder { + _$GFullSourceFragmentData_filters__asCheckBoxFilter? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _type; + String? get type => _$this._type; + set type(String? type) => _$this._type = type; + + bool? _CheckBoxFilterDefault; + bool? get CheckBoxFilterDefault => _$this._CheckBoxFilterDefault; + set CheckBoxFilterDefault(bool? CheckBoxFilterDefault) => + _$this._CheckBoxFilterDefault = CheckBoxFilterDefault; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + GFullSourceFragmentData_filters__asCheckBoxFilterBuilder() { + GFullSourceFragmentData_filters__asCheckBoxFilter._initializeBuilder(this); + } + + GFullSourceFragmentData_filters__asCheckBoxFilterBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _type = $v.type; + _CheckBoxFilterDefault = $v.CheckBoxFilterDefault; + _name = $v.name; + _$v = null; + } + return this; + } + + @override + void replace(GFullSourceFragmentData_filters__asCheckBoxFilter other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFullSourceFragmentData_filters__asCheckBoxFilter; + } + + @override + void update( + void Function(GFullSourceFragmentData_filters__asCheckBoxFilterBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GFullSourceFragmentData_filters__asCheckBoxFilter build() => _build(); + + _$GFullSourceFragmentData_filters__asCheckBoxFilter _build() { + final _$result = _$v ?? + new _$GFullSourceFragmentData_filters__asCheckBoxFilter._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFullSourceFragmentData_filters__asCheckBoxFilter', + 'G__typename'), + type: BuiltValueNullFieldError.checkNotNull(type, + r'GFullSourceFragmentData_filters__asCheckBoxFilter', 'type'), + CheckBoxFilterDefault: BuiltValueNullFieldError.checkNotNull( + CheckBoxFilterDefault, + r'GFullSourceFragmentData_filters__asCheckBoxFilter', + 'CheckBoxFilterDefault'), + name: BuiltValueNullFieldError.checkNotNull(name, + r'GFullSourceFragmentData_filters__asCheckBoxFilter', 'name')); + replace(_$result); + return _$result; + } +} + +class _$GFullSourceFragmentData_filters__asHeaderFilter + extends GFullSourceFragmentData_filters__asHeaderFilter { + @override + final String G__typename; + @override + final String type; + @override + final String name; + + factory _$GFullSourceFragmentData_filters__asHeaderFilter( + [void Function( + GFullSourceFragmentData_filters__asHeaderFilterBuilder)? + updates]) => + (new GFullSourceFragmentData_filters__asHeaderFilterBuilder() + ..update(updates)) + ._build(); + + _$GFullSourceFragmentData_filters__asHeaderFilter._( + {required this.G__typename, required this.type, required this.name}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GFullSourceFragmentData_filters__asHeaderFilter', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + type, r'GFullSourceFragmentData_filters__asHeaderFilter', 'type'); + BuiltValueNullFieldError.checkNotNull( + name, r'GFullSourceFragmentData_filters__asHeaderFilter', 'name'); + } + + @override + GFullSourceFragmentData_filters__asHeaderFilter rebuild( + void Function(GFullSourceFragmentData_filters__asHeaderFilterBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GFullSourceFragmentData_filters__asHeaderFilterBuilder toBuilder() => + new GFullSourceFragmentData_filters__asHeaderFilterBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFullSourceFragmentData_filters__asHeaderFilter && + G__typename == other.G__typename && + type == other.type && + name == other.name; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GFullSourceFragmentData_filters__asHeaderFilter') + ..add('G__typename', G__typename) + ..add('type', type) + ..add('name', name)) + .toString(); + } +} + +class GFullSourceFragmentData_filters__asHeaderFilterBuilder + implements + Builder { + _$GFullSourceFragmentData_filters__asHeaderFilter? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _type; + String? get type => _$this._type; + set type(String? type) => _$this._type = type; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + GFullSourceFragmentData_filters__asHeaderFilterBuilder() { + GFullSourceFragmentData_filters__asHeaderFilter._initializeBuilder(this); + } + + GFullSourceFragmentData_filters__asHeaderFilterBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _type = $v.type; + _name = $v.name; + _$v = null; + } + return this; + } + + @override + void replace(GFullSourceFragmentData_filters__asHeaderFilter other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFullSourceFragmentData_filters__asHeaderFilter; + } + + @override + void update( + void Function(GFullSourceFragmentData_filters__asHeaderFilterBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GFullSourceFragmentData_filters__asHeaderFilter build() => _build(); + + _$GFullSourceFragmentData_filters__asHeaderFilter _build() { + final _$result = _$v ?? + new _$GFullSourceFragmentData_filters__asHeaderFilter._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFullSourceFragmentData_filters__asHeaderFilter', + 'G__typename'), + type: BuiltValueNullFieldError.checkNotNull(type, + r'GFullSourceFragmentData_filters__asHeaderFilter', 'type'), + name: BuiltValueNullFieldError.checkNotNull(name, + r'GFullSourceFragmentData_filters__asHeaderFilter', 'name')); + replace(_$result); + return _$result; + } +} + +class _$GFullSourceFragmentData_filters__asSelectFilter + extends GFullSourceFragmentData_filters__asSelectFilter { + @override + final String G__typename; + @override + final String type; + @override + final int SelectFilterDefault; + @override + final String name; + @override + final BuiltList Gvalues; + + factory _$GFullSourceFragmentData_filters__asSelectFilter( + [void Function( + GFullSourceFragmentData_filters__asSelectFilterBuilder)? + updates]) => + (new GFullSourceFragmentData_filters__asSelectFilterBuilder() + ..update(updates)) + ._build(); + + _$GFullSourceFragmentData_filters__asSelectFilter._( + {required this.G__typename, + required this.type, + required this.SelectFilterDefault, + required this.name, + required this.Gvalues}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GFullSourceFragmentData_filters__asSelectFilter', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + type, r'GFullSourceFragmentData_filters__asSelectFilter', 'type'); + BuiltValueNullFieldError.checkNotNull( + SelectFilterDefault, + r'GFullSourceFragmentData_filters__asSelectFilter', + 'SelectFilterDefault'); + BuiltValueNullFieldError.checkNotNull( + name, r'GFullSourceFragmentData_filters__asSelectFilter', 'name'); + BuiltValueNullFieldError.checkNotNull( + Gvalues, r'GFullSourceFragmentData_filters__asSelectFilter', 'Gvalues'); + } + + @override + GFullSourceFragmentData_filters__asSelectFilter rebuild( + void Function(GFullSourceFragmentData_filters__asSelectFilterBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GFullSourceFragmentData_filters__asSelectFilterBuilder toBuilder() => + new GFullSourceFragmentData_filters__asSelectFilterBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFullSourceFragmentData_filters__asSelectFilter && + G__typename == other.G__typename && + type == other.type && + SelectFilterDefault == other.SelectFilterDefault && + name == other.name && + Gvalues == other.Gvalues; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, SelectFilterDefault.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, Gvalues.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GFullSourceFragmentData_filters__asSelectFilter') + ..add('G__typename', G__typename) + ..add('type', type) + ..add('SelectFilterDefault', SelectFilterDefault) + ..add('name', name) + ..add('Gvalues', Gvalues)) + .toString(); + } +} + +class GFullSourceFragmentData_filters__asSelectFilterBuilder + implements + Builder { + _$GFullSourceFragmentData_filters__asSelectFilter? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _type; + String? get type => _$this._type; + set type(String? type) => _$this._type = type; + + int? _SelectFilterDefault; + int? get SelectFilterDefault => _$this._SelectFilterDefault; + set SelectFilterDefault(int? SelectFilterDefault) => + _$this._SelectFilterDefault = SelectFilterDefault; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + ListBuilder? _Gvalues; + ListBuilder get Gvalues => + _$this._Gvalues ??= new ListBuilder(); + set Gvalues(ListBuilder? Gvalues) => _$this._Gvalues = Gvalues; + + GFullSourceFragmentData_filters__asSelectFilterBuilder() { + GFullSourceFragmentData_filters__asSelectFilter._initializeBuilder(this); + } + + GFullSourceFragmentData_filters__asSelectFilterBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _type = $v.type; + _SelectFilterDefault = $v.SelectFilterDefault; + _name = $v.name; + _Gvalues = $v.Gvalues.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GFullSourceFragmentData_filters__asSelectFilter other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFullSourceFragmentData_filters__asSelectFilter; + } + + @override + void update( + void Function(GFullSourceFragmentData_filters__asSelectFilterBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GFullSourceFragmentData_filters__asSelectFilter build() => _build(); + + _$GFullSourceFragmentData_filters__asSelectFilter _build() { + _$GFullSourceFragmentData_filters__asSelectFilter _$result; + try { + _$result = _$v ?? + new _$GFullSourceFragmentData_filters__asSelectFilter._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFullSourceFragmentData_filters__asSelectFilter', + 'G__typename'), + type: BuiltValueNullFieldError.checkNotNull(type, + r'GFullSourceFragmentData_filters__asSelectFilter', 'type'), + SelectFilterDefault: BuiltValueNullFieldError.checkNotNull( + SelectFilterDefault, + r'GFullSourceFragmentData_filters__asSelectFilter', + 'SelectFilterDefault'), + name: BuiltValueNullFieldError.checkNotNull(name, + r'GFullSourceFragmentData_filters__asSelectFilter', 'name'), + Gvalues: Gvalues.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'Gvalues'; + Gvalues.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GFullSourceFragmentData_filters__asSelectFilter', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GFullSourceFragmentData_filters__asTriStateFilter + extends GFullSourceFragmentData_filters__asTriStateFilter { + @override + final String G__typename; + @override + final String type; + @override + final _i1.GTriState TriStateFilterDefault; + @override + final String name; + + factory _$GFullSourceFragmentData_filters__asTriStateFilter( + [void Function( + GFullSourceFragmentData_filters__asTriStateFilterBuilder)? + updates]) => + (new GFullSourceFragmentData_filters__asTriStateFilterBuilder() + ..update(updates)) + ._build(); + + _$GFullSourceFragmentData_filters__asTriStateFilter._( + {required this.G__typename, + required this.type, + required this.TriStateFilterDefault, + required this.name}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GFullSourceFragmentData_filters__asTriStateFilter', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + type, r'GFullSourceFragmentData_filters__asTriStateFilter', 'type'); + BuiltValueNullFieldError.checkNotNull( + TriStateFilterDefault, + r'GFullSourceFragmentData_filters__asTriStateFilter', + 'TriStateFilterDefault'); + BuiltValueNullFieldError.checkNotNull( + name, r'GFullSourceFragmentData_filters__asTriStateFilter', 'name'); + } + + @override + GFullSourceFragmentData_filters__asTriStateFilter rebuild( + void Function( + GFullSourceFragmentData_filters__asTriStateFilterBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GFullSourceFragmentData_filters__asTriStateFilterBuilder toBuilder() => + new GFullSourceFragmentData_filters__asTriStateFilterBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFullSourceFragmentData_filters__asTriStateFilter && + G__typename == other.G__typename && + type == other.type && + TriStateFilterDefault == other.TriStateFilterDefault && + name == other.name; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, TriStateFilterDefault.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GFullSourceFragmentData_filters__asTriStateFilter') + ..add('G__typename', G__typename) + ..add('type', type) + ..add('TriStateFilterDefault', TriStateFilterDefault) + ..add('name', name)) + .toString(); + } +} + +class GFullSourceFragmentData_filters__asTriStateFilterBuilder + implements + Builder { + _$GFullSourceFragmentData_filters__asTriStateFilter? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _type; + String? get type => _$this._type; + set type(String? type) => _$this._type = type; + + _i1.GTriState? _TriStateFilterDefault; + _i1.GTriState? get TriStateFilterDefault => _$this._TriStateFilterDefault; + set TriStateFilterDefault(_i1.GTriState? TriStateFilterDefault) => + _$this._TriStateFilterDefault = TriStateFilterDefault; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + GFullSourceFragmentData_filters__asTriStateFilterBuilder() { + GFullSourceFragmentData_filters__asTriStateFilter._initializeBuilder(this); + } + + GFullSourceFragmentData_filters__asTriStateFilterBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _type = $v.type; + _TriStateFilterDefault = $v.TriStateFilterDefault; + _name = $v.name; + _$v = null; + } + return this; + } + + @override + void replace(GFullSourceFragmentData_filters__asTriStateFilter other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFullSourceFragmentData_filters__asTriStateFilter; + } + + @override + void update( + void Function(GFullSourceFragmentData_filters__asTriStateFilterBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GFullSourceFragmentData_filters__asTriStateFilter build() => _build(); + + _$GFullSourceFragmentData_filters__asTriStateFilter _build() { + final _$result = _$v ?? + new _$GFullSourceFragmentData_filters__asTriStateFilter._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFullSourceFragmentData_filters__asTriStateFilter', + 'G__typename'), + type: BuiltValueNullFieldError.checkNotNull(type, + r'GFullSourceFragmentData_filters__asTriStateFilter', 'type'), + TriStateFilterDefault: BuiltValueNullFieldError.checkNotNull( + TriStateFilterDefault, + r'GFullSourceFragmentData_filters__asTriStateFilter', + 'TriStateFilterDefault'), + name: BuiltValueNullFieldError.checkNotNull(name, + r'GFullSourceFragmentData_filters__asTriStateFilter', 'name')); + replace(_$result); + return _$result; + } +} + +class _$GFullSourceFragmentData_filters__asTextFilter + extends GFullSourceFragmentData_filters__asTextFilter { + @override + final String G__typename; + @override + final String type; + @override + final String TextFilterDefault; + @override + final String name; + + factory _$GFullSourceFragmentData_filters__asTextFilter( + [void Function(GFullSourceFragmentData_filters__asTextFilterBuilder)? + updates]) => + (new GFullSourceFragmentData_filters__asTextFilterBuilder() + ..update(updates)) + ._build(); + + _$GFullSourceFragmentData_filters__asTextFilter._( + {required this.G__typename, + required this.type, + required this.TextFilterDefault, + required this.name}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GFullSourceFragmentData_filters__asTextFilter', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + type, r'GFullSourceFragmentData_filters__asTextFilter', 'type'); + BuiltValueNullFieldError.checkNotNull(TextFilterDefault, + r'GFullSourceFragmentData_filters__asTextFilter', 'TextFilterDefault'); + BuiltValueNullFieldError.checkNotNull( + name, r'GFullSourceFragmentData_filters__asTextFilter', 'name'); + } + + @override + GFullSourceFragmentData_filters__asTextFilter rebuild( + void Function(GFullSourceFragmentData_filters__asTextFilterBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GFullSourceFragmentData_filters__asTextFilterBuilder toBuilder() => + new GFullSourceFragmentData_filters__asTextFilterBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFullSourceFragmentData_filters__asTextFilter && + G__typename == other.G__typename && + type == other.type && + TextFilterDefault == other.TextFilterDefault && + name == other.name; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, TextFilterDefault.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GFullSourceFragmentData_filters__asTextFilter') + ..add('G__typename', G__typename) + ..add('type', type) + ..add('TextFilterDefault', TextFilterDefault) + ..add('name', name)) + .toString(); + } +} + +class GFullSourceFragmentData_filters__asTextFilterBuilder + implements + Builder { + _$GFullSourceFragmentData_filters__asTextFilter? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _type; + String? get type => _$this._type; + set type(String? type) => _$this._type = type; + + String? _TextFilterDefault; + String? get TextFilterDefault => _$this._TextFilterDefault; + set TextFilterDefault(String? TextFilterDefault) => + _$this._TextFilterDefault = TextFilterDefault; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + GFullSourceFragmentData_filters__asTextFilterBuilder() { + GFullSourceFragmentData_filters__asTextFilter._initializeBuilder(this); + } + + GFullSourceFragmentData_filters__asTextFilterBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _type = $v.type; + _TextFilterDefault = $v.TextFilterDefault; + _name = $v.name; + _$v = null; + } + return this; + } + + @override + void replace(GFullSourceFragmentData_filters__asTextFilter other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFullSourceFragmentData_filters__asTextFilter; + } + + @override + void update( + void Function(GFullSourceFragmentData_filters__asTextFilterBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GFullSourceFragmentData_filters__asTextFilter build() => _build(); + + _$GFullSourceFragmentData_filters__asTextFilter _build() { + final _$result = _$v ?? + new _$GFullSourceFragmentData_filters__asTextFilter._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFullSourceFragmentData_filters__asTextFilter', + 'G__typename'), + type: BuiltValueNullFieldError.checkNotNull( + type, r'GFullSourceFragmentData_filters__asTextFilter', 'type'), + TextFilterDefault: BuiltValueNullFieldError.checkNotNull( + TextFilterDefault, + r'GFullSourceFragmentData_filters__asTextFilter', + 'TextFilterDefault'), + name: BuiltValueNullFieldError.checkNotNull(name, + r'GFullSourceFragmentData_filters__asTextFilter', 'name')); + replace(_$result); + return _$result; + } +} + +class _$GFullSourceFragmentData_filters__asSortFilter + extends GFullSourceFragmentData_filters__asSortFilter { + @override + final String G__typename; + @override + final String type; + @override + final GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault? + SortFilterDefault; + @override + final String name; + @override + final BuiltList Gvalues; + + factory _$GFullSourceFragmentData_filters__asSortFilter( + [void Function(GFullSourceFragmentData_filters__asSortFilterBuilder)? + updates]) => + (new GFullSourceFragmentData_filters__asSortFilterBuilder() + ..update(updates)) + ._build(); + + _$GFullSourceFragmentData_filters__asSortFilter._( + {required this.G__typename, + required this.type, + this.SortFilterDefault, + required this.name, + required this.Gvalues}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GFullSourceFragmentData_filters__asSortFilter', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + type, r'GFullSourceFragmentData_filters__asSortFilter', 'type'); + BuiltValueNullFieldError.checkNotNull( + name, r'GFullSourceFragmentData_filters__asSortFilter', 'name'); + BuiltValueNullFieldError.checkNotNull( + Gvalues, r'GFullSourceFragmentData_filters__asSortFilter', 'Gvalues'); + } + + @override + GFullSourceFragmentData_filters__asSortFilter rebuild( + void Function(GFullSourceFragmentData_filters__asSortFilterBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GFullSourceFragmentData_filters__asSortFilterBuilder toBuilder() => + new GFullSourceFragmentData_filters__asSortFilterBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFullSourceFragmentData_filters__asSortFilter && + G__typename == other.G__typename && + type == other.type && + SortFilterDefault == other.SortFilterDefault && + name == other.name && + Gvalues == other.Gvalues; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, SortFilterDefault.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, Gvalues.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GFullSourceFragmentData_filters__asSortFilter') + ..add('G__typename', G__typename) + ..add('type', type) + ..add('SortFilterDefault', SortFilterDefault) + ..add('name', name) + ..add('Gvalues', Gvalues)) + .toString(); + } +} + +class GFullSourceFragmentData_filters__asSortFilterBuilder + implements + Builder { + _$GFullSourceFragmentData_filters__asSortFilter? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _type; + String? get type => _$this._type; + set type(String? type) => _$this._type = type; + + GFullSourceFragmentData_filters__asSortFilter_SortFilterDefaultBuilder? + _SortFilterDefault; + GFullSourceFragmentData_filters__asSortFilter_SortFilterDefaultBuilder + get SortFilterDefault => _$this._SortFilterDefault ??= + new GFullSourceFragmentData_filters__asSortFilter_SortFilterDefaultBuilder(); + set SortFilterDefault( + GFullSourceFragmentData_filters__asSortFilter_SortFilterDefaultBuilder? + SortFilterDefault) => + _$this._SortFilterDefault = SortFilterDefault; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + ListBuilder? _Gvalues; + ListBuilder get Gvalues => + _$this._Gvalues ??= new ListBuilder(); + set Gvalues(ListBuilder? Gvalues) => _$this._Gvalues = Gvalues; + + GFullSourceFragmentData_filters__asSortFilterBuilder() { + GFullSourceFragmentData_filters__asSortFilter._initializeBuilder(this); + } + + GFullSourceFragmentData_filters__asSortFilterBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _type = $v.type; + _SortFilterDefault = $v.SortFilterDefault?.toBuilder(); + _name = $v.name; + _Gvalues = $v.Gvalues.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GFullSourceFragmentData_filters__asSortFilter other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFullSourceFragmentData_filters__asSortFilter; + } + + @override + void update( + void Function(GFullSourceFragmentData_filters__asSortFilterBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GFullSourceFragmentData_filters__asSortFilter build() => _build(); + + _$GFullSourceFragmentData_filters__asSortFilter _build() { + _$GFullSourceFragmentData_filters__asSortFilter _$result; + try { + _$result = _$v ?? + new _$GFullSourceFragmentData_filters__asSortFilter._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFullSourceFragmentData_filters__asSortFilter', + 'G__typename'), + type: BuiltValueNullFieldError.checkNotNull(type, + r'GFullSourceFragmentData_filters__asSortFilter', 'type'), + SortFilterDefault: _SortFilterDefault?.build(), + name: BuiltValueNullFieldError.checkNotNull(name, + r'GFullSourceFragmentData_filters__asSortFilter', 'name'), + Gvalues: Gvalues.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'SortFilterDefault'; + _SortFilterDefault?.build(); + + _$failedField = 'Gvalues'; + Gvalues.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GFullSourceFragmentData_filters__asSortFilter', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault + extends GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault { + @override + final String G__typename; + @override + final bool ascending; + @override + final int index; + + factory _$GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault( + [void Function( + GFullSourceFragmentData_filters__asSortFilter_SortFilterDefaultBuilder)? + updates]) => + (new GFullSourceFragmentData_filters__asSortFilter_SortFilterDefaultBuilder() + ..update(updates)) + ._build(); + + _$GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault._( + {required this.G__typename, required this.ascending, required this.index}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault', + 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + ascending, + r'GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault', + 'ascending'); + BuiltValueNullFieldError.checkNotNull( + index, + r'GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault', + 'index'); + } + + @override + GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault rebuild( + void Function( + GFullSourceFragmentData_filters__asSortFilter_SortFilterDefaultBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GFullSourceFragmentData_filters__asSortFilter_SortFilterDefaultBuilder + toBuilder() => + new GFullSourceFragmentData_filters__asSortFilter_SortFilterDefaultBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other + is GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault && + G__typename == other.G__typename && + ascending == other.ascending && + index == other.index; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, ascending.hashCode); + _$hash = $jc(_$hash, index.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault') + ..add('G__typename', G__typename) + ..add('ascending', ascending) + ..add('index', index)) + .toString(); + } +} + +class GFullSourceFragmentData_filters__asSortFilter_SortFilterDefaultBuilder + implements + Builder { + _$GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + bool? _ascending; + bool? get ascending => _$this._ascending; + set ascending(bool? ascending) => _$this._ascending = ascending; + + int? _index; + int? get index => _$this._index; + set index(int? index) => _$this._index = index; + + GFullSourceFragmentData_filters__asSortFilter_SortFilterDefaultBuilder() { + GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault + ._initializeBuilder(this); + } + + GFullSourceFragmentData_filters__asSortFilter_SortFilterDefaultBuilder + get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _ascending = $v.ascending; + _index = $v.index; + _$v = null; + } + return this; + } + + @override + void replace( + GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other + as _$GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault; + } + + @override + void update( + void Function( + GFullSourceFragmentData_filters__asSortFilter_SortFilterDefaultBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault build() => + _build(); + + _$GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault _build() { + final _$result = _$v ?? + new _$GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault', + 'G__typename'), + ascending: BuiltValueNullFieldError.checkNotNull( + ascending, + r'GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault', + 'ascending'), + index: BuiltValueNullFieldError.checkNotNull( + index, + r'GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault', + 'index')); + replace(_$result); + return _$result; + } +} + +class _$GFullSourceFragmentData_filters__asSeparatorFilter + extends GFullSourceFragmentData_filters__asSeparatorFilter { + @override + final String G__typename; + @override + final String type; + @override + final String name; + + factory _$GFullSourceFragmentData_filters__asSeparatorFilter( + [void Function( + GFullSourceFragmentData_filters__asSeparatorFilterBuilder)? + updates]) => + (new GFullSourceFragmentData_filters__asSeparatorFilterBuilder() + ..update(updates)) + ._build(); + + _$GFullSourceFragmentData_filters__asSeparatorFilter._( + {required this.G__typename, required this.type, required this.name}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GFullSourceFragmentData_filters__asSeparatorFilter', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + type, r'GFullSourceFragmentData_filters__asSeparatorFilter', 'type'); + BuiltValueNullFieldError.checkNotNull( + name, r'GFullSourceFragmentData_filters__asSeparatorFilter', 'name'); + } + + @override + GFullSourceFragmentData_filters__asSeparatorFilter rebuild( + void Function( + GFullSourceFragmentData_filters__asSeparatorFilterBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GFullSourceFragmentData_filters__asSeparatorFilterBuilder toBuilder() => + new GFullSourceFragmentData_filters__asSeparatorFilterBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFullSourceFragmentData_filters__asSeparatorFilter && + G__typename == other.G__typename && + type == other.type && + name == other.name; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GFullSourceFragmentData_filters__asSeparatorFilter') + ..add('G__typename', G__typename) + ..add('type', type) + ..add('name', name)) + .toString(); + } +} + +class GFullSourceFragmentData_filters__asSeparatorFilterBuilder + implements + Builder { + _$GFullSourceFragmentData_filters__asSeparatorFilter? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _type; + String? get type => _$this._type; + set type(String? type) => _$this._type = type; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + GFullSourceFragmentData_filters__asSeparatorFilterBuilder() { + GFullSourceFragmentData_filters__asSeparatorFilter._initializeBuilder(this); + } + + GFullSourceFragmentData_filters__asSeparatorFilterBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _type = $v.type; + _name = $v.name; + _$v = null; + } + return this; + } + + @override + void replace(GFullSourceFragmentData_filters__asSeparatorFilter other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFullSourceFragmentData_filters__asSeparatorFilter; + } + + @override + void update( + void Function(GFullSourceFragmentData_filters__asSeparatorFilterBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GFullSourceFragmentData_filters__asSeparatorFilter build() => _build(); + + _$GFullSourceFragmentData_filters__asSeparatorFilter _build() { + final _$result = _$v ?? + new _$GFullSourceFragmentData_filters__asSeparatorFilter._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFullSourceFragmentData_filters__asSeparatorFilter', + 'G__typename'), + type: BuiltValueNullFieldError.checkNotNull(type, + r'GFullSourceFragmentData_filters__asSeparatorFilter', 'type'), + name: BuiltValueNullFieldError.checkNotNull(name, + r'GFullSourceFragmentData_filters__asSeparatorFilter', 'name')); + replace(_$result); + return _$result; + } +} + +class _$GFullSourceFragmentData_filters__asGroupFilter + extends GFullSourceFragmentData_filters__asGroupFilter { + @override + final String G__typename; + @override + final String type; + @override + final String name; + @override + final BuiltList + filters; + + factory _$GFullSourceFragmentData_filters__asGroupFilter( + [void Function(GFullSourceFragmentData_filters__asGroupFilterBuilder)? + updates]) => + (new GFullSourceFragmentData_filters__asGroupFilterBuilder() + ..update(updates)) + ._build(); + + _$GFullSourceFragmentData_filters__asGroupFilter._( + {required this.G__typename, + required this.type, + required this.name, + required this.filters}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GFullSourceFragmentData_filters__asGroupFilter', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + type, r'GFullSourceFragmentData_filters__asGroupFilter', 'type'); + BuiltValueNullFieldError.checkNotNull( + name, r'GFullSourceFragmentData_filters__asGroupFilter', 'name'); + BuiltValueNullFieldError.checkNotNull( + filters, r'GFullSourceFragmentData_filters__asGroupFilter', 'filters'); + } + + @override + GFullSourceFragmentData_filters__asGroupFilter rebuild( + void Function(GFullSourceFragmentData_filters__asGroupFilterBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GFullSourceFragmentData_filters__asGroupFilterBuilder toBuilder() => + new GFullSourceFragmentData_filters__asGroupFilterBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFullSourceFragmentData_filters__asGroupFilter && + G__typename == other.G__typename && + type == other.type && + name == other.name && + filters == other.filters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, filters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GFullSourceFragmentData_filters__asGroupFilter') + ..add('G__typename', G__typename) + ..add('type', type) + ..add('name', name) + ..add('filters', filters)) + .toString(); + } +} + +class GFullSourceFragmentData_filters__asGroupFilterBuilder + implements + Builder { + _$GFullSourceFragmentData_filters__asGroupFilter? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _type; + String? get type => _$this._type; + set type(String? type) => _$this._type = type; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + ListBuilder? _filters; + ListBuilder + get filters => _$this._filters ??= new ListBuilder< + GFullSourceFragmentData_filters__asGroupFilter_filters>(); + set filters( + ListBuilder? + filters) => + _$this._filters = filters; + + GFullSourceFragmentData_filters__asGroupFilterBuilder() { + GFullSourceFragmentData_filters__asGroupFilter._initializeBuilder(this); + } + + GFullSourceFragmentData_filters__asGroupFilterBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _type = $v.type; + _name = $v.name; + _filters = $v.filters.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GFullSourceFragmentData_filters__asGroupFilter other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFullSourceFragmentData_filters__asGroupFilter; + } + + @override + void update( + void Function(GFullSourceFragmentData_filters__asGroupFilterBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GFullSourceFragmentData_filters__asGroupFilter build() => _build(); + + _$GFullSourceFragmentData_filters__asGroupFilter _build() { + _$GFullSourceFragmentData_filters__asGroupFilter _$result; + try { + _$result = _$v ?? + new _$GFullSourceFragmentData_filters__asGroupFilter._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFullSourceFragmentData_filters__asGroupFilter', + 'G__typename'), + type: BuiltValueNullFieldError.checkNotNull(type, + r'GFullSourceFragmentData_filters__asGroupFilter', 'type'), + name: BuiltValueNullFieldError.checkNotNull(name, + r'GFullSourceFragmentData_filters__asGroupFilter', 'name'), + filters: filters.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'filters'; + filters.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GFullSourceFragmentData_filters__asGroupFilter', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GFullSourceFragmentData_filters__asGroupFilter_filters__base + extends GFullSourceFragmentData_filters__asGroupFilter_filters__base { + @override + final String G__typename; + + factory _$GFullSourceFragmentData_filters__asGroupFilter_filters__base( + [void Function( + GFullSourceFragmentData_filters__asGroupFilter_filters__baseBuilder)? + updates]) => + (new GFullSourceFragmentData_filters__asGroupFilter_filters__baseBuilder() + ..update(updates)) + ._build(); + + _$GFullSourceFragmentData_filters__asGroupFilter_filters__base._( + {required this.G__typename}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__base', + 'G__typename'); + } + + @override + GFullSourceFragmentData_filters__asGroupFilter_filters__base rebuild( + void Function( + GFullSourceFragmentData_filters__asGroupFilter_filters__baseBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GFullSourceFragmentData_filters__asGroupFilter_filters__baseBuilder + toBuilder() => + new GFullSourceFragmentData_filters__asGroupFilter_filters__baseBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other + is GFullSourceFragmentData_filters__asGroupFilter_filters__base && + G__typename == other.G__typename; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GFullSourceFragmentData_filters__asGroupFilter_filters__base') + ..add('G__typename', G__typename)) + .toString(); + } +} + +class GFullSourceFragmentData_filters__asGroupFilter_filters__baseBuilder + implements + Builder { + _$GFullSourceFragmentData_filters__asGroupFilter_filters__base? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GFullSourceFragmentData_filters__asGroupFilter_filters__baseBuilder() { + GFullSourceFragmentData_filters__asGroupFilter_filters__base + ._initializeBuilder(this); + } + + GFullSourceFragmentData_filters__asGroupFilter_filters__baseBuilder + get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _$v = null; + } + return this; + } + + @override + void replace( + GFullSourceFragmentData_filters__asGroupFilter_filters__base other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = + other as _$GFullSourceFragmentData_filters__asGroupFilter_filters__base; + } + + @override + void update( + void Function( + GFullSourceFragmentData_filters__asGroupFilter_filters__baseBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GFullSourceFragmentData_filters__asGroupFilter_filters__base build() => + _build(); + + _$GFullSourceFragmentData_filters__asGroupFilter_filters__base _build() { + final _$result = _$v ?? + new _$GFullSourceFragmentData_filters__asGroupFilter_filters__base._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__base', + 'G__typename')); + replace(_$result); + return _$result; + } +} + +class _$GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter + extends GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter { + @override + final String G__typename; + @override + final String type; + @override + final bool CheckBoxFilterDefault; + @override + final String name; + + factory _$GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter( + [void Function( + GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilterBuilder)? + updates]) => + (new GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilterBuilder() + ..update(updates)) + ._build(); + + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter._( + {required this.G__typename, + required this.type, + required this.CheckBoxFilterDefault, + required this.name}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter', + 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + type, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter', + 'type'); + BuiltValueNullFieldError.checkNotNull( + CheckBoxFilterDefault, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter', + 'CheckBoxFilterDefault'); + BuiltValueNullFieldError.checkNotNull( + name, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter', + 'name'); + } + + @override + GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter rebuild( + void Function( + GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilterBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilterBuilder + toBuilder() => + new GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilterBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other + is GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter && + G__typename == other.G__typename && + type == other.type && + CheckBoxFilterDefault == other.CheckBoxFilterDefault && + name == other.name; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, CheckBoxFilterDefault.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter') + ..add('G__typename', G__typename) + ..add('type', type) + ..add('CheckBoxFilterDefault', CheckBoxFilterDefault) + ..add('name', name)) + .toString(); + } +} + +class GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilterBuilder + implements + Builder< + GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter, + GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilterBuilder> { + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter? + _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _type; + String? get type => _$this._type; + set type(String? type) => _$this._type = type; + + bool? _CheckBoxFilterDefault; + bool? get CheckBoxFilterDefault => _$this._CheckBoxFilterDefault; + set CheckBoxFilterDefault(bool? CheckBoxFilterDefault) => + _$this._CheckBoxFilterDefault = CheckBoxFilterDefault; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilterBuilder() { + GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter + ._initializeBuilder(this); + } + + GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilterBuilder + get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _type = $v.type; + _CheckBoxFilterDefault = $v.CheckBoxFilterDefault; + _name = $v.name; + _$v = null; + } + return this; + } + + @override + void replace( + GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter + other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other + as _$GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter; + } + + @override + void update( + void Function( + GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilterBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter + build() => _build(); + + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter + _build() { + final _$result = _$v ?? + new _$GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter', + 'G__typename'), + type: BuiltValueNullFieldError.checkNotNull( + type, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter', + 'type'), + CheckBoxFilterDefault: BuiltValueNullFieldError.checkNotNull( + CheckBoxFilterDefault, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter', + 'CheckBoxFilterDefault'), + name: BuiltValueNullFieldError.checkNotNull( + name, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter', + 'name')); + replace(_$result); + return _$result; + } +} + +class _$GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter + extends GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter { + @override + final String G__typename; + @override + final String type; + @override + final String name; + + factory _$GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter( + [void Function( + GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilterBuilder)? + updates]) => + (new GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilterBuilder() + ..update(updates)) + ._build(); + + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter._( + {required this.G__typename, required this.type, required this.name}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter', + 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + type, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter', + 'type'); + BuiltValueNullFieldError.checkNotNull( + name, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter', + 'name'); + } + + @override + GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter rebuild( + void Function( + GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilterBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilterBuilder + toBuilder() => + new GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilterBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other + is GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter && + G__typename == other.G__typename && + type == other.type && + name == other.name; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter') + ..add('G__typename', G__typename) + ..add('type', type) + ..add('name', name)) + .toString(); + } +} + +class GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilterBuilder + implements + Builder< + GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter, + GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilterBuilder> { + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _type; + String? get type => _$this._type; + set type(String? type) => _$this._type = type; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilterBuilder() { + GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter + ._initializeBuilder(this); + } + + GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilterBuilder + get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _type = $v.type; + _name = $v.name; + _$v = null; + } + return this; + } + + @override + void replace( + GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter + other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other + as _$GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter; + } + + @override + void update( + void Function( + GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilterBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter + build() => _build(); + + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter + _build() { + final _$result = _$v ?? + new _$GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter + ._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter', + 'G__typename'), + type: BuiltValueNullFieldError.checkNotNull( + type, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter', + 'type'), + name: BuiltValueNullFieldError.checkNotNull( + name, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter', + 'name')); + replace(_$result); + return _$result; + } +} + +class _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter + extends GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter { + @override + final String G__typename; + @override + final String type; + @override + final int SelectFilterDefault; + @override + final String name; + @override + final BuiltList Gvalues; + + factory _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter( + [void Function( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilterBuilder)? + updates]) => + (new GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilterBuilder() + ..update(updates)) + ._build(); + + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter._( + {required this.G__typename, + required this.type, + required this.SelectFilterDefault, + required this.name, + required this.Gvalues}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter', + 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + type, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter', + 'type'); + BuiltValueNullFieldError.checkNotNull( + SelectFilterDefault, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter', + 'SelectFilterDefault'); + BuiltValueNullFieldError.checkNotNull( + name, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter', + 'name'); + BuiltValueNullFieldError.checkNotNull( + Gvalues, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter', + 'Gvalues'); + } + + @override + GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter rebuild( + void Function( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilterBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilterBuilder + toBuilder() => + new GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilterBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other + is GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter && + G__typename == other.G__typename && + type == other.type && + SelectFilterDefault == other.SelectFilterDefault && + name == other.name && + Gvalues == other.Gvalues; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, SelectFilterDefault.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, Gvalues.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter') + ..add('G__typename', G__typename) + ..add('type', type) + ..add('SelectFilterDefault', SelectFilterDefault) + ..add('name', name) + ..add('Gvalues', Gvalues)) + .toString(); + } +} + +class GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilterBuilder + implements + Builder< + GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter, + GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilterBuilder> { + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _type; + String? get type => _$this._type; + set type(String? type) => _$this._type = type; + + int? _SelectFilterDefault; + int? get SelectFilterDefault => _$this._SelectFilterDefault; + set SelectFilterDefault(int? SelectFilterDefault) => + _$this._SelectFilterDefault = SelectFilterDefault; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + ListBuilder? _Gvalues; + ListBuilder get Gvalues => + _$this._Gvalues ??= new ListBuilder(); + set Gvalues(ListBuilder? Gvalues) => _$this._Gvalues = Gvalues; + + GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilterBuilder() { + GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter + ._initializeBuilder(this); + } + + GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilterBuilder + get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _type = $v.type; + _SelectFilterDefault = $v.SelectFilterDefault; + _name = $v.name; + _Gvalues = $v.Gvalues.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter + other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other + as _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter; + } + + @override + void update( + void Function( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilterBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter + build() => _build(); + + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter + _build() { + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter + _$result; + try { + _$result = _$v ?? + new _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter', + 'G__typename'), + type: BuiltValueNullFieldError.checkNotNull( + type, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter', + 'type'), + SelectFilterDefault: BuiltValueNullFieldError.checkNotNull( + SelectFilterDefault, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter', + 'SelectFilterDefault'), + name: BuiltValueNullFieldError.checkNotNull( + name, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter', + 'name'), + Gvalues: Gvalues.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'Gvalues'; + Gvalues.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter + extends GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter { + @override + final String G__typename; + @override + final String type; + @override + final _i1.GTriState TriStateFilterDefault; + @override + final String name; + + factory _$GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter( + [void Function( + GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilterBuilder)? + updates]) => + (new GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilterBuilder() + ..update(updates)) + ._build(); + + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter._( + {required this.G__typename, + required this.type, + required this.TriStateFilterDefault, + required this.name}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter', + 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + type, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter', + 'type'); + BuiltValueNullFieldError.checkNotNull( + TriStateFilterDefault, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter', + 'TriStateFilterDefault'); + BuiltValueNullFieldError.checkNotNull( + name, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter', + 'name'); + } + + @override + GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter rebuild( + void Function( + GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilterBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilterBuilder + toBuilder() => + new GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilterBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other + is GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter && + G__typename == other.G__typename && + type == other.type && + TriStateFilterDefault == other.TriStateFilterDefault && + name == other.name; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, TriStateFilterDefault.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter') + ..add('G__typename', G__typename) + ..add('type', type) + ..add('TriStateFilterDefault', TriStateFilterDefault) + ..add('name', name)) + .toString(); + } +} + +class GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilterBuilder + implements + Builder< + GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter, + GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilterBuilder> { + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter? + _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _type; + String? get type => _$this._type; + set type(String? type) => _$this._type = type; + + _i1.GTriState? _TriStateFilterDefault; + _i1.GTriState? get TriStateFilterDefault => _$this._TriStateFilterDefault; + set TriStateFilterDefault(_i1.GTriState? TriStateFilterDefault) => + _$this._TriStateFilterDefault = TriStateFilterDefault; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilterBuilder() { + GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter + ._initializeBuilder(this); + } + + GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilterBuilder + get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _type = $v.type; + _TriStateFilterDefault = $v.TriStateFilterDefault; + _name = $v.name; + _$v = null; + } + return this; + } + + @override + void replace( + GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter + other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other + as _$GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter; + } + + @override + void update( + void Function( + GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilterBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter + build() => _build(); + + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter + _build() { + final _$result = _$v ?? + new _$GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter', + 'G__typename'), + type: BuiltValueNullFieldError.checkNotNull( + type, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter', + 'type'), + TriStateFilterDefault: BuiltValueNullFieldError.checkNotNull( + TriStateFilterDefault, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter', + 'TriStateFilterDefault'), + name: BuiltValueNullFieldError.checkNotNull( + name, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter', + 'name')); + replace(_$result); + return _$result; + } +} + +class _$GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter + extends GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter { + @override + final String G__typename; + @override + final String type; + @override + final String TextFilterDefault; + @override + final String name; + + factory _$GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter( + [void Function( + GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilterBuilder)? + updates]) => + (new GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilterBuilder() + ..update(updates)) + ._build(); + + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter._( + {required this.G__typename, + required this.type, + required this.TextFilterDefault, + required this.name}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter', + 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + type, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter', + 'type'); + BuiltValueNullFieldError.checkNotNull( + TextFilterDefault, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter', + 'TextFilterDefault'); + BuiltValueNullFieldError.checkNotNull( + name, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter', + 'name'); + } + + @override + GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter rebuild( + void Function( + GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilterBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilterBuilder + toBuilder() => + new GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilterBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other + is GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter && + G__typename == other.G__typename && + type == other.type && + TextFilterDefault == other.TextFilterDefault && + name == other.name; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, TextFilterDefault.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter') + ..add('G__typename', G__typename) + ..add('type', type) + ..add('TextFilterDefault', TextFilterDefault) + ..add('name', name)) + .toString(); + } +} + +class GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilterBuilder + implements + Builder< + GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter, + GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilterBuilder> { + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _type; + String? get type => _$this._type; + set type(String? type) => _$this._type = type; + + String? _TextFilterDefault; + String? get TextFilterDefault => _$this._TextFilterDefault; + set TextFilterDefault(String? TextFilterDefault) => + _$this._TextFilterDefault = TextFilterDefault; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilterBuilder() { + GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter + ._initializeBuilder(this); + } + + GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilterBuilder + get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _type = $v.type; + _TextFilterDefault = $v.TextFilterDefault; + _name = $v.name; + _$v = null; + } + return this; + } + + @override + void replace( + GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter + other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other + as _$GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter; + } + + @override + void update( + void Function( + GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilterBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter + build() => _build(); + + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter + _build() { + final _$result = _$v ?? + new _$GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter', + 'G__typename'), + type: BuiltValueNullFieldError.checkNotNull( + type, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter', + 'type'), + TextFilterDefault: BuiltValueNullFieldError.checkNotNull( + TextFilterDefault, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter', + 'TextFilterDefault'), + name: BuiltValueNullFieldError.checkNotNull( + name, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter', + 'name')); + replace(_$result); + return _$result; + } +} + +class _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter + extends GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter { + @override + final String G__typename; + @override + final String type; + @override + final GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault? + SortFilterDefault; + @override + final String name; + @override + final BuiltList Gvalues; + + factory _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter( + [void Function( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilterBuilder)? + updates]) => + (new GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilterBuilder() + ..update(updates)) + ._build(); + + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter._( + {required this.G__typename, + required this.type, + this.SortFilterDefault, + required this.name, + required this.Gvalues}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter', + 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + type, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter', + 'type'); + BuiltValueNullFieldError.checkNotNull( + name, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter', + 'name'); + BuiltValueNullFieldError.checkNotNull( + Gvalues, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter', + 'Gvalues'); + } + + @override + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter rebuild( + void Function( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilterBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilterBuilder + toBuilder() => + new GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilterBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other + is GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter && + G__typename == other.G__typename && + type == other.type && + SortFilterDefault == other.SortFilterDefault && + name == other.name && + Gvalues == other.Gvalues; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, SortFilterDefault.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, Gvalues.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter') + ..add('G__typename', G__typename) + ..add('type', type) + ..add('SortFilterDefault', SortFilterDefault) + ..add('name', name) + ..add('Gvalues', Gvalues)) + .toString(); + } +} + +class GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilterBuilder + implements + Builder< + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter, + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilterBuilder> { + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _type; + String? get type => _$this._type; + set type(String? type) => _$this._type = type; + + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefaultBuilder? + _SortFilterDefault; + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefaultBuilder + get SortFilterDefault => _$this._SortFilterDefault ??= + new GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefaultBuilder(); + set SortFilterDefault( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefaultBuilder? + SortFilterDefault) => + _$this._SortFilterDefault = SortFilterDefault; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + ListBuilder? _Gvalues; + ListBuilder get Gvalues => + _$this._Gvalues ??= new ListBuilder(); + set Gvalues(ListBuilder? Gvalues) => _$this._Gvalues = Gvalues; + + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilterBuilder() { + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter + ._initializeBuilder(this); + } + + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilterBuilder + get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _type = $v.type; + _SortFilterDefault = $v.SortFilterDefault?.toBuilder(); + _name = $v.name; + _Gvalues = $v.Gvalues.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter + other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other + as _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter; + } + + @override + void update( + void Function( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilterBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter + build() => _build(); + + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter + _build() { + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter + _$result; + try { + _$result = _$v ?? + new _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter + ._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter', + 'G__typename'), + type: BuiltValueNullFieldError.checkNotNull( + type, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter', + 'type'), + SortFilterDefault: _SortFilterDefault?.build(), + name: BuiltValueNullFieldError.checkNotNull( + name, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter', + 'name'), + Gvalues: Gvalues.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'SortFilterDefault'; + _SortFilterDefault?.build(); + + _$failedField = 'Gvalues'; + Gvalues.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault + extends GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault { + @override + final String G__typename; + @override + final bool ascending; + @override + final int index; + + factory _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault( + [void Function( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefaultBuilder)? + updates]) => + (new GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefaultBuilder() + ..update(updates)) + ._build(); + + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault._( + {required this.G__typename, required this.ascending, required this.index}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault', + 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + ascending, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault', + 'ascending'); + BuiltValueNullFieldError.checkNotNull( + index, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault', + 'index'); + } + + @override + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault + rebuild( + void Function( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefaultBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefaultBuilder + toBuilder() => + new GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefaultBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other + is GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault && + G__typename == other.G__typename && + ascending == other.ascending && + index == other.index; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, ascending.hashCode); + _$hash = $jc(_$hash, index.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault') + ..add('G__typename', G__typename) + ..add('ascending', ascending) + ..add('index', index)) + .toString(); + } +} + +class GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefaultBuilder + implements + Builder< + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault, + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefaultBuilder> { + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault? + _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + bool? _ascending; + bool? get ascending => _$this._ascending; + set ascending(bool? ascending) => _$this._ascending = ascending; + + int? _index; + int? get index => _$this._index; + set index(int? index) => _$this._index = index; + + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefaultBuilder() { + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault + ._initializeBuilder(this); + } + + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefaultBuilder + get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _ascending = $v.ascending; + _index = $v.index; + _$v = null; + } + return this; + } + + @override + void replace( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault + other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other + as _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault; + } + + @override + void update( + void Function( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefaultBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault + build() => _build(); + + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault + _build() { + final _$result = _$v ?? + new _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault + ._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault', + 'G__typename'), + ascending: BuiltValueNullFieldError.checkNotNull( + ascending, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault', + 'ascending'), + index: BuiltValueNullFieldError.checkNotNull( + index, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault', + 'index')); + replace(_$result); + return _$result; + } +} + +class _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter + extends GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter { + @override + final String G__typename; + @override + final String type; + @override + final String name; + + factory _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter( + [void Function( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilterBuilder)? + updates]) => + (new GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilterBuilder() + ..update(updates)) + ._build(); + + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter._( + {required this.G__typename, required this.type, required this.name}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter', + 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + type, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter', + 'type'); + BuiltValueNullFieldError.checkNotNull( + name, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter', + 'name'); + } + + @override + GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter rebuild( + void Function( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilterBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilterBuilder + toBuilder() => + new GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilterBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other + is GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter && + G__typename == other.G__typename && + type == other.type && + name == other.name; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter') + ..add('G__typename', G__typename) + ..add('type', type) + ..add('name', name)) + .toString(); + } +} + +class GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilterBuilder + implements + Builder< + GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter, + GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilterBuilder> { + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter? + _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _type; + String? get type => _$this._type; + set type(String? type) => _$this._type = type; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilterBuilder() { + GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter + ._initializeBuilder(this); + } + + GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilterBuilder + get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _type = $v.type; + _name = $v.name; + _$v = null; + } + return this; + } + + @override + void replace( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter + other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other + as _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter; + } + + @override + void update( + void Function( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilterBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter + build() => _build(); + + _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter + _build() { + final _$result = _$v ?? + new _$GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter + ._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter', + 'G__typename'), + type: BuiltValueNullFieldError.checkNotNull( + type, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter', + 'type'), + name: BuiltValueNullFieldError.checkNotNull( + name, + r'GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter', + 'name')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/domain/source/graphql/__generated__/fragment.req.gql.dart b/lib/src/features/browse_center/domain/source/graphql/__generated__/fragment.req.gql.dart new file mode 100644 index 00000000..5efb5c3f --- /dev/null +++ b/lib/src/features/browse_center/domain/source/graphql/__generated__/fragment.req.gql.dart @@ -0,0 +1,115 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql/ast.dart' as _i5; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/source/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/source/graphql/__generated__/fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/source/graphql/__generated__/fragment.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'fragment.req.gql.g.dart'; + +abstract class GSourceFragmentReq + implements + Built, + _i1.FragmentRequest<_i2.GSourceFragmentData, _i3.GSourceFragmentVars> { + GSourceFragmentReq._(); + + factory GSourceFragmentReq( + [void Function(GSourceFragmentReqBuilder b) updates]) = + _$GSourceFragmentReq; + + static void _initializeBuilder(GSourceFragmentReqBuilder b) => b + ..document = _i4.document + ..fragmentName = 'SourceFragment'; + + @override + _i3.GSourceFragmentVars get vars; + @override + _i5.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GSourceFragmentData? parseData(Map json) => + _i2.GSourceFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GSourceFragmentData data) => + data.toJson(); + + static Serializer get serializer => + _$gSourceFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GSourceFragmentReq.serializer, + this, + ) as Map); + + static GSourceFragmentReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GSourceFragmentReq.serializer, + json, + ); +} + +abstract class GFullSourceFragmentReq + implements + Built, + _i1.FragmentRequest<_i2.GFullSourceFragmentData, + _i3.GFullSourceFragmentVars> { + GFullSourceFragmentReq._(); + + factory GFullSourceFragmentReq( + [void Function(GFullSourceFragmentReqBuilder b) updates]) = + _$GFullSourceFragmentReq; + + static void _initializeBuilder(GFullSourceFragmentReqBuilder b) => b + ..document = _i4.document + ..fragmentName = 'FullSourceFragment'; + + @override + _i3.GFullSourceFragmentVars get vars; + @override + _i5.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GFullSourceFragmentData? parseData(Map json) => + _i2.GFullSourceFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GFullSourceFragmentData data) => + data.toJson(); + + static Serializer get serializer => + _$gFullSourceFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GFullSourceFragmentReq.serializer, + this, + ) as Map); + + static GFullSourceFragmentReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GFullSourceFragmentReq.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/domain/source/graphql/__generated__/fragment.req.gql.g.dart b/lib/src/features/browse_center/domain/source/graphql/__generated__/fragment.req.gql.g.dart new file mode 100644 index 00000000..02061fcb --- /dev/null +++ b/lib/src/features/browse_center/domain/source/graphql/__generated__/fragment.req.gql.g.dart @@ -0,0 +1,458 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gSourceFragmentReqSerializer = + new _$GSourceFragmentReqSerializer(); +Serializer _$gFullSourceFragmentReqSerializer = + new _$GFullSourceFragmentReqSerializer(); + +class _$GSourceFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GSourceFragmentReq, _$GSourceFragmentReq]; + @override + final String wireName = 'GSourceFragmentReq'; + + @override + Iterable serialize( + Serializers serializers, GSourceFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GSourceFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i5.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSourceFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourceFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GSourceFragmentVars))! + as _i3.GSourceFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i5.DocumentNode))! + as _i5.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GFullSourceFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GFullSourceFragmentReq, + _$GFullSourceFragmentReq + ]; + @override + final String wireName = 'GFullSourceFragmentReq'; + + @override + Iterable serialize( + Serializers serializers, GFullSourceFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GFullSourceFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i5.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GFullSourceFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GFullSourceFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GFullSourceFragmentVars))! + as _i3.GFullSourceFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i5.DocumentNode))! + as _i5.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GSourceFragmentReq extends GSourceFragmentReq { + @override + final _i3.GSourceFragmentVars vars; + @override + final _i5.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GSourceFragmentReq( + [void Function(GSourceFragmentReqBuilder)? updates]) => + (new GSourceFragmentReqBuilder()..update(updates))._build(); + + _$GSourceFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GSourceFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GSourceFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GSourceFragmentReq', 'idFields'); + } + + @override + GSourceFragmentReq rebuild( + void Function(GSourceFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceFragmentReqBuilder toBuilder() => + new GSourceFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourceFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GSourceFragmentReqBuilder + implements Builder { + _$GSourceFragmentReq? _$v; + + _i3.GSourceFragmentVarsBuilder? _vars; + _i3.GSourceFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GSourceFragmentVarsBuilder(); + set vars(_i3.GSourceFragmentVarsBuilder? vars) => _$this._vars = vars; + + _i5.DocumentNode? _document; + _i5.DocumentNode? get document => _$this._document; + set document(_i5.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GSourceFragmentReqBuilder() { + GSourceFragmentReq._initializeBuilder(this); + } + + GSourceFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GSourceFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceFragmentReq; + } + + @override + void update(void Function(GSourceFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourceFragmentReq build() => _build(); + + _$GSourceFragmentReq _build() { + _$GSourceFragmentReq _$result; + try { + _$result = _$v ?? + new _$GSourceFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GSourceFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GSourceFragmentReq', 'idFields')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourceFragmentReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GFullSourceFragmentReq extends GFullSourceFragmentReq { + @override + final _i3.GFullSourceFragmentVars vars; + @override + final _i5.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GFullSourceFragmentReq( + [void Function(GFullSourceFragmentReqBuilder)? updates]) => + (new GFullSourceFragmentReqBuilder()..update(updates))._build(); + + _$GFullSourceFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GFullSourceFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GFullSourceFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GFullSourceFragmentReq', 'idFields'); + } + + @override + GFullSourceFragmentReq rebuild( + void Function(GFullSourceFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GFullSourceFragmentReqBuilder toBuilder() => + new GFullSourceFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFullSourceFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GFullSourceFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GFullSourceFragmentReqBuilder + implements Builder { + _$GFullSourceFragmentReq? _$v; + + _i3.GFullSourceFragmentVarsBuilder? _vars; + _i3.GFullSourceFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GFullSourceFragmentVarsBuilder(); + set vars(_i3.GFullSourceFragmentVarsBuilder? vars) => _$this._vars = vars; + + _i5.DocumentNode? _document; + _i5.DocumentNode? get document => _$this._document; + set document(_i5.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GFullSourceFragmentReqBuilder() { + GFullSourceFragmentReq._initializeBuilder(this); + } + + GFullSourceFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GFullSourceFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFullSourceFragmentReq; + } + + @override + void update(void Function(GFullSourceFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GFullSourceFragmentReq build() => _build(); + + _$GFullSourceFragmentReq _build() { + _$GFullSourceFragmentReq _$result; + try { + _$result = _$v ?? + new _$GFullSourceFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GFullSourceFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GFullSourceFragmentReq', 'idFields')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GFullSourceFragmentReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/domain/source/graphql/__generated__/fragment.var.gql.dart b/lib/src/features/browse_center/domain/source/graphql/__generated__/fragment.var.gql.dart new file mode 100644 index 00000000..a0688240 --- /dev/null +++ b/lib/src/features/browse_center/domain/source/graphql/__generated__/fragment.var.gql.dart @@ -0,0 +1,56 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragment.var.gql.g.dart'; + +abstract class GSourceFragmentVars + implements Built { + GSourceFragmentVars._(); + + factory GSourceFragmentVars( + [void Function(GSourceFragmentVarsBuilder b) updates]) = + _$GSourceFragmentVars; + + static Serializer get serializer => + _$gSourceFragmentVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSourceFragmentVars.serializer, + this, + ) as Map); + + static GSourceFragmentVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSourceFragmentVars.serializer, + json, + ); +} + +abstract class GFullSourceFragmentVars + implements Built { + GFullSourceFragmentVars._(); + + factory GFullSourceFragmentVars( + [void Function(GFullSourceFragmentVarsBuilder b) updates]) = + _$GFullSourceFragmentVars; + + static Serializer get serializer => + _$gFullSourceFragmentVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GFullSourceFragmentVars.serializer, + this, + ) as Map); + + static GFullSourceFragmentVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GFullSourceFragmentVars.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/domain/source/graphql/__generated__/fragment.var.gql.g.dart b/lib/src/features/browse_center/domain/source/graphql/__generated__/fragment.var.gql.g.dart new file mode 100644 index 00000000..79c9f045 --- /dev/null +++ b/lib/src/features/browse_center/domain/source/graphql/__generated__/fragment.var.gql.g.dart @@ -0,0 +1,185 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gSourceFragmentVarsSerializer = + new _$GSourceFragmentVarsSerializer(); +Serializer _$gFullSourceFragmentVarsSerializer = + new _$GFullSourceFragmentVarsSerializer(); + +class _$GSourceFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSourceFragmentVars, + _$GSourceFragmentVars + ]; + @override + final String wireName = 'GSourceFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GSourceFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GSourceFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GSourceFragmentVarsBuilder().build(); + } +} + +class _$GFullSourceFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GFullSourceFragmentVars, + _$GFullSourceFragmentVars + ]; + @override + final String wireName = 'GFullSourceFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GFullSourceFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GFullSourceFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GFullSourceFragmentVarsBuilder().build(); + } +} + +class _$GSourceFragmentVars extends GSourceFragmentVars { + factory _$GSourceFragmentVars( + [void Function(GSourceFragmentVarsBuilder)? updates]) => + (new GSourceFragmentVarsBuilder()..update(updates))._build(); + + _$GSourceFragmentVars._() : super._(); + + @override + GSourceFragmentVars rebuild( + void Function(GSourceFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceFragmentVarsBuilder toBuilder() => + new GSourceFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceFragmentVars; + } + + @override + int get hashCode { + return 955668713; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GSourceFragmentVars').toString(); + } +} + +class GSourceFragmentVarsBuilder + implements Builder { + _$GSourceFragmentVars? _$v; + + GSourceFragmentVarsBuilder(); + + @override + void replace(GSourceFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceFragmentVars; + } + + @override + void update(void Function(GSourceFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourceFragmentVars build() => _build(); + + _$GSourceFragmentVars _build() { + final _$result = _$v ?? new _$GSourceFragmentVars._(); + replace(_$result); + return _$result; + } +} + +class _$GFullSourceFragmentVars extends GFullSourceFragmentVars { + factory _$GFullSourceFragmentVars( + [void Function(GFullSourceFragmentVarsBuilder)? updates]) => + (new GFullSourceFragmentVarsBuilder()..update(updates))._build(); + + _$GFullSourceFragmentVars._() : super._(); + + @override + GFullSourceFragmentVars rebuild( + void Function(GFullSourceFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GFullSourceFragmentVarsBuilder toBuilder() => + new GFullSourceFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFullSourceFragmentVars; + } + + @override + int get hashCode { + return 72011422; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GFullSourceFragmentVars').toString(); + } +} + +class GFullSourceFragmentVarsBuilder + implements + Builder { + _$GFullSourceFragmentVars? _$v; + + GFullSourceFragmentVarsBuilder(); + + @override + void replace(GFullSourceFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFullSourceFragmentVars; + } + + @override + void update(void Function(GFullSourceFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GFullSourceFragmentVars build() => _build(); + + _$GFullSourceFragmentVars _build() { + final _$result = _$v ?? new _$GFullSourceFragmentVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/domain/source/graphql/fragment.graphql b/lib/src/features/browse_center/domain/source/graphql/fragment.graphql new file mode 100644 index 00000000..4e62e991 --- /dev/null +++ b/lib/src/features/browse_center/domain/source/graphql/fragment.graphql @@ -0,0 +1,104 @@ + +fragment SourceFragment on SourceType { + displayName + iconUrl + id + isConfigurable + isNsfw + lang + name + supportsLatest + extension { + pkgName + repo + } +} + +fragment FullSourceFragment on SourceType { + ...SourceFragment + filters { + ... on CheckBoxFilter { + type: __typename + CheckBoxFilterDefault: default + name + } + ... on HeaderFilter { + type: __typename + name + } + ... on SelectFilter { + type: __typename + SelectFilterDefault: default + name + values + } + ... on TriStateFilter { + type: __typename + TriStateFilterDefault: default + name + } + ... on TextFilter { + type: __typename + TextFilterDefault: default + name + } + ... on SortFilter { + type: __typename + SortFilterDefault: default { + ascending + index + } + name + values + } + ... on SeparatorFilter { + type: __typename + name + } + ... on GroupFilter { + type: __typename + name + filters { + ... on CheckBoxFilter { + type: __typename + CheckBoxFilterDefault: default + name + } + ... on HeaderFilter { + type: __typename + name + } + ... on SelectFilter { + type: __typename + SelectFilterDefault: default + name + values + } + ... on TriStateFilter { + type: __typename + TriStateFilterDefault: default + name + } + ... on TextFilter { + type: __typename + TextFilterDefault: default + name + } + ... on SortFilter { + type: __typename + SortFilterDefault: default { + ascending + index + } + name + values + } + ... on SeparatorFilter { + type: __typename + name + } + } + } + } +} + diff --git a/lib/src/features/browse_center/domain/source/source_model.dart b/lib/src/features/browse_center/domain/source/source_model.dart index d2b6af80..237a31ac 100644 --- a/lib/src/features/browse_center/domain/source/source_model.dart +++ b/lib/src/features/browse_center/domain/source/source_model.dart @@ -4,30 +4,12 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -import 'package:freezed_annotation/freezed_annotation.dart'; - import '../../../../utils/freezed_converters/language_json_converter.dart'; import '../language/language_model.dart'; +import 'graphql/__generated__/fragment.data.gql.dart'; -part 'source_model.freezed.dart'; -part 'source_model.g.dart'; - -@freezed -class Source with _$Source { - factory Source({ - String? displayName, - String? iconUrl, - String? id, - bool? isConfigurable, - bool? isNsfw, - @JsonKey( - fromJson: LanguageJsonConverter.fromJson, - toJson: LanguageJsonConverter.toJson, - ) - Language? lang, - String? name, - bool? supportsLatest, - }) = _Source; +typedef Source = GSourceFragment; - factory Source.fromJson(Map json) => _$SourceFromJson(json); +extension SourceExtensions on GSourceFragment { + Language? get language => LanguageJsonConverter.fromJson(lang); } diff --git a/lib/src/features/browse_center/domain/source/source_model.freezed.dart b/lib/src/features/browse_center/domain/source/source_model.freezed.dart deleted file mode 100644 index 44aad839..00000000 --- a/lib/src/features/browse_center/domain/source/source_model.freezed.dart +++ /dev/null @@ -1,333 +0,0 @@ -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// 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 'source_model.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -T _$identity(T value) => value; - -final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); - -Source _$SourceFromJson(Map json) { - return _Source.fromJson(json); -} - -/// @nodoc -mixin _$Source { - String? get displayName => throw _privateConstructorUsedError; - String? get iconUrl => throw _privateConstructorUsedError; - String? get id => throw _privateConstructorUsedError; - bool? get isConfigurable => throw _privateConstructorUsedError; - bool? get isNsfw => throw _privateConstructorUsedError; - @JsonKey( - fromJson: LanguageJsonConverter.fromJson, - toJson: LanguageJsonConverter.toJson) - Language? get lang => throw _privateConstructorUsedError; - String? get name => throw _privateConstructorUsedError; - bool? get supportsLatest => throw _privateConstructorUsedError; - - Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) - $SourceCopyWith get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $SourceCopyWith<$Res> { - factory $SourceCopyWith(Source value, $Res Function(Source) then) = - _$SourceCopyWithImpl<$Res, Source>; - @useResult - $Res call( - {String? displayName, - String? iconUrl, - String? id, - bool? isConfigurable, - bool? isNsfw, - @JsonKey( - fromJson: LanguageJsonConverter.fromJson, - toJson: LanguageJsonConverter.toJson) - Language? lang, - String? name, - bool? supportsLatest}); - - $LanguageCopyWith<$Res>? get lang; -} - -/// @nodoc -class _$SourceCopyWithImpl<$Res, $Val extends Source> - implements $SourceCopyWith<$Res> { - _$SourceCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? displayName = freezed, - Object? iconUrl = freezed, - Object? id = freezed, - Object? isConfigurable = freezed, - Object? isNsfw = freezed, - Object? lang = freezed, - Object? name = freezed, - Object? supportsLatest = freezed, - }) { - return _then(_value.copyWith( - displayName: freezed == displayName - ? _value.displayName - : displayName // ignore: cast_nullable_to_non_nullable - as String?, - iconUrl: freezed == iconUrl - ? _value.iconUrl - : iconUrl // ignore: cast_nullable_to_non_nullable - as String?, - id: freezed == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as String?, - isConfigurable: freezed == isConfigurable - ? _value.isConfigurable - : isConfigurable // ignore: cast_nullable_to_non_nullable - as bool?, - isNsfw: freezed == isNsfw - ? _value.isNsfw - : isNsfw // ignore: cast_nullable_to_non_nullable - as bool?, - lang: freezed == lang - ? _value.lang - : lang // ignore: cast_nullable_to_non_nullable - as Language?, - name: freezed == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String?, - supportsLatest: freezed == supportsLatest - ? _value.supportsLatest - : supportsLatest // ignore: cast_nullable_to_non_nullable - as bool?, - ) as $Val); - } - - @override - @pragma('vm:prefer-inline') - $LanguageCopyWith<$Res>? get lang { - if (_value.lang == null) { - return null; - } - - return $LanguageCopyWith<$Res>(_value.lang!, (value) { - return _then(_value.copyWith(lang: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$SourceImplCopyWith<$Res> implements $SourceCopyWith<$Res> { - factory _$$SourceImplCopyWith( - _$SourceImpl value, $Res Function(_$SourceImpl) then) = - __$$SourceImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {String? displayName, - String? iconUrl, - String? id, - bool? isConfigurable, - bool? isNsfw, - @JsonKey( - fromJson: LanguageJsonConverter.fromJson, - toJson: LanguageJsonConverter.toJson) - Language? lang, - String? name, - bool? supportsLatest}); - - @override - $LanguageCopyWith<$Res>? get lang; -} - -/// @nodoc -class __$$SourceImplCopyWithImpl<$Res> - extends _$SourceCopyWithImpl<$Res, _$SourceImpl> - implements _$$SourceImplCopyWith<$Res> { - __$$SourceImplCopyWithImpl( - _$SourceImpl _value, $Res Function(_$SourceImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? displayName = freezed, - Object? iconUrl = freezed, - Object? id = freezed, - Object? isConfigurable = freezed, - Object? isNsfw = freezed, - Object? lang = freezed, - Object? name = freezed, - Object? supportsLatest = freezed, - }) { - return _then(_$SourceImpl( - displayName: freezed == displayName - ? _value.displayName - : displayName // ignore: cast_nullable_to_non_nullable - as String?, - iconUrl: freezed == iconUrl - ? _value.iconUrl - : iconUrl // ignore: cast_nullable_to_non_nullable - as String?, - id: freezed == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as String?, - isConfigurable: freezed == isConfigurable - ? _value.isConfigurable - : isConfigurable // ignore: cast_nullable_to_non_nullable - as bool?, - isNsfw: freezed == isNsfw - ? _value.isNsfw - : isNsfw // ignore: cast_nullable_to_non_nullable - as bool?, - lang: freezed == lang - ? _value.lang - : lang // ignore: cast_nullable_to_non_nullable - as Language?, - name: freezed == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String?, - supportsLatest: freezed == supportsLatest - ? _value.supportsLatest - : supportsLatest // ignore: cast_nullable_to_non_nullable - as bool?, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$SourceImpl implements _Source { - _$SourceImpl( - {this.displayName, - this.iconUrl, - this.id, - this.isConfigurable, - this.isNsfw, - @JsonKey( - fromJson: LanguageJsonConverter.fromJson, - toJson: LanguageJsonConverter.toJson) - this.lang, - this.name, - this.supportsLatest}); - - factory _$SourceImpl.fromJson(Map json) => - _$$SourceImplFromJson(json); - - @override - final String? displayName; - @override - final String? iconUrl; - @override - final String? id; - @override - final bool? isConfigurable; - @override - final bool? isNsfw; - @override - @JsonKey( - fromJson: LanguageJsonConverter.fromJson, - toJson: LanguageJsonConverter.toJson) - final Language? lang; - @override - final String? name; - @override - final bool? supportsLatest; - - @override - String toString() { - return 'Source(displayName: $displayName, iconUrl: $iconUrl, id: $id, isConfigurable: $isConfigurable, isNsfw: $isNsfw, lang: $lang, name: $name, supportsLatest: $supportsLatest)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$SourceImpl && - (identical(other.displayName, displayName) || - other.displayName == displayName) && - (identical(other.iconUrl, iconUrl) || other.iconUrl == iconUrl) && - (identical(other.id, id) || other.id == id) && - (identical(other.isConfigurable, isConfigurable) || - other.isConfigurable == isConfigurable) && - (identical(other.isNsfw, isNsfw) || other.isNsfw == isNsfw) && - (identical(other.lang, lang) || other.lang == lang) && - (identical(other.name, name) || other.name == name) && - (identical(other.supportsLatest, supportsLatest) || - other.supportsLatest == supportsLatest)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => Object.hash(runtimeType, displayName, iconUrl, id, - isConfigurable, isNsfw, lang, name, supportsLatest); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$SourceImplCopyWith<_$SourceImpl> get copyWith => - __$$SourceImplCopyWithImpl<_$SourceImpl>(this, _$identity); - - @override - Map toJson() { - return _$$SourceImplToJson( - this, - ); - } -} - -abstract class _Source implements Source { - factory _Source( - {final String? displayName, - final String? iconUrl, - final String? id, - final bool? isConfigurable, - final bool? isNsfw, - @JsonKey( - fromJson: LanguageJsonConverter.fromJson, - toJson: LanguageJsonConverter.toJson) - final Language? lang, - final String? name, - final bool? supportsLatest}) = _$SourceImpl; - - factory _Source.fromJson(Map json) = _$SourceImpl.fromJson; - - @override - String? get displayName; - @override - String? get iconUrl; - @override - String? get id; - @override - bool? get isConfigurable; - @override - bool? get isNsfw; - @override - @JsonKey( - fromJson: LanguageJsonConverter.fromJson, - toJson: LanguageJsonConverter.toJson) - Language? get lang; - @override - String? get name; - @override - bool? get supportsLatest; - @override - @JsonKey(ignore: true) - _$$SourceImplCopyWith<_$SourceImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/features/browse_center/domain/source/source_model.g.dart b/lib/src/features/browse_center/domain/source/source_model.g.dart deleted file mode 100644 index fe5d0f73..00000000 --- a/lib/src/features/browse_center/domain/source/source_model.g.dart +++ /dev/null @@ -1,30 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'source_model.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$SourceImpl _$$SourceImplFromJson(Map json) => _$SourceImpl( - displayName: json['displayName'] as String?, - iconUrl: json['iconUrl'] as String?, - id: json['id'] as String?, - isConfigurable: json['isConfigurable'] as bool?, - isNsfw: json['isNsfw'] as bool?, - lang: LanguageJsonConverter.fromJson(json['lang'] as String?), - name: json['name'] as String?, - supportsLatest: json['supportsLatest'] as bool?, - ); - -Map _$$SourceImplToJson(_$SourceImpl instance) => - { - 'displayName': instance.displayName, - 'iconUrl': instance.iconUrl, - 'id': instance.id, - 'isConfigurable': instance.isConfigurable, - 'isNsfw': instance.isNsfw, - 'lang': LanguageJsonConverter.toJson(instance.lang), - 'name': instance.name, - 'supportsLatest': instance.supportsLatest, - }; diff --git a/lib/src/features/browse_center/domain/source_preference/graphql/__generated__/fragment.ast.gql.dart b/lib/src/features/browse_center/domain/source_preference/graphql/__generated__/fragment.ast.gql.dart new file mode 100644 index 00000000..6db83d8d --- /dev/null +++ b/lib/src/features/browse_center/domain/source_preference/graphql/__generated__/fragment.ast.gql.dart @@ -0,0 +1,341 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const SourcePreferenceFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'SourcePreferenceFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Preference'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.InlineFragmentNode( + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CheckBoxPreference'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: '__typename'), + alias: _i1.NameNode(value: 'type'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'currentValue'), + alias: _i1.NameNode(value: 'CheckBoxCheckBoxCurrentValue'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'summary'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'default'), + alias: _i1.NameNode(value: 'CheckBoxDefault'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'key'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'title'), + alias: _i1.NameNode(value: 'CheckBoxTitle'), + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + _i1.InlineFragmentNode( + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'EditTextPreference'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: '__typename'), + alias: _i1.NameNode(value: 'type'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'currentValue'), + alias: _i1.NameNode(value: 'EditTextPreferenceCurrentValue'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'default'), + alias: _i1.NameNode(value: 'EditTextPreferenceDefault'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'title'), + alias: _i1.NameNode(value: 'EditTextPreferenceTitle'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'text'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'summary'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'key'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'dialogTitle'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'dialogMessage'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + _i1.InlineFragmentNode( + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SwitchPreference'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: '__typename'), + alias: _i1.NameNode(value: 'type'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'currentValue'), + alias: _i1.NameNode(value: 'SwitchPreferenceCurrentValue'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'summary'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'key'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'default'), + alias: _i1.NameNode(value: 'SwitchPreferenceDefault'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'title'), + alias: _i1.NameNode(value: 'SwitchPreferenceTitle'), + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + _i1.InlineFragmentNode( + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MultiSelectListPreference'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: '__typename'), + alias: _i1.NameNode(value: 'type'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'dialogMessage'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'dialogTitle'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'title'), + alias: _i1.NameNode(value: 'MultiSelectListPreferenceTitle'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'summary'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'key'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'entryValues'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'entries'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'default'), + alias: _i1.NameNode(value: 'MultiSelectListPreferenceDefault'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'currentValue'), + alias: _i1.NameNode(value: 'MultiSelectListPreferenceCurrentValue'), + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + _i1.InlineFragmentNode( + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ListPreference'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: '__typename'), + alias: _i1.NameNode(value: 'type'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'currentValue'), + alias: _i1.NameNode(value: 'ListPreferenceCurrentValue'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'default'), + alias: _i1.NameNode(value: 'ListPreferenceDefault'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'title'), + alias: _i1.NameNode(value: 'ListPreferenceTitle'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'summary'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'key'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'entryValues'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'entries'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + ]), +); +const document = _i1.DocumentNode(definitions: [SourcePreferenceFragment]); diff --git a/lib/src/features/browse_center/domain/source_preference/graphql/__generated__/fragment.data.gql.dart b/lib/src/features/browse_center/domain/source_preference/graphql/__generated__/fragment.data.gql.dart new file mode 100644 index 00000000..00692fef --- /dev/null +++ b/lib/src/features/browse_center/domain/source_preference/graphql/__generated__/fragment.data.gql.dart @@ -0,0 +1,396 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:gql_code_builder/src/serializers/inline_fragment_serializer.dart' + as _i1; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i2; + +part 'fragment.data.gql.g.dart'; + +abstract class GSourcePreferenceFragment { + String get G__typename; +} + +abstract class GSourcePreferenceFragment__base + implements GSourcePreferenceFragment { + @override + String get G__typename; + @override + Map toJson(); +} + +abstract class GSourcePreferenceFragment__asCheckBoxPreference + implements GSourcePreferenceFragment { + @override + String get G__typename; + String get type; + bool? get CheckBoxCheckBoxCurrentValue; + String? get summary; + bool get CheckBoxDefault; + String get key; + String get CheckBoxTitle; + @override + Map toJson(); +} + +abstract class GSourcePreferenceFragment__asEditTextPreference + implements GSourcePreferenceFragment { + @override + String get G__typename; + String get type; + String? get EditTextPreferenceCurrentValue; + String? get EditTextPreferenceDefault; + String? get EditTextPreferenceTitle; + String? get text; + String? get summary; + String get key; + String? get dialogTitle; + String? get dialogMessage; + @override + Map toJson(); +} + +abstract class GSourcePreferenceFragment__asSwitchPreference + implements GSourcePreferenceFragment { + @override + String get G__typename; + String get type; + bool? get SwitchPreferenceCurrentValue; + String? get summary; + String get key; + bool get SwitchPreferenceDefault; + String get SwitchPreferenceTitle; + @override + Map toJson(); +} + +abstract class GSourcePreferenceFragment__asMultiSelectListPreference + implements GSourcePreferenceFragment { + @override + String get G__typename; + String get type; + String? get dialogMessage; + String? get dialogTitle; + String? get MultiSelectListPreferenceTitle; + String? get summary; + String get key; + BuiltList get entryValues; + BuiltList get entries; + BuiltList? get MultiSelectListPreferenceDefault; + BuiltList? get MultiSelectListPreferenceCurrentValue; + @override + Map toJson(); +} + +abstract class GSourcePreferenceFragment__asListPreference + implements GSourcePreferenceFragment { + @override + String get G__typename; + String get type; + String? get ListPreferenceCurrentValue; + String? get ListPreferenceDefault; + String? get ListPreferenceTitle; + String? get summary; + String get key; + BuiltList get entryValues; + BuiltList get entries; + @override + Map toJson(); +} + +abstract class GSourcePreferenceFragmentData + implements GSourcePreferenceFragment { + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + static Serializer get serializer => + _i1.InlineFragmentSerializer( + 'GSourcePreferenceFragmentData', + GSourcePreferenceFragmentData__base, + { + 'CheckBoxPreference': + GSourcePreferenceFragmentData__asCheckBoxPreference, + 'EditTextPreference': + GSourcePreferenceFragmentData__asEditTextPreference, + 'SwitchPreference': GSourcePreferenceFragmentData__asSwitchPreference, + 'MultiSelectListPreference': + GSourcePreferenceFragmentData__asMultiSelectListPreference, + 'ListPreference': GSourcePreferenceFragmentData__asListPreference, + }, + ); + + Map toJson() => (_i2.serializers.serializeWith( + GSourcePreferenceFragmentData.serializer, + this, + ) as Map); + + static GSourcePreferenceFragmentData? fromJson(Map json) => + _i2.serializers.deserializeWith( + GSourcePreferenceFragmentData.serializer, + json, + ); +} + +abstract class GSourcePreferenceFragmentData__base + implements + Built, + GSourcePreferenceFragmentData { + GSourcePreferenceFragmentData__base._(); + + factory GSourcePreferenceFragmentData__base( + [void Function(GSourcePreferenceFragmentData__baseBuilder b) + updates]) = _$GSourcePreferenceFragmentData__base; + + static void _initializeBuilder( + GSourcePreferenceFragmentData__baseBuilder b) => + b..G__typename = 'Preference'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + static Serializer get serializer => + _$gSourcePreferenceFragmentDataBaseSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GSourcePreferenceFragmentData__base.serializer, + this, + ) as Map); + + static GSourcePreferenceFragmentData__base? fromJson( + Map json) => + _i2.serializers.deserializeWith( + GSourcePreferenceFragmentData__base.serializer, + json, + ); +} + +abstract class GSourcePreferenceFragmentData__asCheckBoxPreference + implements + Built, + GSourcePreferenceFragmentData { + GSourcePreferenceFragmentData__asCheckBoxPreference._(); + + factory GSourcePreferenceFragmentData__asCheckBoxPreference( + [void Function( + GSourcePreferenceFragmentData__asCheckBoxPreferenceBuilder b) + updates]) = _$GSourcePreferenceFragmentData__asCheckBoxPreference; + + static void _initializeBuilder( + GSourcePreferenceFragmentData__asCheckBoxPreferenceBuilder b) => + b..G__typename = 'CheckBoxPreference'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + String get type; + bool? get CheckBoxCheckBoxCurrentValue; + String? get summary; + bool get CheckBoxDefault; + String get key; + String get CheckBoxTitle; + static Serializer + get serializer => + _$gSourcePreferenceFragmentDataAsCheckBoxPreferenceSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GSourcePreferenceFragmentData__asCheckBoxPreference.serializer, + this, + ) as Map); + + static GSourcePreferenceFragmentData__asCheckBoxPreference? fromJson( + Map json) => + _i2.serializers.deserializeWith( + GSourcePreferenceFragmentData__asCheckBoxPreference.serializer, + json, + ); +} + +abstract class GSourcePreferenceFragmentData__asEditTextPreference + implements + Built, + GSourcePreferenceFragmentData { + GSourcePreferenceFragmentData__asEditTextPreference._(); + + factory GSourcePreferenceFragmentData__asEditTextPreference( + [void Function( + GSourcePreferenceFragmentData__asEditTextPreferenceBuilder b) + updates]) = _$GSourcePreferenceFragmentData__asEditTextPreference; + + static void _initializeBuilder( + GSourcePreferenceFragmentData__asEditTextPreferenceBuilder b) => + b..G__typename = 'EditTextPreference'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + String get type; + String? get EditTextPreferenceCurrentValue; + String? get EditTextPreferenceDefault; + String? get EditTextPreferenceTitle; + String? get text; + String? get summary; + String get key; + String? get dialogTitle; + String? get dialogMessage; + static Serializer + get serializer => + _$gSourcePreferenceFragmentDataAsEditTextPreferenceSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GSourcePreferenceFragmentData__asEditTextPreference.serializer, + this, + ) as Map); + + static GSourcePreferenceFragmentData__asEditTextPreference? fromJson( + Map json) => + _i2.serializers.deserializeWith( + GSourcePreferenceFragmentData__asEditTextPreference.serializer, + json, + ); +} + +abstract class GSourcePreferenceFragmentData__asSwitchPreference + implements + Built, + GSourcePreferenceFragmentData { + GSourcePreferenceFragmentData__asSwitchPreference._(); + + factory GSourcePreferenceFragmentData__asSwitchPreference( + [void Function(GSourcePreferenceFragmentData__asSwitchPreferenceBuilder b) + updates]) = _$GSourcePreferenceFragmentData__asSwitchPreference; + + static void _initializeBuilder( + GSourcePreferenceFragmentData__asSwitchPreferenceBuilder b) => + b..G__typename = 'SwitchPreference'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + String get type; + bool? get SwitchPreferenceCurrentValue; + String? get summary; + String get key; + bool get SwitchPreferenceDefault; + String get SwitchPreferenceTitle; + static Serializer + get serializer => + _$gSourcePreferenceFragmentDataAsSwitchPreferenceSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GSourcePreferenceFragmentData__asSwitchPreference.serializer, + this, + ) as Map); + + static GSourcePreferenceFragmentData__asSwitchPreference? fromJson( + Map json) => + _i2.serializers.deserializeWith( + GSourcePreferenceFragmentData__asSwitchPreference.serializer, + json, + ); +} + +abstract class GSourcePreferenceFragmentData__asMultiSelectListPreference + implements + Built, + GSourcePreferenceFragmentData { + GSourcePreferenceFragmentData__asMultiSelectListPreference._(); + + factory GSourcePreferenceFragmentData__asMultiSelectListPreference( + [void Function( + GSourcePreferenceFragmentData__asMultiSelectListPreferenceBuilder + b) + updates]) = _$GSourcePreferenceFragmentData__asMultiSelectListPreference; + + static void _initializeBuilder( + GSourcePreferenceFragmentData__asMultiSelectListPreferenceBuilder + b) => + b..G__typename = 'MultiSelectListPreference'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + String get type; + String? get dialogMessage; + String? get dialogTitle; + String? get MultiSelectListPreferenceTitle; + String? get summary; + String get key; + BuiltList get entryValues; + BuiltList get entries; + BuiltList? get MultiSelectListPreferenceDefault; + BuiltList? get MultiSelectListPreferenceCurrentValue; + static Serializer + get serializer => + _$gSourcePreferenceFragmentDataAsMultiSelectListPreferenceSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GSourcePreferenceFragmentData__asMultiSelectListPreference.serializer, + this, + ) as Map); + + static GSourcePreferenceFragmentData__asMultiSelectListPreference? fromJson( + Map json) => + _i2.serializers.deserializeWith( + GSourcePreferenceFragmentData__asMultiSelectListPreference.serializer, + json, + ); +} + +abstract class GSourcePreferenceFragmentData__asListPreference + implements + Built, + GSourcePreferenceFragmentData { + GSourcePreferenceFragmentData__asListPreference._(); + + factory GSourcePreferenceFragmentData__asListPreference( + [void Function(GSourcePreferenceFragmentData__asListPreferenceBuilder b) + updates]) = _$GSourcePreferenceFragmentData__asListPreference; + + static void _initializeBuilder( + GSourcePreferenceFragmentData__asListPreferenceBuilder b) => + b..G__typename = 'ListPreference'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + String get type; + String? get ListPreferenceCurrentValue; + String? get ListPreferenceDefault; + String? get ListPreferenceTitle; + String? get summary; + String get key; + BuiltList get entryValues; + BuiltList get entries; + static Serializer + get serializer => + _$gSourcePreferenceFragmentDataAsListPreferenceSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GSourcePreferenceFragmentData__asListPreference.serializer, + this, + ) as Map); + + static GSourcePreferenceFragmentData__asListPreference? fromJson( + Map json) => + _i2.serializers.deserializeWith( + GSourcePreferenceFragmentData__asListPreference.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/domain/source_preference/graphql/__generated__/fragment.data.gql.g.dart b/lib/src/features/browse_center/domain/source_preference/graphql/__generated__/fragment.data.gql.g.dart new file mode 100644 index 00000000..c7e1243d --- /dev/null +++ b/lib/src/features/browse_center/domain/source_preference/graphql/__generated__/fragment.data.gql.g.dart @@ -0,0 +1,1952 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gSourcePreferenceFragmentDataBaseSerializer = + new _$GSourcePreferenceFragmentData__baseSerializer(); +Serializer + _$gSourcePreferenceFragmentDataAsCheckBoxPreferenceSerializer = + new _$GSourcePreferenceFragmentData__asCheckBoxPreferenceSerializer(); +Serializer + _$gSourcePreferenceFragmentDataAsEditTextPreferenceSerializer = + new _$GSourcePreferenceFragmentData__asEditTextPreferenceSerializer(); +Serializer + _$gSourcePreferenceFragmentDataAsSwitchPreferenceSerializer = + new _$GSourcePreferenceFragmentData__asSwitchPreferenceSerializer(); +Serializer + _$gSourcePreferenceFragmentDataAsMultiSelectListPreferenceSerializer = + new _$GSourcePreferenceFragmentData__asMultiSelectListPreferenceSerializer(); +Serializer + _$gSourcePreferenceFragmentDataAsListPreferenceSerializer = + new _$GSourcePreferenceFragmentData__asListPreferenceSerializer(); + +class _$GSourcePreferenceFragmentData__baseSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSourcePreferenceFragmentData__base, + _$GSourcePreferenceFragmentData__base + ]; + @override + final String wireName = 'GSourcePreferenceFragmentData__base'; + + @override + Iterable serialize( + Serializers serializers, GSourcePreferenceFragmentData__base object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GSourcePreferenceFragmentData__base deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourcePreferenceFragmentData__baseBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GSourcePreferenceFragmentData__asCheckBoxPreferenceSerializer + implements + StructuredSerializer< + GSourcePreferenceFragmentData__asCheckBoxPreference> { + @override + final Iterable types = const [ + GSourcePreferenceFragmentData__asCheckBoxPreference, + _$GSourcePreferenceFragmentData__asCheckBoxPreference + ]; + @override + final String wireName = 'GSourcePreferenceFragmentData__asCheckBoxPreference'; + + @override + Iterable serialize(Serializers serializers, + GSourcePreferenceFragmentData__asCheckBoxPreference object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'type', + serializers.serialize(object.type, specifiedType: const FullType(String)), + 'CheckBoxDefault', + serializers.serialize(object.CheckBoxDefault, + specifiedType: const FullType(bool)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'CheckBoxTitle', + serializers.serialize(object.CheckBoxTitle, + specifiedType: const FullType(String)), + ]; + Object? value; + value = object.CheckBoxCheckBoxCurrentValue; + if (value != null) { + result + ..add('CheckBoxCheckBoxCurrentValue') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.summary; + if (value != null) { + result + ..add('summary') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSourcePreferenceFragmentData__asCheckBoxPreference deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GSourcePreferenceFragmentData__asCheckBoxPreferenceBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'type': + result.type = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'CheckBoxCheckBoxCurrentValue': + result.CheckBoxCheckBoxCurrentValue = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'summary': + result.summary = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'CheckBoxDefault': + result.CheckBoxDefault = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'CheckBoxTitle': + result.CheckBoxTitle = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GSourcePreferenceFragmentData__asEditTextPreferenceSerializer + implements + StructuredSerializer< + GSourcePreferenceFragmentData__asEditTextPreference> { + @override + final Iterable types = const [ + GSourcePreferenceFragmentData__asEditTextPreference, + _$GSourcePreferenceFragmentData__asEditTextPreference + ]; + @override + final String wireName = 'GSourcePreferenceFragmentData__asEditTextPreference'; + + @override + Iterable serialize(Serializers serializers, + GSourcePreferenceFragmentData__asEditTextPreference object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'type', + serializers.serialize(object.type, specifiedType: const FullType(String)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + ]; + Object? value; + value = object.EditTextPreferenceCurrentValue; + if (value != null) { + result + ..add('EditTextPreferenceCurrentValue') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.EditTextPreferenceDefault; + if (value != null) { + result + ..add('EditTextPreferenceDefault') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.EditTextPreferenceTitle; + if (value != null) { + result + ..add('EditTextPreferenceTitle') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.text; + if (value != null) { + result + ..add('text') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.summary; + if (value != null) { + result + ..add('summary') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.dialogTitle; + if (value != null) { + result + ..add('dialogTitle') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.dialogMessage; + if (value != null) { + result + ..add('dialogMessage') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSourcePreferenceFragmentData__asEditTextPreference deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GSourcePreferenceFragmentData__asEditTextPreferenceBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'type': + result.type = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'EditTextPreferenceCurrentValue': + result.EditTextPreferenceCurrentValue = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'EditTextPreferenceDefault': + result.EditTextPreferenceDefault = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'EditTextPreferenceTitle': + result.EditTextPreferenceTitle = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'text': + result.text = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'summary': + result.summary = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'dialogTitle': + result.dialogTitle = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'dialogMessage': + result.dialogMessage = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GSourcePreferenceFragmentData__asSwitchPreferenceSerializer + implements + StructuredSerializer< + GSourcePreferenceFragmentData__asSwitchPreference> { + @override + final Iterable types = const [ + GSourcePreferenceFragmentData__asSwitchPreference, + _$GSourcePreferenceFragmentData__asSwitchPreference + ]; + @override + final String wireName = 'GSourcePreferenceFragmentData__asSwitchPreference'; + + @override + Iterable serialize(Serializers serializers, + GSourcePreferenceFragmentData__asSwitchPreference object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'type', + serializers.serialize(object.type, specifiedType: const FullType(String)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'SwitchPreferenceDefault', + serializers.serialize(object.SwitchPreferenceDefault, + specifiedType: const FullType(bool)), + 'SwitchPreferenceTitle', + serializers.serialize(object.SwitchPreferenceTitle, + specifiedType: const FullType(String)), + ]; + Object? value; + value = object.SwitchPreferenceCurrentValue; + if (value != null) { + result + ..add('SwitchPreferenceCurrentValue') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.summary; + if (value != null) { + result + ..add('summary') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSourcePreferenceFragmentData__asSwitchPreference deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GSourcePreferenceFragmentData__asSwitchPreferenceBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'type': + result.type = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'SwitchPreferenceCurrentValue': + result.SwitchPreferenceCurrentValue = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'summary': + result.summary = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'SwitchPreferenceDefault': + result.SwitchPreferenceDefault = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'SwitchPreferenceTitle': + result.SwitchPreferenceTitle = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GSourcePreferenceFragmentData__asMultiSelectListPreferenceSerializer + implements + StructuredSerializer< + GSourcePreferenceFragmentData__asMultiSelectListPreference> { + @override + final Iterable types = const [ + GSourcePreferenceFragmentData__asMultiSelectListPreference, + _$GSourcePreferenceFragmentData__asMultiSelectListPreference + ]; + @override + final String wireName = + 'GSourcePreferenceFragmentData__asMultiSelectListPreference'; + + @override + Iterable serialize(Serializers serializers, + GSourcePreferenceFragmentData__asMultiSelectListPreference object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'type', + serializers.serialize(object.type, specifiedType: const FullType(String)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'entryValues', + serializers.serialize(object.entryValues, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'entries', + serializers.serialize(object.entries, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + ]; + Object? value; + value = object.dialogMessage; + if (value != null) { + result + ..add('dialogMessage') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.dialogTitle; + if (value != null) { + result + ..add('dialogTitle') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.MultiSelectListPreferenceTitle; + if (value != null) { + result + ..add('MultiSelectListPreferenceTitle') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.summary; + if (value != null) { + result + ..add('summary') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.MultiSelectListPreferenceDefault; + if (value != null) { + result + ..add('MultiSelectListPreferenceDefault') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.MultiSelectListPreferenceCurrentValue; + if (value != null) { + result + ..add('MultiSelectListPreferenceCurrentValue') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + return result; + } + + @override + GSourcePreferenceFragmentData__asMultiSelectListPreference deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GSourcePreferenceFragmentData__asMultiSelectListPreferenceBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'type': + result.type = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'dialogMessage': + result.dialogMessage = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'dialogTitle': + result.dialogTitle = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'MultiSelectListPreferenceTitle': + result.MultiSelectListPreferenceTitle = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'summary': + result.summary = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'entryValues': + result.entryValues.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'entries': + result.entries.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'MultiSelectListPreferenceDefault': + result.MultiSelectListPreferenceDefault.replace( + serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'MultiSelectListPreferenceCurrentValue': + result.MultiSelectListPreferenceCurrentValue.replace( + serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GSourcePreferenceFragmentData__asListPreferenceSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GSourcePreferenceFragmentData__asListPreference, + _$GSourcePreferenceFragmentData__asListPreference + ]; + @override + final String wireName = 'GSourcePreferenceFragmentData__asListPreference'; + + @override + Iterable serialize(Serializers serializers, + GSourcePreferenceFragmentData__asListPreference object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'type', + serializers.serialize(object.type, specifiedType: const FullType(String)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'entryValues', + serializers.serialize(object.entryValues, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'entries', + serializers.serialize(object.entries, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + ]; + Object? value; + value = object.ListPreferenceCurrentValue; + if (value != null) { + result + ..add('ListPreferenceCurrentValue') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.ListPreferenceDefault; + if (value != null) { + result + ..add('ListPreferenceDefault') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.ListPreferenceTitle; + if (value != null) { + result + ..add('ListPreferenceTitle') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.summary; + if (value != null) { + result + ..add('summary') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSourcePreferenceFragmentData__asListPreference deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourcePreferenceFragmentData__asListPreferenceBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'type': + result.type = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ListPreferenceCurrentValue': + result.ListPreferenceCurrentValue = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'ListPreferenceDefault': + result.ListPreferenceDefault = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'ListPreferenceTitle': + result.ListPreferenceTitle = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'summary': + result.summary = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'entryValues': + result.entryValues.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'entries': + result.entries.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GSourcePreferenceFragmentData__base + extends GSourcePreferenceFragmentData__base { + @override + final String G__typename; + + factory _$GSourcePreferenceFragmentData__base( + [void Function(GSourcePreferenceFragmentData__baseBuilder)? + updates]) => + (new GSourcePreferenceFragmentData__baseBuilder()..update(updates)) + ._build(); + + _$GSourcePreferenceFragmentData__base._({required this.G__typename}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSourcePreferenceFragmentData__base', 'G__typename'); + } + + @override + GSourcePreferenceFragmentData__base rebuild( + void Function(GSourcePreferenceFragmentData__baseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourcePreferenceFragmentData__baseBuilder toBuilder() => + new GSourcePreferenceFragmentData__baseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourcePreferenceFragmentData__base && + G__typename == other.G__typename; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourcePreferenceFragmentData__base') + ..add('G__typename', G__typename)) + .toString(); + } +} + +class GSourcePreferenceFragmentData__baseBuilder + implements + Builder { + _$GSourcePreferenceFragmentData__base? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GSourcePreferenceFragmentData__baseBuilder() { + GSourcePreferenceFragmentData__base._initializeBuilder(this); + } + + GSourcePreferenceFragmentData__baseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _$v = null; + } + return this; + } + + @override + void replace(GSourcePreferenceFragmentData__base other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourcePreferenceFragmentData__base; + } + + @override + void update( + void Function(GSourcePreferenceFragmentData__baseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourcePreferenceFragmentData__base build() => _build(); + + _$GSourcePreferenceFragmentData__base _build() { + final _$result = _$v ?? + new _$GSourcePreferenceFragmentData__base._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GSourcePreferenceFragmentData__base', 'G__typename')); + replace(_$result); + return _$result; + } +} + +class _$GSourcePreferenceFragmentData__asCheckBoxPreference + extends GSourcePreferenceFragmentData__asCheckBoxPreference { + @override + final String G__typename; + @override + final String type; + @override + final bool? CheckBoxCheckBoxCurrentValue; + @override + final String? summary; + @override + final bool CheckBoxDefault; + @override + final String key; + @override + final String CheckBoxTitle; + + factory _$GSourcePreferenceFragmentData__asCheckBoxPreference( + [void Function( + GSourcePreferenceFragmentData__asCheckBoxPreferenceBuilder)? + updates]) => + (new GSourcePreferenceFragmentData__asCheckBoxPreferenceBuilder() + ..update(updates)) + ._build(); + + _$GSourcePreferenceFragmentData__asCheckBoxPreference._( + {required this.G__typename, + required this.type, + this.CheckBoxCheckBoxCurrentValue, + this.summary, + required this.CheckBoxDefault, + required this.key, + required this.CheckBoxTitle}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GSourcePreferenceFragmentData__asCheckBoxPreference', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + type, r'GSourcePreferenceFragmentData__asCheckBoxPreference', 'type'); + BuiltValueNullFieldError.checkNotNull( + CheckBoxDefault, + r'GSourcePreferenceFragmentData__asCheckBoxPreference', + 'CheckBoxDefault'); + BuiltValueNullFieldError.checkNotNull( + key, r'GSourcePreferenceFragmentData__asCheckBoxPreference', 'key'); + BuiltValueNullFieldError.checkNotNull( + CheckBoxTitle, + r'GSourcePreferenceFragmentData__asCheckBoxPreference', + 'CheckBoxTitle'); + } + + @override + GSourcePreferenceFragmentData__asCheckBoxPreference rebuild( + void Function( + GSourcePreferenceFragmentData__asCheckBoxPreferenceBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourcePreferenceFragmentData__asCheckBoxPreferenceBuilder toBuilder() => + new GSourcePreferenceFragmentData__asCheckBoxPreferenceBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourcePreferenceFragmentData__asCheckBoxPreference && + G__typename == other.G__typename && + type == other.type && + CheckBoxCheckBoxCurrentValue == other.CheckBoxCheckBoxCurrentValue && + summary == other.summary && + CheckBoxDefault == other.CheckBoxDefault && + key == other.key && + CheckBoxTitle == other.CheckBoxTitle; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, CheckBoxCheckBoxCurrentValue.hashCode); + _$hash = $jc(_$hash, summary.hashCode); + _$hash = $jc(_$hash, CheckBoxDefault.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, CheckBoxTitle.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GSourcePreferenceFragmentData__asCheckBoxPreference') + ..add('G__typename', G__typename) + ..add('type', type) + ..add('CheckBoxCheckBoxCurrentValue', CheckBoxCheckBoxCurrentValue) + ..add('summary', summary) + ..add('CheckBoxDefault', CheckBoxDefault) + ..add('key', key) + ..add('CheckBoxTitle', CheckBoxTitle)) + .toString(); + } +} + +class GSourcePreferenceFragmentData__asCheckBoxPreferenceBuilder + implements + Builder { + _$GSourcePreferenceFragmentData__asCheckBoxPreference? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _type; + String? get type => _$this._type; + set type(String? type) => _$this._type = type; + + bool? _CheckBoxCheckBoxCurrentValue; + bool? get CheckBoxCheckBoxCurrentValue => + _$this._CheckBoxCheckBoxCurrentValue; + set CheckBoxCheckBoxCurrentValue(bool? CheckBoxCheckBoxCurrentValue) => + _$this._CheckBoxCheckBoxCurrentValue = CheckBoxCheckBoxCurrentValue; + + String? _summary; + String? get summary => _$this._summary; + set summary(String? summary) => _$this._summary = summary; + + bool? _CheckBoxDefault; + bool? get CheckBoxDefault => _$this._CheckBoxDefault; + set CheckBoxDefault(bool? CheckBoxDefault) => + _$this._CheckBoxDefault = CheckBoxDefault; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _CheckBoxTitle; + String? get CheckBoxTitle => _$this._CheckBoxTitle; + set CheckBoxTitle(String? CheckBoxTitle) => + _$this._CheckBoxTitle = CheckBoxTitle; + + GSourcePreferenceFragmentData__asCheckBoxPreferenceBuilder() { + GSourcePreferenceFragmentData__asCheckBoxPreference._initializeBuilder( + this); + } + + GSourcePreferenceFragmentData__asCheckBoxPreferenceBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _type = $v.type; + _CheckBoxCheckBoxCurrentValue = $v.CheckBoxCheckBoxCurrentValue; + _summary = $v.summary; + _CheckBoxDefault = $v.CheckBoxDefault; + _key = $v.key; + _CheckBoxTitle = $v.CheckBoxTitle; + _$v = null; + } + return this; + } + + @override + void replace(GSourcePreferenceFragmentData__asCheckBoxPreference other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourcePreferenceFragmentData__asCheckBoxPreference; + } + + @override + void update( + void Function(GSourcePreferenceFragmentData__asCheckBoxPreferenceBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GSourcePreferenceFragmentData__asCheckBoxPreference build() => _build(); + + _$GSourcePreferenceFragmentData__asCheckBoxPreference _build() { + final _$result = _$v ?? + new _$GSourcePreferenceFragmentData__asCheckBoxPreference._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GSourcePreferenceFragmentData__asCheckBoxPreference', + 'G__typename'), + type: BuiltValueNullFieldError.checkNotNull(type, + r'GSourcePreferenceFragmentData__asCheckBoxPreference', 'type'), + CheckBoxCheckBoxCurrentValue: CheckBoxCheckBoxCurrentValue, + summary: summary, + CheckBoxDefault: BuiltValueNullFieldError.checkNotNull( + CheckBoxDefault, + r'GSourcePreferenceFragmentData__asCheckBoxPreference', + 'CheckBoxDefault'), + key: BuiltValueNullFieldError.checkNotNull( + key, r'GSourcePreferenceFragmentData__asCheckBoxPreference', 'key'), + CheckBoxTitle: BuiltValueNullFieldError.checkNotNull( + CheckBoxTitle, + r'GSourcePreferenceFragmentData__asCheckBoxPreference', + 'CheckBoxTitle')); + replace(_$result); + return _$result; + } +} + +class _$GSourcePreferenceFragmentData__asEditTextPreference + extends GSourcePreferenceFragmentData__asEditTextPreference { + @override + final String G__typename; + @override + final String type; + @override + final String? EditTextPreferenceCurrentValue; + @override + final String? EditTextPreferenceDefault; + @override + final String? EditTextPreferenceTitle; + @override + final String? text; + @override + final String? summary; + @override + final String key; + @override + final String? dialogTitle; + @override + final String? dialogMessage; + + factory _$GSourcePreferenceFragmentData__asEditTextPreference( + [void Function( + GSourcePreferenceFragmentData__asEditTextPreferenceBuilder)? + updates]) => + (new GSourcePreferenceFragmentData__asEditTextPreferenceBuilder() + ..update(updates)) + ._build(); + + _$GSourcePreferenceFragmentData__asEditTextPreference._( + {required this.G__typename, + required this.type, + this.EditTextPreferenceCurrentValue, + this.EditTextPreferenceDefault, + this.EditTextPreferenceTitle, + this.text, + this.summary, + required this.key, + this.dialogTitle, + this.dialogMessage}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GSourcePreferenceFragmentData__asEditTextPreference', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + type, r'GSourcePreferenceFragmentData__asEditTextPreference', 'type'); + BuiltValueNullFieldError.checkNotNull( + key, r'GSourcePreferenceFragmentData__asEditTextPreference', 'key'); + } + + @override + GSourcePreferenceFragmentData__asEditTextPreference rebuild( + void Function( + GSourcePreferenceFragmentData__asEditTextPreferenceBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourcePreferenceFragmentData__asEditTextPreferenceBuilder toBuilder() => + new GSourcePreferenceFragmentData__asEditTextPreferenceBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourcePreferenceFragmentData__asEditTextPreference && + G__typename == other.G__typename && + type == other.type && + EditTextPreferenceCurrentValue == + other.EditTextPreferenceCurrentValue && + EditTextPreferenceDefault == other.EditTextPreferenceDefault && + EditTextPreferenceTitle == other.EditTextPreferenceTitle && + text == other.text && + summary == other.summary && + key == other.key && + dialogTitle == other.dialogTitle && + dialogMessage == other.dialogMessage; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, EditTextPreferenceCurrentValue.hashCode); + _$hash = $jc(_$hash, EditTextPreferenceDefault.hashCode); + _$hash = $jc(_$hash, EditTextPreferenceTitle.hashCode); + _$hash = $jc(_$hash, text.hashCode); + _$hash = $jc(_$hash, summary.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, dialogTitle.hashCode); + _$hash = $jc(_$hash, dialogMessage.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GSourcePreferenceFragmentData__asEditTextPreference') + ..add('G__typename', G__typename) + ..add('type', type) + ..add( + 'EditTextPreferenceCurrentValue', EditTextPreferenceCurrentValue) + ..add('EditTextPreferenceDefault', EditTextPreferenceDefault) + ..add('EditTextPreferenceTitle', EditTextPreferenceTitle) + ..add('text', text) + ..add('summary', summary) + ..add('key', key) + ..add('dialogTitle', dialogTitle) + ..add('dialogMessage', dialogMessage)) + .toString(); + } +} + +class GSourcePreferenceFragmentData__asEditTextPreferenceBuilder + implements + Builder { + _$GSourcePreferenceFragmentData__asEditTextPreference? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _type; + String? get type => _$this._type; + set type(String? type) => _$this._type = type; + + String? _EditTextPreferenceCurrentValue; + String? get EditTextPreferenceCurrentValue => + _$this._EditTextPreferenceCurrentValue; + set EditTextPreferenceCurrentValue(String? EditTextPreferenceCurrentValue) => + _$this._EditTextPreferenceCurrentValue = EditTextPreferenceCurrentValue; + + String? _EditTextPreferenceDefault; + String? get EditTextPreferenceDefault => _$this._EditTextPreferenceDefault; + set EditTextPreferenceDefault(String? EditTextPreferenceDefault) => + _$this._EditTextPreferenceDefault = EditTextPreferenceDefault; + + String? _EditTextPreferenceTitle; + String? get EditTextPreferenceTitle => _$this._EditTextPreferenceTitle; + set EditTextPreferenceTitle(String? EditTextPreferenceTitle) => + _$this._EditTextPreferenceTitle = EditTextPreferenceTitle; + + String? _text; + String? get text => _$this._text; + set text(String? text) => _$this._text = text; + + String? _summary; + String? get summary => _$this._summary; + set summary(String? summary) => _$this._summary = summary; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _dialogTitle; + String? get dialogTitle => _$this._dialogTitle; + set dialogTitle(String? dialogTitle) => _$this._dialogTitle = dialogTitle; + + String? _dialogMessage; + String? get dialogMessage => _$this._dialogMessage; + set dialogMessage(String? dialogMessage) => + _$this._dialogMessage = dialogMessage; + + GSourcePreferenceFragmentData__asEditTextPreferenceBuilder() { + GSourcePreferenceFragmentData__asEditTextPreference._initializeBuilder( + this); + } + + GSourcePreferenceFragmentData__asEditTextPreferenceBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _type = $v.type; + _EditTextPreferenceCurrentValue = $v.EditTextPreferenceCurrentValue; + _EditTextPreferenceDefault = $v.EditTextPreferenceDefault; + _EditTextPreferenceTitle = $v.EditTextPreferenceTitle; + _text = $v.text; + _summary = $v.summary; + _key = $v.key; + _dialogTitle = $v.dialogTitle; + _dialogMessage = $v.dialogMessage; + _$v = null; + } + return this; + } + + @override + void replace(GSourcePreferenceFragmentData__asEditTextPreference other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourcePreferenceFragmentData__asEditTextPreference; + } + + @override + void update( + void Function(GSourcePreferenceFragmentData__asEditTextPreferenceBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GSourcePreferenceFragmentData__asEditTextPreference build() => _build(); + + _$GSourcePreferenceFragmentData__asEditTextPreference _build() { + final _$result = _$v ?? + new _$GSourcePreferenceFragmentData__asEditTextPreference._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GSourcePreferenceFragmentData__asEditTextPreference', + 'G__typename'), + type: BuiltValueNullFieldError.checkNotNull(type, + r'GSourcePreferenceFragmentData__asEditTextPreference', 'type'), + EditTextPreferenceCurrentValue: EditTextPreferenceCurrentValue, + EditTextPreferenceDefault: EditTextPreferenceDefault, + EditTextPreferenceTitle: EditTextPreferenceTitle, + text: text, + summary: summary, + key: BuiltValueNullFieldError.checkNotNull(key, + r'GSourcePreferenceFragmentData__asEditTextPreference', 'key'), + dialogTitle: dialogTitle, + dialogMessage: dialogMessage); + replace(_$result); + return _$result; + } +} + +class _$GSourcePreferenceFragmentData__asSwitchPreference + extends GSourcePreferenceFragmentData__asSwitchPreference { + @override + final String G__typename; + @override + final String type; + @override + final bool? SwitchPreferenceCurrentValue; + @override + final String? summary; + @override + final String key; + @override + final bool SwitchPreferenceDefault; + @override + final String SwitchPreferenceTitle; + + factory _$GSourcePreferenceFragmentData__asSwitchPreference( + [void Function( + GSourcePreferenceFragmentData__asSwitchPreferenceBuilder)? + updates]) => + (new GSourcePreferenceFragmentData__asSwitchPreferenceBuilder() + ..update(updates)) + ._build(); + + _$GSourcePreferenceFragmentData__asSwitchPreference._( + {required this.G__typename, + required this.type, + this.SwitchPreferenceCurrentValue, + this.summary, + required this.key, + required this.SwitchPreferenceDefault, + required this.SwitchPreferenceTitle}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GSourcePreferenceFragmentData__asSwitchPreference', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + type, r'GSourcePreferenceFragmentData__asSwitchPreference', 'type'); + BuiltValueNullFieldError.checkNotNull( + key, r'GSourcePreferenceFragmentData__asSwitchPreference', 'key'); + BuiltValueNullFieldError.checkNotNull( + SwitchPreferenceDefault, + r'GSourcePreferenceFragmentData__asSwitchPreference', + 'SwitchPreferenceDefault'); + BuiltValueNullFieldError.checkNotNull( + SwitchPreferenceTitle, + r'GSourcePreferenceFragmentData__asSwitchPreference', + 'SwitchPreferenceTitle'); + } + + @override + GSourcePreferenceFragmentData__asSwitchPreference rebuild( + void Function( + GSourcePreferenceFragmentData__asSwitchPreferenceBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourcePreferenceFragmentData__asSwitchPreferenceBuilder toBuilder() => + new GSourcePreferenceFragmentData__asSwitchPreferenceBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourcePreferenceFragmentData__asSwitchPreference && + G__typename == other.G__typename && + type == other.type && + SwitchPreferenceCurrentValue == other.SwitchPreferenceCurrentValue && + summary == other.summary && + key == other.key && + SwitchPreferenceDefault == other.SwitchPreferenceDefault && + SwitchPreferenceTitle == other.SwitchPreferenceTitle; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, SwitchPreferenceCurrentValue.hashCode); + _$hash = $jc(_$hash, summary.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, SwitchPreferenceDefault.hashCode); + _$hash = $jc(_$hash, SwitchPreferenceTitle.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GSourcePreferenceFragmentData__asSwitchPreference') + ..add('G__typename', G__typename) + ..add('type', type) + ..add('SwitchPreferenceCurrentValue', SwitchPreferenceCurrentValue) + ..add('summary', summary) + ..add('key', key) + ..add('SwitchPreferenceDefault', SwitchPreferenceDefault) + ..add('SwitchPreferenceTitle', SwitchPreferenceTitle)) + .toString(); + } +} + +class GSourcePreferenceFragmentData__asSwitchPreferenceBuilder + implements + Builder { + _$GSourcePreferenceFragmentData__asSwitchPreference? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _type; + String? get type => _$this._type; + set type(String? type) => _$this._type = type; + + bool? _SwitchPreferenceCurrentValue; + bool? get SwitchPreferenceCurrentValue => + _$this._SwitchPreferenceCurrentValue; + set SwitchPreferenceCurrentValue(bool? SwitchPreferenceCurrentValue) => + _$this._SwitchPreferenceCurrentValue = SwitchPreferenceCurrentValue; + + String? _summary; + String? get summary => _$this._summary; + set summary(String? summary) => _$this._summary = summary; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + bool? _SwitchPreferenceDefault; + bool? get SwitchPreferenceDefault => _$this._SwitchPreferenceDefault; + set SwitchPreferenceDefault(bool? SwitchPreferenceDefault) => + _$this._SwitchPreferenceDefault = SwitchPreferenceDefault; + + String? _SwitchPreferenceTitle; + String? get SwitchPreferenceTitle => _$this._SwitchPreferenceTitle; + set SwitchPreferenceTitle(String? SwitchPreferenceTitle) => + _$this._SwitchPreferenceTitle = SwitchPreferenceTitle; + + GSourcePreferenceFragmentData__asSwitchPreferenceBuilder() { + GSourcePreferenceFragmentData__asSwitchPreference._initializeBuilder(this); + } + + GSourcePreferenceFragmentData__asSwitchPreferenceBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _type = $v.type; + _SwitchPreferenceCurrentValue = $v.SwitchPreferenceCurrentValue; + _summary = $v.summary; + _key = $v.key; + _SwitchPreferenceDefault = $v.SwitchPreferenceDefault; + _SwitchPreferenceTitle = $v.SwitchPreferenceTitle; + _$v = null; + } + return this; + } + + @override + void replace(GSourcePreferenceFragmentData__asSwitchPreference other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourcePreferenceFragmentData__asSwitchPreference; + } + + @override + void update( + void Function(GSourcePreferenceFragmentData__asSwitchPreferenceBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GSourcePreferenceFragmentData__asSwitchPreference build() => _build(); + + _$GSourcePreferenceFragmentData__asSwitchPreference _build() { + final _$result = _$v ?? + new _$GSourcePreferenceFragmentData__asSwitchPreference._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GSourcePreferenceFragmentData__asSwitchPreference', + 'G__typename'), + type: BuiltValueNullFieldError.checkNotNull(type, + r'GSourcePreferenceFragmentData__asSwitchPreference', 'type'), + SwitchPreferenceCurrentValue: SwitchPreferenceCurrentValue, + summary: summary, + key: BuiltValueNullFieldError.checkNotNull( + key, r'GSourcePreferenceFragmentData__asSwitchPreference', 'key'), + SwitchPreferenceDefault: BuiltValueNullFieldError.checkNotNull( + SwitchPreferenceDefault, + r'GSourcePreferenceFragmentData__asSwitchPreference', + 'SwitchPreferenceDefault'), + SwitchPreferenceTitle: BuiltValueNullFieldError.checkNotNull( + SwitchPreferenceTitle, + r'GSourcePreferenceFragmentData__asSwitchPreference', + 'SwitchPreferenceTitle')); + replace(_$result); + return _$result; + } +} + +class _$GSourcePreferenceFragmentData__asMultiSelectListPreference + extends GSourcePreferenceFragmentData__asMultiSelectListPreference { + @override + final String G__typename; + @override + final String type; + @override + final String? dialogMessage; + @override + final String? dialogTitle; + @override + final String? MultiSelectListPreferenceTitle; + @override + final String? summary; + @override + final String key; + @override + final BuiltList entryValues; + @override + final BuiltList entries; + @override + final BuiltList? MultiSelectListPreferenceDefault; + @override + final BuiltList? MultiSelectListPreferenceCurrentValue; + + factory _$GSourcePreferenceFragmentData__asMultiSelectListPreference( + [void Function( + GSourcePreferenceFragmentData__asMultiSelectListPreferenceBuilder)? + updates]) => + (new GSourcePreferenceFragmentData__asMultiSelectListPreferenceBuilder() + ..update(updates)) + ._build(); + + _$GSourcePreferenceFragmentData__asMultiSelectListPreference._( + {required this.G__typename, + required this.type, + this.dialogMessage, + this.dialogTitle, + this.MultiSelectListPreferenceTitle, + this.summary, + required this.key, + required this.entryValues, + required this.entries, + this.MultiSelectListPreferenceDefault, + this.MultiSelectListPreferenceCurrentValue}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GSourcePreferenceFragmentData__asMultiSelectListPreference', + 'G__typename'); + BuiltValueNullFieldError.checkNotNull(type, + r'GSourcePreferenceFragmentData__asMultiSelectListPreference', 'type'); + BuiltValueNullFieldError.checkNotNull(key, + r'GSourcePreferenceFragmentData__asMultiSelectListPreference', 'key'); + BuiltValueNullFieldError.checkNotNull( + entryValues, + r'GSourcePreferenceFragmentData__asMultiSelectListPreference', + 'entryValues'); + BuiltValueNullFieldError.checkNotNull( + entries, + r'GSourcePreferenceFragmentData__asMultiSelectListPreference', + 'entries'); + } + + @override + GSourcePreferenceFragmentData__asMultiSelectListPreference rebuild( + void Function( + GSourcePreferenceFragmentData__asMultiSelectListPreferenceBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourcePreferenceFragmentData__asMultiSelectListPreferenceBuilder + toBuilder() => + new GSourcePreferenceFragmentData__asMultiSelectListPreferenceBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other + is GSourcePreferenceFragmentData__asMultiSelectListPreference && + G__typename == other.G__typename && + type == other.type && + dialogMessage == other.dialogMessage && + dialogTitle == other.dialogTitle && + MultiSelectListPreferenceTitle == + other.MultiSelectListPreferenceTitle && + summary == other.summary && + key == other.key && + entryValues == other.entryValues && + entries == other.entries && + MultiSelectListPreferenceDefault == + other.MultiSelectListPreferenceDefault && + MultiSelectListPreferenceCurrentValue == + other.MultiSelectListPreferenceCurrentValue; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, dialogMessage.hashCode); + _$hash = $jc(_$hash, dialogTitle.hashCode); + _$hash = $jc(_$hash, MultiSelectListPreferenceTitle.hashCode); + _$hash = $jc(_$hash, summary.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, entryValues.hashCode); + _$hash = $jc(_$hash, entries.hashCode); + _$hash = $jc(_$hash, MultiSelectListPreferenceDefault.hashCode); + _$hash = $jc(_$hash, MultiSelectListPreferenceCurrentValue.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GSourcePreferenceFragmentData__asMultiSelectListPreference') + ..add('G__typename', G__typename) + ..add('type', type) + ..add('dialogMessage', dialogMessage) + ..add('dialogTitle', dialogTitle) + ..add( + 'MultiSelectListPreferenceTitle', MultiSelectListPreferenceTitle) + ..add('summary', summary) + ..add('key', key) + ..add('entryValues', entryValues) + ..add('entries', entries) + ..add('MultiSelectListPreferenceDefault', + MultiSelectListPreferenceDefault) + ..add('MultiSelectListPreferenceCurrentValue', + MultiSelectListPreferenceCurrentValue)) + .toString(); + } +} + +class GSourcePreferenceFragmentData__asMultiSelectListPreferenceBuilder + implements + Builder { + _$GSourcePreferenceFragmentData__asMultiSelectListPreference? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _type; + String? get type => _$this._type; + set type(String? type) => _$this._type = type; + + String? _dialogMessage; + String? get dialogMessage => _$this._dialogMessage; + set dialogMessage(String? dialogMessage) => + _$this._dialogMessage = dialogMessage; + + String? _dialogTitle; + String? get dialogTitle => _$this._dialogTitle; + set dialogTitle(String? dialogTitle) => _$this._dialogTitle = dialogTitle; + + String? _MultiSelectListPreferenceTitle; + String? get MultiSelectListPreferenceTitle => + _$this._MultiSelectListPreferenceTitle; + set MultiSelectListPreferenceTitle(String? MultiSelectListPreferenceTitle) => + _$this._MultiSelectListPreferenceTitle = MultiSelectListPreferenceTitle; + + String? _summary; + String? get summary => _$this._summary; + set summary(String? summary) => _$this._summary = summary; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + ListBuilder? _entryValues; + ListBuilder get entryValues => + _$this._entryValues ??= new ListBuilder(); + set entryValues(ListBuilder? entryValues) => + _$this._entryValues = entryValues; + + ListBuilder? _entries; + ListBuilder get entries => + _$this._entries ??= new ListBuilder(); + set entries(ListBuilder? entries) => _$this._entries = entries; + + ListBuilder? _MultiSelectListPreferenceDefault; + ListBuilder get MultiSelectListPreferenceDefault => + _$this._MultiSelectListPreferenceDefault ??= new ListBuilder(); + set MultiSelectListPreferenceDefault( + ListBuilder? MultiSelectListPreferenceDefault) => + _$this._MultiSelectListPreferenceDefault = + MultiSelectListPreferenceDefault; + + ListBuilder? _MultiSelectListPreferenceCurrentValue; + ListBuilder get MultiSelectListPreferenceCurrentValue => + _$this._MultiSelectListPreferenceCurrentValue ??= + new ListBuilder(); + set MultiSelectListPreferenceCurrentValue( + ListBuilder? MultiSelectListPreferenceCurrentValue) => + _$this._MultiSelectListPreferenceCurrentValue = + MultiSelectListPreferenceCurrentValue; + + GSourcePreferenceFragmentData__asMultiSelectListPreferenceBuilder() { + GSourcePreferenceFragmentData__asMultiSelectListPreference + ._initializeBuilder(this); + } + + GSourcePreferenceFragmentData__asMultiSelectListPreferenceBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _type = $v.type; + _dialogMessage = $v.dialogMessage; + _dialogTitle = $v.dialogTitle; + _MultiSelectListPreferenceTitle = $v.MultiSelectListPreferenceTitle; + _summary = $v.summary; + _key = $v.key; + _entryValues = $v.entryValues.toBuilder(); + _entries = $v.entries.toBuilder(); + _MultiSelectListPreferenceDefault = + $v.MultiSelectListPreferenceDefault?.toBuilder(); + _MultiSelectListPreferenceCurrentValue = + $v.MultiSelectListPreferenceCurrentValue?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace( + GSourcePreferenceFragmentData__asMultiSelectListPreference other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourcePreferenceFragmentData__asMultiSelectListPreference; + } + + @override + void update( + void Function( + GSourcePreferenceFragmentData__asMultiSelectListPreferenceBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GSourcePreferenceFragmentData__asMultiSelectListPreference build() => + _build(); + + _$GSourcePreferenceFragmentData__asMultiSelectListPreference _build() { + _$GSourcePreferenceFragmentData__asMultiSelectListPreference _$result; + try { + _$result = _$v ?? + new _$GSourcePreferenceFragmentData__asMultiSelectListPreference._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GSourcePreferenceFragmentData__asMultiSelectListPreference', + 'G__typename'), + type: BuiltValueNullFieldError.checkNotNull( + type, + r'GSourcePreferenceFragmentData__asMultiSelectListPreference', + 'type'), + dialogMessage: dialogMessage, + dialogTitle: dialogTitle, + MultiSelectListPreferenceTitle: MultiSelectListPreferenceTitle, + summary: summary, + key: BuiltValueNullFieldError.checkNotNull( + key, + r'GSourcePreferenceFragmentData__asMultiSelectListPreference', + 'key'), + entryValues: entryValues.build(), + entries: entries.build(), + MultiSelectListPreferenceDefault: + _MultiSelectListPreferenceDefault?.build(), + MultiSelectListPreferenceCurrentValue: + _MultiSelectListPreferenceCurrentValue?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'entryValues'; + entryValues.build(); + _$failedField = 'entries'; + entries.build(); + _$failedField = 'MultiSelectListPreferenceDefault'; + _MultiSelectListPreferenceDefault?.build(); + _$failedField = 'MultiSelectListPreferenceCurrentValue'; + _MultiSelectListPreferenceCurrentValue?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourcePreferenceFragmentData__asMultiSelectListPreference', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSourcePreferenceFragmentData__asListPreference + extends GSourcePreferenceFragmentData__asListPreference { + @override + final String G__typename; + @override + final String type; + @override + final String? ListPreferenceCurrentValue; + @override + final String? ListPreferenceDefault; + @override + final String? ListPreferenceTitle; + @override + final String? summary; + @override + final String key; + @override + final BuiltList entryValues; + @override + final BuiltList entries; + + factory _$GSourcePreferenceFragmentData__asListPreference( + [void Function( + GSourcePreferenceFragmentData__asListPreferenceBuilder)? + updates]) => + (new GSourcePreferenceFragmentData__asListPreferenceBuilder() + ..update(updates)) + ._build(); + + _$GSourcePreferenceFragmentData__asListPreference._( + {required this.G__typename, + required this.type, + this.ListPreferenceCurrentValue, + this.ListPreferenceDefault, + this.ListPreferenceTitle, + this.summary, + required this.key, + required this.entryValues, + required this.entries}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GSourcePreferenceFragmentData__asListPreference', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + type, r'GSourcePreferenceFragmentData__asListPreference', 'type'); + BuiltValueNullFieldError.checkNotNull( + key, r'GSourcePreferenceFragmentData__asListPreference', 'key'); + BuiltValueNullFieldError.checkNotNull(entryValues, + r'GSourcePreferenceFragmentData__asListPreference', 'entryValues'); + BuiltValueNullFieldError.checkNotNull( + entries, r'GSourcePreferenceFragmentData__asListPreference', 'entries'); + } + + @override + GSourcePreferenceFragmentData__asListPreference rebuild( + void Function(GSourcePreferenceFragmentData__asListPreferenceBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourcePreferenceFragmentData__asListPreferenceBuilder toBuilder() => + new GSourcePreferenceFragmentData__asListPreferenceBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourcePreferenceFragmentData__asListPreference && + G__typename == other.G__typename && + type == other.type && + ListPreferenceCurrentValue == other.ListPreferenceCurrentValue && + ListPreferenceDefault == other.ListPreferenceDefault && + ListPreferenceTitle == other.ListPreferenceTitle && + summary == other.summary && + key == other.key && + entryValues == other.entryValues && + entries == other.entries; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jc(_$hash, ListPreferenceCurrentValue.hashCode); + _$hash = $jc(_$hash, ListPreferenceDefault.hashCode); + _$hash = $jc(_$hash, ListPreferenceTitle.hashCode); + _$hash = $jc(_$hash, summary.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, entryValues.hashCode); + _$hash = $jc(_$hash, entries.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GSourcePreferenceFragmentData__asListPreference') + ..add('G__typename', G__typename) + ..add('type', type) + ..add('ListPreferenceCurrentValue', ListPreferenceCurrentValue) + ..add('ListPreferenceDefault', ListPreferenceDefault) + ..add('ListPreferenceTitle', ListPreferenceTitle) + ..add('summary', summary) + ..add('key', key) + ..add('entryValues', entryValues) + ..add('entries', entries)) + .toString(); + } +} + +class GSourcePreferenceFragmentData__asListPreferenceBuilder + implements + Builder { + _$GSourcePreferenceFragmentData__asListPreference? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _type; + String? get type => _$this._type; + set type(String? type) => _$this._type = type; + + String? _ListPreferenceCurrentValue; + String? get ListPreferenceCurrentValue => _$this._ListPreferenceCurrentValue; + set ListPreferenceCurrentValue(String? ListPreferenceCurrentValue) => + _$this._ListPreferenceCurrentValue = ListPreferenceCurrentValue; + + String? _ListPreferenceDefault; + String? get ListPreferenceDefault => _$this._ListPreferenceDefault; + set ListPreferenceDefault(String? ListPreferenceDefault) => + _$this._ListPreferenceDefault = ListPreferenceDefault; + + String? _ListPreferenceTitle; + String? get ListPreferenceTitle => _$this._ListPreferenceTitle; + set ListPreferenceTitle(String? ListPreferenceTitle) => + _$this._ListPreferenceTitle = ListPreferenceTitle; + + String? _summary; + String? get summary => _$this._summary; + set summary(String? summary) => _$this._summary = summary; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + ListBuilder? _entryValues; + ListBuilder get entryValues => + _$this._entryValues ??= new ListBuilder(); + set entryValues(ListBuilder? entryValues) => + _$this._entryValues = entryValues; + + ListBuilder? _entries; + ListBuilder get entries => + _$this._entries ??= new ListBuilder(); + set entries(ListBuilder? entries) => _$this._entries = entries; + + GSourcePreferenceFragmentData__asListPreferenceBuilder() { + GSourcePreferenceFragmentData__asListPreference._initializeBuilder(this); + } + + GSourcePreferenceFragmentData__asListPreferenceBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _type = $v.type; + _ListPreferenceCurrentValue = $v.ListPreferenceCurrentValue; + _ListPreferenceDefault = $v.ListPreferenceDefault; + _ListPreferenceTitle = $v.ListPreferenceTitle; + _summary = $v.summary; + _key = $v.key; + _entryValues = $v.entryValues.toBuilder(); + _entries = $v.entries.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GSourcePreferenceFragmentData__asListPreference other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourcePreferenceFragmentData__asListPreference; + } + + @override + void update( + void Function(GSourcePreferenceFragmentData__asListPreferenceBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GSourcePreferenceFragmentData__asListPreference build() => _build(); + + _$GSourcePreferenceFragmentData__asListPreference _build() { + _$GSourcePreferenceFragmentData__asListPreference _$result; + try { + _$result = _$v ?? + new _$GSourcePreferenceFragmentData__asListPreference._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GSourcePreferenceFragmentData__asListPreference', + 'G__typename'), + type: BuiltValueNullFieldError.checkNotNull(type, + r'GSourcePreferenceFragmentData__asListPreference', 'type'), + ListPreferenceCurrentValue: ListPreferenceCurrentValue, + ListPreferenceDefault: ListPreferenceDefault, + ListPreferenceTitle: ListPreferenceTitle, + summary: summary, + key: BuiltValueNullFieldError.checkNotNull(key, + r'GSourcePreferenceFragmentData__asListPreference', 'key'), + entryValues: entryValues.build(), + entries: entries.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'entryValues'; + entryValues.build(); + _$failedField = 'entries'; + entries.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourcePreferenceFragmentData__asListPreference', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/domain/source_preference/graphql/__generated__/fragment.req.gql.dart b/lib/src/features/browse_center/domain/source_preference/graphql/__generated__/fragment.req.gql.dart new file mode 100644 index 00000000..5d20ae91 --- /dev/null +++ b/lib/src/features/browse_center/domain/source_preference/graphql/__generated__/fragment.req.gql.dart @@ -0,0 +1,68 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql/ast.dart' as _i5; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/source_preference/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/source_preference/graphql/__generated__/fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/source_preference/graphql/__generated__/fragment.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'fragment.req.gql.g.dart'; + +abstract class GSourcePreferenceFragmentReq + implements + Built, + _i1.FragmentRequest<_i2.GSourcePreferenceFragmentData, + _i3.GSourcePreferenceFragmentVars> { + GSourcePreferenceFragmentReq._(); + + factory GSourcePreferenceFragmentReq( + [void Function(GSourcePreferenceFragmentReqBuilder b) updates]) = + _$GSourcePreferenceFragmentReq; + + static void _initializeBuilder(GSourcePreferenceFragmentReqBuilder b) => b + ..document = _i4.document + ..fragmentName = 'SourcePreferenceFragment'; + + @override + _i3.GSourcePreferenceFragmentVars get vars; + @override + _i5.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GSourcePreferenceFragmentData? parseData(Map json) => + _i2.GSourcePreferenceFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GSourcePreferenceFragmentData data) => + data.toJson(); + + static Serializer get serializer => + _$gSourcePreferenceFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GSourcePreferenceFragmentReq.serializer, + this, + ) as Map); + + static GSourcePreferenceFragmentReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GSourcePreferenceFragmentReq.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/domain/source_preference/graphql/__generated__/fragment.req.gql.g.dart b/lib/src/features/browse_center/domain/source_preference/graphql/__generated__/fragment.req.gql.g.dart new file mode 100644 index 00000000..260b5f20 --- /dev/null +++ b/lib/src/features/browse_center/domain/source_preference/graphql/__generated__/fragment.req.gql.g.dart @@ -0,0 +1,241 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gSourcePreferenceFragmentReqSerializer = + new _$GSourcePreferenceFragmentReqSerializer(); + +class _$GSourcePreferenceFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSourcePreferenceFragmentReq, + _$GSourcePreferenceFragmentReq + ]; + @override + final String wireName = 'GSourcePreferenceFragmentReq'; + + @override + Iterable serialize( + Serializers serializers, GSourcePreferenceFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GSourcePreferenceFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i5.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSourcePreferenceFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourcePreferenceFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GSourcePreferenceFragmentVars))! + as _i3.GSourcePreferenceFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i5.DocumentNode))! + as _i5.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GSourcePreferenceFragmentReq extends GSourcePreferenceFragmentReq { + @override + final _i3.GSourcePreferenceFragmentVars vars; + @override + final _i5.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GSourcePreferenceFragmentReq( + [void Function(GSourcePreferenceFragmentReqBuilder)? updates]) => + (new GSourcePreferenceFragmentReqBuilder()..update(updates))._build(); + + _$GSourcePreferenceFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GSourcePreferenceFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GSourcePreferenceFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GSourcePreferenceFragmentReq', 'idFields'); + } + + @override + GSourcePreferenceFragmentReq rebuild( + void Function(GSourcePreferenceFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourcePreferenceFragmentReqBuilder toBuilder() => + new GSourcePreferenceFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourcePreferenceFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourcePreferenceFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GSourcePreferenceFragmentReqBuilder + implements + Builder { + _$GSourcePreferenceFragmentReq? _$v; + + _i3.GSourcePreferenceFragmentVarsBuilder? _vars; + _i3.GSourcePreferenceFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GSourcePreferenceFragmentVarsBuilder(); + set vars(_i3.GSourcePreferenceFragmentVarsBuilder? vars) => + _$this._vars = vars; + + _i5.DocumentNode? _document; + _i5.DocumentNode? get document => _$this._document; + set document(_i5.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GSourcePreferenceFragmentReqBuilder() { + GSourcePreferenceFragmentReq._initializeBuilder(this); + } + + GSourcePreferenceFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GSourcePreferenceFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourcePreferenceFragmentReq; + } + + @override + void update(void Function(GSourcePreferenceFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourcePreferenceFragmentReq build() => _build(); + + _$GSourcePreferenceFragmentReq _build() { + _$GSourcePreferenceFragmentReq _$result; + try { + _$result = _$v ?? + new _$GSourcePreferenceFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GSourcePreferenceFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GSourcePreferenceFragmentReq', 'idFields')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourcePreferenceFragmentReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/domain/source_preference/graphql/__generated__/fragment.var.gql.dart b/lib/src/features/browse_center/domain/source_preference/graphql/__generated__/fragment.var.gql.dart new file mode 100644 index 00000000..8fd7116e --- /dev/null +++ b/lib/src/features/browse_center/domain/source_preference/graphql/__generated__/fragment.var.gql.dart @@ -0,0 +1,35 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragment.var.gql.g.dart'; + +abstract class GSourcePreferenceFragmentVars + implements + Built { + GSourcePreferenceFragmentVars._(); + + factory GSourcePreferenceFragmentVars( + [void Function(GSourcePreferenceFragmentVarsBuilder b) updates]) = + _$GSourcePreferenceFragmentVars; + + static Serializer get serializer => + _$gSourcePreferenceFragmentVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSourcePreferenceFragmentVars.serializer, + this, + ) as Map); + + static GSourcePreferenceFragmentVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSourcePreferenceFragmentVars.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/domain/source_preference/graphql/__generated__/fragment.var.gql.g.dart b/lib/src/features/browse_center/domain/source_preference/graphql/__generated__/fragment.var.gql.g.dart new file mode 100644 index 00000000..288871ac --- /dev/null +++ b/lib/src/features/browse_center/domain/source_preference/graphql/__generated__/fragment.var.gql.g.dart @@ -0,0 +1,101 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gSourcePreferenceFragmentVarsSerializer = + new _$GSourcePreferenceFragmentVarsSerializer(); + +class _$GSourcePreferenceFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSourcePreferenceFragmentVars, + _$GSourcePreferenceFragmentVars + ]; + @override + final String wireName = 'GSourcePreferenceFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GSourcePreferenceFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GSourcePreferenceFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GSourcePreferenceFragmentVarsBuilder().build(); + } +} + +class _$GSourcePreferenceFragmentVars extends GSourcePreferenceFragmentVars { + factory _$GSourcePreferenceFragmentVars( + [void Function(GSourcePreferenceFragmentVarsBuilder)? updates]) => + (new GSourcePreferenceFragmentVarsBuilder()..update(updates))._build(); + + _$GSourcePreferenceFragmentVars._() : super._(); + + @override + GSourcePreferenceFragmentVars rebuild( + void Function(GSourcePreferenceFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourcePreferenceFragmentVarsBuilder toBuilder() => + new GSourcePreferenceFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourcePreferenceFragmentVars; + } + + @override + int get hashCode { + return 705172148; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GSourcePreferenceFragmentVars') + .toString(); + } +} + +class GSourcePreferenceFragmentVarsBuilder + implements + Builder { + _$GSourcePreferenceFragmentVars? _$v; + + GSourcePreferenceFragmentVarsBuilder(); + + @override + void replace(GSourcePreferenceFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourcePreferenceFragmentVars; + } + + @override + void update(void Function(GSourcePreferenceFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourcePreferenceFragmentVars build() => _build(); + + _$GSourcePreferenceFragmentVars _build() { + final _$result = _$v ?? new _$GSourcePreferenceFragmentVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/domain/source_preference/graphql/fragment.graphql b/lib/src/features/browse_center/domain/source_preference/graphql/fragment.graphql new file mode 100644 index 00000000..e3cebbc0 --- /dev/null +++ b/lib/src/features/browse_center/domain/source_preference/graphql/fragment.graphql @@ -0,0 +1,51 @@ +fragment SourcePreferenceFragment on Preference { + ... on CheckBoxPreference { + type: __typename + CheckBoxCheckBoxCurrentValue: currentValue + summary + CheckBoxDefault: default + key + CheckBoxTitle: title + } + ... on EditTextPreference { + type: __typename + EditTextPreferenceCurrentValue: currentValue + EditTextPreferenceDefault: default + EditTextPreferenceTitle: title + text + summary + key + dialogTitle + dialogMessage + } + ... on SwitchPreference { + type: __typename + SwitchPreferenceCurrentValue: currentValue + summary + key + SwitchPreferenceDefault: default + SwitchPreferenceTitle: title + } + ... on MultiSelectListPreference { + type: __typename + dialogMessage + dialogTitle + MultiSelectListPreferenceTitle: title + summary + key + entryValues + entries + MultiSelectListPreferenceDefault: default + MultiSelectListPreferenceCurrentValue: currentValue + } + ... on ListPreference { + type: __typename + ListPreferenceCurrentValue: currentValue + ListPreferenceDefault: default + ListPreferenceTitle: title + summary + key + entryValues + entries + } +} diff --git a/lib/src/features/browse_center/domain/source_preference/graphql/source_preference_converter.dart b/lib/src/features/browse_center/domain/source_preference/graphql/source_preference_converter.dart new file mode 100644 index 00000000..8461da9b --- /dev/null +++ b/lib/src/features/browse_center/domain/source_preference/graphql/source_preference_converter.dart @@ -0,0 +1,8 @@ +import '../source_preference.dart'; +import '__generated__/fragment.data.gql.dart'; + +extension GSourcePreferenceFragmentX on GSourcePreferenceFragment { + Map toJson() => {}; + + SourcePreference get toDto => SourcePreference.fromJson(toJson()); +} diff --git a/lib/src/features/browse_center/domain/source_preference/source_preference.dart b/lib/src/features/browse_center/domain/source_preference/source_preference.dart index 43f385c1..03d7a606 100644 --- a/lib/src/features/browse_center/domain/source_preference/source_preference.dart +++ b/lib/src/features/browse_center/domain/source_preference/source_preference.dart @@ -6,42 +6,70 @@ import 'package:freezed_annotation/freezed_annotation.dart'; -import '../source_preference_prop/source_preference_prop.dart'; - part 'source_preference.freezed.dart'; part 'source_preference.g.dart'; -@freezed -class SourcePreference with _$SourcePreference { - factory SourcePreference({ - String? type, - @JsonKey(readValue: SourcePreference.propsFromJson, name: 'props') - SourcePreferenceProp? sourcePreferenceProp, - }) = _SourcePreference; +@Freezed( + unionKey: 'type', + unionValueCase: FreezedUnionCase.pascal, + fallbackUnion: 'fallback', +) +sealed class SourcePreference with _$SourcePreference { + const factory SourcePreference.fallback({ + String? key, + dynamic currentValue, + }) = Fallback; + + const factory SourcePreference.checkBoxPreference({ + String? key, + String? title, + String? summary, + bool? defaultValue, + bool? currentValue, + String? defaultValueType, + }) = CheckBoxPreference; + + const factory SourcePreference.switchPreferenceCompat({ + String? key, + String? title, + String? summary, + bool? defaultValue, + bool? currentValue, + String? defaultValueType, + }) = SwitchPreferenceCompat; + + const factory SourcePreference.listPreference({ + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + Map? entries, + }) = ListPreference; + + const factory SourcePreference.multiSelectListPreference({ + String? key, + String? title, + String? summary, + List? defaultValue, + List? currentValue, + String? defaultValueType, + Map? entries, + }) = MultiSelectListPreference; + + const factory SourcePreference.editTextPreference({ + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + String? dialogTitle, + String? dialogMessage, + String? text, + }) = EditTextPreference; factory SourcePreference.fromJson(Map json) => _$SourcePreferenceFromJson(json); - - static Map propsFromJson( - Map json, String str) { - final props = json['props']; - final type = json['type']; - if (type == 'MultiSelectListPreference' || type == 'ListPreference') { - final entries = props['entries']; - final entryValues = props['entryValues']; - if (entries != null && - entries is List && - entryValues != null && - entryValues is List) { - props['entries'] = Map.fromIterables( - entryValues.map((e) => e.toString()), - entries.map((e) => e.toString()), - ); - } - } - return { - 'type': json['type'], - if (props is Map) ...props, - }; - } } diff --git a/lib/src/features/browse_center/domain/source_preference/source_preference.freezed.dart b/lib/src/features/browse_center/domain/source_preference/source_preference.freezed.dart index 72d68b8e..9f1753f0 100644 --- a/lib/src/features/browse_center/domain/source_preference/source_preference.freezed.dart +++ b/lib/src/features/browse_center/domain/source_preference/source_preference.freezed.dart @@ -15,16 +15,183 @@ final _privateConstructorUsedError = UnsupportedError( 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); SourcePreference _$SourcePreferenceFromJson(Map json) { - return _SourcePreference.fromJson(json); + switch (json['type']) { + case 'CheckBoxPreference': + return CheckBoxPreference.fromJson(json); + case 'SwitchPreferenceCompat': + return SwitchPreferenceCompat.fromJson(json); + case 'ListPreference': + return ListPreference.fromJson(json); + case 'MultiSelectListPreference': + return MultiSelectListPreference.fromJson(json); + case 'EditTextPreference': + return EditTextPreference.fromJson(json); + + default: + return Fallback.fromJson(json); + } } /// @nodoc mixin _$SourcePreference { - String? get type => throw _privateConstructorUsedError; - @JsonKey(readValue: SourcePreference.propsFromJson, name: 'props') - SourcePreferenceProp? get sourcePreferenceProp => + String? get key => throw _privateConstructorUsedError; + dynamic get currentValue => throw _privateConstructorUsedError; + @optionalTypeArgs + TResult when({ + required TResult Function(String? key, dynamic currentValue) fallback, + required TResult Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType) + checkBoxPreference, + required TResult Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType) + switchPreferenceCompat, + required TResult Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + Map? entries) + listPreference, + required TResult Function( + String? key, + String? title, + String? summary, + List? defaultValue, + List? currentValue, + String? defaultValueType, + Map? entries) + multiSelectListPreference, + required TResult Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + String? dialogTitle, + String? dialogMessage, + String? text) + editTextPreference, + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(String? key, dynamic currentValue)? fallback, + TResult? Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType)? + checkBoxPreference, + TResult? Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType)? + switchPreferenceCompat, + TResult? Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + Map? entries)? + listPreference, + TResult? Function( + String? key, + String? title, + String? summary, + List? defaultValue, + List? currentValue, + String? defaultValueType, + Map? entries)? + multiSelectListPreference, + TResult? Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + String? dialogTitle, + String? dialogMessage, + String? text)? + editTextPreference, + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(String? key, dynamic currentValue)? fallback, + TResult Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType)? + checkBoxPreference, + TResult Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType)? + switchPreferenceCompat, + TResult Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + Map? entries)? + listPreference, + TResult Function( + String? key, + String? title, + String? summary, + List? defaultValue, + List? currentValue, + String? defaultValueType, + Map? entries)? + multiSelectListPreference, + TResult Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + String? dialogTitle, + String? dialogMessage, + String? text)? + editTextPreference, + required TResult orElse(), + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult map({ + required TResult Function(Fallback value) fallback, + required TResult Function(CheckBoxPreference value) checkBoxPreference, + required TResult Function(SwitchPreferenceCompat value) + switchPreferenceCompat, + required TResult Function(ListPreference value) listPreference, + required TResult Function(MultiSelectListPreference value) + multiSelectListPreference, + required TResult Function(EditTextPreference value) editTextPreference, + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(Fallback value)? fallback, + TResult? Function(CheckBoxPreference value)? checkBoxPreference, + TResult? Function(SwitchPreferenceCompat value)? switchPreferenceCompat, + TResult? Function(ListPreference value)? listPreference, + TResult? Function(MultiSelectListPreference value)? + multiSelectListPreference, + TResult? Function(EditTextPreference value)? editTextPreference, + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult maybeMap({ + TResult Function(Fallback value)? fallback, + TResult Function(CheckBoxPreference value)? checkBoxPreference, + TResult Function(SwitchPreferenceCompat value)? switchPreferenceCompat, + TResult Function(ListPreference value)? listPreference, + TResult Function(MultiSelectListPreference value)? + multiSelectListPreference, + TResult Function(EditTextPreference value)? editTextPreference, + required TResult orElse(), + }) => throw _privateConstructorUsedError; - Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) $SourcePreferenceCopyWith get copyWith => @@ -37,12 +204,7 @@ abstract class $SourcePreferenceCopyWith<$Res> { SourcePreference value, $Res Function(SourcePreference) then) = _$SourcePreferenceCopyWithImpl<$Res, SourcePreference>; @useResult - $Res call( - {String? type, - @JsonKey(readValue: SourcePreference.propsFromJson, name: 'props') - SourcePreferenceProp? sourcePreferenceProp}); - - $SourcePreferencePropCopyWith<$Res>? get sourcePreferenceProp; + $Res call({String? key}); } /// @nodoc @@ -58,147 +220,2153 @@ class _$SourcePreferenceCopyWithImpl<$Res, $Val extends SourcePreference> @pragma('vm:prefer-inline') @override $Res call({ - Object? type = freezed, - Object? sourcePreferenceProp = freezed, + Object? key = freezed, }) { return _then(_value.copyWith( - type: freezed == type - ? _value.type - : type // ignore: cast_nullable_to_non_nullable - as String?, - sourcePreferenceProp: freezed == sourcePreferenceProp - ? _value.sourcePreferenceProp - : sourcePreferenceProp // ignore: cast_nullable_to_non_nullable - as SourcePreferenceProp?, + key: freezed == key + ? _value.key + : key // ignore: cast_nullable_to_non_nullable + as String?, ) as $Val); } +} + +/// @nodoc +abstract class _$$FallbackImplCopyWith<$Res> + implements $SourcePreferenceCopyWith<$Res> { + factory _$$FallbackImplCopyWith( + _$FallbackImpl value, $Res Function(_$FallbackImpl) then) = + __$$FallbackImplCopyWithImpl<$Res>; + @override + @useResult + $Res call({String? key, dynamic currentValue}); +} + +/// @nodoc +class __$$FallbackImplCopyWithImpl<$Res> + extends _$SourcePreferenceCopyWithImpl<$Res, _$FallbackImpl> + implements _$$FallbackImplCopyWith<$Res> { + __$$FallbackImplCopyWithImpl( + _$FallbackImpl _value, $Res Function(_$FallbackImpl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? key = freezed, + Object? currentValue = freezed, + }) { + return _then(_$FallbackImpl( + key: freezed == key + ? _value.key + : key // ignore: cast_nullable_to_non_nullable + as String?, + currentValue: freezed == currentValue + ? _value.currentValue + : currentValue // ignore: cast_nullable_to_non_nullable + as dynamic, + )); + } +} + +/// @nodoc +@JsonSerializable() +class _$FallbackImpl implements Fallback { + const _$FallbackImpl({this.key, this.currentValue, final String? $type}) + : $type = $type ?? 'Fallback'; + + factory _$FallbackImpl.fromJson(Map json) => + _$$FallbackImplFromJson(json); + + @override + final String? key; + @override + final dynamic currentValue; + + @JsonKey(name: 'type') + final String $type; + + @override + String toString() { + return 'SourcePreference.fallback(key: $key, currentValue: $currentValue)'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$FallbackImpl && + (identical(other.key, key) || other.key == key) && + const DeepCollectionEquality() + .equals(other.currentValue, currentValue)); + } + @JsonKey(ignore: true) + @override + int get hashCode => Object.hash( + runtimeType, key, const DeepCollectionEquality().hash(currentValue)); + + @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - $SourcePreferencePropCopyWith<$Res>? get sourcePreferenceProp { - if (_value.sourcePreferenceProp == null) { - return null; + _$$FallbackImplCopyWith<_$FallbackImpl> get copyWith => + __$$FallbackImplCopyWithImpl<_$FallbackImpl>(this, _$identity); + + @override + @optionalTypeArgs + TResult when({ + required TResult Function(String? key, dynamic currentValue) fallback, + required TResult Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType) + checkBoxPreference, + required TResult Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType) + switchPreferenceCompat, + required TResult Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + Map? entries) + listPreference, + required TResult Function( + String? key, + String? title, + String? summary, + List? defaultValue, + List? currentValue, + String? defaultValueType, + Map? entries) + multiSelectListPreference, + required TResult Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + String? dialogTitle, + String? dialogMessage, + String? text) + editTextPreference, + }) { + return fallback(key, currentValue); + } + + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(String? key, dynamic currentValue)? fallback, + TResult? Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType)? + checkBoxPreference, + TResult? Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType)? + switchPreferenceCompat, + TResult? Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + Map? entries)? + listPreference, + TResult? Function( + String? key, + String? title, + String? summary, + List? defaultValue, + List? currentValue, + String? defaultValueType, + Map? entries)? + multiSelectListPreference, + TResult? Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + String? dialogTitle, + String? dialogMessage, + String? text)? + editTextPreference, + }) { + return fallback?.call(key, currentValue); + } + + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(String? key, dynamic currentValue)? fallback, + TResult Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType)? + checkBoxPreference, + TResult Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType)? + switchPreferenceCompat, + TResult Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + Map? entries)? + listPreference, + TResult Function( + String? key, + String? title, + String? summary, + List? defaultValue, + List? currentValue, + String? defaultValueType, + Map? entries)? + multiSelectListPreference, + TResult Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + String? dialogTitle, + String? dialogMessage, + String? text)? + editTextPreference, + required TResult orElse(), + }) { + if (fallback != null) { + return fallback(key, currentValue); + } + return orElse(); + } + + @override + @optionalTypeArgs + TResult map({ + required TResult Function(Fallback value) fallback, + required TResult Function(CheckBoxPreference value) checkBoxPreference, + required TResult Function(SwitchPreferenceCompat value) + switchPreferenceCompat, + required TResult Function(ListPreference value) listPreference, + required TResult Function(MultiSelectListPreference value) + multiSelectListPreference, + required TResult Function(EditTextPreference value) editTextPreference, + }) { + return fallback(this); + } + + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(Fallback value)? fallback, + TResult? Function(CheckBoxPreference value)? checkBoxPreference, + TResult? Function(SwitchPreferenceCompat value)? switchPreferenceCompat, + TResult? Function(ListPreference value)? listPreference, + TResult? Function(MultiSelectListPreference value)? + multiSelectListPreference, + TResult? Function(EditTextPreference value)? editTextPreference, + }) { + return fallback?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(Fallback value)? fallback, + TResult Function(CheckBoxPreference value)? checkBoxPreference, + TResult Function(SwitchPreferenceCompat value)? switchPreferenceCompat, + TResult Function(ListPreference value)? listPreference, + TResult Function(MultiSelectListPreference value)? + multiSelectListPreference, + TResult Function(EditTextPreference value)? editTextPreference, + required TResult orElse(), + }) { + if (fallback != null) { + return fallback(this); } + return orElse(); + } - return $SourcePreferencePropCopyWith<$Res>(_value.sourcePreferenceProp!, - (value) { - return _then(_value.copyWith(sourcePreferenceProp: value) as $Val); - }); + @override + Map toJson() { + return _$$FallbackImplToJson( + this, + ); } } +abstract class Fallback implements SourcePreference { + const factory Fallback({final String? key, final dynamic currentValue}) = + _$FallbackImpl; + + factory Fallback.fromJson(Map json) = + _$FallbackImpl.fromJson; + + @override + String? get key; + @override + dynamic get currentValue; + @override + @JsonKey(ignore: true) + _$$FallbackImplCopyWith<_$FallbackImpl> get copyWith => + throw _privateConstructorUsedError; +} + /// @nodoc -abstract class _$$SourcePreferenceImplCopyWith<$Res> +abstract class _$$CheckBoxPreferenceImplCopyWith<$Res> implements $SourcePreferenceCopyWith<$Res> { - factory _$$SourcePreferenceImplCopyWith(_$SourcePreferenceImpl value, - $Res Function(_$SourcePreferenceImpl) then) = - __$$SourcePreferenceImplCopyWithImpl<$Res>; + factory _$$CheckBoxPreferenceImplCopyWith(_$CheckBoxPreferenceImpl value, + $Res Function(_$CheckBoxPreferenceImpl) then) = + __$$CheckBoxPreferenceImplCopyWithImpl<$Res>; @override @useResult $Res call( - {String? type, - @JsonKey(readValue: SourcePreference.propsFromJson, name: 'props') - SourcePreferenceProp? sourcePreferenceProp}); + {String? key, + String? title, + String? summary, + bool? defaultValue, + bool? currentValue, + String? defaultValueType}); +} + +/// @nodoc +class __$$CheckBoxPreferenceImplCopyWithImpl<$Res> + extends _$SourcePreferenceCopyWithImpl<$Res, _$CheckBoxPreferenceImpl> + implements _$$CheckBoxPreferenceImplCopyWith<$Res> { + __$$CheckBoxPreferenceImplCopyWithImpl(_$CheckBoxPreferenceImpl _value, + $Res Function(_$CheckBoxPreferenceImpl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? key = freezed, + Object? title = freezed, + Object? summary = freezed, + Object? defaultValue = freezed, + Object? currentValue = freezed, + Object? defaultValueType = freezed, + }) { + return _then(_$CheckBoxPreferenceImpl( + key: freezed == key + ? _value.key + : key // ignore: cast_nullable_to_non_nullable + as String?, + title: freezed == title + ? _value.title + : title // ignore: cast_nullable_to_non_nullable + as String?, + summary: freezed == summary + ? _value.summary + : summary // ignore: cast_nullable_to_non_nullable + as String?, + defaultValue: freezed == defaultValue + ? _value.defaultValue + : defaultValue // ignore: cast_nullable_to_non_nullable + as bool?, + currentValue: freezed == currentValue + ? _value.currentValue + : currentValue // ignore: cast_nullable_to_non_nullable + as bool?, + defaultValueType: freezed == defaultValueType + ? _value.defaultValueType + : defaultValueType // ignore: cast_nullable_to_non_nullable + as String?, + )); + } +} + +/// @nodoc +@JsonSerializable() +class _$CheckBoxPreferenceImpl implements CheckBoxPreference { + const _$CheckBoxPreferenceImpl( + {this.key, + this.title, + this.summary, + this.defaultValue, + this.currentValue, + this.defaultValueType, + final String? $type}) + : $type = $type ?? 'CheckBoxPreference'; + + factory _$CheckBoxPreferenceImpl.fromJson(Map json) => + _$$CheckBoxPreferenceImplFromJson(json); + + @override + final String? key; + @override + final String? title; + @override + final String? summary; + @override + final bool? defaultValue; + @override + final bool? currentValue; + @override + final String? defaultValueType; + + @JsonKey(name: 'type') + final String $type; + + @override + String toString() { + return 'SourcePreference.checkBoxPreference(key: $key, title: $title, summary: $summary, defaultValue: $defaultValue, currentValue: $currentValue, defaultValueType: $defaultValueType)'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$CheckBoxPreferenceImpl && + (identical(other.key, key) || other.key == key) && + (identical(other.title, title) || other.title == title) && + (identical(other.summary, summary) || other.summary == summary) && + (identical(other.defaultValue, defaultValue) || + other.defaultValue == defaultValue) && + (identical(other.currentValue, currentValue) || + other.currentValue == currentValue) && + (identical(other.defaultValueType, defaultValueType) || + other.defaultValueType == defaultValueType)); + } + @JsonKey(ignore: true) + @override + int get hashCode => Object.hash(runtimeType, key, title, summary, + defaultValue, currentValue, defaultValueType); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$CheckBoxPreferenceImplCopyWith<_$CheckBoxPreferenceImpl> get copyWith => + __$$CheckBoxPreferenceImplCopyWithImpl<_$CheckBoxPreferenceImpl>( + this, _$identity); + + @override + @optionalTypeArgs + TResult when({ + required TResult Function(String? key, dynamic currentValue) fallback, + required TResult Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType) + checkBoxPreference, + required TResult Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType) + switchPreferenceCompat, + required TResult Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + Map? entries) + listPreference, + required TResult Function( + String? key, + String? title, + String? summary, + List? defaultValue, + List? currentValue, + String? defaultValueType, + Map? entries) + multiSelectListPreference, + required TResult Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + String? dialogTitle, + String? dialogMessage, + String? text) + editTextPreference, + }) { + return checkBoxPreference( + key, title, summary, defaultValue, currentValue, defaultValueType); + } + + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(String? key, dynamic currentValue)? fallback, + TResult? Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType)? + checkBoxPreference, + TResult? Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType)? + switchPreferenceCompat, + TResult? Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + Map? entries)? + listPreference, + TResult? Function( + String? key, + String? title, + String? summary, + List? defaultValue, + List? currentValue, + String? defaultValueType, + Map? entries)? + multiSelectListPreference, + TResult? Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + String? dialogTitle, + String? dialogMessage, + String? text)? + editTextPreference, + }) { + return checkBoxPreference?.call( + key, title, summary, defaultValue, currentValue, defaultValueType); + } + + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(String? key, dynamic currentValue)? fallback, + TResult Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType)? + checkBoxPreference, + TResult Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType)? + switchPreferenceCompat, + TResult Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + Map? entries)? + listPreference, + TResult Function( + String? key, + String? title, + String? summary, + List? defaultValue, + List? currentValue, + String? defaultValueType, + Map? entries)? + multiSelectListPreference, + TResult Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + String? dialogTitle, + String? dialogMessage, + String? text)? + editTextPreference, + required TResult orElse(), + }) { + if (checkBoxPreference != null) { + return checkBoxPreference( + key, title, summary, defaultValue, currentValue, defaultValueType); + } + return orElse(); + } + + @override + @optionalTypeArgs + TResult map({ + required TResult Function(Fallback value) fallback, + required TResult Function(CheckBoxPreference value) checkBoxPreference, + required TResult Function(SwitchPreferenceCompat value) + switchPreferenceCompat, + required TResult Function(ListPreference value) listPreference, + required TResult Function(MultiSelectListPreference value) + multiSelectListPreference, + required TResult Function(EditTextPreference value) editTextPreference, + }) { + return checkBoxPreference(this); + } + + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(Fallback value)? fallback, + TResult? Function(CheckBoxPreference value)? checkBoxPreference, + TResult? Function(SwitchPreferenceCompat value)? switchPreferenceCompat, + TResult? Function(ListPreference value)? listPreference, + TResult? Function(MultiSelectListPreference value)? + multiSelectListPreference, + TResult? Function(EditTextPreference value)? editTextPreference, + }) { + return checkBoxPreference?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(Fallback value)? fallback, + TResult Function(CheckBoxPreference value)? checkBoxPreference, + TResult Function(SwitchPreferenceCompat value)? switchPreferenceCompat, + TResult Function(ListPreference value)? listPreference, + TResult Function(MultiSelectListPreference value)? + multiSelectListPreference, + TResult Function(EditTextPreference value)? editTextPreference, + required TResult orElse(), + }) { + if (checkBoxPreference != null) { + return checkBoxPreference(this); + } + return orElse(); + } + + @override + Map toJson() { + return _$$CheckBoxPreferenceImplToJson( + this, + ); + } +} + +abstract class CheckBoxPreference implements SourcePreference { + const factory CheckBoxPreference( + {final String? key, + final String? title, + final String? summary, + final bool? defaultValue, + final bool? currentValue, + final String? defaultValueType}) = _$CheckBoxPreferenceImpl; + + factory CheckBoxPreference.fromJson(Map json) = + _$CheckBoxPreferenceImpl.fromJson; + + @override + String? get key; + String? get title; + String? get summary; + bool? get defaultValue; + @override + bool? get currentValue; + String? get defaultValueType; + @override + @JsonKey(ignore: true) + _$$CheckBoxPreferenceImplCopyWith<_$CheckBoxPreferenceImpl> get copyWith => + throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class _$$SwitchPreferenceCompatImplCopyWith<$Res> + implements $SourcePreferenceCopyWith<$Res> { + factory _$$SwitchPreferenceCompatImplCopyWith( + _$SwitchPreferenceCompatImpl value, + $Res Function(_$SwitchPreferenceCompatImpl) then) = + __$$SwitchPreferenceCompatImplCopyWithImpl<$Res>; @override - $SourcePreferencePropCopyWith<$Res>? get sourcePreferenceProp; + @useResult + $Res call( + {String? key, + String? title, + String? summary, + bool? defaultValue, + bool? currentValue, + String? defaultValueType}); } /// @nodoc -class __$$SourcePreferenceImplCopyWithImpl<$Res> - extends _$SourcePreferenceCopyWithImpl<$Res, _$SourcePreferenceImpl> - implements _$$SourcePreferenceImplCopyWith<$Res> { - __$$SourcePreferenceImplCopyWithImpl(_$SourcePreferenceImpl _value, - $Res Function(_$SourcePreferenceImpl) _then) +class __$$SwitchPreferenceCompatImplCopyWithImpl<$Res> + extends _$SourcePreferenceCopyWithImpl<$Res, _$SwitchPreferenceCompatImpl> + implements _$$SwitchPreferenceCompatImplCopyWith<$Res> { + __$$SwitchPreferenceCompatImplCopyWithImpl( + _$SwitchPreferenceCompatImpl _value, + $Res Function(_$SwitchPreferenceCompatImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override $Res call({ - Object? type = freezed, - Object? sourcePreferenceProp = freezed, - }) { - return _then(_$SourcePreferenceImpl( - type: freezed == type - ? _value.type - : type // ignore: cast_nullable_to_non_nullable - as String?, - sourcePreferenceProp: freezed == sourcePreferenceProp - ? _value.sourcePreferenceProp - : sourcePreferenceProp // ignore: cast_nullable_to_non_nullable - as SourcePreferenceProp?, + Object? key = freezed, + Object? title = freezed, + Object? summary = freezed, + Object? defaultValue = freezed, + Object? currentValue = freezed, + Object? defaultValueType = freezed, + }) { + return _then(_$SwitchPreferenceCompatImpl( + key: freezed == key + ? _value.key + : key // ignore: cast_nullable_to_non_nullable + as String?, + title: freezed == title + ? _value.title + : title // ignore: cast_nullable_to_non_nullable + as String?, + summary: freezed == summary + ? _value.summary + : summary // ignore: cast_nullable_to_non_nullable + as String?, + defaultValue: freezed == defaultValue + ? _value.defaultValue + : defaultValue // ignore: cast_nullable_to_non_nullable + as bool?, + currentValue: freezed == currentValue + ? _value.currentValue + : currentValue // ignore: cast_nullable_to_non_nullable + as bool?, + defaultValueType: freezed == defaultValueType + ? _value.defaultValueType + : defaultValueType // ignore: cast_nullable_to_non_nullable + as String?, )); } } /// @nodoc @JsonSerializable() -class _$SourcePreferenceImpl implements _SourcePreference { - _$SourcePreferenceImpl( - {this.type, - @JsonKey(readValue: SourcePreference.propsFromJson, name: 'props') - this.sourcePreferenceProp}); +class _$SwitchPreferenceCompatImpl implements SwitchPreferenceCompat { + const _$SwitchPreferenceCompatImpl( + {this.key, + this.title, + this.summary, + this.defaultValue, + this.currentValue, + this.defaultValueType, + final String? $type}) + : $type = $type ?? 'SwitchPreferenceCompat'; - factory _$SourcePreferenceImpl.fromJson(Map json) => - _$$SourcePreferenceImplFromJson(json); + factory _$SwitchPreferenceCompatImpl.fromJson(Map json) => + _$$SwitchPreferenceCompatImplFromJson(json); @override - final String? type; + final String? key; + @override + final String? title; @override - @JsonKey(readValue: SourcePreference.propsFromJson, name: 'props') - final SourcePreferenceProp? sourcePreferenceProp; + final String? summary; + @override + final bool? defaultValue; + @override + final bool? currentValue; + @override + final String? defaultValueType; + + @JsonKey(name: 'type') + final String $type; @override String toString() { - return 'SourcePreference(type: $type, sourcePreferenceProp: $sourcePreferenceProp)'; + return 'SourcePreference.switchPreferenceCompat(key: $key, title: $title, summary: $summary, defaultValue: $defaultValue, currentValue: $currentValue, defaultValueType: $defaultValueType)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$SourcePreferenceImpl && - (identical(other.type, type) || other.type == type) && - (identical(other.sourcePreferenceProp, sourcePreferenceProp) || - other.sourcePreferenceProp == sourcePreferenceProp)); + other is _$SwitchPreferenceCompatImpl && + (identical(other.key, key) || other.key == key) && + (identical(other.title, title) || other.title == title) && + (identical(other.summary, summary) || other.summary == summary) && + (identical(other.defaultValue, defaultValue) || + other.defaultValue == defaultValue) && + (identical(other.currentValue, currentValue) || + other.currentValue == currentValue) && + (identical(other.defaultValueType, defaultValueType) || + other.defaultValueType == defaultValueType)); } @JsonKey(ignore: true) @override - int get hashCode => Object.hash(runtimeType, type, sourcePreferenceProp); + int get hashCode => Object.hash(runtimeType, key, title, summary, + defaultValue, currentValue, defaultValueType); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$SourcePreferenceImplCopyWith<_$SourcePreferenceImpl> get copyWith => - __$$SourcePreferenceImplCopyWithImpl<_$SourcePreferenceImpl>( - this, _$identity); + _$$SwitchPreferenceCompatImplCopyWith<_$SwitchPreferenceCompatImpl> + get copyWith => __$$SwitchPreferenceCompatImplCopyWithImpl< + _$SwitchPreferenceCompatImpl>(this, _$identity); + + @override + @optionalTypeArgs + TResult when({ + required TResult Function(String? key, dynamic currentValue) fallback, + required TResult Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType) + checkBoxPreference, + required TResult Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType) + switchPreferenceCompat, + required TResult Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + Map? entries) + listPreference, + required TResult Function( + String? key, + String? title, + String? summary, + List? defaultValue, + List? currentValue, + String? defaultValueType, + Map? entries) + multiSelectListPreference, + required TResult Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + String? dialogTitle, + String? dialogMessage, + String? text) + editTextPreference, + }) { + return switchPreferenceCompat( + key, title, summary, defaultValue, currentValue, defaultValueType); + } + + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(String? key, dynamic currentValue)? fallback, + TResult? Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType)? + checkBoxPreference, + TResult? Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType)? + switchPreferenceCompat, + TResult? Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + Map? entries)? + listPreference, + TResult? Function( + String? key, + String? title, + String? summary, + List? defaultValue, + List? currentValue, + String? defaultValueType, + Map? entries)? + multiSelectListPreference, + TResult? Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + String? dialogTitle, + String? dialogMessage, + String? text)? + editTextPreference, + }) { + return switchPreferenceCompat?.call( + key, title, summary, defaultValue, currentValue, defaultValueType); + } + + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(String? key, dynamic currentValue)? fallback, + TResult Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType)? + checkBoxPreference, + TResult Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType)? + switchPreferenceCompat, + TResult Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + Map? entries)? + listPreference, + TResult Function( + String? key, + String? title, + String? summary, + List? defaultValue, + List? currentValue, + String? defaultValueType, + Map? entries)? + multiSelectListPreference, + TResult Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + String? dialogTitle, + String? dialogMessage, + String? text)? + editTextPreference, + required TResult orElse(), + }) { + if (switchPreferenceCompat != null) { + return switchPreferenceCompat( + key, title, summary, defaultValue, currentValue, defaultValueType); + } + return orElse(); + } + + @override + @optionalTypeArgs + TResult map({ + required TResult Function(Fallback value) fallback, + required TResult Function(CheckBoxPreference value) checkBoxPreference, + required TResult Function(SwitchPreferenceCompat value) + switchPreferenceCompat, + required TResult Function(ListPreference value) listPreference, + required TResult Function(MultiSelectListPreference value) + multiSelectListPreference, + required TResult Function(EditTextPreference value) editTextPreference, + }) { + return switchPreferenceCompat(this); + } + + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(Fallback value)? fallback, + TResult? Function(CheckBoxPreference value)? checkBoxPreference, + TResult? Function(SwitchPreferenceCompat value)? switchPreferenceCompat, + TResult? Function(ListPreference value)? listPreference, + TResult? Function(MultiSelectListPreference value)? + multiSelectListPreference, + TResult? Function(EditTextPreference value)? editTextPreference, + }) { + return switchPreferenceCompat?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(Fallback value)? fallback, + TResult Function(CheckBoxPreference value)? checkBoxPreference, + TResult Function(SwitchPreferenceCompat value)? switchPreferenceCompat, + TResult Function(ListPreference value)? listPreference, + TResult Function(MultiSelectListPreference value)? + multiSelectListPreference, + TResult Function(EditTextPreference value)? editTextPreference, + required TResult orElse(), + }) { + if (switchPreferenceCompat != null) { + return switchPreferenceCompat(this); + } + return orElse(); + } + + @override + Map toJson() { + return _$$SwitchPreferenceCompatImplToJson( + this, + ); + } +} + +abstract class SwitchPreferenceCompat implements SourcePreference { + const factory SwitchPreferenceCompat( + {final String? key, + final String? title, + final String? summary, + final bool? defaultValue, + final bool? currentValue, + final String? defaultValueType}) = _$SwitchPreferenceCompatImpl; + + factory SwitchPreferenceCompat.fromJson(Map json) = + _$SwitchPreferenceCompatImpl.fromJson; + + @override + String? get key; + String? get title; + String? get summary; + bool? get defaultValue; + @override + bool? get currentValue; + String? get defaultValueType; + @override + @JsonKey(ignore: true) + _$$SwitchPreferenceCompatImplCopyWith<_$SwitchPreferenceCompatImpl> + get copyWith => throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class _$$ListPreferenceImplCopyWith<$Res> + implements $SourcePreferenceCopyWith<$Res> { + factory _$$ListPreferenceImplCopyWith(_$ListPreferenceImpl value, + $Res Function(_$ListPreferenceImpl) then) = + __$$ListPreferenceImplCopyWithImpl<$Res>; + @override + @useResult + $Res call( + {String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + Map? entries}); +} + +/// @nodoc +class __$$ListPreferenceImplCopyWithImpl<$Res> + extends _$SourcePreferenceCopyWithImpl<$Res, _$ListPreferenceImpl> + implements _$$ListPreferenceImplCopyWith<$Res> { + __$$ListPreferenceImplCopyWithImpl( + _$ListPreferenceImpl _value, $Res Function(_$ListPreferenceImpl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? key = freezed, + Object? title = freezed, + Object? summary = freezed, + Object? defaultValue = freezed, + Object? currentValue = freezed, + Object? defaultValueType = freezed, + Object? entries = freezed, + }) { + return _then(_$ListPreferenceImpl( + key: freezed == key + ? _value.key + : key // ignore: cast_nullable_to_non_nullable + as String?, + title: freezed == title + ? _value.title + : title // ignore: cast_nullable_to_non_nullable + as String?, + summary: freezed == summary + ? _value.summary + : summary // ignore: cast_nullable_to_non_nullable + as String?, + defaultValue: freezed == defaultValue + ? _value.defaultValue + : defaultValue // ignore: cast_nullable_to_non_nullable + as String?, + currentValue: freezed == currentValue + ? _value.currentValue + : currentValue // ignore: cast_nullable_to_non_nullable + as String?, + defaultValueType: freezed == defaultValueType + ? _value.defaultValueType + : defaultValueType // ignore: cast_nullable_to_non_nullable + as String?, + entries: freezed == entries + ? _value._entries + : entries // ignore: cast_nullable_to_non_nullable + as Map?, + )); + } +} + +/// @nodoc +@JsonSerializable() +class _$ListPreferenceImpl implements ListPreference { + const _$ListPreferenceImpl( + {this.key, + this.title, + this.summary, + this.defaultValue, + this.currentValue, + this.defaultValueType, + final Map? entries, + final String? $type}) + : _entries = entries, + $type = $type ?? 'ListPreference'; + + factory _$ListPreferenceImpl.fromJson(Map json) => + _$$ListPreferenceImplFromJson(json); + + @override + final String? key; + @override + final String? title; + @override + final String? summary; + @override + final String? defaultValue; + @override + final String? currentValue; + @override + final String? defaultValueType; + final Map? _entries; + @override + Map? get entries { + final value = _entries; + if (value == null) return null; + if (_entries is EqualUnmodifiableMapView) return _entries; + // ignore: implicit_dynamic_type + return EqualUnmodifiableMapView(value); + } + + @JsonKey(name: 'type') + final String $type; + + @override + String toString() { + return 'SourcePreference.listPreference(key: $key, title: $title, summary: $summary, defaultValue: $defaultValue, currentValue: $currentValue, defaultValueType: $defaultValueType, entries: $entries)'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$ListPreferenceImpl && + (identical(other.key, key) || other.key == key) && + (identical(other.title, title) || other.title == title) && + (identical(other.summary, summary) || other.summary == summary) && + (identical(other.defaultValue, defaultValue) || + other.defaultValue == defaultValue) && + (identical(other.currentValue, currentValue) || + other.currentValue == currentValue) && + (identical(other.defaultValueType, defaultValueType) || + other.defaultValueType == defaultValueType) && + const DeepCollectionEquality().equals(other._entries, _entries)); + } + + @JsonKey(ignore: true) + @override + int get hashCode => Object.hash( + runtimeType, + key, + title, + summary, + defaultValue, + currentValue, + defaultValueType, + const DeepCollectionEquality().hash(_entries)); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$ListPreferenceImplCopyWith<_$ListPreferenceImpl> get copyWith => + __$$ListPreferenceImplCopyWithImpl<_$ListPreferenceImpl>( + this, _$identity); + + @override + @optionalTypeArgs + TResult when({ + required TResult Function(String? key, dynamic currentValue) fallback, + required TResult Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType) + checkBoxPreference, + required TResult Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType) + switchPreferenceCompat, + required TResult Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + Map? entries) + listPreference, + required TResult Function( + String? key, + String? title, + String? summary, + List? defaultValue, + List? currentValue, + String? defaultValueType, + Map? entries) + multiSelectListPreference, + required TResult Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + String? dialogTitle, + String? dialogMessage, + String? text) + editTextPreference, + }) { + return listPreference(key, title, summary, defaultValue, currentValue, + defaultValueType, entries); + } + + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(String? key, dynamic currentValue)? fallback, + TResult? Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType)? + checkBoxPreference, + TResult? Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType)? + switchPreferenceCompat, + TResult? Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + Map? entries)? + listPreference, + TResult? Function( + String? key, + String? title, + String? summary, + List? defaultValue, + List? currentValue, + String? defaultValueType, + Map? entries)? + multiSelectListPreference, + TResult? Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + String? dialogTitle, + String? dialogMessage, + String? text)? + editTextPreference, + }) { + return listPreference?.call(key, title, summary, defaultValue, currentValue, + defaultValueType, entries); + } + + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(String? key, dynamic currentValue)? fallback, + TResult Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType)? + checkBoxPreference, + TResult Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType)? + switchPreferenceCompat, + TResult Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + Map? entries)? + listPreference, + TResult Function( + String? key, + String? title, + String? summary, + List? defaultValue, + List? currentValue, + String? defaultValueType, + Map? entries)? + multiSelectListPreference, + TResult Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + String? dialogTitle, + String? dialogMessage, + String? text)? + editTextPreference, + required TResult orElse(), + }) { + if (listPreference != null) { + return listPreference(key, title, summary, defaultValue, currentValue, + defaultValueType, entries); + } + return orElse(); + } + + @override + @optionalTypeArgs + TResult map({ + required TResult Function(Fallback value) fallback, + required TResult Function(CheckBoxPreference value) checkBoxPreference, + required TResult Function(SwitchPreferenceCompat value) + switchPreferenceCompat, + required TResult Function(ListPreference value) listPreference, + required TResult Function(MultiSelectListPreference value) + multiSelectListPreference, + required TResult Function(EditTextPreference value) editTextPreference, + }) { + return listPreference(this); + } + + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(Fallback value)? fallback, + TResult? Function(CheckBoxPreference value)? checkBoxPreference, + TResult? Function(SwitchPreferenceCompat value)? switchPreferenceCompat, + TResult? Function(ListPreference value)? listPreference, + TResult? Function(MultiSelectListPreference value)? + multiSelectListPreference, + TResult? Function(EditTextPreference value)? editTextPreference, + }) { + return listPreference?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(Fallback value)? fallback, + TResult Function(CheckBoxPreference value)? checkBoxPreference, + TResult Function(SwitchPreferenceCompat value)? switchPreferenceCompat, + TResult Function(ListPreference value)? listPreference, + TResult Function(MultiSelectListPreference value)? + multiSelectListPreference, + TResult Function(EditTextPreference value)? editTextPreference, + required TResult orElse(), + }) { + if (listPreference != null) { + return listPreference(this); + } + return orElse(); + } + + @override + Map toJson() { + return _$$ListPreferenceImplToJson( + this, + ); + } +} + +abstract class ListPreference implements SourcePreference { + const factory ListPreference( + {final String? key, + final String? title, + final String? summary, + final String? defaultValue, + final String? currentValue, + final String? defaultValueType, + final Map? entries}) = _$ListPreferenceImpl; + + factory ListPreference.fromJson(Map json) = + _$ListPreferenceImpl.fromJson; + + @override + String? get key; + String? get title; + String? get summary; + String? get defaultValue; + @override + String? get currentValue; + String? get defaultValueType; + Map? get entries; + @override + @JsonKey(ignore: true) + _$$ListPreferenceImplCopyWith<_$ListPreferenceImpl> get copyWith => + throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class _$$MultiSelectListPreferenceImplCopyWith<$Res> + implements $SourcePreferenceCopyWith<$Res> { + factory _$$MultiSelectListPreferenceImplCopyWith( + _$MultiSelectListPreferenceImpl value, + $Res Function(_$MultiSelectListPreferenceImpl) then) = + __$$MultiSelectListPreferenceImplCopyWithImpl<$Res>; + @override + @useResult + $Res call( + {String? key, + String? title, + String? summary, + List? defaultValue, + List? currentValue, + String? defaultValueType, + Map? entries}); +} + +/// @nodoc +class __$$MultiSelectListPreferenceImplCopyWithImpl<$Res> + extends _$SourcePreferenceCopyWithImpl<$Res, + _$MultiSelectListPreferenceImpl> + implements _$$MultiSelectListPreferenceImplCopyWith<$Res> { + __$$MultiSelectListPreferenceImplCopyWithImpl( + _$MultiSelectListPreferenceImpl _value, + $Res Function(_$MultiSelectListPreferenceImpl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? key = freezed, + Object? title = freezed, + Object? summary = freezed, + Object? defaultValue = freezed, + Object? currentValue = freezed, + Object? defaultValueType = freezed, + Object? entries = freezed, + }) { + return _then(_$MultiSelectListPreferenceImpl( + key: freezed == key + ? _value.key + : key // ignore: cast_nullable_to_non_nullable + as String?, + title: freezed == title + ? _value.title + : title // ignore: cast_nullable_to_non_nullable + as String?, + summary: freezed == summary + ? _value.summary + : summary // ignore: cast_nullable_to_non_nullable + as String?, + defaultValue: freezed == defaultValue + ? _value._defaultValue + : defaultValue // ignore: cast_nullable_to_non_nullable + as List?, + currentValue: freezed == currentValue + ? _value._currentValue + : currentValue // ignore: cast_nullable_to_non_nullable + as List?, + defaultValueType: freezed == defaultValueType + ? _value.defaultValueType + : defaultValueType // ignore: cast_nullable_to_non_nullable + as String?, + entries: freezed == entries + ? _value._entries + : entries // ignore: cast_nullable_to_non_nullable + as Map?, + )); + } +} + +/// @nodoc +@JsonSerializable() +class _$MultiSelectListPreferenceImpl implements MultiSelectListPreference { + const _$MultiSelectListPreferenceImpl( + {this.key, + this.title, + this.summary, + final List? defaultValue, + final List? currentValue, + this.defaultValueType, + final Map? entries, + final String? $type}) + : _defaultValue = defaultValue, + _currentValue = currentValue, + _entries = entries, + $type = $type ?? 'MultiSelectListPreference'; + + factory _$MultiSelectListPreferenceImpl.fromJson(Map json) => + _$$MultiSelectListPreferenceImplFromJson(json); + + @override + final String? key; + @override + final String? title; + @override + final String? summary; + final List? _defaultValue; + @override + List? get defaultValue { + final value = _defaultValue; + if (value == null) return null; + if (_defaultValue is EqualUnmodifiableListView) return _defaultValue; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); + } + + final List? _currentValue; + @override + List? get currentValue { + final value = _currentValue; + if (value == null) return null; + if (_currentValue is EqualUnmodifiableListView) return _currentValue; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); + } + + @override + final String? defaultValueType; + final Map? _entries; + @override + Map? get entries { + final value = _entries; + if (value == null) return null; + if (_entries is EqualUnmodifiableMapView) return _entries; + // ignore: implicit_dynamic_type + return EqualUnmodifiableMapView(value); + } + + @JsonKey(name: 'type') + final String $type; + + @override + String toString() { + return 'SourcePreference.multiSelectListPreference(key: $key, title: $title, summary: $summary, defaultValue: $defaultValue, currentValue: $currentValue, defaultValueType: $defaultValueType, entries: $entries)'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$MultiSelectListPreferenceImpl && + (identical(other.key, key) || other.key == key) && + (identical(other.title, title) || other.title == title) && + (identical(other.summary, summary) || other.summary == summary) && + const DeepCollectionEquality() + .equals(other._defaultValue, _defaultValue) && + const DeepCollectionEquality() + .equals(other._currentValue, _currentValue) && + (identical(other.defaultValueType, defaultValueType) || + other.defaultValueType == defaultValueType) && + const DeepCollectionEquality().equals(other._entries, _entries)); + } + + @JsonKey(ignore: true) + @override + int get hashCode => Object.hash( + runtimeType, + key, + title, + summary, + const DeepCollectionEquality().hash(_defaultValue), + const DeepCollectionEquality().hash(_currentValue), + defaultValueType, + const DeepCollectionEquality().hash(_entries)); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$MultiSelectListPreferenceImplCopyWith<_$MultiSelectListPreferenceImpl> + get copyWith => __$$MultiSelectListPreferenceImplCopyWithImpl< + _$MultiSelectListPreferenceImpl>(this, _$identity); + + @override + @optionalTypeArgs + TResult when({ + required TResult Function(String? key, dynamic currentValue) fallback, + required TResult Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType) + checkBoxPreference, + required TResult Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType) + switchPreferenceCompat, + required TResult Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + Map? entries) + listPreference, + required TResult Function( + String? key, + String? title, + String? summary, + List? defaultValue, + List? currentValue, + String? defaultValueType, + Map? entries) + multiSelectListPreference, + required TResult Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + String? dialogTitle, + String? dialogMessage, + String? text) + editTextPreference, + }) { + return multiSelectListPreference(key, title, summary, defaultValue, + currentValue, defaultValueType, entries); + } + + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(String? key, dynamic currentValue)? fallback, + TResult? Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType)? + checkBoxPreference, + TResult? Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType)? + switchPreferenceCompat, + TResult? Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + Map? entries)? + listPreference, + TResult? Function( + String? key, + String? title, + String? summary, + List? defaultValue, + List? currentValue, + String? defaultValueType, + Map? entries)? + multiSelectListPreference, + TResult? Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + String? dialogTitle, + String? dialogMessage, + String? text)? + editTextPreference, + }) { + return multiSelectListPreference?.call(key, title, summary, defaultValue, + currentValue, defaultValueType, entries); + } + + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(String? key, dynamic currentValue)? fallback, + TResult Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType)? + checkBoxPreference, + TResult Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType)? + switchPreferenceCompat, + TResult Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + Map? entries)? + listPreference, + TResult Function( + String? key, + String? title, + String? summary, + List? defaultValue, + List? currentValue, + String? defaultValueType, + Map? entries)? + multiSelectListPreference, + TResult Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + String? dialogTitle, + String? dialogMessage, + String? text)? + editTextPreference, + required TResult orElse(), + }) { + if (multiSelectListPreference != null) { + return multiSelectListPreference(key, title, summary, defaultValue, + currentValue, defaultValueType, entries); + } + return orElse(); + } + + @override + @optionalTypeArgs + TResult map({ + required TResult Function(Fallback value) fallback, + required TResult Function(CheckBoxPreference value) checkBoxPreference, + required TResult Function(SwitchPreferenceCompat value) + switchPreferenceCompat, + required TResult Function(ListPreference value) listPreference, + required TResult Function(MultiSelectListPreference value) + multiSelectListPreference, + required TResult Function(EditTextPreference value) editTextPreference, + }) { + return multiSelectListPreference(this); + } + + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(Fallback value)? fallback, + TResult? Function(CheckBoxPreference value)? checkBoxPreference, + TResult? Function(SwitchPreferenceCompat value)? switchPreferenceCompat, + TResult? Function(ListPreference value)? listPreference, + TResult? Function(MultiSelectListPreference value)? + multiSelectListPreference, + TResult? Function(EditTextPreference value)? editTextPreference, + }) { + return multiSelectListPreference?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(Fallback value)? fallback, + TResult Function(CheckBoxPreference value)? checkBoxPreference, + TResult Function(SwitchPreferenceCompat value)? switchPreferenceCompat, + TResult Function(ListPreference value)? listPreference, + TResult Function(MultiSelectListPreference value)? + multiSelectListPreference, + TResult Function(EditTextPreference value)? editTextPreference, + required TResult orElse(), + }) { + if (multiSelectListPreference != null) { + return multiSelectListPreference(this); + } + return orElse(); + } + + @override + Map toJson() { + return _$$MultiSelectListPreferenceImplToJson( + this, + ); + } +} + +abstract class MultiSelectListPreference implements SourcePreference { + const factory MultiSelectListPreference( + {final String? key, + final String? title, + final String? summary, + final List? defaultValue, + final List? currentValue, + final String? defaultValueType, + final Map? entries}) = _$MultiSelectListPreferenceImpl; + + factory MultiSelectListPreference.fromJson(Map json) = + _$MultiSelectListPreferenceImpl.fromJson; + + @override + String? get key; + String? get title; + String? get summary; + List? get defaultValue; + @override + List? get currentValue; + String? get defaultValueType; + Map? get entries; + @override + @JsonKey(ignore: true) + _$$MultiSelectListPreferenceImplCopyWith<_$MultiSelectListPreferenceImpl> + get copyWith => throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class _$$EditTextPreferenceImplCopyWith<$Res> + implements $SourcePreferenceCopyWith<$Res> { + factory _$$EditTextPreferenceImplCopyWith(_$EditTextPreferenceImpl value, + $Res Function(_$EditTextPreferenceImpl) then) = + __$$EditTextPreferenceImplCopyWithImpl<$Res>; + @override + @useResult + $Res call( + {String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + String? dialogTitle, + String? dialogMessage, + String? text}); +} + +/// @nodoc +class __$$EditTextPreferenceImplCopyWithImpl<$Res> + extends _$SourcePreferenceCopyWithImpl<$Res, _$EditTextPreferenceImpl> + implements _$$EditTextPreferenceImplCopyWith<$Res> { + __$$EditTextPreferenceImplCopyWithImpl(_$EditTextPreferenceImpl _value, + $Res Function(_$EditTextPreferenceImpl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? key = freezed, + Object? title = freezed, + Object? summary = freezed, + Object? defaultValue = freezed, + Object? currentValue = freezed, + Object? defaultValueType = freezed, + Object? dialogTitle = freezed, + Object? dialogMessage = freezed, + Object? text = freezed, + }) { + return _then(_$EditTextPreferenceImpl( + key: freezed == key + ? _value.key + : key // ignore: cast_nullable_to_non_nullable + as String?, + title: freezed == title + ? _value.title + : title // ignore: cast_nullable_to_non_nullable + as String?, + summary: freezed == summary + ? _value.summary + : summary // ignore: cast_nullable_to_non_nullable + as String?, + defaultValue: freezed == defaultValue + ? _value.defaultValue + : defaultValue // ignore: cast_nullable_to_non_nullable + as String?, + currentValue: freezed == currentValue + ? _value.currentValue + : currentValue // ignore: cast_nullable_to_non_nullable + as String?, + defaultValueType: freezed == defaultValueType + ? _value.defaultValueType + : defaultValueType // ignore: cast_nullable_to_non_nullable + as String?, + dialogTitle: freezed == dialogTitle + ? _value.dialogTitle + : dialogTitle // ignore: cast_nullable_to_non_nullable + as String?, + dialogMessage: freezed == dialogMessage + ? _value.dialogMessage + : dialogMessage // ignore: cast_nullable_to_non_nullable + as String?, + text: freezed == text + ? _value.text + : text // ignore: cast_nullable_to_non_nullable + as String?, + )); + } +} + +/// @nodoc +@JsonSerializable() +class _$EditTextPreferenceImpl implements EditTextPreference { + const _$EditTextPreferenceImpl( + {this.key, + this.title, + this.summary, + this.defaultValue, + this.currentValue, + this.defaultValueType, + this.dialogTitle, + this.dialogMessage, + this.text, + final String? $type}) + : $type = $type ?? 'EditTextPreference'; + + factory _$EditTextPreferenceImpl.fromJson(Map json) => + _$$EditTextPreferenceImplFromJson(json); + + @override + final String? key; + @override + final String? title; + @override + final String? summary; + @override + final String? defaultValue; + @override + final String? currentValue; + @override + final String? defaultValueType; + @override + final String? dialogTitle; + @override + final String? dialogMessage; + @override + final String? text; + + @JsonKey(name: 'type') + final String $type; + + @override + String toString() { + return 'SourcePreference.editTextPreference(key: $key, title: $title, summary: $summary, defaultValue: $defaultValue, currentValue: $currentValue, defaultValueType: $defaultValueType, dialogTitle: $dialogTitle, dialogMessage: $dialogMessage, text: $text)'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$EditTextPreferenceImpl && + (identical(other.key, key) || other.key == key) && + (identical(other.title, title) || other.title == title) && + (identical(other.summary, summary) || other.summary == summary) && + (identical(other.defaultValue, defaultValue) || + other.defaultValue == defaultValue) && + (identical(other.currentValue, currentValue) || + other.currentValue == currentValue) && + (identical(other.defaultValueType, defaultValueType) || + other.defaultValueType == defaultValueType) && + (identical(other.dialogTitle, dialogTitle) || + other.dialogTitle == dialogTitle) && + (identical(other.dialogMessage, dialogMessage) || + other.dialogMessage == dialogMessage) && + (identical(other.text, text) || other.text == text)); + } + + @JsonKey(ignore: true) + @override + int get hashCode => Object.hash( + runtimeType, + key, + title, + summary, + defaultValue, + currentValue, + defaultValueType, + dialogTitle, + dialogMessage, + text); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$EditTextPreferenceImplCopyWith<_$EditTextPreferenceImpl> get copyWith => + __$$EditTextPreferenceImplCopyWithImpl<_$EditTextPreferenceImpl>( + this, _$identity); + + @override + @optionalTypeArgs + TResult when({ + required TResult Function(String? key, dynamic currentValue) fallback, + required TResult Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType) + checkBoxPreference, + required TResult Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType) + switchPreferenceCompat, + required TResult Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + Map? entries) + listPreference, + required TResult Function( + String? key, + String? title, + String? summary, + List? defaultValue, + List? currentValue, + String? defaultValueType, + Map? entries) + multiSelectListPreference, + required TResult Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + String? dialogTitle, + String? dialogMessage, + String? text) + editTextPreference, + }) { + return editTextPreference(key, title, summary, defaultValue, currentValue, + defaultValueType, dialogTitle, dialogMessage, text); + } + + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(String? key, dynamic currentValue)? fallback, + TResult? Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType)? + checkBoxPreference, + TResult? Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType)? + switchPreferenceCompat, + TResult? Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + Map? entries)? + listPreference, + TResult? Function( + String? key, + String? title, + String? summary, + List? defaultValue, + List? currentValue, + String? defaultValueType, + Map? entries)? + multiSelectListPreference, + TResult? Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + String? dialogTitle, + String? dialogMessage, + String? text)? + editTextPreference, + }) { + return editTextPreference?.call(key, title, summary, defaultValue, + currentValue, defaultValueType, dialogTitle, dialogMessage, text); + } + + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(String? key, dynamic currentValue)? fallback, + TResult Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType)? + checkBoxPreference, + TResult Function(String? key, String? title, String? summary, + bool? defaultValue, bool? currentValue, String? defaultValueType)? + switchPreferenceCompat, + TResult Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + Map? entries)? + listPreference, + TResult Function( + String? key, + String? title, + String? summary, + List? defaultValue, + List? currentValue, + String? defaultValueType, + Map? entries)? + multiSelectListPreference, + TResult Function( + String? key, + String? title, + String? summary, + String? defaultValue, + String? currentValue, + String? defaultValueType, + String? dialogTitle, + String? dialogMessage, + String? text)? + editTextPreference, + required TResult orElse(), + }) { + if (editTextPreference != null) { + return editTextPreference(key, title, summary, defaultValue, currentValue, + defaultValueType, dialogTitle, dialogMessage, text); + } + return orElse(); + } + + @override + @optionalTypeArgs + TResult map({ + required TResult Function(Fallback value) fallback, + required TResult Function(CheckBoxPreference value) checkBoxPreference, + required TResult Function(SwitchPreferenceCompat value) + switchPreferenceCompat, + required TResult Function(ListPreference value) listPreference, + required TResult Function(MultiSelectListPreference value) + multiSelectListPreference, + required TResult Function(EditTextPreference value) editTextPreference, + }) { + return editTextPreference(this); + } + + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(Fallback value)? fallback, + TResult? Function(CheckBoxPreference value)? checkBoxPreference, + TResult? Function(SwitchPreferenceCompat value)? switchPreferenceCompat, + TResult? Function(ListPreference value)? listPreference, + TResult? Function(MultiSelectListPreference value)? + multiSelectListPreference, + TResult? Function(EditTextPreference value)? editTextPreference, + }) { + return editTextPreference?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(Fallback value)? fallback, + TResult Function(CheckBoxPreference value)? checkBoxPreference, + TResult Function(SwitchPreferenceCompat value)? switchPreferenceCompat, + TResult Function(ListPreference value)? listPreference, + TResult Function(MultiSelectListPreference value)? + multiSelectListPreference, + TResult Function(EditTextPreference value)? editTextPreference, + required TResult orElse(), + }) { + if (editTextPreference != null) { + return editTextPreference(this); + } + return orElse(); + } @override Map toJson() { - return _$$SourcePreferenceImplToJson( + return _$$EditTextPreferenceImplToJson( this, ); } } -abstract class _SourcePreference implements SourcePreference { - factory _SourcePreference( - {final String? type, - @JsonKey(readValue: SourcePreference.propsFromJson, name: 'props') - final SourcePreferenceProp? sourcePreferenceProp}) = - _$SourcePreferenceImpl; +abstract class EditTextPreference implements SourcePreference { + const factory EditTextPreference( + {final String? key, + final String? title, + final String? summary, + final String? defaultValue, + final String? currentValue, + final String? defaultValueType, + final String? dialogTitle, + final String? dialogMessage, + final String? text}) = _$EditTextPreferenceImpl; - factory _SourcePreference.fromJson(Map json) = - _$SourcePreferenceImpl.fromJson; + factory EditTextPreference.fromJson(Map json) = + _$EditTextPreferenceImpl.fromJson; @override - String? get type; + String? get key; + String? get title; + String? get summary; + String? get defaultValue; @override - @JsonKey(readValue: SourcePreference.propsFromJson, name: 'props') - SourcePreferenceProp? get sourcePreferenceProp; + String? get currentValue; + String? get defaultValueType; + String? get dialogTitle; + String? get dialogMessage; + String? get text; @override @JsonKey(ignore: true) - _$$SourcePreferenceImplCopyWith<_$SourcePreferenceImpl> get copyWith => + _$$EditTextPreferenceImplCopyWith<_$EditTextPreferenceImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/src/features/browse_center/domain/source_preference/source_preference.g.dart b/lib/src/features/browse_center/domain/source_preference/source_preference.g.dart index 1428f386..c568fb95 100644 --- a/lib/src/features/browse_center/domain/source_preference/source_preference.g.dart +++ b/lib/src/features/browse_center/domain/source_preference/source_preference.g.dart @@ -6,21 +6,153 @@ part of 'source_preference.dart'; // JsonSerializableGenerator // ************************************************************************** -_$SourcePreferenceImpl _$$SourcePreferenceImplFromJson( +_$FallbackImpl _$$FallbackImplFromJson(Map json) => + _$FallbackImpl( + key: json['key'] as String?, + currentValue: json['currentValue'], + $type: json['type'] as String?, + ); + +Map _$$FallbackImplToJson(_$FallbackImpl instance) => + { + 'key': instance.key, + 'currentValue': instance.currentValue, + 'type': instance.$type, + }; + +_$CheckBoxPreferenceImpl _$$CheckBoxPreferenceImplFromJson( + Map json) => + _$CheckBoxPreferenceImpl( + key: json['key'] as String?, + title: json['title'] as String?, + summary: json['summary'] as String?, + defaultValue: json['defaultValue'] as bool?, + currentValue: json['currentValue'] as bool?, + defaultValueType: json['defaultValueType'] as String?, + $type: json['type'] as String?, + ); + +Map _$$CheckBoxPreferenceImplToJson( + _$CheckBoxPreferenceImpl instance) => + { + 'key': instance.key, + 'title': instance.title, + 'summary': instance.summary, + 'defaultValue': instance.defaultValue, + 'currentValue': instance.currentValue, + 'defaultValueType': instance.defaultValueType, + 'type': instance.$type, + }; + +_$SwitchPreferenceCompatImpl _$$SwitchPreferenceCompatImplFromJson( + Map json) => + _$SwitchPreferenceCompatImpl( + key: json['key'] as String?, + title: json['title'] as String?, + summary: json['summary'] as String?, + defaultValue: json['defaultValue'] as bool?, + currentValue: json['currentValue'] as bool?, + defaultValueType: json['defaultValueType'] as String?, + $type: json['type'] as String?, + ); + +Map _$$SwitchPreferenceCompatImplToJson( + _$SwitchPreferenceCompatImpl instance) => + { + 'key': instance.key, + 'title': instance.title, + 'summary': instance.summary, + 'defaultValue': instance.defaultValue, + 'currentValue': instance.currentValue, + 'defaultValueType': instance.defaultValueType, + 'type': instance.$type, + }; + +_$ListPreferenceImpl _$$ListPreferenceImplFromJson(Map json) => + _$ListPreferenceImpl( + key: json['key'] as String?, + title: json['title'] as String?, + summary: json['summary'] as String?, + defaultValue: json['defaultValue'] as String?, + currentValue: json['currentValue'] as String?, + defaultValueType: json['defaultValueType'] as String?, + entries: (json['entries'] as Map?)?.map( + (k, e) => MapEntry(k, e as String), + ), + $type: json['type'] as String?, + ); + +Map _$$ListPreferenceImplToJson( + _$ListPreferenceImpl instance) => + { + 'key': instance.key, + 'title': instance.title, + 'summary': instance.summary, + 'defaultValue': instance.defaultValue, + 'currentValue': instance.currentValue, + 'defaultValueType': instance.defaultValueType, + 'entries': instance.entries, + 'type': instance.$type, + }; + +_$MultiSelectListPreferenceImpl _$$MultiSelectListPreferenceImplFromJson( + Map json) => + _$MultiSelectListPreferenceImpl( + key: json['key'] as String?, + title: json['title'] as String?, + summary: json['summary'] as String?, + defaultValue: (json['defaultValue'] as List?) + ?.map((e) => e as String) + .toList(), + currentValue: (json['currentValue'] as List?) + ?.map((e) => e as String) + .toList(), + defaultValueType: json['defaultValueType'] as String?, + entries: (json['entries'] as Map?)?.map( + (k, e) => MapEntry(k, e as String), + ), + $type: json['type'] as String?, + ); + +Map _$$MultiSelectListPreferenceImplToJson( + _$MultiSelectListPreferenceImpl instance) => + { + 'key': instance.key, + 'title': instance.title, + 'summary': instance.summary, + 'defaultValue': instance.defaultValue, + 'currentValue': instance.currentValue, + 'defaultValueType': instance.defaultValueType, + 'entries': instance.entries, + 'type': instance.$type, + }; + +_$EditTextPreferenceImpl _$$EditTextPreferenceImplFromJson( Map json) => - _$SourcePreferenceImpl( - type: json['type'] as String?, - sourcePreferenceProp: - SourcePreference.propsFromJson(json, 'props') == null - ? null - : SourcePreferenceProp.fromJson( - SourcePreference.propsFromJson(json, 'props') - as Map), + _$EditTextPreferenceImpl( + key: json['key'] as String?, + title: json['title'] as String?, + summary: json['summary'] as String?, + defaultValue: json['defaultValue'] as String?, + currentValue: json['currentValue'] as String?, + defaultValueType: json['defaultValueType'] as String?, + dialogTitle: json['dialogTitle'] as String?, + dialogMessage: json['dialogMessage'] as String?, + text: json['text'] as String?, + $type: json['type'] as String?, ); -Map _$$SourcePreferenceImplToJson( - _$SourcePreferenceImpl instance) => +Map _$$EditTextPreferenceImplToJson( + _$EditTextPreferenceImpl instance) => { - 'type': instance.type, - 'props': instance.sourcePreferenceProp?.toJson(), + 'key': instance.key, + 'title': instance.title, + 'summary': instance.summary, + 'defaultValue': instance.defaultValue, + 'currentValue': instance.currentValue, + 'defaultValueType': instance.defaultValueType, + 'dialogTitle': instance.dialogTitle, + 'dialogMessage': instance.dialogMessage, + 'text': instance.text, + 'type': instance.$type, }; diff --git a/lib/src/features/browse_center/domain/source_preference_prop/source_preference_prop.dart b/lib/src/features/browse_center/domain/source_preference_prop/source_preference_prop.dart deleted file mode 100644 index 24094424..00000000 --- a/lib/src/features/browse_center/domain/source_preference_prop/source_preference_prop.dart +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) 2023 Contributors to the Suwayomi project -// -// This Source Code Form is subject to the terms of the Mozilla Public -// License, v. 2.0. If a copy of the MPL was not distributed with this -// file, You can obtain one at http://mozilla.org/MPL/2.0/. - -import 'package:freezed_annotation/freezed_annotation.dart'; - -part 'source_preference_prop.freezed.dart'; -part 'source_preference_prop.g.dart'; - -@Freezed( - unionKey: 'type', - unionValueCase: FreezedUnionCase.pascal, - fallbackUnion: 'fallback', -) -sealed class SourcePreferenceProp with _$SourcePreferenceProp { - const factory SourcePreferenceProp.fallback({ - String? key, - dynamic currentValue, - }) = Fallback; - - const factory SourcePreferenceProp.checkBoxPreference({ - String? key, - String? title, - String? summary, - bool? defaultValue, - bool? currentValue, - String? defaultValueType, - }) = CheckBoxPreference; - - const factory SourcePreferenceProp.switchPreferenceCompat({ - String? key, - String? title, - String? summary, - bool? defaultValue, - bool? currentValue, - String? defaultValueType, - }) = SwitchPreferenceCompat; - - const factory SourcePreferenceProp.listPreference({ - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries, - }) = ListPreference; - - const factory SourcePreferenceProp.multiSelectListPreference({ - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries, - }) = MultiSelectListPreference; - - const factory SourcePreferenceProp.editTextPreference({ - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text, - }) = EditTextPreference; - - factory SourcePreferenceProp.fromJson(Map json) => - _$SourcePreferencePropFromJson(json); -} diff --git a/lib/src/features/browse_center/domain/source_preference_prop/source_preference_prop.freezed.dart b/lib/src/features/browse_center/domain/source_preference_prop/source_preference_prop.freezed.dart deleted file mode 100644 index 4b1f7cb4..00000000 --- a/lib/src/features/browse_center/domain/source_preference_prop/source_preference_prop.freezed.dart +++ /dev/null @@ -1,2374 +0,0 @@ -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// 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 'source_preference_prop.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -T _$identity(T value) => value; - -final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); - -SourcePreferenceProp _$SourcePreferencePropFromJson(Map json) { - switch (json['type']) { - case 'CheckBoxPreference': - return CheckBoxPreference.fromJson(json); - case 'SwitchPreferenceCompat': - return SwitchPreferenceCompat.fromJson(json); - case 'ListPreference': - return ListPreference.fromJson(json); - case 'MultiSelectListPreference': - return MultiSelectListPreference.fromJson(json); - case 'EditTextPreference': - return EditTextPreference.fromJson(json); - - default: - return Fallback.fromJson(json); - } -} - -/// @nodoc -mixin _$SourcePreferenceProp { - String? get key => throw _privateConstructorUsedError; - dynamic get currentValue => throw _privateConstructorUsedError; - @optionalTypeArgs - TResult when({ - required TResult Function(String? key, dynamic currentValue) fallback, - required TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType) - checkBoxPreference, - required TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType) - switchPreferenceCompat, - required TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries) - listPreference, - required TResult Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries) - multiSelectListPreference, - required TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text) - editTextPreference, - }) => - throw _privateConstructorUsedError; - @optionalTypeArgs - TResult? whenOrNull({ - TResult? Function(String? key, dynamic currentValue)? fallback, - TResult? Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - checkBoxPreference, - TResult? Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - switchPreferenceCompat, - TResult? Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries)? - listPreference, - TResult? Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries)? - multiSelectListPreference, - TResult? Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text)? - editTextPreference, - }) => - throw _privateConstructorUsedError; - @optionalTypeArgs - TResult maybeWhen({ - TResult Function(String? key, dynamic currentValue)? fallback, - TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - checkBoxPreference, - TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - switchPreferenceCompat, - TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries)? - listPreference, - TResult Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries)? - multiSelectListPreference, - TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text)? - editTextPreference, - required TResult orElse(), - }) => - throw _privateConstructorUsedError; - @optionalTypeArgs - TResult map({ - required TResult Function(Fallback value) fallback, - required TResult Function(CheckBoxPreference value) checkBoxPreference, - required TResult Function(SwitchPreferenceCompat value) - switchPreferenceCompat, - required TResult Function(ListPreference value) listPreference, - required TResult Function(MultiSelectListPreference value) - multiSelectListPreference, - required TResult Function(EditTextPreference value) editTextPreference, - }) => - throw _privateConstructorUsedError; - @optionalTypeArgs - TResult? mapOrNull({ - TResult? Function(Fallback value)? fallback, - TResult? Function(CheckBoxPreference value)? checkBoxPreference, - TResult? Function(SwitchPreferenceCompat value)? switchPreferenceCompat, - TResult? Function(ListPreference value)? listPreference, - TResult? Function(MultiSelectListPreference value)? - multiSelectListPreference, - TResult? Function(EditTextPreference value)? editTextPreference, - }) => - throw _privateConstructorUsedError; - @optionalTypeArgs - TResult maybeMap({ - TResult Function(Fallback value)? fallback, - TResult Function(CheckBoxPreference value)? checkBoxPreference, - TResult Function(SwitchPreferenceCompat value)? switchPreferenceCompat, - TResult Function(ListPreference value)? listPreference, - TResult Function(MultiSelectListPreference value)? - multiSelectListPreference, - TResult Function(EditTextPreference value)? editTextPreference, - required TResult orElse(), - }) => - throw _privateConstructorUsedError; - Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) - $SourcePreferencePropCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $SourcePreferencePropCopyWith<$Res> { - factory $SourcePreferencePropCopyWith(SourcePreferenceProp value, - $Res Function(SourcePreferenceProp) then) = - _$SourcePreferencePropCopyWithImpl<$Res, SourcePreferenceProp>; - @useResult - $Res call({String? key}); -} - -/// @nodoc -class _$SourcePreferencePropCopyWithImpl<$Res, - $Val extends SourcePreferenceProp> - implements $SourcePreferencePropCopyWith<$Res> { - _$SourcePreferencePropCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? key = freezed, - }) { - return _then(_value.copyWith( - key: freezed == key - ? _value.key - : key // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$FallbackImplCopyWith<$Res> - implements $SourcePreferencePropCopyWith<$Res> { - factory _$$FallbackImplCopyWith( - _$FallbackImpl value, $Res Function(_$FallbackImpl) then) = - __$$FallbackImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({String? key, dynamic currentValue}); -} - -/// @nodoc -class __$$FallbackImplCopyWithImpl<$Res> - extends _$SourcePreferencePropCopyWithImpl<$Res, _$FallbackImpl> - implements _$$FallbackImplCopyWith<$Res> { - __$$FallbackImplCopyWithImpl( - _$FallbackImpl _value, $Res Function(_$FallbackImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? key = freezed, - Object? currentValue = freezed, - }) { - return _then(_$FallbackImpl( - key: freezed == key - ? _value.key - : key // ignore: cast_nullable_to_non_nullable - as String?, - currentValue: freezed == currentValue - ? _value.currentValue - : currentValue // ignore: cast_nullable_to_non_nullable - as dynamic, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$FallbackImpl implements Fallback { - const _$FallbackImpl({this.key, this.currentValue, final String? $type}) - : $type = $type ?? 'Fallback'; - - factory _$FallbackImpl.fromJson(Map json) => - _$$FallbackImplFromJson(json); - - @override - final String? key; - @override - final dynamic currentValue; - - @JsonKey(name: 'type') - final String $type; - - @override - String toString() { - return 'SourcePreferenceProp.fallback(key: $key, currentValue: $currentValue)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$FallbackImpl && - (identical(other.key, key) || other.key == key) && - const DeepCollectionEquality() - .equals(other.currentValue, currentValue)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => Object.hash( - runtimeType, key, const DeepCollectionEquality().hash(currentValue)); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$FallbackImplCopyWith<_$FallbackImpl> get copyWith => - __$$FallbackImplCopyWithImpl<_$FallbackImpl>(this, _$identity); - - @override - @optionalTypeArgs - TResult when({ - required TResult Function(String? key, dynamic currentValue) fallback, - required TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType) - checkBoxPreference, - required TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType) - switchPreferenceCompat, - required TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries) - listPreference, - required TResult Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries) - multiSelectListPreference, - required TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text) - editTextPreference, - }) { - return fallback(key, currentValue); - } - - @override - @optionalTypeArgs - TResult? whenOrNull({ - TResult? Function(String? key, dynamic currentValue)? fallback, - TResult? Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - checkBoxPreference, - TResult? Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - switchPreferenceCompat, - TResult? Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries)? - listPreference, - TResult? Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries)? - multiSelectListPreference, - TResult? Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text)? - editTextPreference, - }) { - return fallback?.call(key, currentValue); - } - - @override - @optionalTypeArgs - TResult maybeWhen({ - TResult Function(String? key, dynamic currentValue)? fallback, - TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - checkBoxPreference, - TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - switchPreferenceCompat, - TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries)? - listPreference, - TResult Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries)? - multiSelectListPreference, - TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text)? - editTextPreference, - required TResult orElse(), - }) { - if (fallback != null) { - return fallback(key, currentValue); - } - return orElse(); - } - - @override - @optionalTypeArgs - TResult map({ - required TResult Function(Fallback value) fallback, - required TResult Function(CheckBoxPreference value) checkBoxPreference, - required TResult Function(SwitchPreferenceCompat value) - switchPreferenceCompat, - required TResult Function(ListPreference value) listPreference, - required TResult Function(MultiSelectListPreference value) - multiSelectListPreference, - required TResult Function(EditTextPreference value) editTextPreference, - }) { - return fallback(this); - } - - @override - @optionalTypeArgs - TResult? mapOrNull({ - TResult? Function(Fallback value)? fallback, - TResult? Function(CheckBoxPreference value)? checkBoxPreference, - TResult? Function(SwitchPreferenceCompat value)? switchPreferenceCompat, - TResult? Function(ListPreference value)? listPreference, - TResult? Function(MultiSelectListPreference value)? - multiSelectListPreference, - TResult? Function(EditTextPreference value)? editTextPreference, - }) { - return fallback?.call(this); - } - - @override - @optionalTypeArgs - TResult maybeMap({ - TResult Function(Fallback value)? fallback, - TResult Function(CheckBoxPreference value)? checkBoxPreference, - TResult Function(SwitchPreferenceCompat value)? switchPreferenceCompat, - TResult Function(ListPreference value)? listPreference, - TResult Function(MultiSelectListPreference value)? - multiSelectListPreference, - TResult Function(EditTextPreference value)? editTextPreference, - required TResult orElse(), - }) { - if (fallback != null) { - return fallback(this); - } - return orElse(); - } - - @override - Map toJson() { - return _$$FallbackImplToJson( - this, - ); - } -} - -abstract class Fallback implements SourcePreferenceProp { - const factory Fallback({final String? key, final dynamic currentValue}) = - _$FallbackImpl; - - factory Fallback.fromJson(Map json) = - _$FallbackImpl.fromJson; - - @override - String? get key; - @override - dynamic get currentValue; - @override - @JsonKey(ignore: true) - _$$FallbackImplCopyWith<_$FallbackImpl> get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class _$$CheckBoxPreferenceImplCopyWith<$Res> - implements $SourcePreferencePropCopyWith<$Res> { - factory _$$CheckBoxPreferenceImplCopyWith(_$CheckBoxPreferenceImpl value, - $Res Function(_$CheckBoxPreferenceImpl) then) = - __$$CheckBoxPreferenceImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {String? key, - String? title, - String? summary, - bool? defaultValue, - bool? currentValue, - String? defaultValueType}); -} - -/// @nodoc -class __$$CheckBoxPreferenceImplCopyWithImpl<$Res> - extends _$SourcePreferencePropCopyWithImpl<$Res, _$CheckBoxPreferenceImpl> - implements _$$CheckBoxPreferenceImplCopyWith<$Res> { - __$$CheckBoxPreferenceImplCopyWithImpl(_$CheckBoxPreferenceImpl _value, - $Res Function(_$CheckBoxPreferenceImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? key = freezed, - Object? title = freezed, - Object? summary = freezed, - Object? defaultValue = freezed, - Object? currentValue = freezed, - Object? defaultValueType = freezed, - }) { - return _then(_$CheckBoxPreferenceImpl( - key: freezed == key - ? _value.key - : key // ignore: cast_nullable_to_non_nullable - as String?, - title: freezed == title - ? _value.title - : title // ignore: cast_nullable_to_non_nullable - as String?, - summary: freezed == summary - ? _value.summary - : summary // ignore: cast_nullable_to_non_nullable - as String?, - defaultValue: freezed == defaultValue - ? _value.defaultValue - : defaultValue // ignore: cast_nullable_to_non_nullable - as bool?, - currentValue: freezed == currentValue - ? _value.currentValue - : currentValue // ignore: cast_nullable_to_non_nullable - as bool?, - defaultValueType: freezed == defaultValueType - ? _value.defaultValueType - : defaultValueType // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$CheckBoxPreferenceImpl implements CheckBoxPreference { - const _$CheckBoxPreferenceImpl( - {this.key, - this.title, - this.summary, - this.defaultValue, - this.currentValue, - this.defaultValueType, - final String? $type}) - : $type = $type ?? 'CheckBoxPreference'; - - factory _$CheckBoxPreferenceImpl.fromJson(Map json) => - _$$CheckBoxPreferenceImplFromJson(json); - - @override - final String? key; - @override - final String? title; - @override - final String? summary; - @override - final bool? defaultValue; - @override - final bool? currentValue; - @override - final String? defaultValueType; - - @JsonKey(name: 'type') - final String $type; - - @override - String toString() { - return 'SourcePreferenceProp.checkBoxPreference(key: $key, title: $title, summary: $summary, defaultValue: $defaultValue, currentValue: $currentValue, defaultValueType: $defaultValueType)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$CheckBoxPreferenceImpl && - (identical(other.key, key) || other.key == key) && - (identical(other.title, title) || other.title == title) && - (identical(other.summary, summary) || other.summary == summary) && - (identical(other.defaultValue, defaultValue) || - other.defaultValue == defaultValue) && - (identical(other.currentValue, currentValue) || - other.currentValue == currentValue) && - (identical(other.defaultValueType, defaultValueType) || - other.defaultValueType == defaultValueType)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => Object.hash(runtimeType, key, title, summary, - defaultValue, currentValue, defaultValueType); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$CheckBoxPreferenceImplCopyWith<_$CheckBoxPreferenceImpl> get copyWith => - __$$CheckBoxPreferenceImplCopyWithImpl<_$CheckBoxPreferenceImpl>( - this, _$identity); - - @override - @optionalTypeArgs - TResult when({ - required TResult Function(String? key, dynamic currentValue) fallback, - required TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType) - checkBoxPreference, - required TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType) - switchPreferenceCompat, - required TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries) - listPreference, - required TResult Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries) - multiSelectListPreference, - required TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text) - editTextPreference, - }) { - return checkBoxPreference( - key, title, summary, defaultValue, currentValue, defaultValueType); - } - - @override - @optionalTypeArgs - TResult? whenOrNull({ - TResult? Function(String? key, dynamic currentValue)? fallback, - TResult? Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - checkBoxPreference, - TResult? Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - switchPreferenceCompat, - TResult? Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries)? - listPreference, - TResult? Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries)? - multiSelectListPreference, - TResult? Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text)? - editTextPreference, - }) { - return checkBoxPreference?.call( - key, title, summary, defaultValue, currentValue, defaultValueType); - } - - @override - @optionalTypeArgs - TResult maybeWhen({ - TResult Function(String? key, dynamic currentValue)? fallback, - TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - checkBoxPreference, - TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - switchPreferenceCompat, - TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries)? - listPreference, - TResult Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries)? - multiSelectListPreference, - TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text)? - editTextPreference, - required TResult orElse(), - }) { - if (checkBoxPreference != null) { - return checkBoxPreference( - key, title, summary, defaultValue, currentValue, defaultValueType); - } - return orElse(); - } - - @override - @optionalTypeArgs - TResult map({ - required TResult Function(Fallback value) fallback, - required TResult Function(CheckBoxPreference value) checkBoxPreference, - required TResult Function(SwitchPreferenceCompat value) - switchPreferenceCompat, - required TResult Function(ListPreference value) listPreference, - required TResult Function(MultiSelectListPreference value) - multiSelectListPreference, - required TResult Function(EditTextPreference value) editTextPreference, - }) { - return checkBoxPreference(this); - } - - @override - @optionalTypeArgs - TResult? mapOrNull({ - TResult? Function(Fallback value)? fallback, - TResult? Function(CheckBoxPreference value)? checkBoxPreference, - TResult? Function(SwitchPreferenceCompat value)? switchPreferenceCompat, - TResult? Function(ListPreference value)? listPreference, - TResult? Function(MultiSelectListPreference value)? - multiSelectListPreference, - TResult? Function(EditTextPreference value)? editTextPreference, - }) { - return checkBoxPreference?.call(this); - } - - @override - @optionalTypeArgs - TResult maybeMap({ - TResult Function(Fallback value)? fallback, - TResult Function(CheckBoxPreference value)? checkBoxPreference, - TResult Function(SwitchPreferenceCompat value)? switchPreferenceCompat, - TResult Function(ListPreference value)? listPreference, - TResult Function(MultiSelectListPreference value)? - multiSelectListPreference, - TResult Function(EditTextPreference value)? editTextPreference, - required TResult orElse(), - }) { - if (checkBoxPreference != null) { - return checkBoxPreference(this); - } - return orElse(); - } - - @override - Map toJson() { - return _$$CheckBoxPreferenceImplToJson( - this, - ); - } -} - -abstract class CheckBoxPreference implements SourcePreferenceProp { - const factory CheckBoxPreference( - {final String? key, - final String? title, - final String? summary, - final bool? defaultValue, - final bool? currentValue, - final String? defaultValueType}) = _$CheckBoxPreferenceImpl; - - factory CheckBoxPreference.fromJson(Map json) = - _$CheckBoxPreferenceImpl.fromJson; - - @override - String? get key; - String? get title; - String? get summary; - bool? get defaultValue; - @override - bool? get currentValue; - String? get defaultValueType; - @override - @JsonKey(ignore: true) - _$$CheckBoxPreferenceImplCopyWith<_$CheckBoxPreferenceImpl> get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class _$$SwitchPreferenceCompatImplCopyWith<$Res> - implements $SourcePreferencePropCopyWith<$Res> { - factory _$$SwitchPreferenceCompatImplCopyWith( - _$SwitchPreferenceCompatImpl value, - $Res Function(_$SwitchPreferenceCompatImpl) then) = - __$$SwitchPreferenceCompatImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {String? key, - String? title, - String? summary, - bool? defaultValue, - bool? currentValue, - String? defaultValueType}); -} - -/// @nodoc -class __$$SwitchPreferenceCompatImplCopyWithImpl<$Res> - extends _$SourcePreferencePropCopyWithImpl<$Res, - _$SwitchPreferenceCompatImpl> - implements _$$SwitchPreferenceCompatImplCopyWith<$Res> { - __$$SwitchPreferenceCompatImplCopyWithImpl( - _$SwitchPreferenceCompatImpl _value, - $Res Function(_$SwitchPreferenceCompatImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? key = freezed, - Object? title = freezed, - Object? summary = freezed, - Object? defaultValue = freezed, - Object? currentValue = freezed, - Object? defaultValueType = freezed, - }) { - return _then(_$SwitchPreferenceCompatImpl( - key: freezed == key - ? _value.key - : key // ignore: cast_nullable_to_non_nullable - as String?, - title: freezed == title - ? _value.title - : title // ignore: cast_nullable_to_non_nullable - as String?, - summary: freezed == summary - ? _value.summary - : summary // ignore: cast_nullable_to_non_nullable - as String?, - defaultValue: freezed == defaultValue - ? _value.defaultValue - : defaultValue // ignore: cast_nullable_to_non_nullable - as bool?, - currentValue: freezed == currentValue - ? _value.currentValue - : currentValue // ignore: cast_nullable_to_non_nullable - as bool?, - defaultValueType: freezed == defaultValueType - ? _value.defaultValueType - : defaultValueType // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$SwitchPreferenceCompatImpl implements SwitchPreferenceCompat { - const _$SwitchPreferenceCompatImpl( - {this.key, - this.title, - this.summary, - this.defaultValue, - this.currentValue, - this.defaultValueType, - final String? $type}) - : $type = $type ?? 'SwitchPreferenceCompat'; - - factory _$SwitchPreferenceCompatImpl.fromJson(Map json) => - _$$SwitchPreferenceCompatImplFromJson(json); - - @override - final String? key; - @override - final String? title; - @override - final String? summary; - @override - final bool? defaultValue; - @override - final bool? currentValue; - @override - final String? defaultValueType; - - @JsonKey(name: 'type') - final String $type; - - @override - String toString() { - return 'SourcePreferenceProp.switchPreferenceCompat(key: $key, title: $title, summary: $summary, defaultValue: $defaultValue, currentValue: $currentValue, defaultValueType: $defaultValueType)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$SwitchPreferenceCompatImpl && - (identical(other.key, key) || other.key == key) && - (identical(other.title, title) || other.title == title) && - (identical(other.summary, summary) || other.summary == summary) && - (identical(other.defaultValue, defaultValue) || - other.defaultValue == defaultValue) && - (identical(other.currentValue, currentValue) || - other.currentValue == currentValue) && - (identical(other.defaultValueType, defaultValueType) || - other.defaultValueType == defaultValueType)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => Object.hash(runtimeType, key, title, summary, - defaultValue, currentValue, defaultValueType); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$SwitchPreferenceCompatImplCopyWith<_$SwitchPreferenceCompatImpl> - get copyWith => __$$SwitchPreferenceCompatImplCopyWithImpl< - _$SwitchPreferenceCompatImpl>(this, _$identity); - - @override - @optionalTypeArgs - TResult when({ - required TResult Function(String? key, dynamic currentValue) fallback, - required TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType) - checkBoxPreference, - required TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType) - switchPreferenceCompat, - required TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries) - listPreference, - required TResult Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries) - multiSelectListPreference, - required TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text) - editTextPreference, - }) { - return switchPreferenceCompat( - key, title, summary, defaultValue, currentValue, defaultValueType); - } - - @override - @optionalTypeArgs - TResult? whenOrNull({ - TResult? Function(String? key, dynamic currentValue)? fallback, - TResult? Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - checkBoxPreference, - TResult? Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - switchPreferenceCompat, - TResult? Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries)? - listPreference, - TResult? Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries)? - multiSelectListPreference, - TResult? Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text)? - editTextPreference, - }) { - return switchPreferenceCompat?.call( - key, title, summary, defaultValue, currentValue, defaultValueType); - } - - @override - @optionalTypeArgs - TResult maybeWhen({ - TResult Function(String? key, dynamic currentValue)? fallback, - TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - checkBoxPreference, - TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - switchPreferenceCompat, - TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries)? - listPreference, - TResult Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries)? - multiSelectListPreference, - TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text)? - editTextPreference, - required TResult orElse(), - }) { - if (switchPreferenceCompat != null) { - return switchPreferenceCompat( - key, title, summary, defaultValue, currentValue, defaultValueType); - } - return orElse(); - } - - @override - @optionalTypeArgs - TResult map({ - required TResult Function(Fallback value) fallback, - required TResult Function(CheckBoxPreference value) checkBoxPreference, - required TResult Function(SwitchPreferenceCompat value) - switchPreferenceCompat, - required TResult Function(ListPreference value) listPreference, - required TResult Function(MultiSelectListPreference value) - multiSelectListPreference, - required TResult Function(EditTextPreference value) editTextPreference, - }) { - return switchPreferenceCompat(this); - } - - @override - @optionalTypeArgs - TResult? mapOrNull({ - TResult? Function(Fallback value)? fallback, - TResult? Function(CheckBoxPreference value)? checkBoxPreference, - TResult? Function(SwitchPreferenceCompat value)? switchPreferenceCompat, - TResult? Function(ListPreference value)? listPreference, - TResult? Function(MultiSelectListPreference value)? - multiSelectListPreference, - TResult? Function(EditTextPreference value)? editTextPreference, - }) { - return switchPreferenceCompat?.call(this); - } - - @override - @optionalTypeArgs - TResult maybeMap({ - TResult Function(Fallback value)? fallback, - TResult Function(CheckBoxPreference value)? checkBoxPreference, - TResult Function(SwitchPreferenceCompat value)? switchPreferenceCompat, - TResult Function(ListPreference value)? listPreference, - TResult Function(MultiSelectListPreference value)? - multiSelectListPreference, - TResult Function(EditTextPreference value)? editTextPreference, - required TResult orElse(), - }) { - if (switchPreferenceCompat != null) { - return switchPreferenceCompat(this); - } - return orElse(); - } - - @override - Map toJson() { - return _$$SwitchPreferenceCompatImplToJson( - this, - ); - } -} - -abstract class SwitchPreferenceCompat implements SourcePreferenceProp { - const factory SwitchPreferenceCompat( - {final String? key, - final String? title, - final String? summary, - final bool? defaultValue, - final bool? currentValue, - final String? defaultValueType}) = _$SwitchPreferenceCompatImpl; - - factory SwitchPreferenceCompat.fromJson(Map json) = - _$SwitchPreferenceCompatImpl.fromJson; - - @override - String? get key; - String? get title; - String? get summary; - bool? get defaultValue; - @override - bool? get currentValue; - String? get defaultValueType; - @override - @JsonKey(ignore: true) - _$$SwitchPreferenceCompatImplCopyWith<_$SwitchPreferenceCompatImpl> - get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class _$$ListPreferenceImplCopyWith<$Res> - implements $SourcePreferencePropCopyWith<$Res> { - factory _$$ListPreferenceImplCopyWith(_$ListPreferenceImpl value, - $Res Function(_$ListPreferenceImpl) then) = - __$$ListPreferenceImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries}); -} - -/// @nodoc -class __$$ListPreferenceImplCopyWithImpl<$Res> - extends _$SourcePreferencePropCopyWithImpl<$Res, _$ListPreferenceImpl> - implements _$$ListPreferenceImplCopyWith<$Res> { - __$$ListPreferenceImplCopyWithImpl( - _$ListPreferenceImpl _value, $Res Function(_$ListPreferenceImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? key = freezed, - Object? title = freezed, - Object? summary = freezed, - Object? defaultValue = freezed, - Object? currentValue = freezed, - Object? defaultValueType = freezed, - Object? entries = freezed, - }) { - return _then(_$ListPreferenceImpl( - key: freezed == key - ? _value.key - : key // ignore: cast_nullable_to_non_nullable - as String?, - title: freezed == title - ? _value.title - : title // ignore: cast_nullable_to_non_nullable - as String?, - summary: freezed == summary - ? _value.summary - : summary // ignore: cast_nullable_to_non_nullable - as String?, - defaultValue: freezed == defaultValue - ? _value.defaultValue - : defaultValue // ignore: cast_nullable_to_non_nullable - as String?, - currentValue: freezed == currentValue - ? _value.currentValue - : currentValue // ignore: cast_nullable_to_non_nullable - as String?, - defaultValueType: freezed == defaultValueType - ? _value.defaultValueType - : defaultValueType // ignore: cast_nullable_to_non_nullable - as String?, - entries: freezed == entries - ? _value._entries - : entries // ignore: cast_nullable_to_non_nullable - as Map?, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$ListPreferenceImpl implements ListPreference { - const _$ListPreferenceImpl( - {this.key, - this.title, - this.summary, - this.defaultValue, - this.currentValue, - this.defaultValueType, - final Map? entries, - final String? $type}) - : _entries = entries, - $type = $type ?? 'ListPreference'; - - factory _$ListPreferenceImpl.fromJson(Map json) => - _$$ListPreferenceImplFromJson(json); - - @override - final String? key; - @override - final String? title; - @override - final String? summary; - @override - final String? defaultValue; - @override - final String? currentValue; - @override - final String? defaultValueType; - final Map? _entries; - @override - Map? get entries { - final value = _entries; - if (value == null) return null; - if (_entries is EqualUnmodifiableMapView) return _entries; - // ignore: implicit_dynamic_type - return EqualUnmodifiableMapView(value); - } - - @JsonKey(name: 'type') - final String $type; - - @override - String toString() { - return 'SourcePreferenceProp.listPreference(key: $key, title: $title, summary: $summary, defaultValue: $defaultValue, currentValue: $currentValue, defaultValueType: $defaultValueType, entries: $entries)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ListPreferenceImpl && - (identical(other.key, key) || other.key == key) && - (identical(other.title, title) || other.title == title) && - (identical(other.summary, summary) || other.summary == summary) && - (identical(other.defaultValue, defaultValue) || - other.defaultValue == defaultValue) && - (identical(other.currentValue, currentValue) || - other.currentValue == currentValue) && - (identical(other.defaultValueType, defaultValueType) || - other.defaultValueType == defaultValueType) && - const DeepCollectionEquality().equals(other._entries, _entries)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => Object.hash( - runtimeType, - key, - title, - summary, - defaultValue, - currentValue, - defaultValueType, - const DeepCollectionEquality().hash(_entries)); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$ListPreferenceImplCopyWith<_$ListPreferenceImpl> get copyWith => - __$$ListPreferenceImplCopyWithImpl<_$ListPreferenceImpl>( - this, _$identity); - - @override - @optionalTypeArgs - TResult when({ - required TResult Function(String? key, dynamic currentValue) fallback, - required TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType) - checkBoxPreference, - required TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType) - switchPreferenceCompat, - required TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries) - listPreference, - required TResult Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries) - multiSelectListPreference, - required TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text) - editTextPreference, - }) { - return listPreference(key, title, summary, defaultValue, currentValue, - defaultValueType, entries); - } - - @override - @optionalTypeArgs - TResult? whenOrNull({ - TResult? Function(String? key, dynamic currentValue)? fallback, - TResult? Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - checkBoxPreference, - TResult? Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - switchPreferenceCompat, - TResult? Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries)? - listPreference, - TResult? Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries)? - multiSelectListPreference, - TResult? Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text)? - editTextPreference, - }) { - return listPreference?.call(key, title, summary, defaultValue, currentValue, - defaultValueType, entries); - } - - @override - @optionalTypeArgs - TResult maybeWhen({ - TResult Function(String? key, dynamic currentValue)? fallback, - TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - checkBoxPreference, - TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - switchPreferenceCompat, - TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries)? - listPreference, - TResult Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries)? - multiSelectListPreference, - TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text)? - editTextPreference, - required TResult orElse(), - }) { - if (listPreference != null) { - return listPreference(key, title, summary, defaultValue, currentValue, - defaultValueType, entries); - } - return orElse(); - } - - @override - @optionalTypeArgs - TResult map({ - required TResult Function(Fallback value) fallback, - required TResult Function(CheckBoxPreference value) checkBoxPreference, - required TResult Function(SwitchPreferenceCompat value) - switchPreferenceCompat, - required TResult Function(ListPreference value) listPreference, - required TResult Function(MultiSelectListPreference value) - multiSelectListPreference, - required TResult Function(EditTextPreference value) editTextPreference, - }) { - return listPreference(this); - } - - @override - @optionalTypeArgs - TResult? mapOrNull({ - TResult? Function(Fallback value)? fallback, - TResult? Function(CheckBoxPreference value)? checkBoxPreference, - TResult? Function(SwitchPreferenceCompat value)? switchPreferenceCompat, - TResult? Function(ListPreference value)? listPreference, - TResult? Function(MultiSelectListPreference value)? - multiSelectListPreference, - TResult? Function(EditTextPreference value)? editTextPreference, - }) { - return listPreference?.call(this); - } - - @override - @optionalTypeArgs - TResult maybeMap({ - TResult Function(Fallback value)? fallback, - TResult Function(CheckBoxPreference value)? checkBoxPreference, - TResult Function(SwitchPreferenceCompat value)? switchPreferenceCompat, - TResult Function(ListPreference value)? listPreference, - TResult Function(MultiSelectListPreference value)? - multiSelectListPreference, - TResult Function(EditTextPreference value)? editTextPreference, - required TResult orElse(), - }) { - if (listPreference != null) { - return listPreference(this); - } - return orElse(); - } - - @override - Map toJson() { - return _$$ListPreferenceImplToJson( - this, - ); - } -} - -abstract class ListPreference implements SourcePreferenceProp { - const factory ListPreference( - {final String? key, - final String? title, - final String? summary, - final String? defaultValue, - final String? currentValue, - final String? defaultValueType, - final Map? entries}) = _$ListPreferenceImpl; - - factory ListPreference.fromJson(Map json) = - _$ListPreferenceImpl.fromJson; - - @override - String? get key; - String? get title; - String? get summary; - String? get defaultValue; - @override - String? get currentValue; - String? get defaultValueType; - Map? get entries; - @override - @JsonKey(ignore: true) - _$$ListPreferenceImplCopyWith<_$ListPreferenceImpl> get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class _$$MultiSelectListPreferenceImplCopyWith<$Res> - implements $SourcePreferencePropCopyWith<$Res> { - factory _$$MultiSelectListPreferenceImplCopyWith( - _$MultiSelectListPreferenceImpl value, - $Res Function(_$MultiSelectListPreferenceImpl) then) = - __$$MultiSelectListPreferenceImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries}); -} - -/// @nodoc -class __$$MultiSelectListPreferenceImplCopyWithImpl<$Res> - extends _$SourcePreferencePropCopyWithImpl<$Res, - _$MultiSelectListPreferenceImpl> - implements _$$MultiSelectListPreferenceImplCopyWith<$Res> { - __$$MultiSelectListPreferenceImplCopyWithImpl( - _$MultiSelectListPreferenceImpl _value, - $Res Function(_$MultiSelectListPreferenceImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? key = freezed, - Object? title = freezed, - Object? summary = freezed, - Object? defaultValue = freezed, - Object? currentValue = freezed, - Object? defaultValueType = freezed, - Object? entries = freezed, - }) { - return _then(_$MultiSelectListPreferenceImpl( - key: freezed == key - ? _value.key - : key // ignore: cast_nullable_to_non_nullable - as String?, - title: freezed == title - ? _value.title - : title // ignore: cast_nullable_to_non_nullable - as String?, - summary: freezed == summary - ? _value.summary - : summary // ignore: cast_nullable_to_non_nullable - as String?, - defaultValue: freezed == defaultValue - ? _value._defaultValue - : defaultValue // ignore: cast_nullable_to_non_nullable - as List?, - currentValue: freezed == currentValue - ? _value._currentValue - : currentValue // ignore: cast_nullable_to_non_nullable - as List?, - defaultValueType: freezed == defaultValueType - ? _value.defaultValueType - : defaultValueType // ignore: cast_nullable_to_non_nullable - as String?, - entries: freezed == entries - ? _value._entries - : entries // ignore: cast_nullable_to_non_nullable - as Map?, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$MultiSelectListPreferenceImpl implements MultiSelectListPreference { - const _$MultiSelectListPreferenceImpl( - {this.key, - this.title, - this.summary, - final List? defaultValue, - final List? currentValue, - this.defaultValueType, - final Map? entries, - final String? $type}) - : _defaultValue = defaultValue, - _currentValue = currentValue, - _entries = entries, - $type = $type ?? 'MultiSelectListPreference'; - - factory _$MultiSelectListPreferenceImpl.fromJson(Map json) => - _$$MultiSelectListPreferenceImplFromJson(json); - - @override - final String? key; - @override - final String? title; - @override - final String? summary; - final List? _defaultValue; - @override - List? get defaultValue { - final value = _defaultValue; - if (value == null) return null; - if (_defaultValue is EqualUnmodifiableListView) return _defaultValue; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(value); - } - - final List? _currentValue; - @override - List? get currentValue { - final value = _currentValue; - if (value == null) return null; - if (_currentValue is EqualUnmodifiableListView) return _currentValue; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(value); - } - - @override - final String? defaultValueType; - final Map? _entries; - @override - Map? get entries { - final value = _entries; - if (value == null) return null; - if (_entries is EqualUnmodifiableMapView) return _entries; - // ignore: implicit_dynamic_type - return EqualUnmodifiableMapView(value); - } - - @JsonKey(name: 'type') - final String $type; - - @override - String toString() { - return 'SourcePreferenceProp.multiSelectListPreference(key: $key, title: $title, summary: $summary, defaultValue: $defaultValue, currentValue: $currentValue, defaultValueType: $defaultValueType, entries: $entries)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$MultiSelectListPreferenceImpl && - (identical(other.key, key) || other.key == key) && - (identical(other.title, title) || other.title == title) && - (identical(other.summary, summary) || other.summary == summary) && - const DeepCollectionEquality() - .equals(other._defaultValue, _defaultValue) && - const DeepCollectionEquality() - .equals(other._currentValue, _currentValue) && - (identical(other.defaultValueType, defaultValueType) || - other.defaultValueType == defaultValueType) && - const DeepCollectionEquality().equals(other._entries, _entries)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => Object.hash( - runtimeType, - key, - title, - summary, - const DeepCollectionEquality().hash(_defaultValue), - const DeepCollectionEquality().hash(_currentValue), - defaultValueType, - const DeepCollectionEquality().hash(_entries)); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$MultiSelectListPreferenceImplCopyWith<_$MultiSelectListPreferenceImpl> - get copyWith => __$$MultiSelectListPreferenceImplCopyWithImpl< - _$MultiSelectListPreferenceImpl>(this, _$identity); - - @override - @optionalTypeArgs - TResult when({ - required TResult Function(String? key, dynamic currentValue) fallback, - required TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType) - checkBoxPreference, - required TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType) - switchPreferenceCompat, - required TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries) - listPreference, - required TResult Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries) - multiSelectListPreference, - required TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text) - editTextPreference, - }) { - return multiSelectListPreference(key, title, summary, defaultValue, - currentValue, defaultValueType, entries); - } - - @override - @optionalTypeArgs - TResult? whenOrNull({ - TResult? Function(String? key, dynamic currentValue)? fallback, - TResult? Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - checkBoxPreference, - TResult? Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - switchPreferenceCompat, - TResult? Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries)? - listPreference, - TResult? Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries)? - multiSelectListPreference, - TResult? Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text)? - editTextPreference, - }) { - return multiSelectListPreference?.call(key, title, summary, defaultValue, - currentValue, defaultValueType, entries); - } - - @override - @optionalTypeArgs - TResult maybeWhen({ - TResult Function(String? key, dynamic currentValue)? fallback, - TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - checkBoxPreference, - TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - switchPreferenceCompat, - TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries)? - listPreference, - TResult Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries)? - multiSelectListPreference, - TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text)? - editTextPreference, - required TResult orElse(), - }) { - if (multiSelectListPreference != null) { - return multiSelectListPreference(key, title, summary, defaultValue, - currentValue, defaultValueType, entries); - } - return orElse(); - } - - @override - @optionalTypeArgs - TResult map({ - required TResult Function(Fallback value) fallback, - required TResult Function(CheckBoxPreference value) checkBoxPreference, - required TResult Function(SwitchPreferenceCompat value) - switchPreferenceCompat, - required TResult Function(ListPreference value) listPreference, - required TResult Function(MultiSelectListPreference value) - multiSelectListPreference, - required TResult Function(EditTextPreference value) editTextPreference, - }) { - return multiSelectListPreference(this); - } - - @override - @optionalTypeArgs - TResult? mapOrNull({ - TResult? Function(Fallback value)? fallback, - TResult? Function(CheckBoxPreference value)? checkBoxPreference, - TResult? Function(SwitchPreferenceCompat value)? switchPreferenceCompat, - TResult? Function(ListPreference value)? listPreference, - TResult? Function(MultiSelectListPreference value)? - multiSelectListPreference, - TResult? Function(EditTextPreference value)? editTextPreference, - }) { - return multiSelectListPreference?.call(this); - } - - @override - @optionalTypeArgs - TResult maybeMap({ - TResult Function(Fallback value)? fallback, - TResult Function(CheckBoxPreference value)? checkBoxPreference, - TResult Function(SwitchPreferenceCompat value)? switchPreferenceCompat, - TResult Function(ListPreference value)? listPreference, - TResult Function(MultiSelectListPreference value)? - multiSelectListPreference, - TResult Function(EditTextPreference value)? editTextPreference, - required TResult orElse(), - }) { - if (multiSelectListPreference != null) { - return multiSelectListPreference(this); - } - return orElse(); - } - - @override - Map toJson() { - return _$$MultiSelectListPreferenceImplToJson( - this, - ); - } -} - -abstract class MultiSelectListPreference implements SourcePreferenceProp { - const factory MultiSelectListPreference( - {final String? key, - final String? title, - final String? summary, - final List? defaultValue, - final List? currentValue, - final String? defaultValueType, - final Map? entries}) = _$MultiSelectListPreferenceImpl; - - factory MultiSelectListPreference.fromJson(Map json) = - _$MultiSelectListPreferenceImpl.fromJson; - - @override - String? get key; - String? get title; - String? get summary; - List? get defaultValue; - @override - List? get currentValue; - String? get defaultValueType; - Map? get entries; - @override - @JsonKey(ignore: true) - _$$MultiSelectListPreferenceImplCopyWith<_$MultiSelectListPreferenceImpl> - get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class _$$EditTextPreferenceImplCopyWith<$Res> - implements $SourcePreferencePropCopyWith<$Res> { - factory _$$EditTextPreferenceImplCopyWith(_$EditTextPreferenceImpl value, - $Res Function(_$EditTextPreferenceImpl) then) = - __$$EditTextPreferenceImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text}); -} - -/// @nodoc -class __$$EditTextPreferenceImplCopyWithImpl<$Res> - extends _$SourcePreferencePropCopyWithImpl<$Res, _$EditTextPreferenceImpl> - implements _$$EditTextPreferenceImplCopyWith<$Res> { - __$$EditTextPreferenceImplCopyWithImpl(_$EditTextPreferenceImpl _value, - $Res Function(_$EditTextPreferenceImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? key = freezed, - Object? title = freezed, - Object? summary = freezed, - Object? defaultValue = freezed, - Object? currentValue = freezed, - Object? defaultValueType = freezed, - Object? dialogTitle = freezed, - Object? dialogMessage = freezed, - Object? text = freezed, - }) { - return _then(_$EditTextPreferenceImpl( - key: freezed == key - ? _value.key - : key // ignore: cast_nullable_to_non_nullable - as String?, - title: freezed == title - ? _value.title - : title // ignore: cast_nullable_to_non_nullable - as String?, - summary: freezed == summary - ? _value.summary - : summary // ignore: cast_nullable_to_non_nullable - as String?, - defaultValue: freezed == defaultValue - ? _value.defaultValue - : defaultValue // ignore: cast_nullable_to_non_nullable - as String?, - currentValue: freezed == currentValue - ? _value.currentValue - : currentValue // ignore: cast_nullable_to_non_nullable - as String?, - defaultValueType: freezed == defaultValueType - ? _value.defaultValueType - : defaultValueType // ignore: cast_nullable_to_non_nullable - as String?, - dialogTitle: freezed == dialogTitle - ? _value.dialogTitle - : dialogTitle // ignore: cast_nullable_to_non_nullable - as String?, - dialogMessage: freezed == dialogMessage - ? _value.dialogMessage - : dialogMessage // ignore: cast_nullable_to_non_nullable - as String?, - text: freezed == text - ? _value.text - : text // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$EditTextPreferenceImpl implements EditTextPreference { - const _$EditTextPreferenceImpl( - {this.key, - this.title, - this.summary, - this.defaultValue, - this.currentValue, - this.defaultValueType, - this.dialogTitle, - this.dialogMessage, - this.text, - final String? $type}) - : $type = $type ?? 'EditTextPreference'; - - factory _$EditTextPreferenceImpl.fromJson(Map json) => - _$$EditTextPreferenceImplFromJson(json); - - @override - final String? key; - @override - final String? title; - @override - final String? summary; - @override - final String? defaultValue; - @override - final String? currentValue; - @override - final String? defaultValueType; - @override - final String? dialogTitle; - @override - final String? dialogMessage; - @override - final String? text; - - @JsonKey(name: 'type') - final String $type; - - @override - String toString() { - return 'SourcePreferenceProp.editTextPreference(key: $key, title: $title, summary: $summary, defaultValue: $defaultValue, currentValue: $currentValue, defaultValueType: $defaultValueType, dialogTitle: $dialogTitle, dialogMessage: $dialogMessage, text: $text)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$EditTextPreferenceImpl && - (identical(other.key, key) || other.key == key) && - (identical(other.title, title) || other.title == title) && - (identical(other.summary, summary) || other.summary == summary) && - (identical(other.defaultValue, defaultValue) || - other.defaultValue == defaultValue) && - (identical(other.currentValue, currentValue) || - other.currentValue == currentValue) && - (identical(other.defaultValueType, defaultValueType) || - other.defaultValueType == defaultValueType) && - (identical(other.dialogTitle, dialogTitle) || - other.dialogTitle == dialogTitle) && - (identical(other.dialogMessage, dialogMessage) || - other.dialogMessage == dialogMessage) && - (identical(other.text, text) || other.text == text)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => Object.hash( - runtimeType, - key, - title, - summary, - defaultValue, - currentValue, - defaultValueType, - dialogTitle, - dialogMessage, - text); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$EditTextPreferenceImplCopyWith<_$EditTextPreferenceImpl> get copyWith => - __$$EditTextPreferenceImplCopyWithImpl<_$EditTextPreferenceImpl>( - this, _$identity); - - @override - @optionalTypeArgs - TResult when({ - required TResult Function(String? key, dynamic currentValue) fallback, - required TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType) - checkBoxPreference, - required TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType) - switchPreferenceCompat, - required TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries) - listPreference, - required TResult Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries) - multiSelectListPreference, - required TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text) - editTextPreference, - }) { - return editTextPreference(key, title, summary, defaultValue, currentValue, - defaultValueType, dialogTitle, dialogMessage, text); - } - - @override - @optionalTypeArgs - TResult? whenOrNull({ - TResult? Function(String? key, dynamic currentValue)? fallback, - TResult? Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - checkBoxPreference, - TResult? Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - switchPreferenceCompat, - TResult? Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries)? - listPreference, - TResult? Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries)? - multiSelectListPreference, - TResult? Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text)? - editTextPreference, - }) { - return editTextPreference?.call(key, title, summary, defaultValue, - currentValue, defaultValueType, dialogTitle, dialogMessage, text); - } - - @override - @optionalTypeArgs - TResult maybeWhen({ - TResult Function(String? key, dynamic currentValue)? fallback, - TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - checkBoxPreference, - TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - switchPreferenceCompat, - TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries)? - listPreference, - TResult Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries)? - multiSelectListPreference, - TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text)? - editTextPreference, - required TResult orElse(), - }) { - if (editTextPreference != null) { - return editTextPreference(key, title, summary, defaultValue, currentValue, - defaultValueType, dialogTitle, dialogMessage, text); - } - return orElse(); - } - - @override - @optionalTypeArgs - TResult map({ - required TResult Function(Fallback value) fallback, - required TResult Function(CheckBoxPreference value) checkBoxPreference, - required TResult Function(SwitchPreferenceCompat value) - switchPreferenceCompat, - required TResult Function(ListPreference value) listPreference, - required TResult Function(MultiSelectListPreference value) - multiSelectListPreference, - required TResult Function(EditTextPreference value) editTextPreference, - }) { - return editTextPreference(this); - } - - @override - @optionalTypeArgs - TResult? mapOrNull({ - TResult? Function(Fallback value)? fallback, - TResult? Function(CheckBoxPreference value)? checkBoxPreference, - TResult? Function(SwitchPreferenceCompat value)? switchPreferenceCompat, - TResult? Function(ListPreference value)? listPreference, - TResult? Function(MultiSelectListPreference value)? - multiSelectListPreference, - TResult? Function(EditTextPreference value)? editTextPreference, - }) { - return editTextPreference?.call(this); - } - - @override - @optionalTypeArgs - TResult maybeMap({ - TResult Function(Fallback value)? fallback, - TResult Function(CheckBoxPreference value)? checkBoxPreference, - TResult Function(SwitchPreferenceCompat value)? switchPreferenceCompat, - TResult Function(ListPreference value)? listPreference, - TResult Function(MultiSelectListPreference value)? - multiSelectListPreference, - TResult Function(EditTextPreference value)? editTextPreference, - required TResult orElse(), - }) { - if (editTextPreference != null) { - return editTextPreference(this); - } - return orElse(); - } - - @override - Map toJson() { - return _$$EditTextPreferenceImplToJson( - this, - ); - } -} - -abstract class EditTextPreference implements SourcePreferenceProp { - const factory EditTextPreference( - {final String? key, - final String? title, - final String? summary, - final String? defaultValue, - final String? currentValue, - final String? defaultValueType, - final String? dialogTitle, - final String? dialogMessage, - final String? text}) = _$EditTextPreferenceImpl; - - factory EditTextPreference.fromJson(Map json) = - _$EditTextPreferenceImpl.fromJson; - - @override - String? get key; - String? get title; - String? get summary; - String? get defaultValue; - @override - String? get currentValue; - String? get defaultValueType; - String? get dialogTitle; - String? get dialogMessage; - String? get text; - @override - @JsonKey(ignore: true) - _$$EditTextPreferenceImplCopyWith<_$EditTextPreferenceImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/features/browse_center/domain/source_preference_prop/source_preference_prop.g.dart b/lib/src/features/browse_center/domain/source_preference_prop/source_preference_prop.g.dart deleted file mode 100644 index 57edc9f8..00000000 --- a/lib/src/features/browse_center/domain/source_preference_prop/source_preference_prop.g.dart +++ /dev/null @@ -1,158 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'source_preference_prop.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$FallbackImpl _$$FallbackImplFromJson(Map json) => - _$FallbackImpl( - key: json['key'] as String?, - currentValue: json['currentValue'], - $type: json['type'] as String?, - ); - -Map _$$FallbackImplToJson(_$FallbackImpl instance) => - { - 'key': instance.key, - 'currentValue': instance.currentValue, - 'type': instance.$type, - }; - -_$CheckBoxPreferenceImpl _$$CheckBoxPreferenceImplFromJson( - Map json) => - _$CheckBoxPreferenceImpl( - key: json['key'] as String?, - title: json['title'] as String?, - summary: json['summary'] as String?, - defaultValue: json['defaultValue'] as bool?, - currentValue: json['currentValue'] as bool?, - defaultValueType: json['defaultValueType'] as String?, - $type: json['type'] as String?, - ); - -Map _$$CheckBoxPreferenceImplToJson( - _$CheckBoxPreferenceImpl instance) => - { - 'key': instance.key, - 'title': instance.title, - 'summary': instance.summary, - 'defaultValue': instance.defaultValue, - 'currentValue': instance.currentValue, - 'defaultValueType': instance.defaultValueType, - 'type': instance.$type, - }; - -_$SwitchPreferenceCompatImpl _$$SwitchPreferenceCompatImplFromJson( - Map json) => - _$SwitchPreferenceCompatImpl( - key: json['key'] as String?, - title: json['title'] as String?, - summary: json['summary'] as String?, - defaultValue: json['defaultValue'] as bool?, - currentValue: json['currentValue'] as bool?, - defaultValueType: json['defaultValueType'] as String?, - $type: json['type'] as String?, - ); - -Map _$$SwitchPreferenceCompatImplToJson( - _$SwitchPreferenceCompatImpl instance) => - { - 'key': instance.key, - 'title': instance.title, - 'summary': instance.summary, - 'defaultValue': instance.defaultValue, - 'currentValue': instance.currentValue, - 'defaultValueType': instance.defaultValueType, - 'type': instance.$type, - }; - -_$ListPreferenceImpl _$$ListPreferenceImplFromJson(Map json) => - _$ListPreferenceImpl( - key: json['key'] as String?, - title: json['title'] as String?, - summary: json['summary'] as String?, - defaultValue: json['defaultValue'] as String?, - currentValue: json['currentValue'] as String?, - defaultValueType: json['defaultValueType'] as String?, - entries: (json['entries'] as Map?)?.map( - (k, e) => MapEntry(k, e as String), - ), - $type: json['type'] as String?, - ); - -Map _$$ListPreferenceImplToJson( - _$ListPreferenceImpl instance) => - { - 'key': instance.key, - 'title': instance.title, - 'summary': instance.summary, - 'defaultValue': instance.defaultValue, - 'currentValue': instance.currentValue, - 'defaultValueType': instance.defaultValueType, - 'entries': instance.entries, - 'type': instance.$type, - }; - -_$MultiSelectListPreferenceImpl _$$MultiSelectListPreferenceImplFromJson( - Map json) => - _$MultiSelectListPreferenceImpl( - key: json['key'] as String?, - title: json['title'] as String?, - summary: json['summary'] as String?, - defaultValue: (json['defaultValue'] as List?) - ?.map((e) => e as String) - .toList(), - currentValue: (json['currentValue'] as List?) - ?.map((e) => e as String) - .toList(), - defaultValueType: json['defaultValueType'] as String?, - entries: (json['entries'] as Map?)?.map( - (k, e) => MapEntry(k, e as String), - ), - $type: json['type'] as String?, - ); - -Map _$$MultiSelectListPreferenceImplToJson( - _$MultiSelectListPreferenceImpl instance) => - { - 'key': instance.key, - 'title': instance.title, - 'summary': instance.summary, - 'defaultValue': instance.defaultValue, - 'currentValue': instance.currentValue, - 'defaultValueType': instance.defaultValueType, - 'entries': instance.entries, - 'type': instance.$type, - }; - -_$EditTextPreferenceImpl _$$EditTextPreferenceImplFromJson( - Map json) => - _$EditTextPreferenceImpl( - key: json['key'] as String?, - title: json['title'] as String?, - summary: json['summary'] as String?, - defaultValue: json['defaultValue'] as String?, - currentValue: json['currentValue'] as String?, - defaultValueType: json['defaultValueType'] as String?, - dialogTitle: json['dialogTitle'] as String?, - dialogMessage: json['dialogMessage'] as String?, - text: json['text'] as String?, - $type: json['type'] as String?, - ); - -Map _$$EditTextPreferenceImplToJson( - _$EditTextPreferenceImpl instance) => - { - 'key': instance.key, - 'title': instance.title, - 'summary': instance.summary, - 'defaultValue': instance.defaultValue, - 'currentValue': instance.currentValue, - 'defaultValueType': instance.defaultValueType, - 'dialogTitle': instance.dialogTitle, - 'dialogMessage': instance.dialogMessage, - 'text': instance.text, - 'type': instance.$type, - }; diff --git a/lib/src/features/browse_center/presentation/browse/browse_screen.dart b/lib/src/features/browse_center/presentation/browse/browse_screen.dart index caaac23c..441b985f 100644 --- a/lib/src/features/browse_center/presentation/browse/browse_screen.dart +++ b/lib/src/features/browse_center/presentation/browse/browse_screen.dart @@ -13,20 +13,41 @@ import '../../../../routes/router_config.dart'; import '../../../../utils/extensions/custom_extensions.dart'; import '../../../../widgets/search_field.dart'; import '../extension/controller/extension_controller.dart'; -import '../extension/extension_screen.dart'; import '../extension/widgets/extension_language_filter_dialog.dart'; import '../extension/widgets/install_extension_file.dart'; -import '../source/source_screen.dart'; import '../source/widgets/source_language_filter.dart'; class BrowseScreen extends HookConsumerWidget { - const BrowseScreen({super.key}); + const BrowseScreen({ + super.key, + required this.currentIndex, + required this.onDestinationSelected, + required this.children, + }); + final int currentIndex; + final ValueChanged onDestinationSelected; + final List children; @override Widget build(BuildContext context, WidgetRef ref) { - final tabController = useTabController(initialLength: 2); + final tabController = + useTabController(initialLength: 2, initialIndex: currentIndex); + + useEffect(() { + if (currentIndex != tabController.index) { + tabController.animateTo(currentIndex); + } + return null; + }, [currentIndex]); + + useEffect(() { + if (currentIndex != tabController.index) { + Future.microtask(() => onDestinationSelected(tabController.index)); + } + return null; + }, [tabController.index]); useListenable(tabController); - final key = useMemoized(() => GlobalKey()); + final showSearch = useState(false); return Scaffold( appBar: AppBar( @@ -93,14 +114,7 @@ class BrowseScreen extends HookConsumerWidget { ), ), ), - body: TabBarView( - key: key, - controller: tabController, - children: const [ - SourceScreen(), - ExtensionScreen(), - ], - ), + body: TabBarView(controller: tabController, children: children), ); } } diff --git a/lib/src/features/browse_center/presentation/extension/controller/extension_controller.dart b/lib/src/features/browse_center/presentation/extension/controller/extension_controller.dart index 0ad37af5..328ac2b2 100644 --- a/lib/src/features/browse_center/presentation/extension/controller/extension_controller.dart +++ b/lib/src/features/browse_center/presentation/extension/controller/extension_controller.dart @@ -36,7 +36,7 @@ AsyncValue>> extensionMap(ExtensionMapRef ref) { final showNsfw = ref.watch(showNSFWProvider).ifNull(true); for (final e in extensionList) { if (!showNsfw && (e.isNsfw.ifNull())) continue; - if (e.installed.ifNull()) { + if (e.isInstalled.ifNull()) { if (e.hasUpdate.ifNull()) { extensionMap.update( "update", @@ -52,7 +52,7 @@ AsyncValue>> extensionMap(ExtensionMapRef ref) { } } else { extensionMap.update( - e.lang?.code?.toLowerCase() ?? "other", + e.language?.code?.toLowerCase() ?? "other", (value) => [...value, e], ifAbsent: () => [e], ); diff --git a/lib/src/features/browse_center/presentation/extension/controller/extension_controller.g.dart b/lib/src/features/browse_center/presentation/extension/controller/extension_controller.g.dart index 9d1ca6bf..f2af9daf 100644 --- a/lib/src/features/browse_center/presentation/extension/controller/extension_controller.g.dart +++ b/lib/src/features/browse_center/presentation/extension/controller/extension_controller.g.dart @@ -20,7 +20,7 @@ final extensionProvider = AutoDisposeFutureProvider?>.internal( ); typedef ExtensionRef = AutoDisposeFutureProviderRef?>; -String _$extensionMapHash() => r'868e56067ad0639e41874adcffa4e97c49617f6c'; +String _$extensionMapHash() => r'86a54165a5f000fe7db96a1e81809735e9db98dd'; /// See also [extensionMap]. @ProviderFor(extensionMap) diff --git a/lib/src/features/browse_center/presentation/extension/extension_screen.dart b/lib/src/features/browse_center/presentation/extension/extension_screen.dart index 11986447..448692a1 100644 --- a/lib/src/features/browse_center/presentation/extension/extension_screen.dart +++ b/lib/src/features/browse_center/presentation/extension/extension_screen.dart @@ -64,10 +64,13 @@ class ExtensionScreen extends HookConsumerWidget { }, []); useEffect(() { - extensionMapData.showToastOnError( - ref.read(toastProvider(context)), - withMicrotask: true, - ); + final toast = ref.read(toastProvider); + if (toast != null) { + extensionMapData.showToastOnError( + toast, + withMicrotask: true, + ); + } return; }, [extensionMapData.valueOrNull]); @@ -78,7 +81,7 @@ class ExtensionScreen extends HookConsumerWidget { update.isBlank && all.isBlank) ? Emoticons( - text: context.l10n.extensionListEmpty, + title: context.l10n.extensionListEmpty, button: TextButton( onPressed: refresh, child: Text(context.l10n.refresh), diff --git a/lib/src/features/browse_center/presentation/extension/widgets/extension_list_tile.dart b/lib/src/features/browse_center/presentation/extension/widgets/extension_list_tile.dart index 736702a1..9a7a9749 100644 --- a/lib/src/features/browse_center/presentation/extension/widgets/extension_list_tile.dart +++ b/lib/src/features/browse_center/presentation/extension/widgets/extension_list_tile.dart @@ -11,6 +11,7 @@ import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../../constants/app_sizes.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../utils/misc/app_utils.dart'; import '../../../../../utils/misc/toast/toast.dart'; import '../../../../../widgets/server_image.dart'; import '../../../data/extension_repository/extension_repository.dart'; @@ -36,26 +37,24 @@ class ExtensionListTile extends HookConsumerWidget { leading: ClipRRect( borderRadius: KBorderRadius.r8.radius, child: ServerImageWithCpi( - url: extension.iconUrl ?? "", + url: extension.iconUrl, outerSize: const Size.square(48), innerSize: const Size.square(24), isLoading: isLoading.value, ), ), title: Text( - extension.name ?? "", + extension.name, overflow: TextOverflow.ellipsis, ), subtitle: Text.rich( TextSpan( - text: (extension.lang) != null - ? "${extension.lang?.displayName} " - : null, + text: "${extension.language?.displayName} ", style: const TextStyle(fontWeight: FontWeight.bold), children: [ if (extension.versionName.isNotBlank) TextSpan( - text: "${extension.versionName ?? ""} ", + text: "${extension.versionName} ", style: const TextStyle(fontWeight: FontWeight.normal), ), if (extension.isNsfw.ifNull()) @@ -98,10 +97,10 @@ class ExtensionListTileTailing extends StatelessWidget { @override Widget build(BuildContext context) { - if (extension.obsolete.ifNull()) { + if (extension.isObsolete.ifNull()) { return OutlinedButton( - onPressed: extension.installed.ifNull() - ? () => repository.uninstallExtension(extension.pkgName!) + onPressed: extension.isInstalled.ifNull() + ? () => repository.uninstallExtension(extension.pkgName) : null, child: Text( context.l10n.obsolete, @@ -109,30 +108,28 @@ class ExtensionListTileTailing extends StatelessWidget { ), ); } else { - if (extension.installed.ifNull()) { + if (extension.isInstalled.ifNull()) { return TextButton( onPressed: (!isLoading.value) ? () async { try { isLoading.value = (true); - final result = (await AsyncValue.guard( + await AppUtils.guard( () async { if (extension.pkgName.isBlank) { throw context.l10n.errorExtension; } if (extension.hasUpdate.ifNull()) { - await repository.updateExtension(extension.pkgName!); + await repository.updateExtension(extension.pkgName); } else { await repository - .uninstallExtension(extension.pkgName!); + .uninstallExtension(extension.pkgName); } await refresh(); }, - )); - if (context.mounted) { - result.showToastOnError(ref.read(toastProvider(context))); - } + ref.read(toastProvider), + ); isLoading.value = (false); } catch (e) { // @@ -155,13 +152,13 @@ class ExtensionListTileTailing extends StatelessWidget { ? () async { try { isLoading.value = (true); - final result = await AsyncValue.guard(() async { + await AppUtils.guard(() async { if (extension.pkgName.isBlank) { throw context.l10n.errorExtension; } - await repository.installExtension(extension.pkgName!); - if ((extension.lang?.code).isNotBlank) { - final code = extension.lang!.code!; + await repository.installExtension(extension.pkgName); + if ((extension.language?.code).isNotBlank) { + final code = extension.language!.code!; final enabledLanguages = ref.read(sourceLanguageFilterProvider); if (enabledLanguages.isNotBlank && @@ -174,12 +171,7 @@ class ExtensionListTileTailing extends StatelessWidget { } } await refresh(); - }); - if (context.mounted) { - result.showToastOnError( - ref.read(toastProvider(context)), - ); - } + }, ref.read(toastProvider)); isLoading.value = (false); } catch (e) { // diff --git a/lib/src/features/browse_center/presentation/extension/widgets/install_extension_file.dart b/lib/src/features/browse_center/presentation/extension/widgets/install_extension_file.dart index ffd06983..f8324408 100644 --- a/lib/src/features/browse_center/presentation/extension/widgets/install_extension_file.dart +++ b/lib/src/features/browse_center/presentation/extension/widgets/install_extension_file.dart @@ -9,6 +9,7 @@ import 'package:flutter/material.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../utils/misc/app_utils.dart'; import '../../../../../utils/misc/toast/toast.dart'; import '../../../data/extension_repository/extension_repository.dart'; import '../controller/extension_controller.dart'; @@ -17,27 +18,25 @@ class InstallExtensionFile extends ConsumerWidget { const InstallExtensionFile({super.key}); void extensionFilePicker(WidgetRef ref, BuildContext context) async { - final toast = ref.read(toastProvider(context)); + final toast = ref.read(toastProvider); final file = await FilePicker.platform.pickFiles( type: FileType.custom, allowedExtensions: ['apk'], ); if ((file?.files).isNotBlank) { if (context.mounted) { - toast.show(context.l10n.installingExtension); + toast?.show(context.l10n.installingExtension); } } - AsyncValue.guard(() => ref - .read(extensionRepositoryProvider) - .installExtensionFile(context, file: file?.files.single)).then( - (result) => result.whenOrNull( - error: (error, stackTrace) => result.showToastOnError(toast), - data: (data) { - ref.invalidate(extensionProvider); - toast.show(context.l10n.extensionInstalled, instantShow: true); - }, - ), - ); + AppUtils.guard( + () => ref + .read(extensionRepositoryProvider) + .installExtensionFile(context, file: file?.files.single), + toast, + ).then((value) { + ref.invalidate(extensionProvider); + toast?.show(context.l10n.extensionInstalled, instantShow: true); + }); } @override diff --git a/lib/src/features/browse_center/presentation/global_search/controller/source_quick_search_controller.dart b/lib/src/features/browse_center/presentation/global_search/controller/source_quick_search_controller.dart index cfebd0e4..d1497550 100644 --- a/lib/src/features/browse_center/presentation/global_search/controller/source_quick_search_controller.dart +++ b/lib/src/features/browse_center/presentation/global_search/controller/source_quick_search_controller.dart @@ -51,9 +51,9 @@ AsyncValue> quickSearchResults( ); final List sourceMangaListPairList = []; for (Source source in sourceList) { - if (source.id.isNotBlank) { + if (source.id.value.isNotBlank) { final mangaList = ref.watch( - sourceQuickSearchMangaListProvider(source.id!, query: query), + sourceQuickSearchMangaListProvider(source.id.value, query: query), ); sourceMangaListPairList.add((mangaList: mangaList, source: source)); } diff --git a/lib/src/features/browse_center/presentation/global_search/controller/source_quick_search_controller.g.dart b/lib/src/features/browse_center/presentation/global_search/controller/source_quick_search_controller.g.dart index 9b60cb31..1eff2fea 100644 --- a/lib/src/features/browse_center/presentation/global_search/controller/source_quick_search_controller.g.dart +++ b/lib/src/features/browse_center/presentation/global_search/controller/source_quick_search_controller.g.dart @@ -179,7 +179,7 @@ class _SourceQuickSearchMangaListProviderElement } String _$quickSearchResultsHash() => - r'95c8745e42306378a3b8981adb88d6d40679966e'; + r'de7831936f5c58a0322cda51da5dbce67919a800'; /// See also [quickSearchResults]. @ProviderFor(quickSearchResults) diff --git a/lib/src/features/browse_center/presentation/global_search/global_search_screen.dart b/lib/src/features/browse_center/presentation/global_search/global_search_screen.dart index dbceedf4..0f1a1633 100644 --- a/lib/src/features/browse_center/presentation/global_search/global_search_screen.dart +++ b/lib/src/features/browse_center/presentation/global_search/global_search_screen.dart @@ -46,7 +46,7 @@ class GlobalSearchScreen extends HookConsumerWidget { context, (data) => data.isBlank ? Emoticons( - text: context.l10n.noSourcesFound, + title: context.l10n.noSourcesFound, button: TextButton( onPressed: () => ref.invalidate(sourceListProvider), child: Text(context.l10n.refresh), @@ -54,15 +54,11 @@ class GlobalSearchScreen extends HookConsumerWidget { ) : ListView.builder( itemBuilder: (context, index) { - if (data[index].source.id == null) { - return const SizedBox.shrink(); - } else { - return SourceShortSearch( - source: data[index].source, - mangaList: data[index].mangaList, - query: query.value, - ); - } + return SourceShortSearch( + source: data[index].source, + mangaList: data[index].mangaList, + query: query.value, + ); }, itemCount: data.length, ), diff --git a/lib/src/features/browse_center/presentation/global_search/widgets/source_short_search.dart b/lib/src/features/browse_center/presentation/global_search/widgets/source_short_search.dart index 6a919e9b..bc965e44 100644 --- a/lib/src/features/browse_center/presentation/global_search/widgets/source_short_search.dart +++ b/lib/src/features/browse_center/presentation/global_search/widgets/source_short_search.dart @@ -9,7 +9,6 @@ import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../../constants/app_sizes.dart'; import '../../../../../constants/enum.dart'; - import '../../../../../routes/router_config.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; import '../../../../../widgets/manga_cover/grid/manga_cover_grid_tile.dart'; @@ -34,10 +33,10 @@ class SourceShortSearch extends StatelessWidget { crossAxisAlignment: CrossAxisAlignment.start, children: [ ListTile( - title: Text(source.displayName ?? source.name ?? ""), + title: Text(source.displayName), trailing: const Icon(Icons.arrow_forward_rounded), - onTap: () => SourceMangaRoute( - sourceId: source.id!, + onTap: () => SourceTypeRoute( + sourceId: source.id.value, sourceType: SourceType.filter, query: query, ).push(context), @@ -60,9 +59,8 @@ class SourceShortSearch extends StatelessWidget { child: MangaCoverGridTile( manga: i, showDarkOverlay: i.inLibrary.ifNull(), - onPressed: i.id != null - ? () => MangaRoute(mangaId: i.id!).push(context) - : null, + onPressed: () => + MangaRoute(mangaId: i.id).push(context), ), ), ], diff --git a/lib/src/features/browse_center/presentation/source/controller/source_controller.dart b/lib/src/features/browse_center/presentation/source/controller/source_controller.dart index 7bae8734..04325113 100644 --- a/lib/src/features/browse_center/presentation/source/controller/source_controller.dart +++ b/lib/src/features/browse_center/presentation/source/controller/source_controller.dart @@ -33,11 +33,11 @@ AsyncValue>> sourceMap(SourceMapRef ref) { final sourceLastUsed = ref.watch(sourceLastUsedProvider); for (final e in [...?sourceListData.valueOrNull]) { sourceMap.update( - e.lang?.code ?? "other", + e.language?.code ?? "other", (value) => [...value, e], ifAbsent: () => [e], ); - if (e.id == sourceLastUsed) sourceMap["lastUsed"] = [e]; + if (e.id.value == sourceLastUsed) sourceMap["lastUsed"] = [e]; } return sourceListData.copyWithData((e) => sourceMap); } diff --git a/lib/src/features/browse_center/presentation/source/controller/source_controller.g.dart b/lib/src/features/browse_center/presentation/source/controller/source_controller.g.dart index 2bb86ee7..dec313fc 100644 --- a/lib/src/features/browse_center/presentation/source/controller/source_controller.g.dart +++ b/lib/src/features/browse_center/presentation/source/controller/source_controller.g.dart @@ -20,7 +20,7 @@ final sourceListProvider = AutoDisposeFutureProvider?>.internal( ); typedef SourceListRef = AutoDisposeFutureProviderRef?>; -String _$sourceMapHash() => r'13682cd8c100d4d7ef007793b2c5ab9f97bad438'; +String _$sourceMapHash() => r'ff42ed197cb681cc99f0c5b3da2a0989a1acd378'; /// See also [sourceMap]. @ProviderFor(sourceMap) diff --git a/lib/src/features/browse_center/presentation/source/source_screen.dart b/lib/src/features/browse_center/presentation/source/source_screen.dart index 3d2720bb..15cc1530 100644 --- a/lib/src/features/browse_center/presentation/source/source_screen.dart +++ b/lib/src/features/browse_center/presentation/source/source_screen.dart @@ -9,7 +9,6 @@ import 'package:flutter_hooks/flutter_hooks.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../constants/language_list.dart'; - import '../../../../utils/extensions/custom_extensions.dart'; import '../../../../utils/misc/toast/toast.dart'; import '../../../../widgets/emoticons.dart'; @@ -36,7 +35,7 @@ class SourceScreen extends HookConsumerWidget { useEffect(() { sourceMapData.showToastOnError( - ref.read(toastProvider(context)), + ref.read(toastProvider), withMicrotask: true, ); return; @@ -47,7 +46,7 @@ class SourceScreen extends HookConsumerWidget { (data) { if ((sourceMap.isEmpty && localSource.isBlank && lastUsed.isBlank)) { return Emoticons( - text: context.l10n.noSourcesFound, + title: context.l10n.noSourcesFound, button: TextButton( onPressed: refresh, child: Text(context.l10n.refresh), diff --git a/lib/src/features/browse_center/presentation/source/widgets/source_list_tile.dart b/lib/src/features/browse_center/presentation/source/widgets/source_list_tile.dart index b02b32b7..2762063b 100644 --- a/lib/src/features/browse_center/presentation/source/widgets/source_list_tile.dart +++ b/lib/src/features/browse_center/presentation/source/widgets/source_list_tile.dart @@ -9,7 +9,6 @@ import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../../constants/app_sizes.dart'; import '../../../../../constants/enum.dart'; - import '../../../../../routes/router_config.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; import '../../../../../widgets/server_image.dart'; @@ -25,32 +24,33 @@ class SourceListTile extends ConsumerWidget { Widget build(BuildContext context, WidgetRef ref) { return ListTile( onTap: (() async { - if (source.id == null) return; - ref.read(sourceLastUsedProvider.notifier).update(source.id); - SourceMangaRoute( - sourceId: source.id!, + ref.read(sourceLastUsedProvider.notifier).update(source.id.value); + SourceTypeRoute( + sourceId: source.id.value, sourceType: SourceType.popular, - ).push(context); + ).go(context); }), leading: ClipRRect( borderRadius: KBorderRadius.r8.radius, child: ServerImage( - imageUrl: source.iconUrl ?? "", + imageUrl: source.iconUrl, size: const Size.square(48), ), ), - title: Text(source.name ?? ""), - subtitle: (source.lang?.displayName).isNotBlank - ? Text(source.lang?.displayName ?? "") + title: Text(source.name), + subtitle: (source.language?.displayName).isNotBlank + ? Text(source.language?.displayName ?? "") : null, trailing: (source.supportsLatest.ifNull()) ? TextButton( onPressed: () async { - ref.read(sourceLastUsedProvider.notifier).update(source.id); - SourceMangaRoute( - sourceId: source.id!, + ref + .read(sourceLastUsedProvider.notifier) + .update(source.id.value); + SourceTypeRoute( + sourceId: source.id.value, sourceType: SourceType.latest, - ).push(context); + ).go(context); }, child: Text(context.l10n.latest), ) diff --git a/lib/src/features/browse_center/presentation/source_manga_list/source_manga_list_screen.dart b/lib/src/features/browse_center/presentation/source_manga_list/source_manga_list_screen.dart index a6c67f5b..87d4a78d 100644 --- a/lib/src/features/browse_center/presentation/source_manga_list/source_manga_list_screen.dart +++ b/lib/src/features/browse_center/presentation/source_manga_list/source_manga_list_screen.dart @@ -94,11 +94,11 @@ class SourceMangaListScreen extends HookConsumerWidget { ref.read(provider.notifier).updateFilter(value); controller.refresh(); } else { - SourceMangaRoute( + SourceTypeRoute( sourceId: sourceId, sourceType: SourceType.filter, $extra: value, - ).pushReplacement(context); + ).go(context); } }, ); @@ -142,8 +142,9 @@ class SourceMangaListScreen extends HookConsumerWidget { const SourceMangaDisplayIconPopup(), if ((data?.isConfigurable).ifNull()) IconButton( - onPressed: () => - SourcePreferenceRoute(sourceId: sourceId).push(context), + onPressed: () => SourcePreferenceRoute( + sourceId: sourceId, + ).go(context), icon: const Icon(Icons.settings_rounded), ), ], @@ -158,10 +159,10 @@ class SourceMangaListScreen extends HookConsumerWidget { groupValue: sourceType, onSelected: (val) { if (sourceType == SourceType.popular) return; - SourceMangaRoute( + SourceTypeRoute( sourceId: sourceId, sourceType: SourceType.popular, - ).pushReplacement(context); + ).go(context); }, ), if ((data?.supportsLatest).ifNull()) @@ -170,10 +171,10 @@ class SourceMangaListScreen extends HookConsumerWidget { groupValue: sourceType, onSelected: (val) { if (sourceType == SourceType.latest) return; - SourceMangaRoute( + SourceTypeRoute( sourceId: sourceId, sourceType: SourceType.latest, - ).pushReplacement(context); + ).go(context); }, ), Builder( @@ -211,11 +212,11 @@ class SourceMangaListScreen extends HookConsumerWidget { controller.refresh(); } else { if (val == null) return; - SourceMangaRoute( + SourceTypeRoute( sourceId: sourceId, sourceType: SourceType.filter, query: val, - ).pushReplacement(context); + ).go(context); } }, ), @@ -239,7 +240,12 @@ class SourceMangaListScreen extends HookConsumerWidget { ), body: RefreshIndicator( onRefresh: () async => controller.refresh(), - child: SourceMangaDisplayView(controller: controller, source: data), + child: SourceMangaDisplayView( + sourceId: sourceId, + sourceType: sourceType, + controller: controller, + source: data, + ), ), ), refresh: () => ref.refresh(sourceProvider(sourceId)), diff --git a/lib/src/features/browse_center/presentation/source_manga_list/widgets/filter_to_widget.dart b/lib/src/features/browse_center/presentation/source_manga_list/widgets/filter_to_widget.dart index 4182c65f..9781152e 100644 --- a/lib/src/features/browse_center/presentation/source_manga_list/widgets/filter_to_widget.dart +++ b/lib/src/features/browse_center/presentation/source_manga_list/widgets/filter_to_widget.dart @@ -125,7 +125,7 @@ class FilterToWidget extends StatelessWidget { child: Padding( padding: KEdgeInsets.h16.size, child: DropdownButton( - icon: const Icon(Icons.keyboard_arrow_down), + icon: const Icon(Icons.keyboard_arrow_down_rounded), isExpanded: true, value: state, hint: Text(name ?? ""), diff --git a/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_display_view.dart b/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_display_view.dart index f88c2eb0..f8add368 100644 --- a/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_display_view.dart +++ b/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_display_view.dart @@ -5,7 +5,6 @@ // file, You can obtain one at http://mozilla.org/MPL/2.0/. import 'package:flutter/material.dart'; - import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:infinite_scroll_pagination/infinite_scroll_pagination.dart'; @@ -23,11 +22,15 @@ class SourceMangaDisplayView extends ConsumerWidget { const SourceMangaDisplayView({ super.key, required this.controller, + required this.sourceId, + required this.sourceType, this.source, }); final PagingController controller; final Source? source; + final String sourceId; + final SourceType sourceType; @override Widget build(BuildContext context, WidgetRef ref) { final DisplayMode displayMode = ref.watch(sourceDisplayModeProvider) ?? @@ -38,7 +41,7 @@ class SourceMangaDisplayView extends ConsumerWidget { await showDialog( context: context, builder: (context) => AlertDialog( - title: item.title.isNotBlank ? Text(item.title!) : null, + title: item.title.isNotBlank ? Text(item.title) : null, content: Text( context.l10n.removeFromLibrary, style: context.textTheme.bodyLarge, @@ -61,16 +64,18 @@ class SourceMangaDisplayView extends ConsumerWidget { return removeManga ? await AsyncValue.guard(() => ref .read(mangaBookRepositoryProvider) - .removeMangaFromLibrary(item.id!)) + .removeMangaFromLibrary(item.id)) : null; } else { return AsyncValue.guard(() => - ref.read(mangaBookRepositoryProvider).addMangaToLibrary(item.id!)); + ref.read(mangaBookRepositoryProvider).addMangaToLibrary(item.id)); } } return switch (displayMode) { DisplayMode.grid => SourceMangaGridView( + sourceId: sourceId, + sourceType: sourceType, controller: controller, source: source, toggleFavorite: toggleFavorite, diff --git a/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_grid_view.dart b/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_grid_view.dart index ae0c0b09..d0786e02 100644 --- a/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_grid_view.dart +++ b/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_grid_view.dart @@ -9,14 +9,14 @@ import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:infinite_scroll_pagination/infinite_scroll_pagination.dart'; import '../../../../../constants/app_sizes.dart'; - +import '../../../../../constants/enum.dart'; import '../../../../../routes/router_config.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; import '../../../../../widgets/custom_circular_progress_indicator.dart'; import '../../../../../widgets/emoticons.dart'; import '../../../../../widgets/manga_cover/grid/manga_cover_grid_tile.dart'; import '../../../../manga_book/domain/manga/manga_model.dart'; -import '../../../../settings/presentation/appearance/widgets/grid_cover_min_width.dart'; +import '../../../../settings/presentation/appearance/widgets/grid_cover_width_slider/grid_cover_width_slider.dart'; import '../../../domain/source/source_model.dart'; class SourceMangaGridView extends ConsumerWidget { @@ -24,11 +24,15 @@ class SourceMangaGridView extends ConsumerWidget { super.key, required this.toggleFavorite, required this.controller, + required this.sourceId, + required this.sourceType, this.source, }); final Future Function(Manga) toggleFavorite; final PagingController controller; final Source? source; + final String sourceId; + final SourceType sourceType; @override Widget build(BuildContext context, WidgetRef ref) { @@ -40,35 +44,34 @@ class SourceMangaGridView extends ConsumerWidget { newPageProgressIndicatorBuilder: (context) => const CenterSorayomiShimmerIndicator(), firstPageErrorIndicatorBuilder: (context) => Emoticons( - text: controller.error.toString(), + title: controller.error.toString(), button: TextButton( onPressed: () => controller.refresh(), child: Text(context.l10n.retry), ), ), noItemsFoundIndicatorBuilder: (context) => Emoticons( - text: context.l10n.noMangaFound, + title: context.l10n.noMangaFound, button: TextButton( onPressed: () => controller.refresh(), child: Text(context.l10n.refresh), ), ), itemBuilder: (context, item, index) => MangaCoverGridTile( - manga: item.copyWith(source: source), + manga: item, showDarkOverlay: item.inLibrary.ifNull(), onLongPress: () async { final value = await toggleFavorite(item); if (value == null) return; if (value is! AsyncError) { final items = [...?controller.itemList]; - items[index] = item.copyWith(inLibrary: !item.inLibrary.ifNull()); + //TODO: Implement copyWith + // items[index] = item.copyWith(inLibrary: !item.inLibrary.ifNull()); controller.itemList = items; } }, onPressed: () { - if (item.id != null) { - MangaRoute(mangaId: item.id!).push(context); - } + MangaRoute(mangaId: item.id).push(context); }, ), ), diff --git a/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_list_view.dart b/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_list_view.dart index 0cc3c25a..145ad962 100644 --- a/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_list_view.dart +++ b/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_list_view.dart @@ -65,34 +65,33 @@ class SourceMangaListView extends ConsumerWidget { ], ), firstPageErrorIndicatorBuilder: (context) => Emoticons( - text: controller.error.toString(), + title: controller.error.toString(), button: TextButton( onPressed: () => controller.refresh(), child: Text(context.l10n.retry), ), ), noItemsFoundIndicatorBuilder: (context) => Emoticons( - text: context.l10n.noMangaFound, + title: context.l10n.noMangaFound, button: TextButton( onPressed: () => controller.refresh(), child: Text(context.l10n.refresh), ), ), itemBuilder: (context, item, index) => MangaCoverListTile( - manga: item.copyWith(source: source), + manga: item, onLongPress: () async { final value = await toggleFavorite(item); if (value == null) return; if (value is! AsyncError) { final items = [...?controller.itemList]; - items[index] = item.copyWith(inLibrary: !item.inLibrary.ifNull()); + //TODO: Implement copyWith + // items[index] = item.copyWith(inLibrary: !item.inLibrary.ifNull()); controller.itemList = items; } }, onPressed: () { - if (item.id != null) { - MangaRoute(mangaId: item.id!).push(context); - } + MangaRoute(mangaId: item.id).push(context); }, ), ), diff --git a/lib/src/features/browse_center/presentation/source_preference/controller/source_preference_controller.dart b/lib/src/features/browse_center/presentation/source_preference/controller/source_preference_controller.dart index d7e674ed..abceefb9 100644 --- a/lib/src/features/browse_center/presentation/source_preference/controller/source_preference_controller.dart +++ b/lib/src/features/browse_center/presentation/source_preference/controller/source_preference_controller.dart @@ -10,6 +10,7 @@ import 'package:riverpod_annotation/riverpod_annotation.dart'; import '../../../data/source_repository/source_repository.dart'; import '../../../domain/source_preference/source_preference.dart'; + part 'source_preference_controller.g.dart'; @riverpod @@ -28,7 +29,7 @@ class SourcePreferenceList extends _$SourcePreferenceList { void reset() => ref.invalidate(baseSourcePreferenceListProvider(sourceId)); void updatePreference(int index, SourcePreference preference) async { - final value = preference.sourcePreferenceProp?.currentValue; + final value = preference.currentValue; await ref.read(sourceRepositoryProvider).updatePreferenceList( sourceId: sourceId, preference: { diff --git a/lib/src/features/browse_center/presentation/source_preference/controller/source_preference_controller.g.dart b/lib/src/features/browse_center/presentation/source_preference/controller/source_preference_controller.g.dart index bcea8004..067051da 100644 --- a/lib/src/features/browse_center/presentation/source_preference/controller/source_preference_controller.g.dart +++ b/lib/src/features/browse_center/presentation/source_preference/controller/source_preference_controller.g.dart @@ -164,7 +164,7 @@ class _BaseSourcePreferenceListProviderElement } String _$sourcePreferenceListHash() => - r'30c8dca8328a16872db111dcc9052178c9f3e60c'; + r'4faf82a6950290ca15c3985e161116fcfc283bac'; abstract class _$SourcePreferenceList extends BuildlessAutoDisposeNotifier?>> { diff --git a/lib/src/features/browse_center/presentation/source_preference/source_preference_screen.dart b/lib/src/features/browse_center/presentation/source_preference/source_preference_screen.dart index 706539f0..927dd3ad 100644 --- a/lib/src/features/browse_center/presentation/source_preference/source_preference_screen.dart +++ b/lib/src/features/browse_center/presentation/source_preference/source_preference_screen.dart @@ -38,7 +38,7 @@ class SourcePreferenceScreen extends HookConsumerWidget { if (sourcePreference == null) return const SizedBox.shrink(); return SourcePreferenceToWidget( key: ValueKey( - "Source-preference-${sourcePreference.sourcePreferenceProp?.key}", + "Source-preference-${sourcePreference.key}", ), sourcePreference: sourcePreference, onChanged: (value) { diff --git a/lib/src/features/browse_center/presentation/source_preference/widgets/source_preference_to_widget.dart b/lib/src/features/browse_center/presentation/source_preference/widgets/source_preference_to_widget.dart index f377a5f6..bcb44cac 100644 --- a/lib/src/features/browse_center/presentation/source_preference/widgets/source_preference_to_widget.dart +++ b/lib/src/features/browse_center/presentation/source_preference/widgets/source_preference_to_widget.dart @@ -11,7 +11,6 @@ import '../../../../../widgets/popup_widgets/multi_select_popup.dart'; import '../../../../../widgets/popup_widgets/radio_list_popup.dart'; import '../../../../../widgets/popup_widgets/text_field_popup.dart'; import '../../../domain/source_preference/source_preference.dart'; -import '../../../domain/source_preference_prop/source_preference_prop.dart'; class SourcePreferenceToWidget extends StatelessWidget { const SourcePreferenceToWidget({ @@ -23,15 +22,15 @@ class SourcePreferenceToWidget extends StatelessWidget { final SourcePreference sourcePreference; final ValueChanged onChanged; - void onChangedPreferenceCopyWith(T prop, + void onChangedPreferenceCopyWith(T prop, [BuildContext? context]) { - onChanged(sourcePreference.copyWith(sourcePreferenceProp: prop)); + onChanged(prop); if (context != null) Navigator.pop(context); } @override Widget build(BuildContext context) { - SourcePreferenceProp? prop = sourcePreference.sourcePreferenceProp; + SourcePreference? prop = sourcePreference; return switch (prop) { CheckBoxPreference( key: String? key, @@ -136,7 +135,7 @@ class SourcePreferenceToWidget extends StatelessWidget { ), ), ), - null || Fallback() => const SizedBox.shrink(), + Fallback() => const SizedBox.shrink(), }; } } diff --git a/lib/src/features/library/data/category/category_repository.dart b/lib/src/features/library/data/category_repository.dart similarity index 53% rename from lib/src/features/library/data/category/category_repository.dart rename to lib/src/features/library/data/category_repository.dart index 24b4e637..4e7cfa23 100644 --- a/lib/src/features/library/data/category/category_repository.dart +++ b/lib/src/features/library/data/category_repository.dart @@ -4,31 +4,32 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. +import 'dart:async'; + import 'package:dio/dio.dart'; +import 'package:ferry/ferry.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; -import '../../../../constants/endpoints.dart'; -import '../../../../global_providers/global_providers.dart'; -import '../../../../utils/extensions/custom_extensions.dart'; -import '../../../../utils/storage/dio/dio_client.dart'; -import '../../../manga_book/domain/manga/manga_model.dart'; -import '../../domain/category/category_model.dart'; +import '../../../constants/endpoints.dart'; +import '../../../global_providers/global_providers.dart'; +import '../../../utils/extensions/custom_extensions.dart'; +import '../../../utils/storage/dio/dio_client.dart'; +import '../../manga_book/domain/manga/graphql/__generated__/fragment.data.gql.dart'; +import '../../manga_book/domain/manga/manga_model.dart'; +import '../domain/category/category_model.dart'; +import 'graphql/category_query.dart'; part 'category_repository.g.dart'; class CategoryRepository { final DioClient dioClient; + final Client ferryClient; - CategoryRepository(this.dioClient); + CategoryRepository(this.dioClient, this.ferryClient); - Future?> getCategoryList({CancelToken? cancelToken}) async => - (await dioClient.get, Category>( - CategoryUrl.category, - decoder: (e) => - e is Map ? Category.fromJson(e) : Category(), - cancelToken: cancelToken, - )) - .data; + Stream?> getCategoryList() => ferryClient.fetch( + CategoryQuery.getAllCategories(), + (data) => data.categories.nodes.asList()); Future createCategory({ required Category category, @@ -43,25 +44,21 @@ class CategoryRepository { Future editCategory({ required Category category, CancelToken? cancelToken, - }) async => - category.id != null - ? await dioClient.patch( - CategoryUrl.withId(category.id!), - data: FormData.fromMap(category.toJson().filterOutNulls), - cancelToken: cancelToken, - ) - : null; + }) => + dioClient.patch( + CategoryUrl.withId(category.id), + data: FormData.fromMap(category.toJson().filterOutNulls), + cancelToken: cancelToken, + ); Future deleteCategory({ required Category category, CancelToken? cancelToken, - }) async => - (category.id != null) - ? dioClient.delete( - CategoryUrl.withId(category.id!), - cancelToken: cancelToken, - ) - : null; + }) => + dioClient.delete( + CategoryUrl.withId(category.id), + cancelToken: cancelToken, + ); Future reorderCategory({ required int from, @@ -79,11 +76,14 @@ class CategoryRepository { }) async => (await dioClient.get, Manga>( CategoryUrl.withId(categoryId), - decoder: (e) => e is Map ? Manga.fromJson(e) : Manga(), + decoder: (e) => GMangaFragmentData(), //TODO: Implement decoder )) .data; } @riverpod CategoryRepository categoryRepository(CategoryRepositoryRef ref) => - CategoryRepository(ref.watch(dioClientKeyProvider)); + CategoryRepository( + ref.watch(dioClientKeyProvider), + ref.watch(ferryClientProvider), + ); diff --git a/lib/src/features/library/data/category/category_repository.g.dart b/lib/src/features/library/data/category_repository.g.dart similarity index 94% rename from lib/src/features/library/data/category/category_repository.g.dart rename to lib/src/features/library/data/category_repository.g.dart index a27a34d4..a433eace 100644 --- a/lib/src/features/library/data/category/category_repository.g.dart +++ b/lib/src/features/library/data/category_repository.g.dart @@ -7,7 +7,7 @@ part of 'category_repository.dart'; // ************************************************************************** String _$categoryRepositoryHash() => - r'f62ecef9ec108e4aba46068e319e118730be6d06'; + r'beb9c34208c6156a7f57f6ce5602595fe9e8732b'; /// See also [categoryRepository]. @ProviderFor(categoryRepository) diff --git a/lib/src/features/library/data/graphql/__generated__/category_query.ast.gql.dart b/lib/src/features/library/data/graphql/__generated__/category_query.ast.gql.dart new file mode 100644 index 00000000..91b37fc8 --- /dev/null +++ b/lib/src/features/library/data/graphql/__generated__/category_query.ast.gql.dart @@ -0,0 +1,124 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/library/domain/category/graphql/__generated__/fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/fragments.ast.gql.dart' + as _i3; + +const AllCategories = _i1.OperationDefinitionNode( + type: _i1.OperationType.query, + name: _i1.NameNode(value: 'AllCategories'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'condition')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryConditionInput'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ), + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'filter')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryFilterInput'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ), + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'first')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ), + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'offset')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ), + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'categories'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'condition'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'condition')), + ), + _i1.ArgumentNode( + name: _i1.NameNode(value: 'filter'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'filter')), + ), + _i1.ArgumentNode( + name: _i1.NameNode(value: 'first'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'first')), + ), + _i1.ArgumentNode( + name: _i1.NameNode(value: 'orderBy'), + value: _i1.EnumValueNode(name: _i1.NameNode(value: 'ORDER')), + ), + _i1.ArgumentNode( + name: _i1.NameNode(value: 'orderByType'), + value: _i1.EnumValueNode(name: _i1.NameNode(value: 'ASC')), + ), + _i1.ArgumentNode( + name: _i1.NameNode(value: 'offset'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'offset')), + ), + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'nodes'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'CategoryFragment'), + directives: [], + ) + ]), + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'pageInfo'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'PageInfoFragment'), + directives: [], + ) + ]), + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + AllCategories, + _i2.CategoryFragment, + _i3.PageInfoFragment, +]); diff --git a/lib/src/features/library/data/graphql/__generated__/category_query.data.gql.dart b/lib/src/features/library/data/graphql/__generated__/category_query.data.gql.dart new file mode 100644 index 00000000..51c5a781 --- /dev/null +++ b/lib/src/features/library/data/graphql/__generated__/category_query.data.gql.dart @@ -0,0 +1,250 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/library/domain/category/graphql/__generated__/fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/fragments.data.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'category_query.data.gql.g.dart'; + +abstract class GAllCategoriesData + implements Built { + GAllCategoriesData._(); + + factory GAllCategoriesData( + [void Function(GAllCategoriesDataBuilder b) updates]) = + _$GAllCategoriesData; + + static void _initializeBuilder(GAllCategoriesDataBuilder b) => + b..G__typename = 'Query'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GAllCategoriesData_categories get categories; + static Serializer get serializer => + _$gAllCategoriesDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GAllCategoriesData.serializer, + this, + ) as Map); + + static GAllCategoriesData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GAllCategoriesData.serializer, + json, + ); +} + +abstract class GAllCategoriesData_categories + implements + Built { + GAllCategoriesData_categories._(); + + factory GAllCategoriesData_categories( + [void Function(GAllCategoriesData_categoriesBuilder b) updates]) = + _$GAllCategoriesData_categories; + + static void _initializeBuilder(GAllCategoriesData_categoriesBuilder b) => + b..G__typename = 'CategoryNodeList'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + BuiltList get nodes; + GAllCategoriesData_categories_pageInfo get pageInfo; + int get totalCount; + static Serializer get serializer => + _$gAllCategoriesDataCategoriesSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GAllCategoriesData_categories.serializer, + this, + ) as Map); + + static GAllCategoriesData_categories? fromJson(Map json) => + _i1.serializers.deserializeWith( + GAllCategoriesData_categories.serializer, + json, + ); +} + +abstract class GAllCategoriesData_categories_nodes + implements + Built, + _i2.GCategoryFragment { + GAllCategoriesData_categories_nodes._(); + + factory GAllCategoriesData_categories_nodes( + [void Function(GAllCategoriesData_categories_nodesBuilder b) + updates]) = _$GAllCategoriesData_categories_nodes; + + static void _initializeBuilder( + GAllCategoriesData_categories_nodesBuilder b) => + b..G__typename = 'CategoryType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + @BuiltValueField(wireName: 'default') + bool get Gdefault; + @override + int get id; + @override + _i3.GIncludeOrExclude get includeInDownload; + @override + _i3.GIncludeOrExclude get includeInUpdate; + @override + String get name; + @override + int get order; + @override + GAllCategoriesData_categories_nodes_mangas get mangas; + @override + BuiltList get meta; + static Serializer get serializer => + _$gAllCategoriesDataCategoriesNodesSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GAllCategoriesData_categories_nodes.serializer, + this, + ) as Map); + + static GAllCategoriesData_categories_nodes? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GAllCategoriesData_categories_nodes.serializer, + json, + ); +} + +abstract class GAllCategoriesData_categories_nodes_mangas + implements + Built, + _i2.GCategoryFragment_mangas { + GAllCategoriesData_categories_nodes_mangas._(); + + factory GAllCategoriesData_categories_nodes_mangas( + [void Function(GAllCategoriesData_categories_nodes_mangasBuilder b) + updates]) = _$GAllCategoriesData_categories_nodes_mangas; + + static void _initializeBuilder( + GAllCategoriesData_categories_nodes_mangasBuilder b) => + b..G__typename = 'MangaNodeList'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get totalCount; + static Serializer + get serializer => _$gAllCategoriesDataCategoriesNodesMangasSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GAllCategoriesData_categories_nodes_mangas.serializer, + this, + ) as Map); + + static GAllCategoriesData_categories_nodes_mangas? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GAllCategoriesData_categories_nodes_mangas.serializer, + json, + ); +} + +abstract class GAllCategoriesData_categories_nodes_meta + implements + Built, + _i2.GCategoryFragment_meta { + GAllCategoriesData_categories_nodes_meta._(); + + factory GAllCategoriesData_categories_nodes_meta( + [void Function(GAllCategoriesData_categories_nodes_metaBuilder b) + updates]) = _$GAllCategoriesData_categories_nodes_meta; + + static void _initializeBuilder( + GAllCategoriesData_categories_nodes_metaBuilder b) => + b..G__typename = 'CategoryMetaType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get key; + @override + String get value; + static Serializer get serializer => + _$gAllCategoriesDataCategoriesNodesMetaSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GAllCategoriesData_categories_nodes_meta.serializer, + this, + ) as Map); + + static GAllCategoriesData_categories_nodes_meta? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GAllCategoriesData_categories_nodes_meta.serializer, + json, + ); +} + +abstract class GAllCategoriesData_categories_pageInfo + implements + Built, + _i4.GPageInfoFragment { + GAllCategoriesData_categories_pageInfo._(); + + factory GAllCategoriesData_categories_pageInfo( + [void Function(GAllCategoriesData_categories_pageInfoBuilder b) + updates]) = _$GAllCategoriesData_categories_pageInfo; + + static void _initializeBuilder( + GAllCategoriesData_categories_pageInfoBuilder b) => + b..G__typename = 'PageInfo'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + _i3.GCursor? get endCursor; + @override + bool get hasNextPage; + @override + bool get hasPreviousPage; + @override + _i3.GCursor? get startCursor; + static Serializer get serializer => + _$gAllCategoriesDataCategoriesPageInfoSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GAllCategoriesData_categories_pageInfo.serializer, + this, + ) as Map); + + static GAllCategoriesData_categories_pageInfo? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GAllCategoriesData_categories_pageInfo.serializer, + json, + ); +} diff --git a/lib/src/features/library/data/graphql/__generated__/category_query.data.gql.g.dart b/lib/src/features/library/data/graphql/__generated__/category_query.data.gql.g.dart new file mode 100644 index 00000000..2760c0bf --- /dev/null +++ b/lib/src/features/library/data/graphql/__generated__/category_query.data.gql.g.dart @@ -0,0 +1,1391 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'category_query.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gAllCategoriesDataSerializer = + new _$GAllCategoriesDataSerializer(); +Serializer + _$gAllCategoriesDataCategoriesSerializer = + new _$GAllCategoriesData_categoriesSerializer(); +Serializer + _$gAllCategoriesDataCategoriesNodesSerializer = + new _$GAllCategoriesData_categories_nodesSerializer(); +Serializer + _$gAllCategoriesDataCategoriesNodesMangasSerializer = + new _$GAllCategoriesData_categories_nodes_mangasSerializer(); +Serializer + _$gAllCategoriesDataCategoriesNodesMetaSerializer = + new _$GAllCategoriesData_categories_nodes_metaSerializer(); +Serializer + _$gAllCategoriesDataCategoriesPageInfoSerializer = + new _$GAllCategoriesData_categories_pageInfoSerializer(); + +class _$GAllCategoriesDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GAllCategoriesData, _$GAllCategoriesData]; + @override + final String wireName = 'GAllCategoriesData'; + + @override + Iterable serialize( + Serializers serializers, GAllCategoriesData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'categories', + serializers.serialize(object.categories, + specifiedType: const FullType(GAllCategoriesData_categories)), + ]; + + return result; + } + + @override + GAllCategoriesData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAllCategoriesDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'categories': + result.categories.replace(serializers.deserialize(value, + specifiedType: const FullType(GAllCategoriesData_categories))! + as GAllCategoriesData_categories); + break; + } + } + + return result.build(); + } +} + +class _$GAllCategoriesData_categoriesSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GAllCategoriesData_categories, + _$GAllCategoriesData_categories + ]; + @override + final String wireName = 'GAllCategoriesData_categories'; + + @override + Iterable serialize( + Serializers serializers, GAllCategoriesData_categories object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'nodes', + serializers.serialize(object.nodes, + specifiedType: const FullType(BuiltList, + const [const FullType(GAllCategoriesData_categories_nodes)])), + 'pageInfo', + serializers.serialize(object.pageInfo, + specifiedType: + const FullType(GAllCategoriesData_categories_pageInfo)), + 'totalCount', + serializers.serialize(object.totalCount, + specifiedType: const FullType(int)), + ]; + + return result; + } + + @override + GAllCategoriesData_categories deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAllCategoriesData_categoriesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'nodes': + result.nodes.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GAllCategoriesData_categories_nodes) + ]))! as BuiltList); + break; + case 'pageInfo': + result.pageInfo.replace(serializers.deserialize(value, + specifiedType: + const FullType(GAllCategoriesData_categories_pageInfo))! + as GAllCategoriesData_categories_pageInfo); + break; + case 'totalCount': + result.totalCount = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GAllCategoriesData_categories_nodesSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GAllCategoriesData_categories_nodes, + _$GAllCategoriesData_categories_nodes + ]; + @override + final String wireName = 'GAllCategoriesData_categories_nodes'; + + @override + Iterable serialize( + Serializers serializers, GAllCategoriesData_categories_nodes object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'default', + serializers.serialize(object.Gdefault, + specifiedType: const FullType(bool)), + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'includeInDownload', + serializers.serialize(object.includeInDownload, + specifiedType: const FullType(_i3.GIncludeOrExclude)), + 'includeInUpdate', + serializers.serialize(object.includeInUpdate, + specifiedType: const FullType(_i3.GIncludeOrExclude)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'order', + serializers.serialize(object.order, specifiedType: const FullType(int)), + 'mangas', + serializers.serialize(object.mangas, + specifiedType: + const FullType(GAllCategoriesData_categories_nodes_mangas)), + 'meta', + serializers.serialize(object.meta, + specifiedType: const FullType(BuiltList, const [ + const FullType(GAllCategoriesData_categories_nodes_meta) + ])), + ]; + + return result; + } + + @override + GAllCategoriesData_categories_nodes deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAllCategoriesData_categories_nodesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'default': + result.Gdefault = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'includeInDownload': + result.includeInDownload = serializers.deserialize(value, + specifiedType: const FullType(_i3.GIncludeOrExclude))! + as _i3.GIncludeOrExclude; + break; + case 'includeInUpdate': + result.includeInUpdate = serializers.deserialize(value, + specifiedType: const FullType(_i3.GIncludeOrExclude))! + as _i3.GIncludeOrExclude; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'order': + result.order = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'mangas': + result.mangas.replace(serializers.deserialize(value, + specifiedType: const FullType( + GAllCategoriesData_categories_nodes_mangas))! + as GAllCategoriesData_categories_nodes_mangas); + break; + case 'meta': + result.meta.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GAllCategoriesData_categories_nodes_meta) + ]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GAllCategoriesData_categories_nodes_mangasSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GAllCategoriesData_categories_nodes_mangas, + _$GAllCategoriesData_categories_nodes_mangas + ]; + @override + final String wireName = 'GAllCategoriesData_categories_nodes_mangas'; + + @override + Iterable serialize(Serializers serializers, + GAllCategoriesData_categories_nodes_mangas object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'totalCount', + serializers.serialize(object.totalCount, + specifiedType: const FullType(int)), + ]; + + return result; + } + + @override + GAllCategoriesData_categories_nodes_mangas deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAllCategoriesData_categories_nodes_mangasBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'totalCount': + result.totalCount = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GAllCategoriesData_categories_nodes_metaSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GAllCategoriesData_categories_nodes_meta, + _$GAllCategoriesData_categories_nodes_meta + ]; + @override + final String wireName = 'GAllCategoriesData_categories_nodes_meta'; + + @override + Iterable serialize( + Serializers serializers, GAllCategoriesData_categories_nodes_meta object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'value', + serializers.serialize(object.value, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GAllCategoriesData_categories_nodes_meta deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAllCategoriesData_categories_nodes_metaBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GAllCategoriesData_categories_pageInfoSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GAllCategoriesData_categories_pageInfo, + _$GAllCategoriesData_categories_pageInfo + ]; + @override + final String wireName = 'GAllCategoriesData_categories_pageInfo'; + + @override + Iterable serialize( + Serializers serializers, GAllCategoriesData_categories_pageInfo object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'hasNextPage', + serializers.serialize(object.hasNextPage, + specifiedType: const FullType(bool)), + 'hasPreviousPage', + serializers.serialize(object.hasPreviousPage, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.endCursor; + if (value != null) { + result + ..add('endCursor') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i3.GCursor))); + } + value = object.startCursor; + if (value != null) { + result + ..add('startCursor') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i3.GCursor))); + } + return result; + } + + @override + GAllCategoriesData_categories_pageInfo deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAllCategoriesData_categories_pageInfoBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'endCursor': + result.endCursor.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GCursor))! as _i3.GCursor); + break; + case 'hasNextPage': + result.hasNextPage = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'hasPreviousPage': + result.hasPreviousPage = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'startCursor': + result.startCursor.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GCursor))! as _i3.GCursor); + break; + } + } + + return result.build(); + } +} + +class _$GAllCategoriesData extends GAllCategoriesData { + @override + final String G__typename; + @override + final GAllCategoriesData_categories categories; + + factory _$GAllCategoriesData( + [void Function(GAllCategoriesDataBuilder)? updates]) => + (new GAllCategoriesDataBuilder()..update(updates))._build(); + + _$GAllCategoriesData._({required this.G__typename, required this.categories}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GAllCategoriesData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + categories, r'GAllCategoriesData', 'categories'); + } + + @override + GAllCategoriesData rebuild( + void Function(GAllCategoriesDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAllCategoriesDataBuilder toBuilder() => + new GAllCategoriesDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAllCategoriesData && + G__typename == other.G__typename && + categories == other.categories; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, categories.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GAllCategoriesData') + ..add('G__typename', G__typename) + ..add('categories', categories)) + .toString(); + } +} + +class GAllCategoriesDataBuilder + implements Builder { + _$GAllCategoriesData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GAllCategoriesData_categoriesBuilder? _categories; + GAllCategoriesData_categoriesBuilder get categories => + _$this._categories ??= new GAllCategoriesData_categoriesBuilder(); + set categories(GAllCategoriesData_categoriesBuilder? categories) => + _$this._categories = categories; + + GAllCategoriesDataBuilder() { + GAllCategoriesData._initializeBuilder(this); + } + + GAllCategoriesDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _categories = $v.categories.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GAllCategoriesData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAllCategoriesData; + } + + @override + void update(void Function(GAllCategoriesDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAllCategoriesData build() => _build(); + + _$GAllCategoriesData _build() { + _$GAllCategoriesData _$result; + try { + _$result = _$v ?? + new _$GAllCategoriesData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GAllCategoriesData', 'G__typename'), + categories: categories.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'categories'; + categories.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GAllCategoriesData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GAllCategoriesData_categories extends GAllCategoriesData_categories { + @override + final String G__typename; + @override + final BuiltList nodes; + @override + final GAllCategoriesData_categories_pageInfo pageInfo; + @override + final int totalCount; + + factory _$GAllCategoriesData_categories( + [void Function(GAllCategoriesData_categoriesBuilder)? updates]) => + (new GAllCategoriesData_categoriesBuilder()..update(updates))._build(); + + _$GAllCategoriesData_categories._( + {required this.G__typename, + required this.nodes, + required this.pageInfo, + required this.totalCount}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GAllCategoriesData_categories', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + nodes, r'GAllCategoriesData_categories', 'nodes'); + BuiltValueNullFieldError.checkNotNull( + pageInfo, r'GAllCategoriesData_categories', 'pageInfo'); + BuiltValueNullFieldError.checkNotNull( + totalCount, r'GAllCategoriesData_categories', 'totalCount'); + } + + @override + GAllCategoriesData_categories rebuild( + void Function(GAllCategoriesData_categoriesBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAllCategoriesData_categoriesBuilder toBuilder() => + new GAllCategoriesData_categoriesBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAllCategoriesData_categories && + G__typename == other.G__typename && + nodes == other.nodes && + pageInfo == other.pageInfo && + totalCount == other.totalCount; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, nodes.hashCode); + _$hash = $jc(_$hash, pageInfo.hashCode); + _$hash = $jc(_$hash, totalCount.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GAllCategoriesData_categories') + ..add('G__typename', G__typename) + ..add('nodes', nodes) + ..add('pageInfo', pageInfo) + ..add('totalCount', totalCount)) + .toString(); + } +} + +class GAllCategoriesData_categoriesBuilder + implements + Builder { + _$GAllCategoriesData_categories? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + ListBuilder? _nodes; + ListBuilder get nodes => + _$this._nodes ??= new ListBuilder(); + set nodes(ListBuilder? nodes) => + _$this._nodes = nodes; + + GAllCategoriesData_categories_pageInfoBuilder? _pageInfo; + GAllCategoriesData_categories_pageInfoBuilder get pageInfo => + _$this._pageInfo ??= new GAllCategoriesData_categories_pageInfoBuilder(); + set pageInfo(GAllCategoriesData_categories_pageInfoBuilder? pageInfo) => + _$this._pageInfo = pageInfo; + + int? _totalCount; + int? get totalCount => _$this._totalCount; + set totalCount(int? totalCount) => _$this._totalCount = totalCount; + + GAllCategoriesData_categoriesBuilder() { + GAllCategoriesData_categories._initializeBuilder(this); + } + + GAllCategoriesData_categoriesBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _nodes = $v.nodes.toBuilder(); + _pageInfo = $v.pageInfo.toBuilder(); + _totalCount = $v.totalCount; + _$v = null; + } + return this; + } + + @override + void replace(GAllCategoriesData_categories other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAllCategoriesData_categories; + } + + @override + void update(void Function(GAllCategoriesData_categoriesBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAllCategoriesData_categories build() => _build(); + + _$GAllCategoriesData_categories _build() { + _$GAllCategoriesData_categories _$result; + try { + _$result = _$v ?? + new _$GAllCategoriesData_categories._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GAllCategoriesData_categories', 'G__typename'), + nodes: nodes.build(), + pageInfo: pageInfo.build(), + totalCount: BuiltValueNullFieldError.checkNotNull( + totalCount, r'GAllCategoriesData_categories', 'totalCount')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'nodes'; + nodes.build(); + _$failedField = 'pageInfo'; + pageInfo.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GAllCategoriesData_categories', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GAllCategoriesData_categories_nodes + extends GAllCategoriesData_categories_nodes { + @override + final String G__typename; + @override + final bool Gdefault; + @override + final int id; + @override + final _i3.GIncludeOrExclude includeInDownload; + @override + final _i3.GIncludeOrExclude includeInUpdate; + @override + final String name; + @override + final int order; + @override + final GAllCategoriesData_categories_nodes_mangas mangas; + @override + final BuiltList meta; + + factory _$GAllCategoriesData_categories_nodes( + [void Function(GAllCategoriesData_categories_nodesBuilder)? + updates]) => + (new GAllCategoriesData_categories_nodesBuilder()..update(updates)) + ._build(); + + _$GAllCategoriesData_categories_nodes._( + {required this.G__typename, + required this.Gdefault, + required this.id, + required this.includeInDownload, + required this.includeInUpdate, + required this.name, + required this.order, + required this.mangas, + required this.meta}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GAllCategoriesData_categories_nodes', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + Gdefault, r'GAllCategoriesData_categories_nodes', 'Gdefault'); + BuiltValueNullFieldError.checkNotNull( + id, r'GAllCategoriesData_categories_nodes', 'id'); + BuiltValueNullFieldError.checkNotNull(includeInDownload, + r'GAllCategoriesData_categories_nodes', 'includeInDownload'); + BuiltValueNullFieldError.checkNotNull(includeInUpdate, + r'GAllCategoriesData_categories_nodes', 'includeInUpdate'); + BuiltValueNullFieldError.checkNotNull( + name, r'GAllCategoriesData_categories_nodes', 'name'); + BuiltValueNullFieldError.checkNotNull( + order, r'GAllCategoriesData_categories_nodes', 'order'); + BuiltValueNullFieldError.checkNotNull( + mangas, r'GAllCategoriesData_categories_nodes', 'mangas'); + BuiltValueNullFieldError.checkNotNull( + meta, r'GAllCategoriesData_categories_nodes', 'meta'); + } + + @override + GAllCategoriesData_categories_nodes rebuild( + void Function(GAllCategoriesData_categories_nodesBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAllCategoriesData_categories_nodesBuilder toBuilder() => + new GAllCategoriesData_categories_nodesBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAllCategoriesData_categories_nodes && + G__typename == other.G__typename && + Gdefault == other.Gdefault && + id == other.id && + includeInDownload == other.includeInDownload && + includeInUpdate == other.includeInUpdate && + name == other.name && + order == other.order && + mangas == other.mangas && + meta == other.meta; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, Gdefault.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, includeInDownload.hashCode); + _$hash = $jc(_$hash, includeInUpdate.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, order.hashCode); + _$hash = $jc(_$hash, mangas.hashCode); + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GAllCategoriesData_categories_nodes') + ..add('G__typename', G__typename) + ..add('Gdefault', Gdefault) + ..add('id', id) + ..add('includeInDownload', includeInDownload) + ..add('includeInUpdate', includeInUpdate) + ..add('name', name) + ..add('order', order) + ..add('mangas', mangas) + ..add('meta', meta)) + .toString(); + } +} + +class GAllCategoriesData_categories_nodesBuilder + implements + Builder { + _$GAllCategoriesData_categories_nodes? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + bool? _Gdefault; + bool? get Gdefault => _$this._Gdefault; + set Gdefault(bool? Gdefault) => _$this._Gdefault = Gdefault; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + _i3.GIncludeOrExclude? _includeInDownload; + _i3.GIncludeOrExclude? get includeInDownload => _$this._includeInDownload; + set includeInDownload(_i3.GIncludeOrExclude? includeInDownload) => + _$this._includeInDownload = includeInDownload; + + _i3.GIncludeOrExclude? _includeInUpdate; + _i3.GIncludeOrExclude? get includeInUpdate => _$this._includeInUpdate; + set includeInUpdate(_i3.GIncludeOrExclude? includeInUpdate) => + _$this._includeInUpdate = includeInUpdate; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + int? _order; + int? get order => _$this._order; + set order(int? order) => _$this._order = order; + + GAllCategoriesData_categories_nodes_mangasBuilder? _mangas; + GAllCategoriesData_categories_nodes_mangasBuilder get mangas => + _$this._mangas ??= + new GAllCategoriesData_categories_nodes_mangasBuilder(); + set mangas(GAllCategoriesData_categories_nodes_mangasBuilder? mangas) => + _$this._mangas = mangas; + + ListBuilder? _meta; + ListBuilder get meta => + _$this._meta ??= + new ListBuilder(); + set meta(ListBuilder? meta) => + _$this._meta = meta; + + GAllCategoriesData_categories_nodesBuilder() { + GAllCategoriesData_categories_nodes._initializeBuilder(this); + } + + GAllCategoriesData_categories_nodesBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _Gdefault = $v.Gdefault; + _id = $v.id; + _includeInDownload = $v.includeInDownload; + _includeInUpdate = $v.includeInUpdate; + _name = $v.name; + _order = $v.order; + _mangas = $v.mangas.toBuilder(); + _meta = $v.meta.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GAllCategoriesData_categories_nodes other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAllCategoriesData_categories_nodes; + } + + @override + void update( + void Function(GAllCategoriesData_categories_nodesBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAllCategoriesData_categories_nodes build() => _build(); + + _$GAllCategoriesData_categories_nodes _build() { + _$GAllCategoriesData_categories_nodes _$result; + try { + _$result = _$v ?? + new _$GAllCategoriesData_categories_nodes._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GAllCategoriesData_categories_nodes', 'G__typename'), + Gdefault: BuiltValueNullFieldError.checkNotNull( + Gdefault, r'GAllCategoriesData_categories_nodes', 'Gdefault'), + id: BuiltValueNullFieldError.checkNotNull( + id, r'GAllCategoriesData_categories_nodes', 'id'), + includeInDownload: BuiltValueNullFieldError.checkNotNull( + includeInDownload, r'GAllCategoriesData_categories_nodes', 'includeInDownload'), + includeInUpdate: BuiltValueNullFieldError.checkNotNull( + includeInUpdate, r'GAllCategoriesData_categories_nodes', 'includeInUpdate'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'GAllCategoriesData_categories_nodes', 'name'), + order: BuiltValueNullFieldError.checkNotNull( + order, r'GAllCategoriesData_categories_nodes', 'order'), + mangas: mangas.build(), + meta: meta.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'mangas'; + mangas.build(); + _$failedField = 'meta'; + meta.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GAllCategoriesData_categories_nodes', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GAllCategoriesData_categories_nodes_mangas + extends GAllCategoriesData_categories_nodes_mangas { + @override + final String G__typename; + @override + final int totalCount; + + factory _$GAllCategoriesData_categories_nodes_mangas( + [void Function(GAllCategoriesData_categories_nodes_mangasBuilder)? + updates]) => + (new GAllCategoriesData_categories_nodes_mangasBuilder()..update(updates)) + ._build(); + + _$GAllCategoriesData_categories_nodes_mangas._( + {required this.G__typename, required this.totalCount}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GAllCategoriesData_categories_nodes_mangas', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(totalCount, + r'GAllCategoriesData_categories_nodes_mangas', 'totalCount'); + } + + @override + GAllCategoriesData_categories_nodes_mangas rebuild( + void Function(GAllCategoriesData_categories_nodes_mangasBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GAllCategoriesData_categories_nodes_mangasBuilder toBuilder() => + new GAllCategoriesData_categories_nodes_mangasBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAllCategoriesData_categories_nodes_mangas && + G__typename == other.G__typename && + totalCount == other.totalCount; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, totalCount.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GAllCategoriesData_categories_nodes_mangas') + ..add('G__typename', G__typename) + ..add('totalCount', totalCount)) + .toString(); + } +} + +class GAllCategoriesData_categories_nodes_mangasBuilder + implements + Builder { + _$GAllCategoriesData_categories_nodes_mangas? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _totalCount; + int? get totalCount => _$this._totalCount; + set totalCount(int? totalCount) => _$this._totalCount = totalCount; + + GAllCategoriesData_categories_nodes_mangasBuilder() { + GAllCategoriesData_categories_nodes_mangas._initializeBuilder(this); + } + + GAllCategoriesData_categories_nodes_mangasBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _totalCount = $v.totalCount; + _$v = null; + } + return this; + } + + @override + void replace(GAllCategoriesData_categories_nodes_mangas other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAllCategoriesData_categories_nodes_mangas; + } + + @override + void update( + void Function(GAllCategoriesData_categories_nodes_mangasBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GAllCategoriesData_categories_nodes_mangas build() => _build(); + + _$GAllCategoriesData_categories_nodes_mangas _build() { + final _$result = _$v ?? + new _$GAllCategoriesData_categories_nodes_mangas._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GAllCategoriesData_categories_nodes_mangas', 'G__typename'), + totalCount: BuiltValueNullFieldError.checkNotNull(totalCount, + r'GAllCategoriesData_categories_nodes_mangas', 'totalCount')); + replace(_$result); + return _$result; + } +} + +class _$GAllCategoriesData_categories_nodes_meta + extends GAllCategoriesData_categories_nodes_meta { + @override + final String G__typename; + @override + final String key; + @override + final String value; + + factory _$GAllCategoriesData_categories_nodes_meta( + [void Function(GAllCategoriesData_categories_nodes_metaBuilder)? + updates]) => + (new GAllCategoriesData_categories_nodes_metaBuilder()..update(updates)) + ._build(); + + _$GAllCategoriesData_categories_nodes_meta._( + {required this.G__typename, required this.key, required this.value}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GAllCategoriesData_categories_nodes_meta', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + key, r'GAllCategoriesData_categories_nodes_meta', 'key'); + BuiltValueNullFieldError.checkNotNull( + value, r'GAllCategoriesData_categories_nodes_meta', 'value'); + } + + @override + GAllCategoriesData_categories_nodes_meta rebuild( + void Function(GAllCategoriesData_categories_nodes_metaBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GAllCategoriesData_categories_nodes_metaBuilder toBuilder() => + new GAllCategoriesData_categories_nodes_metaBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAllCategoriesData_categories_nodes_meta && + G__typename == other.G__typename && + key == other.key && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GAllCategoriesData_categories_nodes_meta') + ..add('G__typename', G__typename) + ..add('key', key) + ..add('value', value)) + .toString(); + } +} + +class GAllCategoriesData_categories_nodes_metaBuilder + implements + Builder { + _$GAllCategoriesData_categories_nodes_meta? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GAllCategoriesData_categories_nodes_metaBuilder() { + GAllCategoriesData_categories_nodes_meta._initializeBuilder(this); + } + + GAllCategoriesData_categories_nodes_metaBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _key = $v.key; + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GAllCategoriesData_categories_nodes_meta other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAllCategoriesData_categories_nodes_meta; + } + + @override + void update( + void Function(GAllCategoriesData_categories_nodes_metaBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAllCategoriesData_categories_nodes_meta build() => _build(); + + _$GAllCategoriesData_categories_nodes_meta _build() { + final _$result = _$v ?? + new _$GAllCategoriesData_categories_nodes_meta._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GAllCategoriesData_categories_nodes_meta', 'G__typename'), + key: BuiltValueNullFieldError.checkNotNull( + key, r'GAllCategoriesData_categories_nodes_meta', 'key'), + value: BuiltValueNullFieldError.checkNotNull( + value, r'GAllCategoriesData_categories_nodes_meta', 'value')); + replace(_$result); + return _$result; + } +} + +class _$GAllCategoriesData_categories_pageInfo + extends GAllCategoriesData_categories_pageInfo { + @override + final String G__typename; + @override + final _i3.GCursor? endCursor; + @override + final bool hasNextPage; + @override + final bool hasPreviousPage; + @override + final _i3.GCursor? startCursor; + + factory _$GAllCategoriesData_categories_pageInfo( + [void Function(GAllCategoriesData_categories_pageInfoBuilder)? + updates]) => + (new GAllCategoriesData_categories_pageInfoBuilder()..update(updates)) + ._build(); + + _$GAllCategoriesData_categories_pageInfo._( + {required this.G__typename, + this.endCursor, + required this.hasNextPage, + required this.hasPreviousPage, + this.startCursor}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GAllCategoriesData_categories_pageInfo', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + hasNextPage, r'GAllCategoriesData_categories_pageInfo', 'hasNextPage'); + BuiltValueNullFieldError.checkNotNull(hasPreviousPage, + r'GAllCategoriesData_categories_pageInfo', 'hasPreviousPage'); + } + + @override + GAllCategoriesData_categories_pageInfo rebuild( + void Function(GAllCategoriesData_categories_pageInfoBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GAllCategoriesData_categories_pageInfoBuilder toBuilder() => + new GAllCategoriesData_categories_pageInfoBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAllCategoriesData_categories_pageInfo && + G__typename == other.G__typename && + endCursor == other.endCursor && + hasNextPage == other.hasNextPage && + hasPreviousPage == other.hasPreviousPage && + startCursor == other.startCursor; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, endCursor.hashCode); + _$hash = $jc(_$hash, hasNextPage.hashCode); + _$hash = $jc(_$hash, hasPreviousPage.hashCode); + _$hash = $jc(_$hash, startCursor.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GAllCategoriesData_categories_pageInfo') + ..add('G__typename', G__typename) + ..add('endCursor', endCursor) + ..add('hasNextPage', hasNextPage) + ..add('hasPreviousPage', hasPreviousPage) + ..add('startCursor', startCursor)) + .toString(); + } +} + +class GAllCategoriesData_categories_pageInfoBuilder + implements + Builder { + _$GAllCategoriesData_categories_pageInfo? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + _i3.GCursorBuilder? _endCursor; + _i3.GCursorBuilder get endCursor => + _$this._endCursor ??= new _i3.GCursorBuilder(); + set endCursor(_i3.GCursorBuilder? endCursor) => _$this._endCursor = endCursor; + + bool? _hasNextPage; + bool? get hasNextPage => _$this._hasNextPage; + set hasNextPage(bool? hasNextPage) => _$this._hasNextPage = hasNextPage; + + bool? _hasPreviousPage; + bool? get hasPreviousPage => _$this._hasPreviousPage; + set hasPreviousPage(bool? hasPreviousPage) => + _$this._hasPreviousPage = hasPreviousPage; + + _i3.GCursorBuilder? _startCursor; + _i3.GCursorBuilder get startCursor => + _$this._startCursor ??= new _i3.GCursorBuilder(); + set startCursor(_i3.GCursorBuilder? startCursor) => + _$this._startCursor = startCursor; + + GAllCategoriesData_categories_pageInfoBuilder() { + GAllCategoriesData_categories_pageInfo._initializeBuilder(this); + } + + GAllCategoriesData_categories_pageInfoBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _endCursor = $v.endCursor?.toBuilder(); + _hasNextPage = $v.hasNextPage; + _hasPreviousPage = $v.hasPreviousPage; + _startCursor = $v.startCursor?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GAllCategoriesData_categories_pageInfo other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAllCategoriesData_categories_pageInfo; + } + + @override + void update( + void Function(GAllCategoriesData_categories_pageInfoBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAllCategoriesData_categories_pageInfo build() => _build(); + + _$GAllCategoriesData_categories_pageInfo _build() { + _$GAllCategoriesData_categories_pageInfo _$result; + try { + _$result = _$v ?? + new _$GAllCategoriesData_categories_pageInfo._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GAllCategoriesData_categories_pageInfo', 'G__typename'), + endCursor: _endCursor?.build(), + hasNextPage: BuiltValueNullFieldError.checkNotNull(hasNextPage, + r'GAllCategoriesData_categories_pageInfo', 'hasNextPage'), + hasPreviousPage: BuiltValueNullFieldError.checkNotNull( + hasPreviousPage, + r'GAllCategoriesData_categories_pageInfo', + 'hasPreviousPage'), + startCursor: _startCursor?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'endCursor'; + _endCursor?.build(); + + _$failedField = 'startCursor'; + _startCursor?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GAllCategoriesData_categories_pageInfo', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/library/data/graphql/__generated__/category_query.req.gql.dart b/lib/src/features/library/data/graphql/__generated__/category_query.req.gql.dart new file mode 100644 index 00000000..75925c50 --- /dev/null +++ b/lib/src/features/library/data/graphql/__generated__/category_query.req.gql.dart @@ -0,0 +1,97 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/library/data/graphql/__generated__/category_query.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/library/data/graphql/__generated__/category_query.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/library/data/graphql/__generated__/category_query.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'category_query.req.gql.g.dart'; + +abstract class GAllCategoriesReq + implements + Built, + _i1.OperationRequest<_i2.GAllCategoriesData, _i3.GAllCategoriesVars> { + GAllCategoriesReq._(); + + factory GAllCategoriesReq( + [void Function(GAllCategoriesReqBuilder b) updates]) = + _$GAllCategoriesReq; + + static void _initializeBuilder(GAllCategoriesReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'AllCategories', + ) + ..executeOnListen = true; + + @override + _i3.GAllCategoriesVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GAllCategoriesData? Function( + _i2.GAllCategoriesData?, + _i2.GAllCategoriesData?, + )? get updateResult; + @override + _i2.GAllCategoriesData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GAllCategoriesData? parseData(Map json) => + _i2.GAllCategoriesData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GAllCategoriesData data) => data.toJson(); + + @override + _i1.OperationRequest<_i2.GAllCategoriesData, _i3.GAllCategoriesVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gAllCategoriesReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GAllCategoriesReq.serializer, + this, + ) as Map); + + static GAllCategoriesReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GAllCategoriesReq.serializer, + json, + ); +} diff --git a/lib/src/features/library/data/graphql/__generated__/category_query.req.gql.g.dart b/lib/src/features/library/data/graphql/__generated__/category_query.req.gql.g.dart new file mode 100644 index 00000000..56c52db6 --- /dev/null +++ b/lib/src/features/library/data/graphql/__generated__/category_query.req.gql.g.dart @@ -0,0 +1,367 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'category_query.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gAllCategoriesReqSerializer = + new _$GAllCategoriesReqSerializer(); + +class _$GAllCategoriesReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GAllCategoriesReq, _$GAllCategoriesReq]; + @override + final String wireName = 'GAllCategoriesReq'; + + @override + Iterable serialize(Serializers serializers, GAllCategoriesReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GAllCategoriesVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GAllCategoriesData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GAllCategoriesReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAllCategoriesReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GAllCategoriesVars))! + as _i3.GAllCategoriesVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GAllCategoriesData))! + as _i2.GAllCategoriesData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GAllCategoriesReq extends GAllCategoriesReq { + @override + final _i3.GAllCategoriesVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GAllCategoriesData? Function( + _i2.GAllCategoriesData?, _i2.GAllCategoriesData?)? updateResult; + @override + final _i2.GAllCategoriesData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GAllCategoriesReq( + [void Function(GAllCategoriesReqBuilder)? updates]) => + (new GAllCategoriesReqBuilder()..update(updates))._build(); + + _$GAllCategoriesReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GAllCategoriesReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GAllCategoriesReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GAllCategoriesReq', 'executeOnListen'); + } + + @override + GAllCategoriesReq rebuild(void Function(GAllCategoriesReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAllCategoriesReqBuilder toBuilder() => + new GAllCategoriesReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GAllCategoriesReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GAllCategoriesReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GAllCategoriesReqBuilder + implements Builder { + _$GAllCategoriesReq? _$v; + + _i3.GAllCategoriesVarsBuilder? _vars; + _i3.GAllCategoriesVarsBuilder get vars => + _$this._vars ??= new _i3.GAllCategoriesVarsBuilder(); + set vars(_i3.GAllCategoriesVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GAllCategoriesData? Function( + _i2.GAllCategoriesData?, _i2.GAllCategoriesData?)? _updateResult; + _i2.GAllCategoriesData? Function( + _i2.GAllCategoriesData?, _i2.GAllCategoriesData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GAllCategoriesData? Function( + _i2.GAllCategoriesData?, _i2.GAllCategoriesData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GAllCategoriesDataBuilder? _optimisticResponse; + _i2.GAllCategoriesDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GAllCategoriesDataBuilder(); + set optimisticResponse(_i2.GAllCategoriesDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GAllCategoriesReqBuilder() { + GAllCategoriesReq._initializeBuilder(this); + } + + GAllCategoriesReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GAllCategoriesReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAllCategoriesReq; + } + + @override + void update(void Function(GAllCategoriesReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAllCategoriesReq build() => _build(); + + _$GAllCategoriesReq _build() { + _$GAllCategoriesReq _$result; + try { + _$result = _$v ?? + new _$GAllCategoriesReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GAllCategoriesReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GAllCategoriesReq', 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GAllCategoriesReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/library/data/graphql/__generated__/category_query.var.gql.dart b/lib/src/features/library/data/graphql/__generated__/category_query.var.gql.dart new file mode 100644 index 00000000..bd5b0943 --- /dev/null +++ b/lib/src/features/library/data/graphql/__generated__/category_query.var.gql.dart @@ -0,0 +1,39 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' + as _i1; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i2; + +part 'category_query.var.gql.g.dart'; + +abstract class GAllCategoriesVars + implements Built { + GAllCategoriesVars._(); + + factory GAllCategoriesVars( + [void Function(GAllCategoriesVarsBuilder b) updates]) = + _$GAllCategoriesVars; + + _i1.GCategoryConditionInput? get condition; + _i1.GCategoryFilterInput? get filter; + int? get first; + int? get offset; + static Serializer get serializer => + _$gAllCategoriesVarsSerializer; + + Map toJson() => (_i2.serializers.serializeWith( + GAllCategoriesVars.serializer, + this, + ) as Map); + + static GAllCategoriesVars? fromJson(Map json) => + _i2.serializers.deserializeWith( + GAllCategoriesVars.serializer, + json, + ); +} diff --git a/lib/src/features/library/data/graphql/__generated__/category_query.var.gql.g.dart b/lib/src/features/library/data/graphql/__generated__/category_query.var.gql.g.dart new file mode 100644 index 00000000..a2d34d04 --- /dev/null +++ b/lib/src/features/library/data/graphql/__generated__/category_query.var.gql.g.dart @@ -0,0 +1,228 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'category_query.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gAllCategoriesVarsSerializer = + new _$GAllCategoriesVarsSerializer(); + +class _$GAllCategoriesVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GAllCategoriesVars, _$GAllCategoriesVars]; + @override + final String wireName = 'GAllCategoriesVars'; + + @override + Iterable serialize( + Serializers serializers, GAllCategoriesVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.condition; + if (value != null) { + result + ..add('condition') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.GCategoryConditionInput))); + } + value = object.filter; + if (value != null) { + result + ..add('filter') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.GCategoryFilterInput))); + } + value = object.first; + if (value != null) { + result + ..add('first') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.offset; + if (value != null) { + result + ..add('offset') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + return result; + } + + @override + GAllCategoriesVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAllCategoriesVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'condition': + result.condition.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GCategoryConditionInput))! + as _i1.GCategoryConditionInput); + break; + case 'filter': + result.filter.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GCategoryFilterInput))! + as _i1.GCategoryFilterInput); + break; + case 'first': + result.first = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'offset': + result.offset = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + } + } + + return result.build(); + } +} + +class _$GAllCategoriesVars extends GAllCategoriesVars { + @override + final _i1.GCategoryConditionInput? condition; + @override + final _i1.GCategoryFilterInput? filter; + @override + final int? first; + @override + final int? offset; + + factory _$GAllCategoriesVars( + [void Function(GAllCategoriesVarsBuilder)? updates]) => + (new GAllCategoriesVarsBuilder()..update(updates))._build(); + + _$GAllCategoriesVars._({this.condition, this.filter, this.first, this.offset}) + : super._(); + + @override + GAllCategoriesVars rebuild( + void Function(GAllCategoriesVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAllCategoriesVarsBuilder toBuilder() => + new GAllCategoriesVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAllCategoriesVars && + condition == other.condition && + filter == other.filter && + first == other.first && + offset == other.offset; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, condition.hashCode); + _$hash = $jc(_$hash, filter.hashCode); + _$hash = $jc(_$hash, first.hashCode); + _$hash = $jc(_$hash, offset.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GAllCategoriesVars') + ..add('condition', condition) + ..add('filter', filter) + ..add('first', first) + ..add('offset', offset)) + .toString(); + } +} + +class GAllCategoriesVarsBuilder + implements Builder { + _$GAllCategoriesVars? _$v; + + _i1.GCategoryConditionInputBuilder? _condition; + _i1.GCategoryConditionInputBuilder get condition => + _$this._condition ??= new _i1.GCategoryConditionInputBuilder(); + set condition(_i1.GCategoryConditionInputBuilder? condition) => + _$this._condition = condition; + + _i1.GCategoryFilterInputBuilder? _filter; + _i1.GCategoryFilterInputBuilder get filter => + _$this._filter ??= new _i1.GCategoryFilterInputBuilder(); + set filter(_i1.GCategoryFilterInputBuilder? filter) => + _$this._filter = filter; + + int? _first; + int? get first => _$this._first; + set first(int? first) => _$this._first = first; + + int? _offset; + int? get offset => _$this._offset; + set offset(int? offset) => _$this._offset = offset; + + GAllCategoriesVarsBuilder(); + + GAllCategoriesVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _condition = $v.condition?.toBuilder(); + _filter = $v.filter?.toBuilder(); + _first = $v.first; + _offset = $v.offset; + _$v = null; + } + return this; + } + + @override + void replace(GAllCategoriesVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAllCategoriesVars; + } + + @override + void update(void Function(GAllCategoriesVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAllCategoriesVars build() => _build(); + + _$GAllCategoriesVars _build() { + _$GAllCategoriesVars _$result; + try { + _$result = _$v ?? + new _$GAllCategoriesVars._( + condition: _condition?.build(), + filter: _filter?.build(), + first: first, + offset: offset); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'condition'; + _condition?.build(); + _$failedField = 'filter'; + _filter?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GAllCategoriesVars', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/library/data/graphql/category_query.dart b/lib/src/features/library/data/graphql/category_query.dart new file mode 100644 index 00000000..ad8fa6ea --- /dev/null +++ b/lib/src/features/library/data/graphql/category_query.dart @@ -0,0 +1,6 @@ +import '__generated__/category_query.req.gql.dart'; + +abstract class CategoryQuery { + static GAllCategoriesReq getAllCategories() => + GAllCategoriesReq()..vars.condition; +} diff --git a/lib/src/features/library/data/graphql/category_query.graphql b/lib/src/features/library/data/graphql/category_query.graphql new file mode 100644 index 00000000..fc957b9b --- /dev/null +++ b/lib/src/features/library/data/graphql/category_query.graphql @@ -0,0 +1,21 @@ +# import "/src/features/library/domain/category/graphql/fragment.graphql" +# import "/src/graphql/fragments.graphql" + +query AllCategories($condition: CategoryConditionInput, $filter: CategoryFilterInput, $first: Int, $offset: Int) { + categories( + condition: $condition + filter: $filter + first: $first + orderBy: ORDER + orderByType: ASC + offset: $offset + ) { + nodes { + ...CategoryFragment + } + pageInfo { + ...PageInfoFragment + } + totalCount + } +} diff --git a/lib/src/features/library/domain/category/category_model.dart b/lib/src/features/library/domain/category/category_model.dart index 9ebb5702..18dd2f87 100644 --- a/lib/src/features/library/domain/category/category_model.dart +++ b/lib/src/features/library/domain/category/category_model.dart @@ -4,20 +4,24 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -import 'package:freezed_annotation/freezed_annotation.dart'; +import 'graphql/__generated__/fragment.data.gql.dart'; -part 'category_model.freezed.dart'; -part 'category_model.g.dart'; +typedef Category = GCategoryFragment; -@freezed -class Category with _$Category { - factory Category({ - int? id, - String? name, - int? order, - @JsonKey(name: "default") bool? defaultCategory, - }) = _Category; - - factory Category.fromJson(Map json) => - _$CategoryFromJson(json); +extension CategoryConverter on GCategoryFragment { + bool get defaultCategory => Gdefault; } +// @freezed +// class Category with _$Category { +// factory Category({ +// @JsonKey(name: "default") bool? defaultCategory, +// int? id, +// IncludeOrExclude? includeInDownload, +// IncludeOrExclude? includeInUpdate, +// String? name, +// int? order, +// }) = _Category; + +// factory Category.fromJson(Map json) => +// _$CategoryFromJson(json); +// } diff --git a/lib/src/features/library/domain/category/category_model.freezed.dart b/lib/src/features/library/domain/category/category_model.freezed.dart deleted file mode 100644 index d5d8ad47..00000000 --- a/lib/src/features/library/domain/category/category_model.freezed.dart +++ /dev/null @@ -1,219 +0,0 @@ -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// 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 'category_model.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -T _$identity(T value) => value; - -final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); - -Category _$CategoryFromJson(Map json) { - return _Category.fromJson(json); -} - -/// @nodoc -mixin _$Category { - int? get id => throw _privateConstructorUsedError; - String? get name => throw _privateConstructorUsedError; - int? get order => throw _privateConstructorUsedError; - @JsonKey(name: "default") - bool? get defaultCategory => throw _privateConstructorUsedError; - - Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) - $CategoryCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $CategoryCopyWith<$Res> { - factory $CategoryCopyWith(Category value, $Res Function(Category) then) = - _$CategoryCopyWithImpl<$Res, Category>; - @useResult - $Res call( - {int? id, - String? name, - int? order, - @JsonKey(name: "default") bool? defaultCategory}); -} - -/// @nodoc -class _$CategoryCopyWithImpl<$Res, $Val extends Category> - implements $CategoryCopyWith<$Res> { - _$CategoryCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = freezed, - Object? name = freezed, - Object? order = freezed, - Object? defaultCategory = freezed, - }) { - return _then(_value.copyWith( - id: freezed == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int?, - name: freezed == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String?, - order: freezed == order - ? _value.order - : order // ignore: cast_nullable_to_non_nullable - as int?, - defaultCategory: freezed == defaultCategory - ? _value.defaultCategory - : defaultCategory // ignore: cast_nullable_to_non_nullable - as bool?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$CategoryImplCopyWith<$Res> - implements $CategoryCopyWith<$Res> { - factory _$$CategoryImplCopyWith( - _$CategoryImpl value, $Res Function(_$CategoryImpl) then) = - __$$CategoryImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int? id, - String? name, - int? order, - @JsonKey(name: "default") bool? defaultCategory}); -} - -/// @nodoc -class __$$CategoryImplCopyWithImpl<$Res> - extends _$CategoryCopyWithImpl<$Res, _$CategoryImpl> - implements _$$CategoryImplCopyWith<$Res> { - __$$CategoryImplCopyWithImpl( - _$CategoryImpl _value, $Res Function(_$CategoryImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = freezed, - Object? name = freezed, - Object? order = freezed, - Object? defaultCategory = freezed, - }) { - return _then(_$CategoryImpl( - id: freezed == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int?, - name: freezed == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String?, - order: freezed == order - ? _value.order - : order // ignore: cast_nullable_to_non_nullable - as int?, - defaultCategory: freezed == defaultCategory - ? _value.defaultCategory - : defaultCategory // ignore: cast_nullable_to_non_nullable - as bool?, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$CategoryImpl implements _Category { - _$CategoryImpl( - {this.id, - this.name, - this.order, - @JsonKey(name: "default") this.defaultCategory}); - - factory _$CategoryImpl.fromJson(Map json) => - _$$CategoryImplFromJson(json); - - @override - final int? id; - @override - final String? name; - @override - final int? order; - @override - @JsonKey(name: "default") - final bool? defaultCategory; - - @override - String toString() { - return 'Category(id: $id, name: $name, order: $order, defaultCategory: $defaultCategory)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$CategoryImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.name, name) || other.name == name) && - (identical(other.order, order) || other.order == order) && - (identical(other.defaultCategory, defaultCategory) || - other.defaultCategory == defaultCategory)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => - Object.hash(runtimeType, id, name, order, defaultCategory); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$CategoryImplCopyWith<_$CategoryImpl> get copyWith => - __$$CategoryImplCopyWithImpl<_$CategoryImpl>(this, _$identity); - - @override - Map toJson() { - return _$$CategoryImplToJson( - this, - ); - } -} - -abstract class _Category implements Category { - factory _Category( - {final int? id, - final String? name, - final int? order, - @JsonKey(name: "default") final bool? defaultCategory}) = _$CategoryImpl; - - factory _Category.fromJson(Map json) = - _$CategoryImpl.fromJson; - - @override - int? get id; - @override - String? get name; - @override - int? get order; - @override - @JsonKey(name: "default") - bool? get defaultCategory; - @override - @JsonKey(ignore: true) - _$$CategoryImplCopyWith<_$CategoryImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/features/library/domain/category/category_model.g.dart b/lib/src/features/library/domain/category/category_model.g.dart deleted file mode 100644 index c207c612..00000000 --- a/lib/src/features/library/domain/category/category_model.g.dart +++ /dev/null @@ -1,23 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'category_model.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$CategoryImpl _$$CategoryImplFromJson(Map json) => - _$CategoryImpl( - id: json['id'] as int?, - name: json['name'] as String?, - order: json['order'] as int?, - defaultCategory: json['default'] as bool?, - ); - -Map _$$CategoryImplToJson(_$CategoryImpl instance) => - { - 'id': instance.id, - 'name': instance.name, - 'order': instance.order, - 'default': instance.defaultCategory, - }; diff --git a/lib/src/features/library/domain/category/graphql/__generated__/fragment.ast.gql.dart b/lib/src/features/library/domain/category/graphql/__generated__/fragment.ast.gql.dart new file mode 100644 index 00000000..779aa11b --- /dev/null +++ b/lib/src/features/library/domain/category/graphql/__generated__/fragment.ast.gql.dart @@ -0,0 +1,97 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const CategoryFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'CategoryFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryType'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'default'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'id'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'includeInDownload'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'includeInUpdate'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'order'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'mangas'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ) + ]), + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'meta'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'key'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'value'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + ]), +); +const document = _i1.DocumentNode(definitions: [CategoryFragment]); diff --git a/lib/src/features/library/domain/category/graphql/__generated__/fragment.data.gql.dart b/lib/src/features/library/domain/category/graphql/__generated__/fragment.data.gql.dart new file mode 100644 index 00000000..97fa35c6 --- /dev/null +++ b/lib/src/features/library/domain/category/graphql/__generated__/fragment.data.gql.dart @@ -0,0 +1,159 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' + as _i1; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i2; + +part 'fragment.data.gql.g.dart'; + +abstract class GCategoryFragment { + String get G__typename; + bool get Gdefault; + int get id; + _i1.GIncludeOrExclude get includeInDownload; + _i1.GIncludeOrExclude get includeInUpdate; + String get name; + int get order; + GCategoryFragment_mangas get mangas; + BuiltList get meta; + Map toJson(); +} + +abstract class GCategoryFragment_mangas { + String get G__typename; + int get totalCount; + Map toJson(); +} + +abstract class GCategoryFragment_meta { + String get G__typename; + String get key; + String get value; + Map toJson(); +} + +abstract class GCategoryFragmentData + implements + Built, + GCategoryFragment { + GCategoryFragmentData._(); + + factory GCategoryFragmentData( + [void Function(GCategoryFragmentDataBuilder b) updates]) = + _$GCategoryFragmentData; + + static void _initializeBuilder(GCategoryFragmentDataBuilder b) => + b..G__typename = 'CategoryType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + @BuiltValueField(wireName: 'default') + bool get Gdefault; + @override + int get id; + @override + _i1.GIncludeOrExclude get includeInDownload; + @override + _i1.GIncludeOrExclude get includeInUpdate; + @override + String get name; + @override + int get order; + @override + GCategoryFragmentData_mangas get mangas; + @override + BuiltList get meta; + static Serializer get serializer => + _$gCategoryFragmentDataSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GCategoryFragmentData.serializer, + this, + ) as Map); + + static GCategoryFragmentData? fromJson(Map json) => + _i2.serializers.deserializeWith( + GCategoryFragmentData.serializer, + json, + ); +} + +abstract class GCategoryFragmentData_mangas + implements + Built, + GCategoryFragment_mangas { + GCategoryFragmentData_mangas._(); + + factory GCategoryFragmentData_mangas( + [void Function(GCategoryFragmentData_mangasBuilder b) updates]) = + _$GCategoryFragmentData_mangas; + + static void _initializeBuilder(GCategoryFragmentData_mangasBuilder b) => + b..G__typename = 'MangaNodeList'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get totalCount; + static Serializer get serializer => + _$gCategoryFragmentDataMangasSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GCategoryFragmentData_mangas.serializer, + this, + ) as Map); + + static GCategoryFragmentData_mangas? fromJson(Map json) => + _i2.serializers.deserializeWith( + GCategoryFragmentData_mangas.serializer, + json, + ); +} + +abstract class GCategoryFragmentData_meta + implements + Built, + GCategoryFragment_meta { + GCategoryFragmentData_meta._(); + + factory GCategoryFragmentData_meta( + [void Function(GCategoryFragmentData_metaBuilder b) updates]) = + _$GCategoryFragmentData_meta; + + static void _initializeBuilder(GCategoryFragmentData_metaBuilder b) => + b..G__typename = 'CategoryMetaType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get key; + @override + String get value; + static Serializer get serializer => + _$gCategoryFragmentDataMetaSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GCategoryFragmentData_meta.serializer, + this, + ) as Map); + + static GCategoryFragmentData_meta? fromJson(Map json) => + _i2.serializers.deserializeWith( + GCategoryFragmentData_meta.serializer, + json, + ); +} diff --git a/lib/src/features/library/domain/category/graphql/__generated__/fragment.data.gql.g.dart b/lib/src/features/library/domain/category/graphql/__generated__/fragment.data.gql.g.dart new file mode 100644 index 00000000..0b7d4906 --- /dev/null +++ b/lib/src/features/library/domain/category/graphql/__generated__/fragment.data.gql.g.dart @@ -0,0 +1,695 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gCategoryFragmentDataSerializer = + new _$GCategoryFragmentDataSerializer(); +Serializer + _$gCategoryFragmentDataMangasSerializer = + new _$GCategoryFragmentData_mangasSerializer(); +Serializer _$gCategoryFragmentDataMetaSerializer = + new _$GCategoryFragmentData_metaSerializer(); + +class _$GCategoryFragmentDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GCategoryFragmentData, + _$GCategoryFragmentData + ]; + @override + final String wireName = 'GCategoryFragmentData'; + + @override + Iterable serialize( + Serializers serializers, GCategoryFragmentData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'default', + serializers.serialize(object.Gdefault, + specifiedType: const FullType(bool)), + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'includeInDownload', + serializers.serialize(object.includeInDownload, + specifiedType: const FullType(_i1.GIncludeOrExclude)), + 'includeInUpdate', + serializers.serialize(object.includeInUpdate, + specifiedType: const FullType(_i1.GIncludeOrExclude)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'order', + serializers.serialize(object.order, specifiedType: const FullType(int)), + 'mangas', + serializers.serialize(object.mangas, + specifiedType: const FullType(GCategoryFragmentData_mangas)), + 'meta', + serializers.serialize(object.meta, + specifiedType: const FullType( + BuiltList, const [const FullType(GCategoryFragmentData_meta)])), + ]; + + return result; + } + + @override + GCategoryFragmentData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GCategoryFragmentDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'default': + result.Gdefault = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'includeInDownload': + result.includeInDownload = serializers.deserialize(value, + specifiedType: const FullType(_i1.GIncludeOrExclude))! + as _i1.GIncludeOrExclude; + break; + case 'includeInUpdate': + result.includeInUpdate = serializers.deserialize(value, + specifiedType: const FullType(_i1.GIncludeOrExclude))! + as _i1.GIncludeOrExclude; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'order': + result.order = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'mangas': + result.mangas.replace(serializers.deserialize(value, + specifiedType: const FullType(GCategoryFragmentData_mangas))! + as GCategoryFragmentData_mangas); + break; + case 'meta': + result.meta.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GCategoryFragmentData_meta) + ]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GCategoryFragmentData_mangasSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GCategoryFragmentData_mangas, + _$GCategoryFragmentData_mangas + ]; + @override + final String wireName = 'GCategoryFragmentData_mangas'; + + @override + Iterable serialize( + Serializers serializers, GCategoryFragmentData_mangas object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'totalCount', + serializers.serialize(object.totalCount, + specifiedType: const FullType(int)), + ]; + + return result; + } + + @override + GCategoryFragmentData_mangas deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GCategoryFragmentData_mangasBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'totalCount': + result.totalCount = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GCategoryFragmentData_metaSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GCategoryFragmentData_meta, + _$GCategoryFragmentData_meta + ]; + @override + final String wireName = 'GCategoryFragmentData_meta'; + + @override + Iterable serialize( + Serializers serializers, GCategoryFragmentData_meta object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'value', + serializers.serialize(object.value, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GCategoryFragmentData_meta deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GCategoryFragmentData_metaBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GCategoryFragmentData extends GCategoryFragmentData { + @override + final String G__typename; + @override + final bool Gdefault; + @override + final int id; + @override + final _i1.GIncludeOrExclude includeInDownload; + @override + final _i1.GIncludeOrExclude includeInUpdate; + @override + final String name; + @override + final int order; + @override + final GCategoryFragmentData_mangas mangas; + @override + final BuiltList meta; + + factory _$GCategoryFragmentData( + [void Function(GCategoryFragmentDataBuilder)? updates]) => + (new GCategoryFragmentDataBuilder()..update(updates))._build(); + + _$GCategoryFragmentData._( + {required this.G__typename, + required this.Gdefault, + required this.id, + required this.includeInDownload, + required this.includeInUpdate, + required this.name, + required this.order, + required this.mangas, + required this.meta}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GCategoryFragmentData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + Gdefault, r'GCategoryFragmentData', 'Gdefault'); + BuiltValueNullFieldError.checkNotNull(id, r'GCategoryFragmentData', 'id'); + BuiltValueNullFieldError.checkNotNull( + includeInDownload, r'GCategoryFragmentData', 'includeInDownload'); + BuiltValueNullFieldError.checkNotNull( + includeInUpdate, r'GCategoryFragmentData', 'includeInUpdate'); + BuiltValueNullFieldError.checkNotNull( + name, r'GCategoryFragmentData', 'name'); + BuiltValueNullFieldError.checkNotNull( + order, r'GCategoryFragmentData', 'order'); + BuiltValueNullFieldError.checkNotNull( + mangas, r'GCategoryFragmentData', 'mangas'); + BuiltValueNullFieldError.checkNotNull( + meta, r'GCategoryFragmentData', 'meta'); + } + + @override + GCategoryFragmentData rebuild( + void Function(GCategoryFragmentDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCategoryFragmentDataBuilder toBuilder() => + new GCategoryFragmentDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCategoryFragmentData && + G__typename == other.G__typename && + Gdefault == other.Gdefault && + id == other.id && + includeInDownload == other.includeInDownload && + includeInUpdate == other.includeInUpdate && + name == other.name && + order == other.order && + mangas == other.mangas && + meta == other.meta; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, Gdefault.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, includeInDownload.hashCode); + _$hash = $jc(_$hash, includeInUpdate.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, order.hashCode); + _$hash = $jc(_$hash, mangas.hashCode); + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GCategoryFragmentData') + ..add('G__typename', G__typename) + ..add('Gdefault', Gdefault) + ..add('id', id) + ..add('includeInDownload', includeInDownload) + ..add('includeInUpdate', includeInUpdate) + ..add('name', name) + ..add('order', order) + ..add('mangas', mangas) + ..add('meta', meta)) + .toString(); + } +} + +class GCategoryFragmentDataBuilder + implements Builder { + _$GCategoryFragmentData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + bool? _Gdefault; + bool? get Gdefault => _$this._Gdefault; + set Gdefault(bool? Gdefault) => _$this._Gdefault = Gdefault; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + _i1.GIncludeOrExclude? _includeInDownload; + _i1.GIncludeOrExclude? get includeInDownload => _$this._includeInDownload; + set includeInDownload(_i1.GIncludeOrExclude? includeInDownload) => + _$this._includeInDownload = includeInDownload; + + _i1.GIncludeOrExclude? _includeInUpdate; + _i1.GIncludeOrExclude? get includeInUpdate => _$this._includeInUpdate; + set includeInUpdate(_i1.GIncludeOrExclude? includeInUpdate) => + _$this._includeInUpdate = includeInUpdate; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + int? _order; + int? get order => _$this._order; + set order(int? order) => _$this._order = order; + + GCategoryFragmentData_mangasBuilder? _mangas; + GCategoryFragmentData_mangasBuilder get mangas => + _$this._mangas ??= new GCategoryFragmentData_mangasBuilder(); + set mangas(GCategoryFragmentData_mangasBuilder? mangas) => + _$this._mangas = mangas; + + ListBuilder? _meta; + ListBuilder get meta => + _$this._meta ??= new ListBuilder(); + set meta(ListBuilder? meta) => + _$this._meta = meta; + + GCategoryFragmentDataBuilder() { + GCategoryFragmentData._initializeBuilder(this); + } + + GCategoryFragmentDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _Gdefault = $v.Gdefault; + _id = $v.id; + _includeInDownload = $v.includeInDownload; + _includeInUpdate = $v.includeInUpdate; + _name = $v.name; + _order = $v.order; + _mangas = $v.mangas.toBuilder(); + _meta = $v.meta.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GCategoryFragmentData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCategoryFragmentData; + } + + @override + void update(void Function(GCategoryFragmentDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCategoryFragmentData build() => _build(); + + _$GCategoryFragmentData _build() { + _$GCategoryFragmentData _$result; + try { + _$result = _$v ?? + new _$GCategoryFragmentData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GCategoryFragmentData', 'G__typename'), + Gdefault: BuiltValueNullFieldError.checkNotNull( + Gdefault, r'GCategoryFragmentData', 'Gdefault'), + id: BuiltValueNullFieldError.checkNotNull( + id, r'GCategoryFragmentData', 'id'), + includeInDownload: BuiltValueNullFieldError.checkNotNull( + includeInDownload, + r'GCategoryFragmentData', + 'includeInDownload'), + includeInUpdate: BuiltValueNullFieldError.checkNotNull( + includeInUpdate, r'GCategoryFragmentData', 'includeInUpdate'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'GCategoryFragmentData', 'name'), + order: BuiltValueNullFieldError.checkNotNull( + order, r'GCategoryFragmentData', 'order'), + mangas: mangas.build(), + meta: meta.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'mangas'; + mangas.build(); + _$failedField = 'meta'; + meta.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GCategoryFragmentData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GCategoryFragmentData_mangas extends GCategoryFragmentData_mangas { + @override + final String G__typename; + @override + final int totalCount; + + factory _$GCategoryFragmentData_mangas( + [void Function(GCategoryFragmentData_mangasBuilder)? updates]) => + (new GCategoryFragmentData_mangasBuilder()..update(updates))._build(); + + _$GCategoryFragmentData_mangas._( + {required this.G__typename, required this.totalCount}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GCategoryFragmentData_mangas', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + totalCount, r'GCategoryFragmentData_mangas', 'totalCount'); + } + + @override + GCategoryFragmentData_mangas rebuild( + void Function(GCategoryFragmentData_mangasBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCategoryFragmentData_mangasBuilder toBuilder() => + new GCategoryFragmentData_mangasBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCategoryFragmentData_mangas && + G__typename == other.G__typename && + totalCount == other.totalCount; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, totalCount.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GCategoryFragmentData_mangas') + ..add('G__typename', G__typename) + ..add('totalCount', totalCount)) + .toString(); + } +} + +class GCategoryFragmentData_mangasBuilder + implements + Builder { + _$GCategoryFragmentData_mangas? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _totalCount; + int? get totalCount => _$this._totalCount; + set totalCount(int? totalCount) => _$this._totalCount = totalCount; + + GCategoryFragmentData_mangasBuilder() { + GCategoryFragmentData_mangas._initializeBuilder(this); + } + + GCategoryFragmentData_mangasBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _totalCount = $v.totalCount; + _$v = null; + } + return this; + } + + @override + void replace(GCategoryFragmentData_mangas other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCategoryFragmentData_mangas; + } + + @override + void update(void Function(GCategoryFragmentData_mangasBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCategoryFragmentData_mangas build() => _build(); + + _$GCategoryFragmentData_mangas _build() { + final _$result = _$v ?? + new _$GCategoryFragmentData_mangas._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GCategoryFragmentData_mangas', 'G__typename'), + totalCount: BuiltValueNullFieldError.checkNotNull( + totalCount, r'GCategoryFragmentData_mangas', 'totalCount')); + replace(_$result); + return _$result; + } +} + +class _$GCategoryFragmentData_meta extends GCategoryFragmentData_meta { + @override + final String G__typename; + @override + final String key; + @override + final String value; + + factory _$GCategoryFragmentData_meta( + [void Function(GCategoryFragmentData_metaBuilder)? updates]) => + (new GCategoryFragmentData_metaBuilder()..update(updates))._build(); + + _$GCategoryFragmentData_meta._( + {required this.G__typename, required this.key, required this.value}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GCategoryFragmentData_meta', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + key, r'GCategoryFragmentData_meta', 'key'); + BuiltValueNullFieldError.checkNotNull( + value, r'GCategoryFragmentData_meta', 'value'); + } + + @override + GCategoryFragmentData_meta rebuild( + void Function(GCategoryFragmentData_metaBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCategoryFragmentData_metaBuilder toBuilder() => + new GCategoryFragmentData_metaBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCategoryFragmentData_meta && + G__typename == other.G__typename && + key == other.key && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GCategoryFragmentData_meta') + ..add('G__typename', G__typename) + ..add('key', key) + ..add('value', value)) + .toString(); + } +} + +class GCategoryFragmentData_metaBuilder + implements + Builder { + _$GCategoryFragmentData_meta? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GCategoryFragmentData_metaBuilder() { + GCategoryFragmentData_meta._initializeBuilder(this); + } + + GCategoryFragmentData_metaBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _key = $v.key; + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GCategoryFragmentData_meta other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCategoryFragmentData_meta; + } + + @override + void update(void Function(GCategoryFragmentData_metaBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCategoryFragmentData_meta build() => _build(); + + _$GCategoryFragmentData_meta _build() { + final _$result = _$v ?? + new _$GCategoryFragmentData_meta._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GCategoryFragmentData_meta', 'G__typename'), + key: BuiltValueNullFieldError.checkNotNull( + key, r'GCategoryFragmentData_meta', 'key'), + value: BuiltValueNullFieldError.checkNotNull( + value, r'GCategoryFragmentData_meta', 'value')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/library/domain/category/graphql/__generated__/fragment.req.gql.dart b/lib/src/features/library/domain/category/graphql/__generated__/fragment.req.gql.dart new file mode 100644 index 00000000..3cdf6e58 --- /dev/null +++ b/lib/src/features/library/domain/category/graphql/__generated__/fragment.req.gql.dart @@ -0,0 +1,67 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql/ast.dart' as _i5; +import 'package:tachidesk_sorayomi/src/features/library/domain/category/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/library/domain/category/graphql/__generated__/fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/library/domain/category/graphql/__generated__/fragment.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'fragment.req.gql.g.dart'; + +abstract class GCategoryFragmentReq + implements + Built, + _i1 + .FragmentRequest<_i2.GCategoryFragmentData, _i3.GCategoryFragmentVars> { + GCategoryFragmentReq._(); + + factory GCategoryFragmentReq( + [void Function(GCategoryFragmentReqBuilder b) updates]) = + _$GCategoryFragmentReq; + + static void _initializeBuilder(GCategoryFragmentReqBuilder b) => b + ..document = _i4.document + ..fragmentName = 'CategoryFragment'; + + @override + _i3.GCategoryFragmentVars get vars; + @override + _i5.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GCategoryFragmentData? parseData(Map json) => + _i2.GCategoryFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GCategoryFragmentData data) => + data.toJson(); + + static Serializer get serializer => + _$gCategoryFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GCategoryFragmentReq.serializer, + this, + ) as Map); + + static GCategoryFragmentReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GCategoryFragmentReq.serializer, + json, + ); +} diff --git a/lib/src/features/library/domain/category/graphql/__generated__/fragment.req.gql.g.dart b/lib/src/features/library/domain/category/graphql/__generated__/fragment.req.gql.g.dart new file mode 100644 index 00000000..a4a4806c --- /dev/null +++ b/lib/src/features/library/domain/category/graphql/__generated__/fragment.req.gql.g.dart @@ -0,0 +1,236 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gCategoryFragmentReqSerializer = + new _$GCategoryFragmentReqSerializer(); + +class _$GCategoryFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GCategoryFragmentReq, + _$GCategoryFragmentReq + ]; + @override + final String wireName = 'GCategoryFragmentReq'; + + @override + Iterable serialize( + Serializers serializers, GCategoryFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GCategoryFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i5.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GCategoryFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GCategoryFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GCategoryFragmentVars))! + as _i3.GCategoryFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i5.DocumentNode))! + as _i5.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GCategoryFragmentReq extends GCategoryFragmentReq { + @override + final _i3.GCategoryFragmentVars vars; + @override + final _i5.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GCategoryFragmentReq( + [void Function(GCategoryFragmentReqBuilder)? updates]) => + (new GCategoryFragmentReqBuilder()..update(updates))._build(); + + _$GCategoryFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GCategoryFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GCategoryFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GCategoryFragmentReq', 'idFields'); + } + + @override + GCategoryFragmentReq rebuild( + void Function(GCategoryFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCategoryFragmentReqBuilder toBuilder() => + new GCategoryFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCategoryFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GCategoryFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GCategoryFragmentReqBuilder + implements Builder { + _$GCategoryFragmentReq? _$v; + + _i3.GCategoryFragmentVarsBuilder? _vars; + _i3.GCategoryFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GCategoryFragmentVarsBuilder(); + set vars(_i3.GCategoryFragmentVarsBuilder? vars) => _$this._vars = vars; + + _i5.DocumentNode? _document; + _i5.DocumentNode? get document => _$this._document; + set document(_i5.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GCategoryFragmentReqBuilder() { + GCategoryFragmentReq._initializeBuilder(this); + } + + GCategoryFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GCategoryFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCategoryFragmentReq; + } + + @override + void update(void Function(GCategoryFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCategoryFragmentReq build() => _build(); + + _$GCategoryFragmentReq _build() { + _$GCategoryFragmentReq _$result; + try { + _$result = _$v ?? + new _$GCategoryFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GCategoryFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GCategoryFragmentReq', 'idFields')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GCategoryFragmentReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/library/domain/category/graphql/__generated__/fragment.var.gql.dart b/lib/src/features/library/domain/category/graphql/__generated__/fragment.var.gql.dart new file mode 100644 index 00000000..6c970571 --- /dev/null +++ b/lib/src/features/library/domain/category/graphql/__generated__/fragment.var.gql.dart @@ -0,0 +1,33 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragment.var.gql.g.dart'; + +abstract class GCategoryFragmentVars + implements Built { + GCategoryFragmentVars._(); + + factory GCategoryFragmentVars( + [void Function(GCategoryFragmentVarsBuilder b) updates]) = + _$GCategoryFragmentVars; + + static Serializer get serializer => + _$gCategoryFragmentVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GCategoryFragmentVars.serializer, + this, + ) as Map); + + static GCategoryFragmentVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GCategoryFragmentVars.serializer, + json, + ); +} diff --git a/lib/src/features/library/domain/category/graphql/__generated__/fragment.var.gql.g.dart b/lib/src/features/library/domain/category/graphql/__generated__/fragment.var.gql.g.dart new file mode 100644 index 00000000..e311bd2f --- /dev/null +++ b/lib/src/features/library/domain/category/graphql/__generated__/fragment.var.gql.g.dart @@ -0,0 +1,97 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gCategoryFragmentVarsSerializer = + new _$GCategoryFragmentVarsSerializer(); + +class _$GCategoryFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GCategoryFragmentVars, + _$GCategoryFragmentVars + ]; + @override + final String wireName = 'GCategoryFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GCategoryFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GCategoryFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GCategoryFragmentVarsBuilder().build(); + } +} + +class _$GCategoryFragmentVars extends GCategoryFragmentVars { + factory _$GCategoryFragmentVars( + [void Function(GCategoryFragmentVarsBuilder)? updates]) => + (new GCategoryFragmentVarsBuilder()..update(updates))._build(); + + _$GCategoryFragmentVars._() : super._(); + + @override + GCategoryFragmentVars rebuild( + void Function(GCategoryFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCategoryFragmentVarsBuilder toBuilder() => + new GCategoryFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCategoryFragmentVars; + } + + @override + int get hashCode { + return 423957543; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GCategoryFragmentVars').toString(); + } +} + +class GCategoryFragmentVarsBuilder + implements Builder { + _$GCategoryFragmentVars? _$v; + + GCategoryFragmentVarsBuilder(); + + @override + void replace(GCategoryFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCategoryFragmentVars; + } + + @override + void update(void Function(GCategoryFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCategoryFragmentVars build() => _build(); + + _$GCategoryFragmentVars _build() { + final _$result = _$v ?? new _$GCategoryFragmentVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/library/domain/category/graphql/fragment.graphql b/lib/src/features/library/domain/category/graphql/fragment.graphql new file mode 100644 index 00000000..55df1e19 --- /dev/null +++ b/lib/src/features/library/domain/category/graphql/fragment.graphql @@ -0,0 +1,16 @@ + +fragment CategoryFragment on CategoryType { + default + id + includeInDownload + includeInUpdate + name + order + mangas { + totalCount + } + meta { + key + value + } +} diff --git a/lib/src/features/library/presentation/category/controller/edit_category_controller.dart b/lib/src/features/library/presentation/category/controller/edit_category_controller.dart index 61fb0e74..800f0cf7 100644 --- a/lib/src/features/library/presentation/category/controller/edit_category_controller.dart +++ b/lib/src/features/library/presentation/category/controller/edit_category_controller.dart @@ -4,11 +4,10 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -import 'package:dio/dio.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; -import '../../../data/category/category_repository.dart'; +import '../../../data/category_repository.dart'; import '../../../domain/category/category_model.dart'; part 'edit_category_controller.g.dart'; @@ -16,47 +15,32 @@ part 'edit_category_controller.g.dart'; @riverpod class CategoryController extends _$CategoryController { @override - Future?> build() async => loadCategories(ref); - - Future?> loadCategories( - AutoDisposeAsyncNotifierProviderRef?> ref, - ) async { - final token = CancelToken(); - ref.onDispose(token.cancel); - final result = await ref - .watch(categoryRepositoryProvider) - .getCategoryList(cancelToken: token); - ref.keepAlive(); - return result; - } - - Future deleteCategory(Category category) async { - state = await AsyncValue.guard(() async { - await ref - .read(categoryRepositoryProvider) - .deleteCategory(category: category); - return loadCategories(ref); - }); + Stream?> build() => + ref.watch(categoryRepositoryProvider).getCategoryList(); + + Future> deleteCategory(Category category) async { + final response = await AsyncValue.guard(() => ref + .read(categoryRepositoryProvider) + .deleteCategory(category: category)); + ref.invalidateSelf(); + return response; } - Future editCategory(Category category) async { + Future> editCategory(Category category) async { final categoryRepository = ref.read(categoryRepositoryProvider); - state = await AsyncValue.guard(() async { - if (category.id == null) { - await categoryRepository.createCategory(category: category); - } else { - await categoryRepository.editCategory(category: category); - } - return loadCategories(ref); + final response = await AsyncValue.guard(() async { + return await categoryRepository.editCategory(category: category); }); + ref.invalidateSelf(); + return response; } - Future reorderCategory(int from, int to) async { - final categoryRepository = ref.read(categoryRepositoryProvider); - state = await AsyncValue.guard(() async { - await categoryRepository.reorderCategory(from: from, to: to); - return loadCategories(ref); - }); + Future> reorderCategory(int from, int to) async { + final response = await AsyncValue.guard(() => ref + .read(categoryRepositoryProvider) + .reorderCategory(from: from, to: to)); + ref.invalidateSelf(); + return response; } } @@ -66,5 +50,7 @@ List? categoryListQuery( required String query, }) { final categoryList = ref.watch(categoryControllerProvider).valueOrNull; - return categoryList?.where((element) => element.name.query(query)).toList(); + return categoryList + ?.where((element) => (element.name.query(query)).ifNull()) + .toList(); } diff --git a/lib/src/features/library/presentation/category/controller/edit_category_controller.g.dart b/lib/src/features/library/presentation/category/controller/edit_category_controller.g.dart index d2593e26..41b5944c 100644 --- a/lib/src/features/library/presentation/category/controller/edit_category_controller.g.dart +++ b/lib/src/features/library/presentation/category/controller/edit_category_controller.g.dart @@ -6,7 +6,7 @@ part of 'edit_category_controller.dart'; // RiverpodGenerator // ************************************************************************** -String _$categoryListQueryHash() => r'47eb6a35cc23a6d24dbe7981cff742174512b4ce'; +String _$categoryListQueryHash() => r'ee7ffd75f50ce565abffeb65feb24b83faedbfa0'; /// Copied from Dart SDK class _SystemHash { @@ -157,11 +157,11 @@ class _CategoryListQueryProviderElement } String _$categoryControllerHash() => - r'03ec5d51bea1147db0139fa68edaeefdacb11f70'; + r'1a4453817f93c7384a38d27071936aaab3844b9f'; /// See also [CategoryController]. @ProviderFor(CategoryController) -final categoryControllerProvider = AutoDisposeAsyncNotifierProvider< +final categoryControllerProvider = AutoDisposeStreamNotifierProvider< CategoryController, List?>.internal( CategoryController.new, name: r'categoryControllerProvider', @@ -172,6 +172,6 @@ final categoryControllerProvider = AutoDisposeAsyncNotifierProvider< allTransitiveDependencies: null, ); -typedef _$CategoryController = AutoDisposeAsyncNotifier?>; +typedef _$CategoryController = AutoDisposeStreamNotifier?>; // ignore_for_file: type=lint // ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member diff --git a/lib/src/features/library/presentation/category/edit_category_screen.dart b/lib/src/features/library/presentation/category/edit_category_screen.dart index 0cd41065..7f167a77 100644 --- a/lib/src/features/library/presentation/category/edit_category_screen.dart +++ b/lib/src/features/library/presentation/category/edit_category_screen.dart @@ -24,7 +24,7 @@ class EditCategoryScreen extends HookConsumerWidget { useEffect(() { categoryList.showToastOnError( - ref.read(toastProvider(context)), + ref.read(toastProvider), withMicrotask: true, ); return; @@ -43,30 +43,23 @@ class EditCategoryScreen extends HookConsumerWidget { if (data.isBlank || (data.isSingletonList && data?.firstOrNull?.id == 0)) { return Emoticons( - text: context.l10n.noCategoriesFound, + title: context.l10n.noCategoriesFound, button: TextButton( onPressed: () => ref.refresh(categoryControllerProvider.future), child: Text(context.l10n.refresh), ), ); } else { - final isDefaultInCategoryList = data!.first.id == 0; return RefreshIndicator( child: ListView.builder( - itemCount: data.length, + itemCount: data!.length, itemBuilder: (context, index) { final category = data[index]; - if (category.id == 0) { - return const SizedBox.shrink(); - } else { - return CategoryTile( - key: ValueKey(category.id), - maxOrderIndex: isDefaultInCategoryList - ? data.length - 1 - : data.length, - category: category, - ); - } + return CategoryTile( + key: ValueKey(category.id), + maxOrderIndex: data.length, + category: category, + ); }, ), onRefresh: () => ref.refresh(categoryControllerProvider.future), diff --git a/lib/src/features/library/presentation/category/widgets/category_tile.dart b/lib/src/features/library/presentation/category/widgets/category_tile.dart index b96ac137..fa8bff83 100644 --- a/lib/src/features/library/presentation/category/widgets/category_tile.dart +++ b/lib/src/features/library/presentation/category/widgets/category_tile.dart @@ -35,13 +35,13 @@ class CategoryTile extends HookConsumerWidget { children: [ ListTile( leading: const Icon(Icons.label_rounded), - title: Text(category.name ?? ""), + title: Text(category.name), ), Row( children: [ IconButton( visualDensity: VisualDensity.compact, - onPressed: order <= 1 + onPressed: order <= 0 ? null : () => ref .read(categoryControllerProvider.notifier) @@ -74,30 +74,31 @@ class CategoryTile extends HookConsumerWidget { icon: const Icon(Icons.edit_rounded), color: Colors.grey, ), - IconButton( - visualDensity: VisualDensity.compact, - onPressed: () => showDialog( - context: context, - builder: (context) => AlertDialog( - title: Text(context.l10n.deleteCategoryTitle), - content: Text(context.l10n.deleteCategoryDescription), - actions: [ - const PopButton(), - ElevatedButton( - onPressed: () { - ref - .read(categoryControllerProvider.notifier) - .deleteCategory(category); - Navigator.pop(context); - }, - child: Text(context.l10n.delete), - ), - ], + if (category.id != 0) + IconButton( + visualDensity: VisualDensity.compact, + onPressed: () => showDialog( + context: context, + builder: (context) => AlertDialog( + title: Text(context.l10n.deleteCategoryTitle), + content: Text(context.l10n.deleteCategoryDescription), + actions: [ + const PopButton(), + ElevatedButton( + onPressed: () { + ref + .read(categoryControllerProvider.notifier) + .deleteCategory(category); + Navigator.pop(context); + }, + child: Text(context.l10n.delete), + ), + ], + ), ), + icon: const Icon(Icons.delete_rounded), + color: Colors.grey, ), - icon: const Icon(Icons.delete_rounded), - color: Colors.grey, - ), ], ), const Gap(8), diff --git a/lib/src/features/library/presentation/category/widgets/edit_category_dialog.dart b/lib/src/features/library/presentation/category/widgets/edit_category_dialog.dart index dc4c9b03..4b166a54 100644 --- a/lib/src/features/library/presentation/category/widgets/edit_category_dialog.dart +++ b/lib/src/features/library/presentation/category/widgets/edit_category_dialog.dart @@ -12,6 +12,7 @@ import '../../../../../utils/extensions/custom_extensions.dart'; import '../../../../../utils/misc/toast/toast.dart'; import '../../../../../widgets/popup_widgets/pop_button.dart'; import '../../../domain/category/category_model.dart'; +import '../../../domain/category/graphql/__generated__/fragment.data.gql.dart'; class EditCategoryDialog extends HookConsumerWidget { const EditCategoryDialog({ @@ -26,10 +27,13 @@ class EditCategoryDialog extends HookConsumerWidget { String categoryName, bool defaultCategory, ) async { - return editCategory((category ?? Category()).copyWith( - name: categoryName, - defaultCategory: defaultCategory, - )); + //TODO: Implement editCategory + + // return editCategory((category ?? Category()).copyWith( + // name: categoryName, + // defaultCategory: defaultCategory, + // )); + return editCategory(GCategoryFragmentData()); } @override @@ -80,7 +84,7 @@ class EditCategoryDialog extends HookConsumerWidget { ElevatedButton( onPressed: () { if ((categoryName.text).isBlank) { - ref.read(toastProvider(context)).show(context.l10n.emptyCategory); + ref.read(toastProvider)?.showError(context.l10n.emptyCategory); return; } submitEditCategory(categoryName.text, defaultCategory.value); diff --git a/lib/src/features/library/presentation/library/category_manga_list.dart b/lib/src/features/library/presentation/library/category_manga_list.dart index 10b215f5..dfd24552 100644 --- a/lib/src/features/library/presentation/library/category_manga_list.dart +++ b/lib/src/features/library/presentation/library/category_manga_list.dart @@ -10,7 +10,6 @@ import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../constants/app_sizes.dart'; import '../../../../constants/enum.dart'; - import '../../../../routes/router_config.dart'; import '../../../../utils/extensions/custom_extensions.dart'; import '../../../../widgets/emoticons.dart'; @@ -18,7 +17,7 @@ import '../../../../widgets/manga_cover/grid/manga_cover_grid_tile.dart'; import '../../../../widgets/manga_cover/list/manga_cover_descriptive_list_tile.dart'; import '../../../../widgets/manga_cover/list/manga_cover_list_tile.dart'; import '../../../manga_book/presentation/manga_details/widgets/edit_manga_category_dialog.dart'; -import '../../../settings/presentation/appearance/widgets/grid_cover_min_width.dart'; +import '../../../settings/presentation/appearance/widgets/grid_cover_width_slider/grid_cover_width_slider.dart'; import 'controller/library_controller.dart'; class CategoryMangaList extends HookConsumerWidget { @@ -40,7 +39,7 @@ class CategoryMangaList extends HookConsumerWidget { (data) { if (data.isBlank) { return Emoticons( - text: context.l10n.noCategoryMangaFound, + title: context.l10n.noCategoryMangaFound, button: TextButton( onPressed: refresh, child: Text(context.l10n.refresh), @@ -54,24 +53,20 @@ class CategoryMangaList extends HookConsumerWidget { itemBuilder: (context, index) => MangaCoverListTile( manga: data![index], onPressed: () { - if (data[index].id != null) { - MangaRoute( - mangaId: data[index].id!, - categoryId: categoryId, - ).push(context); - } + MangaRoute( + mangaId: data[index].id, + categoryId: categoryId, + ).push(context); }, onLongPress: () async { - if (data[index].id != null) { - await showDialog( - context: context, - builder: (context) => EditMangaCategoryDialog( - mangaId: data[index].id!, - title: data[index].title, - ), - ); - refresh(); - } + await showDialog( + context: context, + builder: (context) => EditMangaCategoryDialog( + mangaId: data[index].id, + title: data[index].title, + ), + ); + refresh(); }, showCountBadges: true, ), @@ -82,25 +77,21 @@ class CategoryMangaList extends HookConsumerWidget { itemCount: (data?.length).getValueOnNullOrNegative(), itemBuilder: (context, index) => MangaCoverGridTile( onLongPress: () async { - if (data[index].id != null) { - await showDialog( - context: context, - builder: (context) => EditMangaCategoryDialog( - mangaId: data[index].id!, - title: data[index].title, - ), - ); - refresh(); - } + await showDialog( + context: context, + builder: (context) => EditMangaCategoryDialog( + mangaId: data[index].id, + title: data[index].title, + ), + ); + refresh(); }, manga: data![index], onPressed: () { - if (data[index].id != null) { - MangaRoute( - mangaId: data[index].id!, - categoryId: categoryId, - ).push(context); - } + MangaRoute( + mangaId: data[index].id, + categoryId: categoryId, + ).push(context); }, showCountBadges: true, showDarkOverlay: false, @@ -112,24 +103,20 @@ class CategoryMangaList extends HookConsumerWidget { itemBuilder: (context, index) => MangaCoverDescriptiveListTile( manga: data![index], onPressed: () { - if (data[index].id != null) { - MangaRoute( - mangaId: data[index].id!, - categoryId: categoryId, - ).push(context); - } + MangaRoute( + mangaId: data[index].id, + categoryId: categoryId, + ).push(context); }, onLongPress: () async { - if (data[index].id != null) { - await showDialog( - context: context, - builder: (context) => EditMangaCategoryDialog( - mangaId: data[index].id!, - title: data[index].title, - ), - ); - refresh(); - } + await showDialog( + context: context, + builder: (context) => EditMangaCategoryDialog( + mangaId: data[index].id, + title: data[index].title, + ), + ); + refresh(); }, showBadges: true, ), diff --git a/lib/src/features/library/presentation/library/controller/library_controller.dart b/lib/src/features/library/presentation/library/controller/library_controller.dart index 06ba5629..e3765047 100644 --- a/lib/src/features/library/presentation/library/controller/library_controller.dart +++ b/lib/src/features/library/presentation/library/controller/library_controller.dart @@ -13,7 +13,7 @@ import '../../../../../utils/extensions/custom_extensions.dart'; import '../../../../../utils/mixin/shared_preferences_client_mixin.dart'; import '../../../../../utils/mixin/state_provider_mixin.dart'; import '../../../../manga_book/domain/manga/manga_model.dart'; -import '../../../data/category/category_repository.dart'; +import '../../../data/category_repository.dart'; import '../../../domain/category/category_model.dart'; part 'library_controller.g.dart'; @@ -65,7 +65,7 @@ class CategoryMangaListWithQueryAndFilter } if (mangaFilterCompleted != null && - (mangaFilterCompleted ^ (manga.status?.title == "COMPLETED"))) { + (mangaFilterCompleted ^ (manga.status.name == "COMPLETED"))) { return false; } @@ -79,14 +79,12 @@ class CategoryMangaListWithQueryAndFilter int applyMangaSort(Manga m1, Manga m2) { final sortDirToggle = (sortedDirection ? 1 : -1); return (switch (sortedBy) { - MangaSort.alphabetical => - (m1.title ?? "").compareTo(m2.title ?? ""), + MangaSort.alphabetical => (m1.title).compareTo(m2.title), MangaSort.unread => (m1.unreadCount.getValueOnNullOrNegative()) .compareTo(m2.unreadCount.getValueOnNullOrNegative()), - MangaSort.dateAdded => (m1.inLibraryAt.getValueOnNullOrNegative()) - .compareTo(m2.inLibraryAt.getValueOnNullOrNegative()), - MangaSort.lastRead => (m2.lastReadAt.getValueOnNullOrNegative()) - .compareTo(m1.lastReadAt.getValueOnNullOrNegative()) + MangaSort.dateAdded => + (m1.inLibraryAt.value.getValueOnNullOrNegative()) + .compareTo(m2.inLibraryAt.value.getValueOnNullOrNegative()), }) * sortDirToggle; } diff --git a/lib/src/features/library/presentation/library/controller/library_controller.g.dart b/lib/src/features/library/presentation/library/controller/library_controller.g.dart index fe3e0a41..9cf3fb34 100644 --- a/lib/src/features/library/presentation/library/controller/library_controller.g.dart +++ b/lib/src/features/library/presentation/library/controller/library_controller.g.dart @@ -175,7 +175,7 @@ final libraryDisplayCategoryProvider = typedef _$LibraryDisplayCategory = AutoDisposeNotifier; String _$categoryMangaListWithQueryAndFilterHash() => - r'f4f63df844426a1dd5f7d556caa091343d4d810a'; + r'325df91fdfcbcab813d5e439e29639612be41588'; abstract class _$CategoryMangaListWithQueryAndFilter extends BuildlessAutoDisposeNotifier?>> { diff --git a/lib/src/features/library/presentation/library/library_screen.dart b/lib/src/features/library/presentation/library/library_screen.dart index 85e5ab40..23abe871 100644 --- a/lib/src/features/library/presentation/library/library_screen.dart +++ b/lib/src/features/library/presentation/library/library_screen.dart @@ -22,11 +22,11 @@ import 'controller/library_controller.dart'; import 'widgets/library_manga_organizer.dart'; class LibraryScreen extends HookConsumerWidget { - const LibraryScreen({super.key, this.initialCategoryOrder}); - final int? initialCategoryOrder; + const LibraryScreen({super.key, required this.categoryId}); + final int categoryId; @override Widget build(BuildContext context, WidgetRef ref) { - final toast = ref.watch(toastProvider(context)); + final toast = ref.watch(toastProvider); final categoryList = ref.watch(categoryControllerProvider); final showSearch = useState(false); useEffect(() { @@ -36,112 +36,114 @@ class LibraryScreen extends HookConsumerWidget { return categoryList.showUiWhenData( context, - (data) => data.isBlank - ? Emoticons( - text: context.l10n.noCategoriesFound, - button: TextButton( - onPressed: () => ref.refresh(categoryControllerProvider), - child: Text(context.l10n.refresh), - ), - ) - : DefaultTabController( - length: data!.length, - initialIndex: min(initialCategoryOrder.getValueOnNullOrNegative(), - data.length - 1), - child: Scaffold( - appBar: AppBar( - title: Text(context.l10n.library), - centerTitle: true, - bottom: PreferredSize( - preferredSize: kCalculateAppBarBottomSize( - [data.length.isGreaterThan(1), showSearch.value], - ), - child: Column( - children: [ - if (data.length.isGreaterThan(1)) - TabBar( - isScrollable: true, - tabs: data - .map((e) => Tab(text: e.name ?? "")) - .toList(), - dividerColor: Colors.transparent, + (data) { + if (data.isBlank) { + return Emoticons( + title: context.l10n.noCategoriesFound, + button: TextButton( + onPressed: () => ref.refresh(categoryControllerProvider), + child: Text(context.l10n.refresh), + ), + ); + } else { + return DefaultTabController( + length: data!.length, + initialIndex: + min(categoryId.getValueOnNullOrNegative(), data.length - 1), + child: Scaffold( + appBar: AppBar( + title: Text(context.l10n.library), + centerTitle: true, + bottom: PreferredSize( + preferredSize: kCalculateAppBarBottomSize( + [data.length.isGreaterThan(1), showSearch.value], + ), + child: Column( + children: [ + if (data.length.isGreaterThan(1)) + TabBar( + isScrollable: true, + tabs: data.map((e) => Tab(text: e.name)).toList(), + dividerColor: Colors.transparent, + ), + if (showSearch.value) + Align( + alignment: Alignment.centerRight, + child: SearchField( + initialText: ref.read(libraryQueryProvider), + onChanged: (val) => ref + .read(libraryQueryProvider.notifier) + .update(val), + onClose: () => showSearch.value = (false), ), - if (showSearch.value) - Align( - alignment: Alignment.centerRight, - child: SearchField( - initialText: ref.read(libraryQueryProvider), - onChanged: (val) => ref - .read(libraryQueryProvider.notifier) - .update(val), - onClose: () => showSearch.value = (false), + ), + ], + ), + ), + actions: [ + IconButton( + onPressed: () => showSearch.value = (true), + icon: const Icon(Icons.search_rounded), + ), + Builder( + builder: (context) => IconButton( + onPressed: () { + if (context.isTablet) { + Scaffold.of(context).openEndDrawer(); + } else { + showModalBottomSheet( + context: context, + shape: RoundedRectangleBorder( + borderRadius: KBorderRadius.rT16.radius, ), - ), - ], + clipBehavior: Clip.hardEdge, + builder: (_) => const LibraryMangaOrganizer(), + ); + } + }, + icon: const Icon(Icons.filter_list_rounded), ), ), - actions: [ - IconButton( - onPressed: () => showSearch.value = (true), - icon: const Icon(Icons.search_rounded), - ), - Builder( - builder: (context) => IconButton( - onPressed: () { - if (context.isTablet) { - Scaffold.of(context).openEndDrawer(); - } else { - showModalBottomSheet( - context: context, - shape: RoundedRectangleBorder( - borderRadius: KBorderRadius.rT16.radius, - ), - clipBehavior: Clip.hardEdge, - builder: (_) => const LibraryMangaOrganizer(), - ); - } - }, - icon: const Icon(Icons.filter_list_rounded), + Builder( + builder: (context) { + return UpdateStatusPopupMenu( + getCategory: () => data.isNotBlank + ? data[DefaultTabController.of(context).index] + : null, + ); + }, + ), + ], + ), + endDrawerEnableOpenDragGesture: false, + endDrawer: const Drawer( + width: kDrawerWidth, + shape: RoundedRectangleBorder(), + child: LibraryMangaOrganizer(), + ), + body: data.isBlank + ? Emoticons( + title: context.l10n.noCategoriesFound, + button: TextButton( + onPressed: () => + ref.refresh(categoryControllerProvider), + child: Text(context.l10n.refresh), ), - ), - Builder( - builder: (context) { - return UpdateStatusPopupMenu( - getCategory: () => data.isNotBlank - ? data[DefaultTabController.of(context).index] - : null, - ); - }, - ), - ], - ), - endDrawerEnableOpenDragGesture: false, - endDrawer: const Drawer( - width: kDrawerWidth, - shape: RoundedRectangleBorder(), - child: LibraryMangaOrganizer(), - ), - body: data.isBlank - ? Emoticons( - text: context.l10n.noCategoriesFound, - button: TextButton( - onPressed: () => - ref.refresh(categoryControllerProvider), - child: Text(context.l10n.refresh), - ), - ) - : Padding( - padding: KEdgeInsets.h8.size, - child: TabBarView( - children: data - .map((e) => CategoryMangaList( - categoryId: e.id.getValueOnNullOrNegative(), - )) - .toList(), - ), + ) + : Padding( + padding: KEdgeInsets.h8.size, + child: TabBarView( + children: data + .map((e) => CategoryMangaList( + categoryId: e.id.getValueOnNullOrNegative(), + )) + .toList(), ), - ), + ), ), + ); + } + }, refresh: () => ref.refresh(categoryControllerProvider), wrapper: (body) => Scaffold( appBar: AppBar( diff --git a/lib/src/features/manga_book/data/downloads/downloads_repository.dart b/lib/src/features/manga_book/data/downloads/downloads_repository.dart index 40e184c4..46fecc4f 100644 --- a/lib/src/features/manga_book/data/downloads/downloads_repository.dart +++ b/lib/src/features/manga_book/data/downloads/downloads_repository.dart @@ -4,10 +4,7 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -import 'dart:convert'; - import 'package:flutter/foundation.dart'; - import 'package:riverpod_annotation/riverpod_annotation.dart'; import 'package:web_socket_channel/io.dart'; import 'package:web_socket_channel/web_socket_channel.dart'; @@ -63,7 +60,8 @@ class DownloadsRepository { return ( stream: channel.stream.asyncMap( (event) => compute( - (s) => Downloads.fromJson(json.decode(s)), + (s) => + Downloads(), //.fromJson(json.decode(s)),//TODO: Implement decoder event, ), ), diff --git a/lib/src/features/manga_book/data/manga_book_repository.dart b/lib/src/features/manga_book/data/manga_book_repository.dart index c754d330..ab73f442 100644 --- a/lib/src/features/manga_book/data/manga_book_repository.dart +++ b/lib/src/features/manga_book/data/manga_book_repository.dart @@ -12,6 +12,7 @@ import '../../../global_providers/global_providers.dart'; import '../../../utils/extensions/custom_extensions.dart'; import '../../../utils/storage/dio/dio_client.dart'; import '../../library/domain/category/category_model.dart'; +import '../../library/domain/category/graphql/__generated__/fragment.data.gql.dart'; import '../domain/chapter/chapter_model.dart'; import '../domain/chapter_batch/chapter_batch_model.dart'; import '../domain/chapter_patch/chapter_put_model.dart'; @@ -40,7 +41,7 @@ class MangaBookRepository { (await dioClient.get( MangaUrl.fullWithId(mangaId), queryParameters: {"onlineFetch": onlineFetch}, - decoder: (e) => e is Map ? Manga.fromJson(e) : null, + decoder: (e) => null, cancelToken: cancelToken, )) .data; @@ -54,7 +55,7 @@ class MangaBookRepository { }) async => (await dioClient.get( MangaUrl.chapterWithIndex(mangaId, chapterIndex), - decoder: (e) => e is Map ? Chapter.fromJson(e) : null, + decoder: (e) => e.data, cancelToken: cancelToken, )) .data; @@ -91,8 +92,7 @@ class MangaBookRepository { (await dioClient.get, Chapter>( MangaUrl.chapters(mangaId), queryParameters: {"onlineFetch": onlineFetch}, - decoder: (e) => - e is Map ? Chapter.fromJson(e) : Chapter(), + decoder: (e) => e.data, cancelToken: cancelToken, )) .data; @@ -103,8 +103,7 @@ class MangaBookRepository { }) async => (await dioClient.get, Category>( MangaUrl.category(mangaId), - decoder: (e) => - e is Map ? Category.fromJson(e) : Category(), + decoder: (e) => GCategoryFragmentData(), cancelToken: cancelToken, )) .data; diff --git a/lib/src/features/manga_book/data/updates/updates_repository.dart b/lib/src/features/manga_book/data/updates/updates_repository.dart index 7ca42d0d..65fd620d 100644 --- a/lib/src/features/manga_book/data/updates/updates_repository.dart +++ b/lib/src/features/manga_book/data/updates/updates_repository.dart @@ -4,8 +4,6 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -import 'dart:convert'; - import 'package:dio/dio.dart'; import 'package:flutter/foundation.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; @@ -37,8 +35,7 @@ class UpdatesRepository { }) async => (await dioClient.get( UpdateUrl.recentChapters(pageNo), - decoder: (e) => - e is Map ? ChapterPage.fromJson(e) : null, + decoder: (e) => ChapterPage(), //TODO: Implement decoder cancelToken: cancelToken, )) .data; @@ -66,9 +63,7 @@ class UpdatesRepository { (await dioClient.get( UpdateUrl.summary, cancelToken: cancelToken, - decoder: (e) => e is Map - ? UpdateStatus.fromJson(e["statusMap"]) - : null, + decoder: (e) => e is Map ? UpdateStatus() : null, )) .data; @@ -85,9 +80,7 @@ class UpdatesRepository { ); return ( stream: channel.stream.asyncMap((event) => - compute( - (s) => UpdateStatus.fromJson({...?json.decode(s)["statusMap"]}), - event)), + compute((s) => UpdateStatus(), event)), closeStream: channel.sink.close, ); } diff --git a/lib/src/features/manga_book/domain/chapter/chapter_model.dart b/lib/src/features/manga_book/domain/chapter/chapter_model.dart index e8b6a44d..c139e607 100644 --- a/lib/src/features/manga_book/domain/chapter/chapter_model.dart +++ b/lib/src/features/manga_book/domain/chapter/chapter_model.dart @@ -4,49 +4,18 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -import 'package:flutter/material.dart'; -import 'package:freezed_annotation/freezed_annotation.dart'; - import '../../../../utils/extensions/custom_extensions.dart'; +import 'graphql/__generated__/fragment.data.gql.dart'; -part 'chapter_model.freezed.dart'; -part 'chapter_model.g.dart'; - -@freezed -class Chapter with _$Chapter { - Chapter._(); - factory Chapter({ - int? id, - bool? bookmarked, - int? chapterCount, - double? chapterNumber, - bool? downloaded, - int? fetchedAt, - int? index, - int? lastPageRead, - int? lastReadAt, - int? mangaId, - String? name, - int? pageCount, - bool? read, - String? realUrl, - String? scanlator, - int? uploadDate, - String? url, - Map? meta, - }) = _Chapter; - - factory Chapter.fromJson(Map json) => - _$ChapterFromJson(json); +typedef Chapter = GChapterFragment; +extension ChapterExtension on GChapterFragment { bool query([String? query]) { return name.query(query) || index == int.tryParse(query ?? ''); } - String getDisplayName(BuildContext context) { - return name ?? - context.l10n.chapterNumber( - chapterNumber ?? index?.toDouble() ?? 0, - ); - } + int get index => sourceOrder; + + Map get metaData => + {for (final metaItem in meta) metaItem.key: metaItem.value}; } diff --git a/lib/src/features/manga_book/domain/chapter/chapter_model.freezed.dart b/lib/src/features/manga_book/domain/chapter/chapter_model.freezed.dart deleted file mode 100644 index 6d29b7db..00000000 --- a/lib/src/features/manga_book/domain/chapter/chapter_model.freezed.dart +++ /dev/null @@ -1,530 +0,0 @@ -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// 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 'chapter_model.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -T _$identity(T value) => value; - -final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); - -Chapter _$ChapterFromJson(Map json) { - return _Chapter.fromJson(json); -} - -/// @nodoc -mixin _$Chapter { - int? get id => throw _privateConstructorUsedError; - bool? get bookmarked => throw _privateConstructorUsedError; - int? get chapterCount => throw _privateConstructorUsedError; - double? get chapterNumber => throw _privateConstructorUsedError; - bool? get downloaded => throw _privateConstructorUsedError; - int? get fetchedAt => throw _privateConstructorUsedError; - int? get index => throw _privateConstructorUsedError; - int? get lastPageRead => throw _privateConstructorUsedError; - int? get lastReadAt => throw _privateConstructorUsedError; - int? get mangaId => throw _privateConstructorUsedError; - String? get name => throw _privateConstructorUsedError; - int? get pageCount => throw _privateConstructorUsedError; - bool? get read => throw _privateConstructorUsedError; - String? get realUrl => throw _privateConstructorUsedError; - String? get scanlator => throw _privateConstructorUsedError; - int? get uploadDate => throw _privateConstructorUsedError; - String? get url => throw _privateConstructorUsedError; - Map? get meta => throw _privateConstructorUsedError; - - Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) - $ChapterCopyWith get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ChapterCopyWith<$Res> { - factory $ChapterCopyWith(Chapter value, $Res Function(Chapter) then) = - _$ChapterCopyWithImpl<$Res, Chapter>; - @useResult - $Res call( - {int? id, - bool? bookmarked, - int? chapterCount, - double? chapterNumber, - bool? downloaded, - int? fetchedAt, - int? index, - int? lastPageRead, - int? lastReadAt, - int? mangaId, - String? name, - int? pageCount, - bool? read, - String? realUrl, - String? scanlator, - int? uploadDate, - String? url, - Map? meta}); -} - -/// @nodoc -class _$ChapterCopyWithImpl<$Res, $Val extends Chapter> - implements $ChapterCopyWith<$Res> { - _$ChapterCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = freezed, - Object? bookmarked = freezed, - Object? chapterCount = freezed, - Object? chapterNumber = freezed, - Object? downloaded = freezed, - Object? fetchedAt = freezed, - Object? index = freezed, - Object? lastPageRead = freezed, - Object? lastReadAt = freezed, - Object? mangaId = freezed, - Object? name = freezed, - Object? pageCount = freezed, - Object? read = freezed, - Object? realUrl = freezed, - Object? scanlator = freezed, - Object? uploadDate = freezed, - Object? url = freezed, - Object? meta = freezed, - }) { - return _then(_value.copyWith( - id: freezed == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int?, - bookmarked: freezed == bookmarked - ? _value.bookmarked - : bookmarked // ignore: cast_nullable_to_non_nullable - as bool?, - chapterCount: freezed == chapterCount - ? _value.chapterCount - : chapterCount // ignore: cast_nullable_to_non_nullable - as int?, - chapterNumber: freezed == chapterNumber - ? _value.chapterNumber - : chapterNumber // ignore: cast_nullable_to_non_nullable - as double?, - downloaded: freezed == downloaded - ? _value.downloaded - : downloaded // ignore: cast_nullable_to_non_nullable - as bool?, - fetchedAt: freezed == fetchedAt - ? _value.fetchedAt - : fetchedAt // ignore: cast_nullable_to_non_nullable - as int?, - index: freezed == index - ? _value.index - : index // ignore: cast_nullable_to_non_nullable - as int?, - lastPageRead: freezed == lastPageRead - ? _value.lastPageRead - : lastPageRead // ignore: cast_nullable_to_non_nullable - as int?, - lastReadAt: freezed == lastReadAt - ? _value.lastReadAt - : lastReadAt // ignore: cast_nullable_to_non_nullable - as int?, - mangaId: freezed == mangaId - ? _value.mangaId - : mangaId // ignore: cast_nullable_to_non_nullable - as int?, - name: freezed == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String?, - pageCount: freezed == pageCount - ? _value.pageCount - : pageCount // ignore: cast_nullable_to_non_nullable - as int?, - read: freezed == read - ? _value.read - : read // ignore: cast_nullable_to_non_nullable - as bool?, - realUrl: freezed == realUrl - ? _value.realUrl - : realUrl // ignore: cast_nullable_to_non_nullable - as String?, - scanlator: freezed == scanlator - ? _value.scanlator - : scanlator // ignore: cast_nullable_to_non_nullable - as String?, - uploadDate: freezed == uploadDate - ? _value.uploadDate - : uploadDate // ignore: cast_nullable_to_non_nullable - as int?, - url: freezed == url - ? _value.url - : url // ignore: cast_nullable_to_non_nullable - as String?, - meta: freezed == meta - ? _value.meta - : meta // ignore: cast_nullable_to_non_nullable - as Map?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ChapterImplCopyWith<$Res> implements $ChapterCopyWith<$Res> { - factory _$$ChapterImplCopyWith( - _$ChapterImpl value, $Res Function(_$ChapterImpl) then) = - __$$ChapterImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int? id, - bool? bookmarked, - int? chapterCount, - double? chapterNumber, - bool? downloaded, - int? fetchedAt, - int? index, - int? lastPageRead, - int? lastReadAt, - int? mangaId, - String? name, - int? pageCount, - bool? read, - String? realUrl, - String? scanlator, - int? uploadDate, - String? url, - Map? meta}); -} - -/// @nodoc -class __$$ChapterImplCopyWithImpl<$Res> - extends _$ChapterCopyWithImpl<$Res, _$ChapterImpl> - implements _$$ChapterImplCopyWith<$Res> { - __$$ChapterImplCopyWithImpl( - _$ChapterImpl _value, $Res Function(_$ChapterImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = freezed, - Object? bookmarked = freezed, - Object? chapterCount = freezed, - Object? chapterNumber = freezed, - Object? downloaded = freezed, - Object? fetchedAt = freezed, - Object? index = freezed, - Object? lastPageRead = freezed, - Object? lastReadAt = freezed, - Object? mangaId = freezed, - Object? name = freezed, - Object? pageCount = freezed, - Object? read = freezed, - Object? realUrl = freezed, - Object? scanlator = freezed, - Object? uploadDate = freezed, - Object? url = freezed, - Object? meta = freezed, - }) { - return _then(_$ChapterImpl( - id: freezed == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int?, - bookmarked: freezed == bookmarked - ? _value.bookmarked - : bookmarked // ignore: cast_nullable_to_non_nullable - as bool?, - chapterCount: freezed == chapterCount - ? _value.chapterCount - : chapterCount // ignore: cast_nullable_to_non_nullable - as int?, - chapterNumber: freezed == chapterNumber - ? _value.chapterNumber - : chapterNumber // ignore: cast_nullable_to_non_nullable - as double?, - downloaded: freezed == downloaded - ? _value.downloaded - : downloaded // ignore: cast_nullable_to_non_nullable - as bool?, - fetchedAt: freezed == fetchedAt - ? _value.fetchedAt - : fetchedAt // ignore: cast_nullable_to_non_nullable - as int?, - index: freezed == index - ? _value.index - : index // ignore: cast_nullable_to_non_nullable - as int?, - lastPageRead: freezed == lastPageRead - ? _value.lastPageRead - : lastPageRead // ignore: cast_nullable_to_non_nullable - as int?, - lastReadAt: freezed == lastReadAt - ? _value.lastReadAt - : lastReadAt // ignore: cast_nullable_to_non_nullable - as int?, - mangaId: freezed == mangaId - ? _value.mangaId - : mangaId // ignore: cast_nullable_to_non_nullable - as int?, - name: freezed == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String?, - pageCount: freezed == pageCount - ? _value.pageCount - : pageCount // ignore: cast_nullable_to_non_nullable - as int?, - read: freezed == read - ? _value.read - : read // ignore: cast_nullable_to_non_nullable - as bool?, - realUrl: freezed == realUrl - ? _value.realUrl - : realUrl // ignore: cast_nullable_to_non_nullable - as String?, - scanlator: freezed == scanlator - ? _value.scanlator - : scanlator // ignore: cast_nullable_to_non_nullable - as String?, - uploadDate: freezed == uploadDate - ? _value.uploadDate - : uploadDate // ignore: cast_nullable_to_non_nullable - as int?, - url: freezed == url - ? _value.url - : url // ignore: cast_nullable_to_non_nullable - as String?, - meta: freezed == meta - ? _value._meta - : meta // ignore: cast_nullable_to_non_nullable - as Map?, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$ChapterImpl extends _Chapter { - _$ChapterImpl( - {this.id, - this.bookmarked, - this.chapterCount, - this.chapterNumber, - this.downloaded, - this.fetchedAt, - this.index, - this.lastPageRead, - this.lastReadAt, - this.mangaId, - this.name, - this.pageCount, - this.read, - this.realUrl, - this.scanlator, - this.uploadDate, - this.url, - final Map? meta}) - : _meta = meta, - super._(); - - factory _$ChapterImpl.fromJson(Map json) => - _$$ChapterImplFromJson(json); - - @override - final int? id; - @override - final bool? bookmarked; - @override - final int? chapterCount; - @override - final double? chapterNumber; - @override - final bool? downloaded; - @override - final int? fetchedAt; - @override - final int? index; - @override - final int? lastPageRead; - @override - final int? lastReadAt; - @override - final int? mangaId; - @override - final String? name; - @override - final int? pageCount; - @override - final bool? read; - @override - final String? realUrl; - @override - final String? scanlator; - @override - final int? uploadDate; - @override - final String? url; - final Map? _meta; - @override - Map? get meta { - final value = _meta; - if (value == null) return null; - if (_meta is EqualUnmodifiableMapView) return _meta; - // ignore: implicit_dynamic_type - return EqualUnmodifiableMapView(value); - } - - @override - String toString() { - return 'Chapter(id: $id, bookmarked: $bookmarked, chapterCount: $chapterCount, chapterNumber: $chapterNumber, downloaded: $downloaded, fetchedAt: $fetchedAt, index: $index, lastPageRead: $lastPageRead, lastReadAt: $lastReadAt, mangaId: $mangaId, name: $name, pageCount: $pageCount, read: $read, realUrl: $realUrl, scanlator: $scanlator, uploadDate: $uploadDate, url: $url, meta: $meta)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ChapterImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.bookmarked, bookmarked) || - other.bookmarked == bookmarked) && - (identical(other.chapterCount, chapterCount) || - other.chapterCount == chapterCount) && - (identical(other.chapterNumber, chapterNumber) || - other.chapterNumber == chapterNumber) && - (identical(other.downloaded, downloaded) || - other.downloaded == downloaded) && - (identical(other.fetchedAt, fetchedAt) || - other.fetchedAt == fetchedAt) && - (identical(other.index, index) || other.index == index) && - (identical(other.lastPageRead, lastPageRead) || - other.lastPageRead == lastPageRead) && - (identical(other.lastReadAt, lastReadAt) || - other.lastReadAt == lastReadAt) && - (identical(other.mangaId, mangaId) || other.mangaId == mangaId) && - (identical(other.name, name) || other.name == name) && - (identical(other.pageCount, pageCount) || - other.pageCount == pageCount) && - (identical(other.read, read) || other.read == read) && - (identical(other.realUrl, realUrl) || other.realUrl == realUrl) && - (identical(other.scanlator, scanlator) || - other.scanlator == scanlator) && - (identical(other.uploadDate, uploadDate) || - other.uploadDate == uploadDate) && - (identical(other.url, url) || other.url == url) && - const DeepCollectionEquality().equals(other._meta, _meta)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => Object.hash( - runtimeType, - id, - bookmarked, - chapterCount, - chapterNumber, - downloaded, - fetchedAt, - index, - lastPageRead, - lastReadAt, - mangaId, - name, - pageCount, - read, - realUrl, - scanlator, - uploadDate, - url, - const DeepCollectionEquality().hash(_meta)); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$ChapterImplCopyWith<_$ChapterImpl> get copyWith => - __$$ChapterImplCopyWithImpl<_$ChapterImpl>(this, _$identity); - - @override - Map toJson() { - return _$$ChapterImplToJson( - this, - ); - } -} - -abstract class _Chapter extends Chapter { - factory _Chapter( - {final int? id, - final bool? bookmarked, - final int? chapterCount, - final double? chapterNumber, - final bool? downloaded, - final int? fetchedAt, - final int? index, - final int? lastPageRead, - final int? lastReadAt, - final int? mangaId, - final String? name, - final int? pageCount, - final bool? read, - final String? realUrl, - final String? scanlator, - final int? uploadDate, - final String? url, - final Map? meta}) = _$ChapterImpl; - _Chapter._() : super._(); - - factory _Chapter.fromJson(Map json) = _$ChapterImpl.fromJson; - - @override - int? get id; - @override - bool? get bookmarked; - @override - int? get chapterCount; - @override - double? get chapterNumber; - @override - bool? get downloaded; - @override - int? get fetchedAt; - @override - int? get index; - @override - int? get lastPageRead; - @override - int? get lastReadAt; - @override - int? get mangaId; - @override - String? get name; - @override - int? get pageCount; - @override - bool? get read; - @override - String? get realUrl; - @override - String? get scanlator; - @override - int? get uploadDate; - @override - String? get url; - @override - Map? get meta; - @override - @JsonKey(ignore: true) - _$$ChapterImplCopyWith<_$ChapterImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/features/manga_book/domain/chapter/chapter_model.g.dart b/lib/src/features/manga_book/domain/chapter/chapter_model.g.dart deleted file mode 100644 index 38b5408a..00000000 --- a/lib/src/features/manga_book/domain/chapter/chapter_model.g.dart +++ /dev/null @@ -1,53 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'chapter_model.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ChapterImpl _$$ChapterImplFromJson(Map json) => - _$ChapterImpl( - id: json['id'] as int?, - bookmarked: json['bookmarked'] as bool?, - chapterCount: json['chapterCount'] as int?, - chapterNumber: (json['chapterNumber'] as num?)?.toDouble(), - downloaded: json['downloaded'] as bool?, - fetchedAt: json['fetchedAt'] as int?, - index: json['index'] as int?, - lastPageRead: json['lastPageRead'] as int?, - lastReadAt: json['lastReadAt'] as int?, - mangaId: json['mangaId'] as int?, - name: json['name'] as String?, - pageCount: json['pageCount'] as int?, - read: json['read'] as bool?, - realUrl: json['realUrl'] as String?, - scanlator: json['scanlator'] as String?, - uploadDate: json['uploadDate'] as int?, - url: json['url'] as String?, - meta: (json['meta'] as Map?)?.map( - (k, e) => MapEntry(k, e as String), - ), - ); - -Map _$$ChapterImplToJson(_$ChapterImpl instance) => - { - 'id': instance.id, - 'bookmarked': instance.bookmarked, - 'chapterCount': instance.chapterCount, - 'chapterNumber': instance.chapterNumber, - 'downloaded': instance.downloaded, - 'fetchedAt': instance.fetchedAt, - 'index': instance.index, - 'lastPageRead': instance.lastPageRead, - 'lastReadAt': instance.lastReadAt, - 'mangaId': instance.mangaId, - 'name': instance.name, - 'pageCount': instance.pageCount, - 'read': instance.read, - 'realUrl': instance.realUrl, - 'scanlator': instance.scanlator, - 'uploadDate': instance.uploadDate, - 'url': instance.url, - 'meta': instance.meta, - }; diff --git a/lib/src/features/manga_book/domain/chapter/graphql/__generated__/fragment.ast.gql.dart b/lib/src/features/manga_book/domain/chapter/graphql/__generated__/fragment.ast.gql.dart new file mode 100644 index 00000000..5d6a853a --- /dev/null +++ b/lib/src/features/manga_book/domain/chapter/graphql/__generated__/fragment.ast.gql.dart @@ -0,0 +1,152 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const ChapterFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'ChapterFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterType'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'chapterNumber'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'fetchedAt'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'id'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'isBookmarked'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'isDownloaded'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'isRead'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'lastPageRead'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'lastReadAt'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'mangaId'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'pageCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'realUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'scanlator'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'sourceOrder'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'uploadDate'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'url'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'meta'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'key'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'value'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + ]), +); +const document = _i1.DocumentNode(definitions: [ChapterFragment]); diff --git a/lib/src/features/manga_book/domain/chapter/graphql/__generated__/fragment.data.gql.dart b/lib/src/features/manga_book/domain/chapter/graphql/__generated__/fragment.data.gql.dart new file mode 100644 index 00000000..37f159dc --- /dev/null +++ b/lib/src/features/manga_book/domain/chapter/graphql/__generated__/fragment.data.gql.dart @@ -0,0 +1,144 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' + as _i1; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i2; + +part 'fragment.data.gql.g.dart'; + +abstract class GChapterFragment { + String get G__typename; + double get chapterNumber; + _i1.GLongString get fetchedAt; + int get id; + bool get isBookmarked; + bool get isDownloaded; + bool get isRead; + int get lastPageRead; + _i1.GLongString get lastReadAt; + int get mangaId; + String get name; + int get pageCount; + String? get realUrl; + String? get scanlator; + int get sourceOrder; + _i1.GLongString get uploadDate; + String get url; + BuiltList get meta; + Map toJson(); +} + +abstract class GChapterFragment_meta { + String get G__typename; + String get key; + String get value; + Map toJson(); +} + +abstract class GChapterFragmentData + implements + Built, + GChapterFragment { + GChapterFragmentData._(); + + factory GChapterFragmentData( + [void Function(GChapterFragmentDataBuilder b) updates]) = + _$GChapterFragmentData; + + static void _initializeBuilder(GChapterFragmentDataBuilder b) => + b..G__typename = 'ChapterType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + double get chapterNumber; + @override + _i1.GLongString get fetchedAt; + @override + int get id; + @override + bool get isBookmarked; + @override + bool get isDownloaded; + @override + bool get isRead; + @override + int get lastPageRead; + @override + _i1.GLongString get lastReadAt; + @override + int get mangaId; + @override + String get name; + @override + int get pageCount; + @override + String? get realUrl; + @override + String? get scanlator; + @override + int get sourceOrder; + @override + _i1.GLongString get uploadDate; + @override + String get url; + @override + BuiltList get meta; + static Serializer get serializer => + _$gChapterFragmentDataSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GChapterFragmentData.serializer, + this, + ) as Map); + + static GChapterFragmentData? fromJson(Map json) => + _i2.serializers.deserializeWith( + GChapterFragmentData.serializer, + json, + ); +} + +abstract class GChapterFragmentData_meta + implements + Built, + GChapterFragment_meta { + GChapterFragmentData_meta._(); + + factory GChapterFragmentData_meta( + [void Function(GChapterFragmentData_metaBuilder b) updates]) = + _$GChapterFragmentData_meta; + + static void _initializeBuilder(GChapterFragmentData_metaBuilder b) => + b..G__typename = 'ChapterMetaType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get key; + @override + String get value; + static Serializer get serializer => + _$gChapterFragmentDataMetaSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GChapterFragmentData_meta.serializer, + this, + ) as Map); + + static GChapterFragmentData_meta? fromJson(Map json) => + _i2.serializers.deserializeWith( + GChapterFragmentData_meta.serializer, + json, + ); +} diff --git a/lib/src/features/manga_book/domain/chapter/graphql/__generated__/fragment.data.gql.g.dart b/lib/src/features/manga_book/domain/chapter/graphql/__generated__/fragment.data.gql.g.dart new file mode 100644 index 00000000..4a515c24 --- /dev/null +++ b/lib/src/features/manga_book/domain/chapter/graphql/__generated__/fragment.data.gql.g.dart @@ -0,0 +1,729 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gChapterFragmentDataSerializer = + new _$GChapterFragmentDataSerializer(); +Serializer _$gChapterFragmentDataMetaSerializer = + new _$GChapterFragmentData_metaSerializer(); + +class _$GChapterFragmentDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GChapterFragmentData, + _$GChapterFragmentData + ]; + @override + final String wireName = 'GChapterFragmentData'; + + @override + Iterable serialize( + Serializers serializers, GChapterFragmentData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'chapterNumber', + serializers.serialize(object.chapterNumber, + specifiedType: const FullType(double)), + 'fetchedAt', + serializers.serialize(object.fetchedAt, + specifiedType: const FullType(_i1.GLongString)), + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'isBookmarked', + serializers.serialize(object.isBookmarked, + specifiedType: const FullType(bool)), + 'isDownloaded', + serializers.serialize(object.isDownloaded, + specifiedType: const FullType(bool)), + 'isRead', + serializers.serialize(object.isRead, specifiedType: const FullType(bool)), + 'lastPageRead', + serializers.serialize(object.lastPageRead, + specifiedType: const FullType(int)), + 'lastReadAt', + serializers.serialize(object.lastReadAt, + specifiedType: const FullType(_i1.GLongString)), + 'mangaId', + serializers.serialize(object.mangaId, specifiedType: const FullType(int)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'pageCount', + serializers.serialize(object.pageCount, + specifiedType: const FullType(int)), + 'sourceOrder', + serializers.serialize(object.sourceOrder, + specifiedType: const FullType(int)), + 'uploadDate', + serializers.serialize(object.uploadDate, + specifiedType: const FullType(_i1.GLongString)), + 'url', + serializers.serialize(object.url, specifiedType: const FullType(String)), + 'meta', + serializers.serialize(object.meta, + specifiedType: const FullType( + BuiltList, const [const FullType(GChapterFragmentData_meta)])), + ]; + Object? value; + value = object.realUrl; + if (value != null) { + result + ..add('realUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.scanlator; + if (value != null) { + result + ..add('scanlator') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GChapterFragmentData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GChapterFragmentDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'chapterNumber': + result.chapterNumber = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'fetchedAt': + result.fetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'isBookmarked': + result.isBookmarked = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isDownloaded': + result.isDownloaded = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isRead': + result.isRead = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'lastPageRead': + result.lastPageRead = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'lastReadAt': + result.lastReadAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'mangaId': + result.mangaId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'pageCount': + result.pageCount = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'realUrl': + result.realUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'scanlator': + result.scanlator = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'sourceOrder': + result.sourceOrder = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'uploadDate': + result.uploadDate.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'url': + result.url = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'meta': + result.meta.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GChapterFragmentData_meta) + ]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GChapterFragmentData_metaSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GChapterFragmentData_meta, + _$GChapterFragmentData_meta + ]; + @override + final String wireName = 'GChapterFragmentData_meta'; + + @override + Iterable serialize( + Serializers serializers, GChapterFragmentData_meta object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'value', + serializers.serialize(object.value, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GChapterFragmentData_meta deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GChapterFragmentData_metaBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GChapterFragmentData extends GChapterFragmentData { + @override + final String G__typename; + @override + final double chapterNumber; + @override + final _i1.GLongString fetchedAt; + @override + final int id; + @override + final bool isBookmarked; + @override + final bool isDownloaded; + @override + final bool isRead; + @override + final int lastPageRead; + @override + final _i1.GLongString lastReadAt; + @override + final int mangaId; + @override + final String name; + @override + final int pageCount; + @override + final String? realUrl; + @override + final String? scanlator; + @override + final int sourceOrder; + @override + final _i1.GLongString uploadDate; + @override + final String url; + @override + final BuiltList meta; + + factory _$GChapterFragmentData( + [void Function(GChapterFragmentDataBuilder)? updates]) => + (new GChapterFragmentDataBuilder()..update(updates))._build(); + + _$GChapterFragmentData._( + {required this.G__typename, + required this.chapterNumber, + required this.fetchedAt, + required this.id, + required this.isBookmarked, + required this.isDownloaded, + required this.isRead, + required this.lastPageRead, + required this.lastReadAt, + required this.mangaId, + required this.name, + required this.pageCount, + this.realUrl, + this.scanlator, + required this.sourceOrder, + required this.uploadDate, + required this.url, + required this.meta}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GChapterFragmentData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + chapterNumber, r'GChapterFragmentData', 'chapterNumber'); + BuiltValueNullFieldError.checkNotNull( + fetchedAt, r'GChapterFragmentData', 'fetchedAt'); + BuiltValueNullFieldError.checkNotNull(id, r'GChapterFragmentData', 'id'); + BuiltValueNullFieldError.checkNotNull( + isBookmarked, r'GChapterFragmentData', 'isBookmarked'); + BuiltValueNullFieldError.checkNotNull( + isDownloaded, r'GChapterFragmentData', 'isDownloaded'); + BuiltValueNullFieldError.checkNotNull( + isRead, r'GChapterFragmentData', 'isRead'); + BuiltValueNullFieldError.checkNotNull( + lastPageRead, r'GChapterFragmentData', 'lastPageRead'); + BuiltValueNullFieldError.checkNotNull( + lastReadAt, r'GChapterFragmentData', 'lastReadAt'); + BuiltValueNullFieldError.checkNotNull( + mangaId, r'GChapterFragmentData', 'mangaId'); + BuiltValueNullFieldError.checkNotNull( + name, r'GChapterFragmentData', 'name'); + BuiltValueNullFieldError.checkNotNull( + pageCount, r'GChapterFragmentData', 'pageCount'); + BuiltValueNullFieldError.checkNotNull( + sourceOrder, r'GChapterFragmentData', 'sourceOrder'); + BuiltValueNullFieldError.checkNotNull( + uploadDate, r'GChapterFragmentData', 'uploadDate'); + BuiltValueNullFieldError.checkNotNull(url, r'GChapterFragmentData', 'url'); + BuiltValueNullFieldError.checkNotNull( + meta, r'GChapterFragmentData', 'meta'); + } + + @override + GChapterFragmentData rebuild( + void Function(GChapterFragmentDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GChapterFragmentDataBuilder toBuilder() => + new GChapterFragmentDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GChapterFragmentData && + G__typename == other.G__typename && + chapterNumber == other.chapterNumber && + fetchedAt == other.fetchedAt && + id == other.id && + isBookmarked == other.isBookmarked && + isDownloaded == other.isDownloaded && + isRead == other.isRead && + lastPageRead == other.lastPageRead && + lastReadAt == other.lastReadAt && + mangaId == other.mangaId && + name == other.name && + pageCount == other.pageCount && + realUrl == other.realUrl && + scanlator == other.scanlator && + sourceOrder == other.sourceOrder && + uploadDate == other.uploadDate && + url == other.url && + meta == other.meta; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, chapterNumber.hashCode); + _$hash = $jc(_$hash, fetchedAt.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, isBookmarked.hashCode); + _$hash = $jc(_$hash, isDownloaded.hashCode); + _$hash = $jc(_$hash, isRead.hashCode); + _$hash = $jc(_$hash, lastPageRead.hashCode); + _$hash = $jc(_$hash, lastReadAt.hashCode); + _$hash = $jc(_$hash, mangaId.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, pageCount.hashCode); + _$hash = $jc(_$hash, realUrl.hashCode); + _$hash = $jc(_$hash, scanlator.hashCode); + _$hash = $jc(_$hash, sourceOrder.hashCode); + _$hash = $jc(_$hash, uploadDate.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GChapterFragmentData') + ..add('G__typename', G__typename) + ..add('chapterNumber', chapterNumber) + ..add('fetchedAt', fetchedAt) + ..add('id', id) + ..add('isBookmarked', isBookmarked) + ..add('isDownloaded', isDownloaded) + ..add('isRead', isRead) + ..add('lastPageRead', lastPageRead) + ..add('lastReadAt', lastReadAt) + ..add('mangaId', mangaId) + ..add('name', name) + ..add('pageCount', pageCount) + ..add('realUrl', realUrl) + ..add('scanlator', scanlator) + ..add('sourceOrder', sourceOrder) + ..add('uploadDate', uploadDate) + ..add('url', url) + ..add('meta', meta)) + .toString(); + } +} + +class GChapterFragmentDataBuilder + implements Builder { + _$GChapterFragmentData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + double? _chapterNumber; + double? get chapterNumber => _$this._chapterNumber; + set chapterNumber(double? chapterNumber) => + _$this._chapterNumber = chapterNumber; + + _i1.GLongStringBuilder? _fetchedAt; + _i1.GLongStringBuilder get fetchedAt => + _$this._fetchedAt ??= new _i1.GLongStringBuilder(); + set fetchedAt(_i1.GLongStringBuilder? fetchedAt) => + _$this._fetchedAt = fetchedAt; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + bool? _isBookmarked; + bool? get isBookmarked => _$this._isBookmarked; + set isBookmarked(bool? isBookmarked) => _$this._isBookmarked = isBookmarked; + + bool? _isDownloaded; + bool? get isDownloaded => _$this._isDownloaded; + set isDownloaded(bool? isDownloaded) => _$this._isDownloaded = isDownloaded; + + bool? _isRead; + bool? get isRead => _$this._isRead; + set isRead(bool? isRead) => _$this._isRead = isRead; + + int? _lastPageRead; + int? get lastPageRead => _$this._lastPageRead; + set lastPageRead(int? lastPageRead) => _$this._lastPageRead = lastPageRead; + + _i1.GLongStringBuilder? _lastReadAt; + _i1.GLongStringBuilder get lastReadAt => + _$this._lastReadAt ??= new _i1.GLongStringBuilder(); + set lastReadAt(_i1.GLongStringBuilder? lastReadAt) => + _$this._lastReadAt = lastReadAt; + + int? _mangaId; + int? get mangaId => _$this._mangaId; + set mangaId(int? mangaId) => _$this._mangaId = mangaId; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + int? _pageCount; + int? get pageCount => _$this._pageCount; + set pageCount(int? pageCount) => _$this._pageCount = pageCount; + + String? _realUrl; + String? get realUrl => _$this._realUrl; + set realUrl(String? realUrl) => _$this._realUrl = realUrl; + + String? _scanlator; + String? get scanlator => _$this._scanlator; + set scanlator(String? scanlator) => _$this._scanlator = scanlator; + + int? _sourceOrder; + int? get sourceOrder => _$this._sourceOrder; + set sourceOrder(int? sourceOrder) => _$this._sourceOrder = sourceOrder; + + _i1.GLongStringBuilder? _uploadDate; + _i1.GLongStringBuilder get uploadDate => + _$this._uploadDate ??= new _i1.GLongStringBuilder(); + set uploadDate(_i1.GLongStringBuilder? uploadDate) => + _$this._uploadDate = uploadDate; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + ListBuilder? _meta; + ListBuilder get meta => + _$this._meta ??= new ListBuilder(); + set meta(ListBuilder? meta) => _$this._meta = meta; + + GChapterFragmentDataBuilder() { + GChapterFragmentData._initializeBuilder(this); + } + + GChapterFragmentDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _chapterNumber = $v.chapterNumber; + _fetchedAt = $v.fetchedAt.toBuilder(); + _id = $v.id; + _isBookmarked = $v.isBookmarked; + _isDownloaded = $v.isDownloaded; + _isRead = $v.isRead; + _lastPageRead = $v.lastPageRead; + _lastReadAt = $v.lastReadAt.toBuilder(); + _mangaId = $v.mangaId; + _name = $v.name; + _pageCount = $v.pageCount; + _realUrl = $v.realUrl; + _scanlator = $v.scanlator; + _sourceOrder = $v.sourceOrder; + _uploadDate = $v.uploadDate.toBuilder(); + _url = $v.url; + _meta = $v.meta.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GChapterFragmentData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GChapterFragmentData; + } + + @override + void update(void Function(GChapterFragmentDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GChapterFragmentData build() => _build(); + + _$GChapterFragmentData _build() { + _$GChapterFragmentData _$result; + try { + _$result = _$v ?? + new _$GChapterFragmentData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GChapterFragmentData', 'G__typename'), + chapterNumber: BuiltValueNullFieldError.checkNotNull( + chapterNumber, r'GChapterFragmentData', 'chapterNumber'), + fetchedAt: fetchedAt.build(), + id: BuiltValueNullFieldError.checkNotNull( + id, r'GChapterFragmentData', 'id'), + isBookmarked: BuiltValueNullFieldError.checkNotNull( + isBookmarked, r'GChapterFragmentData', 'isBookmarked'), + isDownloaded: BuiltValueNullFieldError.checkNotNull( + isDownloaded, r'GChapterFragmentData', 'isDownloaded'), + isRead: BuiltValueNullFieldError.checkNotNull( + isRead, r'GChapterFragmentData', 'isRead'), + lastPageRead: BuiltValueNullFieldError.checkNotNull( + lastPageRead, r'GChapterFragmentData', 'lastPageRead'), + lastReadAt: lastReadAt.build(), + mangaId: + BuiltValueNullFieldError.checkNotNull(mangaId, r'GChapterFragmentData', 'mangaId'), + name: BuiltValueNullFieldError.checkNotNull(name, r'GChapterFragmentData', 'name'), + pageCount: BuiltValueNullFieldError.checkNotNull(pageCount, r'GChapterFragmentData', 'pageCount'), + realUrl: realUrl, + scanlator: scanlator, + sourceOrder: BuiltValueNullFieldError.checkNotNull(sourceOrder, r'GChapterFragmentData', 'sourceOrder'), + uploadDate: uploadDate.build(), + url: BuiltValueNullFieldError.checkNotNull(url, r'GChapterFragmentData', 'url'), + meta: meta.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'fetchedAt'; + fetchedAt.build(); + + _$failedField = 'lastReadAt'; + lastReadAt.build(); + + _$failedField = 'uploadDate'; + uploadDate.build(); + + _$failedField = 'meta'; + meta.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GChapterFragmentData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GChapterFragmentData_meta extends GChapterFragmentData_meta { + @override + final String G__typename; + @override + final String key; + @override + final String value; + + factory _$GChapterFragmentData_meta( + [void Function(GChapterFragmentData_metaBuilder)? updates]) => + (new GChapterFragmentData_metaBuilder()..update(updates))._build(); + + _$GChapterFragmentData_meta._( + {required this.G__typename, required this.key, required this.value}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GChapterFragmentData_meta', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + key, r'GChapterFragmentData_meta', 'key'); + BuiltValueNullFieldError.checkNotNull( + value, r'GChapterFragmentData_meta', 'value'); + } + + @override + GChapterFragmentData_meta rebuild( + void Function(GChapterFragmentData_metaBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GChapterFragmentData_metaBuilder toBuilder() => + new GChapterFragmentData_metaBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GChapterFragmentData_meta && + G__typename == other.G__typename && + key == other.key && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GChapterFragmentData_meta') + ..add('G__typename', G__typename) + ..add('key', key) + ..add('value', value)) + .toString(); + } +} + +class GChapterFragmentData_metaBuilder + implements + Builder { + _$GChapterFragmentData_meta? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GChapterFragmentData_metaBuilder() { + GChapterFragmentData_meta._initializeBuilder(this); + } + + GChapterFragmentData_metaBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _key = $v.key; + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GChapterFragmentData_meta other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GChapterFragmentData_meta; + } + + @override + void update(void Function(GChapterFragmentData_metaBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GChapterFragmentData_meta build() => _build(); + + _$GChapterFragmentData_meta _build() { + final _$result = _$v ?? + new _$GChapterFragmentData_meta._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GChapterFragmentData_meta', 'G__typename'), + key: BuiltValueNullFieldError.checkNotNull( + key, r'GChapterFragmentData_meta', 'key'), + value: BuiltValueNullFieldError.checkNotNull( + value, r'GChapterFragmentData_meta', 'value')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/manga_book/domain/chapter/graphql/__generated__/fragment.req.gql.dart b/lib/src/features/manga_book/domain/chapter/graphql/__generated__/fragment.req.gql.dart new file mode 100644 index 00000000..a096703d --- /dev/null +++ b/lib/src/features/manga_book/domain/chapter/graphql/__generated__/fragment.req.gql.dart @@ -0,0 +1,67 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql/ast.dart' as _i5; +import 'package:tachidesk_sorayomi/src/features/manga_book/domain/chapter/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/manga_book/domain/chapter/graphql/__generated__/fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/manga_book/domain/chapter/graphql/__generated__/fragment.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'fragment.req.gql.g.dart'; + +abstract class GChapterFragmentReq + implements + Built, + _i1 + .FragmentRequest<_i2.GChapterFragmentData, _i3.GChapterFragmentVars> { + GChapterFragmentReq._(); + + factory GChapterFragmentReq( + [void Function(GChapterFragmentReqBuilder b) updates]) = + _$GChapterFragmentReq; + + static void _initializeBuilder(GChapterFragmentReqBuilder b) => b + ..document = _i4.document + ..fragmentName = 'ChapterFragment'; + + @override + _i3.GChapterFragmentVars get vars; + @override + _i5.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GChapterFragmentData? parseData(Map json) => + _i2.GChapterFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GChapterFragmentData data) => + data.toJson(); + + static Serializer get serializer => + _$gChapterFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GChapterFragmentReq.serializer, + this, + ) as Map); + + static GChapterFragmentReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GChapterFragmentReq.serializer, + json, + ); +} diff --git a/lib/src/features/manga_book/domain/chapter/graphql/__generated__/fragment.req.gql.g.dart b/lib/src/features/manga_book/domain/chapter/graphql/__generated__/fragment.req.gql.g.dart new file mode 100644 index 00000000..1a450baa --- /dev/null +++ b/lib/src/features/manga_book/domain/chapter/graphql/__generated__/fragment.req.gql.g.dart @@ -0,0 +1,235 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gChapterFragmentReqSerializer = + new _$GChapterFragmentReqSerializer(); + +class _$GChapterFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GChapterFragmentReq, + _$GChapterFragmentReq + ]; + @override + final String wireName = 'GChapterFragmentReq'; + + @override + Iterable serialize( + Serializers serializers, GChapterFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GChapterFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i5.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GChapterFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GChapterFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GChapterFragmentVars))! + as _i3.GChapterFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i5.DocumentNode))! + as _i5.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GChapterFragmentReq extends GChapterFragmentReq { + @override + final _i3.GChapterFragmentVars vars; + @override + final _i5.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GChapterFragmentReq( + [void Function(GChapterFragmentReqBuilder)? updates]) => + (new GChapterFragmentReqBuilder()..update(updates))._build(); + + _$GChapterFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GChapterFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GChapterFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GChapterFragmentReq', 'idFields'); + } + + @override + GChapterFragmentReq rebuild( + void Function(GChapterFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GChapterFragmentReqBuilder toBuilder() => + new GChapterFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GChapterFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GChapterFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GChapterFragmentReqBuilder + implements Builder { + _$GChapterFragmentReq? _$v; + + _i3.GChapterFragmentVarsBuilder? _vars; + _i3.GChapterFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GChapterFragmentVarsBuilder(); + set vars(_i3.GChapterFragmentVarsBuilder? vars) => _$this._vars = vars; + + _i5.DocumentNode? _document; + _i5.DocumentNode? get document => _$this._document; + set document(_i5.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GChapterFragmentReqBuilder() { + GChapterFragmentReq._initializeBuilder(this); + } + + GChapterFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GChapterFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GChapterFragmentReq; + } + + @override + void update(void Function(GChapterFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GChapterFragmentReq build() => _build(); + + _$GChapterFragmentReq _build() { + _$GChapterFragmentReq _$result; + try { + _$result = _$v ?? + new _$GChapterFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GChapterFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GChapterFragmentReq', 'idFields')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GChapterFragmentReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/manga_book/domain/chapter/graphql/__generated__/fragment.var.gql.dart b/lib/src/features/manga_book/domain/chapter/graphql/__generated__/fragment.var.gql.dart new file mode 100644 index 00000000..8530da52 --- /dev/null +++ b/lib/src/features/manga_book/domain/chapter/graphql/__generated__/fragment.var.gql.dart @@ -0,0 +1,33 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragment.var.gql.g.dart'; + +abstract class GChapterFragmentVars + implements Built { + GChapterFragmentVars._(); + + factory GChapterFragmentVars( + [void Function(GChapterFragmentVarsBuilder b) updates]) = + _$GChapterFragmentVars; + + static Serializer get serializer => + _$gChapterFragmentVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GChapterFragmentVars.serializer, + this, + ) as Map); + + static GChapterFragmentVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GChapterFragmentVars.serializer, + json, + ); +} diff --git a/lib/src/features/manga_book/domain/chapter/graphql/__generated__/fragment.var.gql.g.dart b/lib/src/features/manga_book/domain/chapter/graphql/__generated__/fragment.var.gql.g.dart new file mode 100644 index 00000000..3b423e75 --- /dev/null +++ b/lib/src/features/manga_book/domain/chapter/graphql/__generated__/fragment.var.gql.g.dart @@ -0,0 +1,97 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gChapterFragmentVarsSerializer = + new _$GChapterFragmentVarsSerializer(); + +class _$GChapterFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GChapterFragmentVars, + _$GChapterFragmentVars + ]; + @override + final String wireName = 'GChapterFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GChapterFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GChapterFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GChapterFragmentVarsBuilder().build(); + } +} + +class _$GChapterFragmentVars extends GChapterFragmentVars { + factory _$GChapterFragmentVars( + [void Function(GChapterFragmentVarsBuilder)? updates]) => + (new GChapterFragmentVarsBuilder()..update(updates))._build(); + + _$GChapterFragmentVars._() : super._(); + + @override + GChapterFragmentVars rebuild( + void Function(GChapterFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GChapterFragmentVarsBuilder toBuilder() => + new GChapterFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GChapterFragmentVars; + } + + @override + int get hashCode { + return 349498838; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GChapterFragmentVars').toString(); + } +} + +class GChapterFragmentVarsBuilder + implements Builder { + _$GChapterFragmentVars? _$v; + + GChapterFragmentVarsBuilder(); + + @override + void replace(GChapterFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GChapterFragmentVars; + } + + @override + void update(void Function(GChapterFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GChapterFragmentVars build() => _build(); + + _$GChapterFragmentVars _build() { + final _$result = _$v ?? new _$GChapterFragmentVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/manga_book/domain/chapter/graphql/fragment.graphql b/lib/src/features/manga_book/domain/chapter/graphql/fragment.graphql new file mode 100644 index 00000000..ce8e03bb --- /dev/null +++ b/lib/src/features/manga_book/domain/chapter/graphql/fragment.graphql @@ -0,0 +1,22 @@ +fragment ChapterFragment on ChapterType { + chapterNumber + fetchedAt + id + isBookmarked + isDownloaded + isRead + lastPageRead + lastReadAt + mangaId + name + pageCount + realUrl + scanlator + sourceOrder + uploadDate + url + meta { + key + value + } +} diff --git a/lib/src/features/manga_book/domain/chapter_page/chapter_page_model.dart b/lib/src/features/manga_book/domain/chapter_page/chapter_page_model.dart index 47b571a4..1732a508 100644 --- a/lib/src/features/manga_book/domain/chapter_page/chapter_page_model.dart +++ b/lib/src/features/manga_book/domain/chapter_page/chapter_page_model.dart @@ -10,7 +10,6 @@ import '../chapter/chapter_model.dart'; import '../manga/manga_model.dart'; part 'chapter_page_model.freezed.dart'; -part 'chapter_page_model.g.dart'; @freezed class ChapterMangaPair with _$ChapterMangaPair { @@ -18,9 +17,6 @@ class ChapterMangaPair with _$ChapterMangaPair { Chapter? chapter, Manga? manga, }) = _ChapterMangaPair; - - factory ChapterMangaPair.fromJson(Map json) => - _$ChapterMangaPairFromJson(json); } @freezed @@ -29,7 +25,4 @@ class ChapterPage with _$ChapterPage { bool? hasNextPage, List? page, }) = _ChapterPage; - - factory ChapterPage.fromJson(Map json) => - _$ChapterPageFromJson(json); } diff --git a/lib/src/features/manga_book/domain/chapter_page/chapter_page_model.freezed.dart b/lib/src/features/manga_book/domain/chapter_page/chapter_page_model.freezed.dart index 889d4225..03ae522d 100644 --- a/lib/src/features/manga_book/domain/chapter_page/chapter_page_model.freezed.dart +++ b/lib/src/features/manga_book/domain/chapter_page/chapter_page_model.freezed.dart @@ -14,16 +14,11 @@ T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); -ChapterMangaPair _$ChapterMangaPairFromJson(Map json) { - return _ChapterMangaPair.fromJson(json); -} - /// @nodoc mixin _$ChapterMangaPair { Chapter? get chapter => throw _privateConstructorUsedError; Manga? get manga => throw _privateConstructorUsedError; - Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) $ChapterMangaPairCopyWith get copyWith => throw _privateConstructorUsedError; @@ -36,9 +31,6 @@ abstract class $ChapterMangaPairCopyWith<$Res> { _$ChapterMangaPairCopyWithImpl<$Res, ChapterMangaPair>; @useResult $Res call({Chapter? chapter, Manga? manga}); - - $ChapterCopyWith<$Res>? get chapter; - $MangaCopyWith<$Res>? get manga; } /// @nodoc @@ -68,30 +60,6 @@ class _$ChapterMangaPairCopyWithImpl<$Res, $Val extends ChapterMangaPair> as Manga?, ) as $Val); } - - @override - @pragma('vm:prefer-inline') - $ChapterCopyWith<$Res>? get chapter { - if (_value.chapter == null) { - return null; - } - - return $ChapterCopyWith<$Res>(_value.chapter!, (value) { - return _then(_value.copyWith(chapter: value) as $Val); - }); - } - - @override - @pragma('vm:prefer-inline') - $MangaCopyWith<$Res>? get manga { - if (_value.manga == null) { - return null; - } - - return $MangaCopyWith<$Res>(_value.manga!, (value) { - return _then(_value.copyWith(manga: value) as $Val); - }); - } } /// @nodoc @@ -103,11 +71,6 @@ abstract class _$$ChapterMangaPairImplCopyWith<$Res> @override @useResult $Res call({Chapter? chapter, Manga? manga}); - - @override - $ChapterCopyWith<$Res>? get chapter; - @override - $MangaCopyWith<$Res>? get manga; } /// @nodoc @@ -138,13 +101,10 @@ class __$$ChapterMangaPairImplCopyWithImpl<$Res> } /// @nodoc -@JsonSerializable() + class _$ChapterMangaPairImpl implements _ChapterMangaPair { _$ChapterMangaPairImpl({this.chapter, this.manga}); - factory _$ChapterMangaPairImpl.fromJson(Map json) => - _$$ChapterMangaPairImplFromJson(json); - @override final Chapter? chapter; @override @@ -160,13 +120,15 @@ class _$ChapterMangaPairImpl implements _ChapterMangaPair { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ChapterMangaPairImpl && - (identical(other.chapter, chapter) || other.chapter == chapter) && - (identical(other.manga, manga) || other.manga == manga)); + const DeepCollectionEquality().equals(other.chapter, chapter) && + const DeepCollectionEquality().equals(other.manga, manga)); } - @JsonKey(ignore: true) @override - int get hashCode => Object.hash(runtimeType, chapter, manga); + int get hashCode => Object.hash( + runtimeType, + const DeepCollectionEquality().hash(chapter), + const DeepCollectionEquality().hash(manga)); @JsonKey(ignore: true) @override @@ -174,22 +136,12 @@ class _$ChapterMangaPairImpl implements _ChapterMangaPair { _$$ChapterMangaPairImplCopyWith<_$ChapterMangaPairImpl> get copyWith => __$$ChapterMangaPairImplCopyWithImpl<_$ChapterMangaPairImpl>( this, _$identity); - - @override - Map toJson() { - return _$$ChapterMangaPairImplToJson( - this, - ); - } } abstract class _ChapterMangaPair implements ChapterMangaPair { factory _ChapterMangaPair({final Chapter? chapter, final Manga? manga}) = _$ChapterMangaPairImpl; - factory _ChapterMangaPair.fromJson(Map json) = - _$ChapterMangaPairImpl.fromJson; - @override Chapter? get chapter; @override @@ -200,16 +152,11 @@ abstract class _ChapterMangaPair implements ChapterMangaPair { throw _privateConstructorUsedError; } -ChapterPage _$ChapterPageFromJson(Map json) { - return _ChapterPage.fromJson(json); -} - /// @nodoc mixin _$ChapterPage { bool? get hasNextPage => throw _privateConstructorUsedError; List? get page => throw _privateConstructorUsedError; - Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) $ChapterPageCopyWith get copyWith => throw _privateConstructorUsedError; @@ -292,14 +239,11 @@ class __$$ChapterPageImplCopyWithImpl<$Res> } /// @nodoc -@JsonSerializable() + class _$ChapterPageImpl implements _ChapterPage { _$ChapterPageImpl({this.hasNextPage, final List? page}) : _page = page; - factory _$ChapterPageImpl.fromJson(Map json) => - _$$ChapterPageImplFromJson(json); - @override final bool? hasNextPage; final List? _page; @@ -327,7 +271,6 @@ class _$ChapterPageImpl implements _ChapterPage { const DeepCollectionEquality().equals(other._page, _page)); } - @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, hasNextPage, const DeepCollectionEquality().hash(_page)); @@ -337,13 +280,6 @@ class _$ChapterPageImpl implements _ChapterPage { @pragma('vm:prefer-inline') _$$ChapterPageImplCopyWith<_$ChapterPageImpl> get copyWith => __$$ChapterPageImplCopyWithImpl<_$ChapterPageImpl>(this, _$identity); - - @override - Map toJson() { - return _$$ChapterPageImplToJson( - this, - ); - } } abstract class _ChapterPage implements ChapterPage { @@ -351,9 +287,6 @@ abstract class _ChapterPage implements ChapterPage { {final bool? hasNextPage, final List? page}) = _$ChapterPageImpl; - factory _ChapterPage.fromJson(Map json) = - _$ChapterPageImpl.fromJson; - @override bool? get hasNextPage; @override diff --git a/lib/src/features/manga_book/domain/chapter_page/chapter_page_model.g.dart b/lib/src/features/manga_book/domain/chapter_page/chapter_page_model.g.dart deleted file mode 100644 index cdbe439a..00000000 --- a/lib/src/features/manga_book/domain/chapter_page/chapter_page_model.g.dart +++ /dev/null @@ -1,39 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'chapter_page_model.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ChapterMangaPairImpl _$$ChapterMangaPairImplFromJson( - Map json) => - _$ChapterMangaPairImpl( - chapter: json['chapter'] == null - ? null - : Chapter.fromJson(json['chapter'] as Map), - manga: json['manga'] == null - ? null - : Manga.fromJson(json['manga'] as Map), - ); - -Map _$$ChapterMangaPairImplToJson( - _$ChapterMangaPairImpl instance) => - { - 'chapter': instance.chapter?.toJson(), - 'manga': instance.manga?.toJson(), - }; - -_$ChapterPageImpl _$$ChapterPageImplFromJson(Map json) => - _$ChapterPageImpl( - hasNextPage: json['hasNextPage'] as bool?, - page: (json['page'] as List?) - ?.map((e) => ChapterMangaPair.fromJson(e as Map)) - .toList(), - ); - -Map _$$ChapterPageImplToJson(_$ChapterPageImpl instance) => - { - 'hasNextPage': instance.hasNextPage, - 'page': instance.page?.map((e) => e.toJson()).toList(), - }; diff --git a/lib/src/features/manga_book/domain/downloads/downloads_model.dart b/lib/src/features/manga_book/domain/downloads/downloads_model.dart index a5643dc8..9606c45d 100644 --- a/lib/src/features/manga_book/domain/downloads/downloads_model.dart +++ b/lib/src/features/manga_book/domain/downloads/downloads_model.dart @@ -9,7 +9,6 @@ import 'package:freezed_annotation/freezed_annotation.dart'; import '../downloads_queue/downloads_queue_model.dart'; part 'downloads_model.freezed.dart'; -part 'downloads_model.g.dart'; @freezed class Downloads with _$Downloads { @@ -17,7 +16,4 @@ class Downloads with _$Downloads { List? queue, String? status, }) = _Downloads; - - factory Downloads.fromJson(Map json) => - _$DownloadsFromJson(json); } diff --git a/lib/src/features/manga_book/domain/downloads/downloads_model.freezed.dart b/lib/src/features/manga_book/domain/downloads/downloads_model.freezed.dart index fecd5751..45d75b96 100644 --- a/lib/src/features/manga_book/domain/downloads/downloads_model.freezed.dart +++ b/lib/src/features/manga_book/domain/downloads/downloads_model.freezed.dart @@ -14,16 +14,11 @@ T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); -Downloads _$DownloadsFromJson(Map json) { - return _Downloads.fromJson(json); -} - /// @nodoc mixin _$Downloads { List? get queue => throw _privateConstructorUsedError; String? get status => throw _privateConstructorUsedError; - Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) $DownloadsCopyWith get copyWith => throw _privateConstructorUsedError; @@ -105,14 +100,11 @@ class __$$DownloadsImplCopyWithImpl<$Res> } /// @nodoc -@JsonSerializable() + class _$DownloadsImpl implements _Downloads { _$DownloadsImpl({final List? queue, this.status}) : _queue = queue; - factory _$DownloadsImpl.fromJson(Map json) => - _$$DownloadsImplFromJson(json); - final List? _queue; @override List? get queue { @@ -140,7 +132,6 @@ class _$DownloadsImpl implements _Downloads { (identical(other.status, status) || other.status == status)); } - @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, const DeepCollectionEquality().hash(_queue), status); @@ -150,13 +141,6 @@ class _$DownloadsImpl implements _Downloads { @pragma('vm:prefer-inline') _$$DownloadsImplCopyWith<_$DownloadsImpl> get copyWith => __$$DownloadsImplCopyWithImpl<_$DownloadsImpl>(this, _$identity); - - @override - Map toJson() { - return _$$DownloadsImplToJson( - this, - ); - } } abstract class _Downloads implements Downloads { @@ -164,9 +148,6 @@ abstract class _Downloads implements Downloads { {final List? queue, final String? status}) = _$DownloadsImpl; - factory _Downloads.fromJson(Map json) = - _$DownloadsImpl.fromJson; - @override List? get queue; @override diff --git a/lib/src/features/manga_book/domain/downloads/downloads_model.g.dart b/lib/src/features/manga_book/domain/downloads/downloads_model.g.dart deleted file mode 100644 index d89cc904..00000000 --- a/lib/src/features/manga_book/domain/downloads/downloads_model.g.dart +++ /dev/null @@ -1,21 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'downloads_model.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$DownloadsImpl _$$DownloadsImplFromJson(Map json) => - _$DownloadsImpl( - queue: (json['queue'] as List?) - ?.map((e) => DownloadsQueue.fromJson(e as Map)) - .toList(), - status: json['status'] as String?, - ); - -Map _$$DownloadsImplToJson(_$DownloadsImpl instance) => - { - 'queue': instance.queue?.map((e) => e.toJson()).toList(), - 'status': instance.status, - }; diff --git a/lib/src/features/manga_book/domain/downloads_queue/downloads_queue_model.dart b/lib/src/features/manga_book/domain/downloads_queue/downloads_queue_model.dart index b807d7d9..0e20aeb6 100644 --- a/lib/src/features/manga_book/domain/downloads_queue/downloads_queue_model.dart +++ b/lib/src/features/manga_book/domain/downloads_queue/downloads_queue_model.dart @@ -10,7 +10,6 @@ import '../chapter/chapter_model.dart'; import '../manga/manga_model.dart'; part 'downloads_queue_model.freezed.dart'; -part 'downloads_queue_model.g.dart'; @freezed class DownloadsQueue with _$DownloadsQueue { @@ -23,7 +22,4 @@ class DownloadsQueue with _$DownloadsQueue { String? state, int? tries, }) = _DownloadsQueue; - - factory DownloadsQueue.fromJson(Map json) => - _$DownloadsQueueFromJson(json); } diff --git a/lib/src/features/manga_book/domain/downloads_queue/downloads_queue_model.freezed.dart b/lib/src/features/manga_book/domain/downloads_queue/downloads_queue_model.freezed.dart index 8b0848e2..af669814 100644 --- a/lib/src/features/manga_book/domain/downloads_queue/downloads_queue_model.freezed.dart +++ b/lib/src/features/manga_book/domain/downloads_queue/downloads_queue_model.freezed.dart @@ -14,10 +14,6 @@ T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); -DownloadsQueue _$DownloadsQueueFromJson(Map json) { - return _DownloadsQueue.fromJson(json); -} - /// @nodoc mixin _$DownloadsQueue { Chapter? get chapter => throw _privateConstructorUsedError; @@ -28,7 +24,6 @@ mixin _$DownloadsQueue { String? get state => throw _privateConstructorUsedError; int? get tries => throw _privateConstructorUsedError; - Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) $DownloadsQueueCopyWith get copyWith => throw _privateConstructorUsedError; @@ -48,9 +43,6 @@ abstract class $DownloadsQueueCopyWith<$Res> { double? progress, String? state, int? tries}); - - $ChapterCopyWith<$Res>? get chapter; - $MangaCopyWith<$Res>? get manga; } /// @nodoc @@ -105,30 +97,6 @@ class _$DownloadsQueueCopyWithImpl<$Res, $Val extends DownloadsQueue> as int?, ) as $Val); } - - @override - @pragma('vm:prefer-inline') - $ChapterCopyWith<$Res>? get chapter { - if (_value.chapter == null) { - return null; - } - - return $ChapterCopyWith<$Res>(_value.chapter!, (value) { - return _then(_value.copyWith(chapter: value) as $Val); - }); - } - - @override - @pragma('vm:prefer-inline') - $MangaCopyWith<$Res>? get manga { - if (_value.manga == null) { - return null; - } - - return $MangaCopyWith<$Res>(_value.manga!, (value) { - return _then(_value.copyWith(manga: value) as $Val); - }); - } } /// @nodoc @@ -147,11 +115,6 @@ abstract class _$$DownloadsQueueImplCopyWith<$Res> double? progress, String? state, int? tries}); - - @override - $ChapterCopyWith<$Res>? get chapter; - @override - $MangaCopyWith<$Res>? get manga; } /// @nodoc @@ -207,7 +170,7 @@ class __$$DownloadsQueueImplCopyWithImpl<$Res> } /// @nodoc -@JsonSerializable() + class _$DownloadsQueueImpl implements _DownloadsQueue { _$DownloadsQueueImpl( {this.chapter, @@ -218,9 +181,6 @@ class _$DownloadsQueueImpl implements _DownloadsQueue { this.state, this.tries}); - factory _$DownloadsQueueImpl.fromJson(Map json) => - _$$DownloadsQueueImplFromJson(json); - @override final Chapter? chapter; @override @@ -246,10 +206,10 @@ class _$DownloadsQueueImpl implements _DownloadsQueue { return identical(this, other) || (other.runtimeType == runtimeType && other is _$DownloadsQueueImpl && - (identical(other.chapter, chapter) || other.chapter == chapter) && + const DeepCollectionEquality().equals(other.chapter, chapter) && (identical(other.chapterIndex, chapterIndex) || other.chapterIndex == chapterIndex) && - (identical(other.manga, manga) || other.manga == manga) && + const DeepCollectionEquality().equals(other.manga, manga) && (identical(other.mangaId, mangaId) || other.mangaId == mangaId) && (identical(other.progress, progress) || other.progress == progress) && @@ -257,10 +217,16 @@ class _$DownloadsQueueImpl implements _DownloadsQueue { (identical(other.tries, tries) || other.tries == tries)); } - @JsonKey(ignore: true) @override - int get hashCode => Object.hash(runtimeType, chapter, chapterIndex, manga, - mangaId, progress, state, tries); + int get hashCode => Object.hash( + runtimeType, + const DeepCollectionEquality().hash(chapter), + chapterIndex, + const DeepCollectionEquality().hash(manga), + mangaId, + progress, + state, + tries); @JsonKey(ignore: true) @override @@ -268,13 +234,6 @@ class _$DownloadsQueueImpl implements _DownloadsQueue { _$$DownloadsQueueImplCopyWith<_$DownloadsQueueImpl> get copyWith => __$$DownloadsQueueImplCopyWithImpl<_$DownloadsQueueImpl>( this, _$identity); - - @override - Map toJson() { - return _$$DownloadsQueueImplToJson( - this, - ); - } } abstract class _DownloadsQueue implements DownloadsQueue { @@ -287,9 +246,6 @@ abstract class _DownloadsQueue implements DownloadsQueue { final String? state, final int? tries}) = _$DownloadsQueueImpl; - factory _DownloadsQueue.fromJson(Map json) = - _$DownloadsQueueImpl.fromJson; - @override Chapter? get chapter; @override diff --git a/lib/src/features/manga_book/domain/downloads_queue/downloads_queue_model.g.dart b/lib/src/features/manga_book/domain/downloads_queue/downloads_queue_model.g.dart deleted file mode 100644 index 9af8224d..00000000 --- a/lib/src/features/manga_book/domain/downloads_queue/downloads_queue_model.g.dart +++ /dev/null @@ -1,34 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'downloads_queue_model.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$DownloadsQueueImpl _$$DownloadsQueueImplFromJson(Map json) => - _$DownloadsQueueImpl( - chapter: json['chapter'] == null - ? null - : Chapter.fromJson(json['chapter'] as Map), - chapterIndex: json['chapterIndex'] as int?, - manga: json['manga'] == null - ? null - : Manga.fromJson(json['manga'] as Map), - mangaId: json['mangaId'] as int?, - progress: (json['progress'] as num?)?.toDouble(), - state: json['state'] as String?, - tries: json['tries'] as int?, - ); - -Map _$$DownloadsQueueImplToJson( - _$DownloadsQueueImpl instance) => - { - 'chapter': instance.chapter?.toJson(), - 'chapterIndex': instance.chapterIndex, - 'manga': instance.manga?.toJson(), - 'mangaId': instance.mangaId, - 'progress': instance.progress, - 'state': instance.state, - 'tries': instance.tries, - }; diff --git a/lib/src/features/manga_book/domain/manga/graphql/__generated__/fragment.ast.gql.dart b/lib/src/features/manga_book/domain/manga/graphql/__generated__/fragment.ast.gql.dart new file mode 100644 index 00000000..2d86fe9a --- /dev/null +++ b/lib/src/features/manga_book/domain/manga/graphql/__generated__/fragment.ast.gql.dart @@ -0,0 +1,263 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/source/graphql/__generated__/fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/manga_book/domain/chapter/graphql/__generated__/fragment.ast.gql.dart' + as _i2; + +const MangaFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'MangaFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaType'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'age'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'artist'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'author'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'chaptersAge'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'chaptersLastFetchedAt'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'description'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'downloadCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'genre'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'id'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'inLibrary'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'inLibraryAt'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'initialized'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'lastFetchedAt'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'lastReadChapter'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'ChapterFragment'), + directives: [], + ) + ]), + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'latestFetchedChapter'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'ChapterFragment'), + directives: [], + ) + ]), + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'latestReadChapter'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'ChapterFragment'), + directives: [], + ) + ]), + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'latestUploadedChapter'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'ChapterFragment'), + directives: [], + ) + ]), + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'meta'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'key'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'value'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'realUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'source'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SourceFragment'), + directives: [], + ) + ]), + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'sourceId'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'status'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'thumbnailUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'thumbnailUrlLastFetched'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'title'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'unreadCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'updateStrategy'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'url'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), +); +const document = _i1.DocumentNode(definitions: [ + MangaFragment, + _i2.ChapterFragment, + _i3.SourceFragment, + _i3.FullSourceFragment, +]); diff --git a/lib/src/features/manga_book/domain/manga/graphql/__generated__/fragment.data.gql.dart b/lib/src/features/manga_book/domain/manga/graphql/__generated__/fragment.data.gql.dart new file mode 100644 index 00000000..0d1a8e98 --- /dev/null +++ b/lib/src/features/manga_book/domain/manga/graphql/__generated__/fragment.data.gql.dart @@ -0,0 +1,963 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/source/graphql/__generated__/fragment.data.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/manga_book/domain/chapter/graphql/__generated__/fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' + as _i1; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i4; + +part 'fragment.data.gql.g.dart'; + +abstract class GMangaFragment { + String get G__typename; + _i1.GLongString? get age; + String? get artist; + String? get author; + _i1.GLongString? get chaptersAge; + _i1.GLongString? get chaptersLastFetchedAt; + String? get description; + int get downloadCount; + BuiltList get genre; + int get id; + bool get inLibrary; + _i1.GLongString get inLibraryAt; + bool get initialized; + _i1.GLongString? get lastFetchedAt; + GMangaFragment_lastReadChapter? get lastReadChapter; + GMangaFragment_latestFetchedChapter? get latestFetchedChapter; + GMangaFragment_latestReadChapter? get latestReadChapter; + GMangaFragment_latestUploadedChapter? get latestUploadedChapter; + BuiltList get meta; + String? get realUrl; + GMangaFragment_source? get source; + _i1.GLongString get sourceId; + _i1.GMangaStatus get status; + String? get thumbnailUrl; + _i1.GLongString? get thumbnailUrlLastFetched; + String get title; + int get unreadCount; + _i1.GUpdateStrategy get updateStrategy; + String get url; + Map toJson(); +} + +abstract class GMangaFragment_lastReadChapter implements _i2.GChapterFragment { + @override + String get G__typename; + @override + double get chapterNumber; + @override + _i1.GLongString get fetchedAt; + @override + int get id; + @override + bool get isBookmarked; + @override + bool get isDownloaded; + @override + bool get isRead; + @override + int get lastPageRead; + @override + _i1.GLongString get lastReadAt; + @override + int get mangaId; + @override + String get name; + @override + int get pageCount; + @override + String? get realUrl; + @override + String? get scanlator; + @override + int get sourceOrder; + @override + _i1.GLongString get uploadDate; + @override + String get url; + @override + BuiltList get meta; + @override + Map toJson(); +} + +abstract class GMangaFragment_lastReadChapter_meta + implements _i2.GChapterFragment_meta { + @override + String get G__typename; + @override + String get key; + @override + String get value; + @override + Map toJson(); +} + +abstract class GMangaFragment_latestFetchedChapter + implements _i2.GChapterFragment { + @override + String get G__typename; + @override + double get chapterNumber; + @override + _i1.GLongString get fetchedAt; + @override + int get id; + @override + bool get isBookmarked; + @override + bool get isDownloaded; + @override + bool get isRead; + @override + int get lastPageRead; + @override + _i1.GLongString get lastReadAt; + @override + int get mangaId; + @override + String get name; + @override + int get pageCount; + @override + String? get realUrl; + @override + String? get scanlator; + @override + int get sourceOrder; + @override + _i1.GLongString get uploadDate; + @override + String get url; + @override + BuiltList get meta; + @override + Map toJson(); +} + +abstract class GMangaFragment_latestFetchedChapter_meta + implements _i2.GChapterFragment_meta { + @override + String get G__typename; + @override + String get key; + @override + String get value; + @override + Map toJson(); +} + +abstract class GMangaFragment_latestReadChapter + implements _i2.GChapterFragment { + @override + String get G__typename; + @override + double get chapterNumber; + @override + _i1.GLongString get fetchedAt; + @override + int get id; + @override + bool get isBookmarked; + @override + bool get isDownloaded; + @override + bool get isRead; + @override + int get lastPageRead; + @override + _i1.GLongString get lastReadAt; + @override + int get mangaId; + @override + String get name; + @override + int get pageCount; + @override + String? get realUrl; + @override + String? get scanlator; + @override + int get sourceOrder; + @override + _i1.GLongString get uploadDate; + @override + String get url; + @override + BuiltList get meta; + @override + Map toJson(); +} + +abstract class GMangaFragment_latestReadChapter_meta + implements _i2.GChapterFragment_meta { + @override + String get G__typename; + @override + String get key; + @override + String get value; + @override + Map toJson(); +} + +abstract class GMangaFragment_latestUploadedChapter + implements _i2.GChapterFragment { + @override + String get G__typename; + @override + double get chapterNumber; + @override + _i1.GLongString get fetchedAt; + @override + int get id; + @override + bool get isBookmarked; + @override + bool get isDownloaded; + @override + bool get isRead; + @override + int get lastPageRead; + @override + _i1.GLongString get lastReadAt; + @override + int get mangaId; + @override + String get name; + @override + int get pageCount; + @override + String? get realUrl; + @override + String? get scanlator; + @override + int get sourceOrder; + @override + _i1.GLongString get uploadDate; + @override + String get url; + @override + BuiltList get meta; + @override + Map toJson(); +} + +abstract class GMangaFragment_latestUploadedChapter_meta + implements _i2.GChapterFragment_meta { + @override + String get G__typename; + @override + String get key; + @override + String get value; + @override + Map toJson(); +} + +abstract class GMangaFragment_meta { + String get G__typename; + String get key; + String get value; + Map toJson(); +} + +abstract class GMangaFragment_source implements _i3.GSourceFragment { + @override + String get G__typename; + @override + String get displayName; + @override + String get iconUrl; + @override + _i1.GLongString get id; + @override + bool get isConfigurable; + @override + bool get isNsfw; + @override + String get lang; + @override + String get name; + @override + bool get supportsLatest; + @override + GMangaFragment_source_extension get extension; + @override + Map toJson(); +} + +abstract class GMangaFragment_source_extension + implements _i3.GSourceFragment_extension { + @override + String get G__typename; + @override + String get pkgName; + @override + String? get repo; + @override + Map toJson(); +} + +abstract class GMangaFragmentData + implements + Built, + GMangaFragment { + GMangaFragmentData._(); + + factory GMangaFragmentData( + [void Function(GMangaFragmentDataBuilder b) updates]) = + _$GMangaFragmentData; + + static void _initializeBuilder(GMangaFragmentDataBuilder b) => + b..G__typename = 'MangaType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + _i1.GLongString? get age; + @override + String? get artist; + @override + String? get author; + @override + _i1.GLongString? get chaptersAge; + @override + _i1.GLongString? get chaptersLastFetchedAt; + @override + String? get description; + @override + int get downloadCount; + @override + BuiltList get genre; + @override + int get id; + @override + bool get inLibrary; + @override + _i1.GLongString get inLibraryAt; + @override + bool get initialized; + @override + _i1.GLongString? get lastFetchedAt; + @override + GMangaFragmentData_lastReadChapter? get lastReadChapter; + @override + GMangaFragmentData_latestFetchedChapter? get latestFetchedChapter; + @override + GMangaFragmentData_latestReadChapter? get latestReadChapter; + @override + GMangaFragmentData_latestUploadedChapter? get latestUploadedChapter; + @override + BuiltList get meta; + @override + String? get realUrl; + @override + GMangaFragmentData_source? get source; + @override + _i1.GLongString get sourceId; + @override + _i1.GMangaStatus get status; + @override + String? get thumbnailUrl; + @override + _i1.GLongString? get thumbnailUrlLastFetched; + @override + String get title; + @override + int get unreadCount; + @override + _i1.GUpdateStrategy get updateStrategy; + @override + String get url; + static Serializer get serializer => + _$gMangaFragmentDataSerializer; + + @override + Map toJson() => (_i4.serializers.serializeWith( + GMangaFragmentData.serializer, + this, + ) as Map); + + static GMangaFragmentData? fromJson(Map json) => + _i4.serializers.deserializeWith( + GMangaFragmentData.serializer, + json, + ); +} + +abstract class GMangaFragmentData_lastReadChapter + implements + Built, + GMangaFragment_lastReadChapter, + _i2.GChapterFragment { + GMangaFragmentData_lastReadChapter._(); + + factory GMangaFragmentData_lastReadChapter( + [void Function(GMangaFragmentData_lastReadChapterBuilder b) + updates]) = _$GMangaFragmentData_lastReadChapter; + + static void _initializeBuilder(GMangaFragmentData_lastReadChapterBuilder b) => + b..G__typename = 'ChapterType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + double get chapterNumber; + @override + _i1.GLongString get fetchedAt; + @override + int get id; + @override + bool get isBookmarked; + @override + bool get isDownloaded; + @override + bool get isRead; + @override + int get lastPageRead; + @override + _i1.GLongString get lastReadAt; + @override + int get mangaId; + @override + String get name; + @override + int get pageCount; + @override + String? get realUrl; + @override + String? get scanlator; + @override + int get sourceOrder; + @override + _i1.GLongString get uploadDate; + @override + String get url; + @override + BuiltList get meta; + static Serializer get serializer => + _$gMangaFragmentDataLastReadChapterSerializer; + + @override + Map toJson() => (_i4.serializers.serializeWith( + GMangaFragmentData_lastReadChapter.serializer, + this, + ) as Map); + + static GMangaFragmentData_lastReadChapter? fromJson( + Map json) => + _i4.serializers.deserializeWith( + GMangaFragmentData_lastReadChapter.serializer, + json, + ); +} + +abstract class GMangaFragmentData_lastReadChapter_meta + implements + Built, + GMangaFragment_lastReadChapter_meta, + _i2.GChapterFragment_meta { + GMangaFragmentData_lastReadChapter_meta._(); + + factory GMangaFragmentData_lastReadChapter_meta( + [void Function(GMangaFragmentData_lastReadChapter_metaBuilder b) + updates]) = _$GMangaFragmentData_lastReadChapter_meta; + + static void _initializeBuilder( + GMangaFragmentData_lastReadChapter_metaBuilder b) => + b..G__typename = 'ChapterMetaType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get key; + @override + String get value; + static Serializer get serializer => + _$gMangaFragmentDataLastReadChapterMetaSerializer; + + @override + Map toJson() => (_i4.serializers.serializeWith( + GMangaFragmentData_lastReadChapter_meta.serializer, + this, + ) as Map); + + static GMangaFragmentData_lastReadChapter_meta? fromJson( + Map json) => + _i4.serializers.deserializeWith( + GMangaFragmentData_lastReadChapter_meta.serializer, + json, + ); +} + +abstract class GMangaFragmentData_latestFetchedChapter + implements + Built, + GMangaFragment_latestFetchedChapter, + _i2.GChapterFragment { + GMangaFragmentData_latestFetchedChapter._(); + + factory GMangaFragmentData_latestFetchedChapter( + [void Function(GMangaFragmentData_latestFetchedChapterBuilder b) + updates]) = _$GMangaFragmentData_latestFetchedChapter; + + static void _initializeBuilder( + GMangaFragmentData_latestFetchedChapterBuilder b) => + b..G__typename = 'ChapterType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + double get chapterNumber; + @override + _i1.GLongString get fetchedAt; + @override + int get id; + @override + bool get isBookmarked; + @override + bool get isDownloaded; + @override + bool get isRead; + @override + int get lastPageRead; + @override + _i1.GLongString get lastReadAt; + @override + int get mangaId; + @override + String get name; + @override + int get pageCount; + @override + String? get realUrl; + @override + String? get scanlator; + @override + int get sourceOrder; + @override + _i1.GLongString get uploadDate; + @override + String get url; + @override + BuiltList get meta; + static Serializer get serializer => + _$gMangaFragmentDataLatestFetchedChapterSerializer; + + @override + Map toJson() => (_i4.serializers.serializeWith( + GMangaFragmentData_latestFetchedChapter.serializer, + this, + ) as Map); + + static GMangaFragmentData_latestFetchedChapter? fromJson( + Map json) => + _i4.serializers.deserializeWith( + GMangaFragmentData_latestFetchedChapter.serializer, + json, + ); +} + +abstract class GMangaFragmentData_latestFetchedChapter_meta + implements + Built, + GMangaFragment_latestFetchedChapter_meta, + _i2.GChapterFragment_meta { + GMangaFragmentData_latestFetchedChapter_meta._(); + + factory GMangaFragmentData_latestFetchedChapter_meta( + [void Function(GMangaFragmentData_latestFetchedChapter_metaBuilder b) + updates]) = _$GMangaFragmentData_latestFetchedChapter_meta; + + static void _initializeBuilder( + GMangaFragmentData_latestFetchedChapter_metaBuilder b) => + b..G__typename = 'ChapterMetaType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get key; + @override + String get value; + static Serializer + get serializer => _$gMangaFragmentDataLatestFetchedChapterMetaSerializer; + + @override + Map toJson() => (_i4.serializers.serializeWith( + GMangaFragmentData_latestFetchedChapter_meta.serializer, + this, + ) as Map); + + static GMangaFragmentData_latestFetchedChapter_meta? fromJson( + Map json) => + _i4.serializers.deserializeWith( + GMangaFragmentData_latestFetchedChapter_meta.serializer, + json, + ); +} + +abstract class GMangaFragmentData_latestReadChapter + implements + Built, + GMangaFragment_latestReadChapter, + _i2.GChapterFragment { + GMangaFragmentData_latestReadChapter._(); + + factory GMangaFragmentData_latestReadChapter( + [void Function(GMangaFragmentData_latestReadChapterBuilder b) + updates]) = _$GMangaFragmentData_latestReadChapter; + + static void _initializeBuilder( + GMangaFragmentData_latestReadChapterBuilder b) => + b..G__typename = 'ChapterType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + double get chapterNumber; + @override + _i1.GLongString get fetchedAt; + @override + int get id; + @override + bool get isBookmarked; + @override + bool get isDownloaded; + @override + bool get isRead; + @override + int get lastPageRead; + @override + _i1.GLongString get lastReadAt; + @override + int get mangaId; + @override + String get name; + @override + int get pageCount; + @override + String? get realUrl; + @override + String? get scanlator; + @override + int get sourceOrder; + @override + _i1.GLongString get uploadDate; + @override + String get url; + @override + BuiltList get meta; + static Serializer get serializer => + _$gMangaFragmentDataLatestReadChapterSerializer; + + @override + Map toJson() => (_i4.serializers.serializeWith( + GMangaFragmentData_latestReadChapter.serializer, + this, + ) as Map); + + static GMangaFragmentData_latestReadChapter? fromJson( + Map json) => + _i4.serializers.deserializeWith( + GMangaFragmentData_latestReadChapter.serializer, + json, + ); +} + +abstract class GMangaFragmentData_latestReadChapter_meta + implements + Built, + GMangaFragment_latestReadChapter_meta, + _i2.GChapterFragment_meta { + GMangaFragmentData_latestReadChapter_meta._(); + + factory GMangaFragmentData_latestReadChapter_meta( + [void Function(GMangaFragmentData_latestReadChapter_metaBuilder b) + updates]) = _$GMangaFragmentData_latestReadChapter_meta; + + static void _initializeBuilder( + GMangaFragmentData_latestReadChapter_metaBuilder b) => + b..G__typename = 'ChapterMetaType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get key; + @override + String get value; + static Serializer get serializer => + _$gMangaFragmentDataLatestReadChapterMetaSerializer; + + @override + Map toJson() => (_i4.serializers.serializeWith( + GMangaFragmentData_latestReadChapter_meta.serializer, + this, + ) as Map); + + static GMangaFragmentData_latestReadChapter_meta? fromJson( + Map json) => + _i4.serializers.deserializeWith( + GMangaFragmentData_latestReadChapter_meta.serializer, + json, + ); +} + +abstract class GMangaFragmentData_latestUploadedChapter + implements + Built, + GMangaFragment_latestUploadedChapter, + _i2.GChapterFragment { + GMangaFragmentData_latestUploadedChapter._(); + + factory GMangaFragmentData_latestUploadedChapter( + [void Function(GMangaFragmentData_latestUploadedChapterBuilder b) + updates]) = _$GMangaFragmentData_latestUploadedChapter; + + static void _initializeBuilder( + GMangaFragmentData_latestUploadedChapterBuilder b) => + b..G__typename = 'ChapterType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + double get chapterNumber; + @override + _i1.GLongString get fetchedAt; + @override + int get id; + @override + bool get isBookmarked; + @override + bool get isDownloaded; + @override + bool get isRead; + @override + int get lastPageRead; + @override + _i1.GLongString get lastReadAt; + @override + int get mangaId; + @override + String get name; + @override + int get pageCount; + @override + String? get realUrl; + @override + String? get scanlator; + @override + int get sourceOrder; + @override + _i1.GLongString get uploadDate; + @override + String get url; + @override + BuiltList get meta; + static Serializer get serializer => + _$gMangaFragmentDataLatestUploadedChapterSerializer; + + @override + Map toJson() => (_i4.serializers.serializeWith( + GMangaFragmentData_latestUploadedChapter.serializer, + this, + ) as Map); + + static GMangaFragmentData_latestUploadedChapter? fromJson( + Map json) => + _i4.serializers.deserializeWith( + GMangaFragmentData_latestUploadedChapter.serializer, + json, + ); +} + +abstract class GMangaFragmentData_latestUploadedChapter_meta + implements + Built, + GMangaFragment_latestUploadedChapter_meta, + _i2.GChapterFragment_meta { + GMangaFragmentData_latestUploadedChapter_meta._(); + + factory GMangaFragmentData_latestUploadedChapter_meta( + [void Function(GMangaFragmentData_latestUploadedChapter_metaBuilder b) + updates]) = _$GMangaFragmentData_latestUploadedChapter_meta; + + static void _initializeBuilder( + GMangaFragmentData_latestUploadedChapter_metaBuilder b) => + b..G__typename = 'ChapterMetaType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get key; + @override + String get value; + static Serializer + get serializer => _$gMangaFragmentDataLatestUploadedChapterMetaSerializer; + + @override + Map toJson() => (_i4.serializers.serializeWith( + GMangaFragmentData_latestUploadedChapter_meta.serializer, + this, + ) as Map); + + static GMangaFragmentData_latestUploadedChapter_meta? fromJson( + Map json) => + _i4.serializers.deserializeWith( + GMangaFragmentData_latestUploadedChapter_meta.serializer, + json, + ); +} + +abstract class GMangaFragmentData_meta + implements + Built, + GMangaFragment_meta { + GMangaFragmentData_meta._(); + + factory GMangaFragmentData_meta( + [void Function(GMangaFragmentData_metaBuilder b) updates]) = + _$GMangaFragmentData_meta; + + static void _initializeBuilder(GMangaFragmentData_metaBuilder b) => + b..G__typename = 'MangaMetaType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get key; + @override + String get value; + static Serializer get serializer => + _$gMangaFragmentDataMetaSerializer; + + @override + Map toJson() => (_i4.serializers.serializeWith( + GMangaFragmentData_meta.serializer, + this, + ) as Map); + + static GMangaFragmentData_meta? fromJson(Map json) => + _i4.serializers.deserializeWith( + GMangaFragmentData_meta.serializer, + json, + ); +} + +abstract class GMangaFragmentData_source + implements + Built, + GMangaFragment_source, + _i3.GSourceFragment { + GMangaFragmentData_source._(); + + factory GMangaFragmentData_source( + [void Function(GMangaFragmentData_sourceBuilder b) updates]) = + _$GMangaFragmentData_source; + + static void _initializeBuilder(GMangaFragmentData_sourceBuilder b) => + b..G__typename = 'SourceType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get displayName; + @override + String get iconUrl; + @override + _i1.GLongString get id; + @override + bool get isConfigurable; + @override + bool get isNsfw; + @override + String get lang; + @override + String get name; + @override + bool get supportsLatest; + @override + GMangaFragmentData_source_extension get extension; + static Serializer get serializer => + _$gMangaFragmentDataSourceSerializer; + + @override + Map toJson() => (_i4.serializers.serializeWith( + GMangaFragmentData_source.serializer, + this, + ) as Map); + + static GMangaFragmentData_source? fromJson(Map json) => + _i4.serializers.deserializeWith( + GMangaFragmentData_source.serializer, + json, + ); +} + +abstract class GMangaFragmentData_source_extension + implements + Built, + GMangaFragment_source_extension, + _i3.GSourceFragment_extension { + GMangaFragmentData_source_extension._(); + + factory GMangaFragmentData_source_extension( + [void Function(GMangaFragmentData_source_extensionBuilder b) + updates]) = _$GMangaFragmentData_source_extension; + + static void _initializeBuilder( + GMangaFragmentData_source_extensionBuilder b) => + b..G__typename = 'ExtensionType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get pkgName; + @override + String? get repo; + static Serializer get serializer => + _$gMangaFragmentDataSourceExtensionSerializer; + + @override + Map toJson() => (_i4.serializers.serializeWith( + GMangaFragmentData_source_extension.serializer, + this, + ) as Map); + + static GMangaFragmentData_source_extension? fromJson( + Map json) => + _i4.serializers.deserializeWith( + GMangaFragmentData_source_extension.serializer, + json, + ); +} diff --git a/lib/src/features/manga_book/domain/manga/graphql/__generated__/fragment.data.gql.g.dart b/lib/src/features/manga_book/domain/manga/graphql/__generated__/fragment.data.gql.g.dart new file mode 100644 index 00000000..3992e110 --- /dev/null +++ b/lib/src/features/manga_book/domain/manga/graphql/__generated__/fragment.data.gql.g.dart @@ -0,0 +1,4574 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gMangaFragmentDataSerializer = + new _$GMangaFragmentDataSerializer(); +Serializer + _$gMangaFragmentDataLastReadChapterSerializer = + new _$GMangaFragmentData_lastReadChapterSerializer(); +Serializer + _$gMangaFragmentDataLastReadChapterMetaSerializer = + new _$GMangaFragmentData_lastReadChapter_metaSerializer(); +Serializer + _$gMangaFragmentDataLatestFetchedChapterSerializer = + new _$GMangaFragmentData_latestFetchedChapterSerializer(); +Serializer + _$gMangaFragmentDataLatestFetchedChapterMetaSerializer = + new _$GMangaFragmentData_latestFetchedChapter_metaSerializer(); +Serializer + _$gMangaFragmentDataLatestReadChapterSerializer = + new _$GMangaFragmentData_latestReadChapterSerializer(); +Serializer + _$gMangaFragmentDataLatestReadChapterMetaSerializer = + new _$GMangaFragmentData_latestReadChapter_metaSerializer(); +Serializer + _$gMangaFragmentDataLatestUploadedChapterSerializer = + new _$GMangaFragmentData_latestUploadedChapterSerializer(); +Serializer + _$gMangaFragmentDataLatestUploadedChapterMetaSerializer = + new _$GMangaFragmentData_latestUploadedChapter_metaSerializer(); +Serializer _$gMangaFragmentDataMetaSerializer = + new _$GMangaFragmentData_metaSerializer(); +Serializer _$gMangaFragmentDataSourceSerializer = + new _$GMangaFragmentData_sourceSerializer(); +Serializer + _$gMangaFragmentDataSourceExtensionSerializer = + new _$GMangaFragmentData_source_extensionSerializer(); + +class _$GMangaFragmentDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GMangaFragmentData, _$GMangaFragmentData]; + @override + final String wireName = 'GMangaFragmentData'; + + @override + Iterable serialize( + Serializers serializers, GMangaFragmentData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'downloadCount', + serializers.serialize(object.downloadCount, + specifiedType: const FullType(int)), + 'genre', + serializers.serialize(object.genre, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'inLibrary', + serializers.serialize(object.inLibrary, + specifiedType: const FullType(bool)), + 'inLibraryAt', + serializers.serialize(object.inLibraryAt, + specifiedType: const FullType(_i1.GLongString)), + 'initialized', + serializers.serialize(object.initialized, + specifiedType: const FullType(bool)), + 'meta', + serializers.serialize(object.meta, + specifiedType: const FullType( + BuiltList, const [const FullType(GMangaFragmentData_meta)])), + 'sourceId', + serializers.serialize(object.sourceId, + specifiedType: const FullType(_i1.GLongString)), + 'status', + serializers.serialize(object.status, + specifiedType: const FullType(_i1.GMangaStatus)), + 'title', + serializers.serialize(object.title, + specifiedType: const FullType(String)), + 'unreadCount', + serializers.serialize(object.unreadCount, + specifiedType: const FullType(int)), + 'updateStrategy', + serializers.serialize(object.updateStrategy, + specifiedType: const FullType(_i1.GUpdateStrategy)), + 'url', + serializers.serialize(object.url, specifiedType: const FullType(String)), + ]; + Object? value; + value = object.age; + if (value != null) { + result + ..add('age') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.GLongString))); + } + value = object.artist; + if (value != null) { + result + ..add('artist') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.author; + if (value != null) { + result + ..add('author') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.chaptersAge; + if (value != null) { + result + ..add('chaptersAge') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.GLongString))); + } + value = object.chaptersLastFetchedAt; + if (value != null) { + result + ..add('chaptersLastFetchedAt') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.GLongString))); + } + value = object.description; + if (value != null) { + result + ..add('description') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.lastFetchedAt; + if (value != null) { + result + ..add('lastFetchedAt') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.GLongString))); + } + value = object.lastReadChapter; + if (value != null) { + result + ..add('lastReadChapter') + ..add(serializers.serialize(value, + specifiedType: const FullType(GMangaFragmentData_lastReadChapter))); + } + value = object.latestFetchedChapter; + if (value != null) { + result + ..add('latestFetchedChapter') + ..add(serializers.serialize(value, + specifiedType: + const FullType(GMangaFragmentData_latestFetchedChapter))); + } + value = object.latestReadChapter; + if (value != null) { + result + ..add('latestReadChapter') + ..add(serializers.serialize(value, + specifiedType: + const FullType(GMangaFragmentData_latestReadChapter))); + } + value = object.latestUploadedChapter; + if (value != null) { + result + ..add('latestUploadedChapter') + ..add(serializers.serialize(value, + specifiedType: + const FullType(GMangaFragmentData_latestUploadedChapter))); + } + value = object.realUrl; + if (value != null) { + result + ..add('realUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.source; + if (value != null) { + result + ..add('source') + ..add(serializers.serialize(value, + specifiedType: const FullType(GMangaFragmentData_source))); + } + value = object.thumbnailUrl; + if (value != null) { + result + ..add('thumbnailUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.thumbnailUrlLastFetched; + if (value != null) { + result + ..add('thumbnailUrlLastFetched') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.GLongString))); + } + return result; + } + + @override + GMangaFragmentData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMangaFragmentDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'age': + result.age.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'artist': + result.artist = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'author': + result.author = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'chaptersAge': + result.chaptersAge.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'chaptersLastFetchedAt': + result.chaptersLastFetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'description': + result.description = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'downloadCount': + result.downloadCount = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'genre': + result.genre.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'inLibrary': + result.inLibrary = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'inLibraryAt': + result.inLibraryAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'initialized': + result.initialized = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'lastFetchedAt': + result.lastFetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'lastReadChapter': + result.lastReadChapter.replace(serializers.deserialize(value, + specifiedType: + const FullType(GMangaFragmentData_lastReadChapter))! + as GMangaFragmentData_lastReadChapter); + break; + case 'latestFetchedChapter': + result.latestFetchedChapter.replace(serializers.deserialize(value, + specifiedType: + const FullType(GMangaFragmentData_latestFetchedChapter))! + as GMangaFragmentData_latestFetchedChapter); + break; + case 'latestReadChapter': + result.latestReadChapter.replace(serializers.deserialize(value, + specifiedType: + const FullType(GMangaFragmentData_latestReadChapter))! + as GMangaFragmentData_latestReadChapter); + break; + case 'latestUploadedChapter': + result.latestUploadedChapter.replace(serializers.deserialize(value, + specifiedType: + const FullType(GMangaFragmentData_latestUploadedChapter))! + as GMangaFragmentData_latestUploadedChapter); + break; + case 'meta': + result.meta.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GMangaFragmentData_meta) + ]))! as BuiltList); + break; + case 'realUrl': + result.realUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'source': + result.source.replace(serializers.deserialize(value, + specifiedType: const FullType(GMangaFragmentData_source))! + as GMangaFragmentData_source); + break; + case 'sourceId': + result.sourceId.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'status': + result.status = serializers.deserialize(value, + specifiedType: const FullType(_i1.GMangaStatus))! + as _i1.GMangaStatus; + break; + case 'thumbnailUrl': + result.thumbnailUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'thumbnailUrlLastFetched': + result.thumbnailUrlLastFetched.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'title': + result.title = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'unreadCount': + result.unreadCount = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'updateStrategy': + result.updateStrategy = serializers.deserialize(value, + specifiedType: const FullType(_i1.GUpdateStrategy))! + as _i1.GUpdateStrategy; + break; + case 'url': + result.url = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GMangaFragmentData_lastReadChapterSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GMangaFragmentData_lastReadChapter, + _$GMangaFragmentData_lastReadChapter + ]; + @override + final String wireName = 'GMangaFragmentData_lastReadChapter'; + + @override + Iterable serialize( + Serializers serializers, GMangaFragmentData_lastReadChapter object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'chapterNumber', + serializers.serialize(object.chapterNumber, + specifiedType: const FullType(double)), + 'fetchedAt', + serializers.serialize(object.fetchedAt, + specifiedType: const FullType(_i1.GLongString)), + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'isBookmarked', + serializers.serialize(object.isBookmarked, + specifiedType: const FullType(bool)), + 'isDownloaded', + serializers.serialize(object.isDownloaded, + specifiedType: const FullType(bool)), + 'isRead', + serializers.serialize(object.isRead, specifiedType: const FullType(bool)), + 'lastPageRead', + serializers.serialize(object.lastPageRead, + specifiedType: const FullType(int)), + 'lastReadAt', + serializers.serialize(object.lastReadAt, + specifiedType: const FullType(_i1.GLongString)), + 'mangaId', + serializers.serialize(object.mangaId, specifiedType: const FullType(int)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'pageCount', + serializers.serialize(object.pageCount, + specifiedType: const FullType(int)), + 'sourceOrder', + serializers.serialize(object.sourceOrder, + specifiedType: const FullType(int)), + 'uploadDate', + serializers.serialize(object.uploadDate, + specifiedType: const FullType(_i1.GLongString)), + 'url', + serializers.serialize(object.url, specifiedType: const FullType(String)), + 'meta', + serializers.serialize(object.meta, + specifiedType: const FullType(BuiltList, + const [const FullType(GMangaFragmentData_lastReadChapter_meta)])), + ]; + Object? value; + value = object.realUrl; + if (value != null) { + result + ..add('realUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.scanlator; + if (value != null) { + result + ..add('scanlator') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GMangaFragmentData_lastReadChapter deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMangaFragmentData_lastReadChapterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'chapterNumber': + result.chapterNumber = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'fetchedAt': + result.fetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'isBookmarked': + result.isBookmarked = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isDownloaded': + result.isDownloaded = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isRead': + result.isRead = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'lastPageRead': + result.lastPageRead = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'lastReadAt': + result.lastReadAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'mangaId': + result.mangaId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'pageCount': + result.pageCount = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'realUrl': + result.realUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'scanlator': + result.scanlator = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'sourceOrder': + result.sourceOrder = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'uploadDate': + result.uploadDate.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'url': + result.url = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'meta': + result.meta.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GMangaFragmentData_lastReadChapter_meta) + ]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GMangaFragmentData_lastReadChapter_metaSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GMangaFragmentData_lastReadChapter_meta, + _$GMangaFragmentData_lastReadChapter_meta + ]; + @override + final String wireName = 'GMangaFragmentData_lastReadChapter_meta'; + + @override + Iterable serialize( + Serializers serializers, GMangaFragmentData_lastReadChapter_meta object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'value', + serializers.serialize(object.value, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GMangaFragmentData_lastReadChapter_meta deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMangaFragmentData_lastReadChapter_metaBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GMangaFragmentData_latestFetchedChapterSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GMangaFragmentData_latestFetchedChapter, + _$GMangaFragmentData_latestFetchedChapter + ]; + @override + final String wireName = 'GMangaFragmentData_latestFetchedChapter'; + + @override + Iterable serialize( + Serializers serializers, GMangaFragmentData_latestFetchedChapter object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'chapterNumber', + serializers.serialize(object.chapterNumber, + specifiedType: const FullType(double)), + 'fetchedAt', + serializers.serialize(object.fetchedAt, + specifiedType: const FullType(_i1.GLongString)), + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'isBookmarked', + serializers.serialize(object.isBookmarked, + specifiedType: const FullType(bool)), + 'isDownloaded', + serializers.serialize(object.isDownloaded, + specifiedType: const FullType(bool)), + 'isRead', + serializers.serialize(object.isRead, specifiedType: const FullType(bool)), + 'lastPageRead', + serializers.serialize(object.lastPageRead, + specifiedType: const FullType(int)), + 'lastReadAt', + serializers.serialize(object.lastReadAt, + specifiedType: const FullType(_i1.GLongString)), + 'mangaId', + serializers.serialize(object.mangaId, specifiedType: const FullType(int)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'pageCount', + serializers.serialize(object.pageCount, + specifiedType: const FullType(int)), + 'sourceOrder', + serializers.serialize(object.sourceOrder, + specifiedType: const FullType(int)), + 'uploadDate', + serializers.serialize(object.uploadDate, + specifiedType: const FullType(_i1.GLongString)), + 'url', + serializers.serialize(object.url, specifiedType: const FullType(String)), + 'meta', + serializers.serialize(object.meta, + specifiedType: const FullType(BuiltList, const [ + const FullType(GMangaFragmentData_latestFetchedChapter_meta) + ])), + ]; + Object? value; + value = object.realUrl; + if (value != null) { + result + ..add('realUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.scanlator; + if (value != null) { + result + ..add('scanlator') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GMangaFragmentData_latestFetchedChapter deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMangaFragmentData_latestFetchedChapterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'chapterNumber': + result.chapterNumber = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'fetchedAt': + result.fetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'isBookmarked': + result.isBookmarked = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isDownloaded': + result.isDownloaded = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isRead': + result.isRead = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'lastPageRead': + result.lastPageRead = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'lastReadAt': + result.lastReadAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'mangaId': + result.mangaId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'pageCount': + result.pageCount = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'realUrl': + result.realUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'scanlator': + result.scanlator = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'sourceOrder': + result.sourceOrder = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'uploadDate': + result.uploadDate.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'url': + result.url = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'meta': + result.meta.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GMangaFragmentData_latestFetchedChapter_meta) + ]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GMangaFragmentData_latestFetchedChapter_metaSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GMangaFragmentData_latestFetchedChapter_meta, + _$GMangaFragmentData_latestFetchedChapter_meta + ]; + @override + final String wireName = 'GMangaFragmentData_latestFetchedChapter_meta'; + + @override + Iterable serialize(Serializers serializers, + GMangaFragmentData_latestFetchedChapter_meta object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'value', + serializers.serialize(object.value, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GMangaFragmentData_latestFetchedChapter_meta deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMangaFragmentData_latestFetchedChapter_metaBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GMangaFragmentData_latestReadChapterSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GMangaFragmentData_latestReadChapter, + _$GMangaFragmentData_latestReadChapter + ]; + @override + final String wireName = 'GMangaFragmentData_latestReadChapter'; + + @override + Iterable serialize( + Serializers serializers, GMangaFragmentData_latestReadChapter object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'chapterNumber', + serializers.serialize(object.chapterNumber, + specifiedType: const FullType(double)), + 'fetchedAt', + serializers.serialize(object.fetchedAt, + specifiedType: const FullType(_i1.GLongString)), + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'isBookmarked', + serializers.serialize(object.isBookmarked, + specifiedType: const FullType(bool)), + 'isDownloaded', + serializers.serialize(object.isDownloaded, + specifiedType: const FullType(bool)), + 'isRead', + serializers.serialize(object.isRead, specifiedType: const FullType(bool)), + 'lastPageRead', + serializers.serialize(object.lastPageRead, + specifiedType: const FullType(int)), + 'lastReadAt', + serializers.serialize(object.lastReadAt, + specifiedType: const FullType(_i1.GLongString)), + 'mangaId', + serializers.serialize(object.mangaId, specifiedType: const FullType(int)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'pageCount', + serializers.serialize(object.pageCount, + specifiedType: const FullType(int)), + 'sourceOrder', + serializers.serialize(object.sourceOrder, + specifiedType: const FullType(int)), + 'uploadDate', + serializers.serialize(object.uploadDate, + specifiedType: const FullType(_i1.GLongString)), + 'url', + serializers.serialize(object.url, specifiedType: const FullType(String)), + 'meta', + serializers.serialize(object.meta, + specifiedType: const FullType(BuiltList, const [ + const FullType(GMangaFragmentData_latestReadChapter_meta) + ])), + ]; + Object? value; + value = object.realUrl; + if (value != null) { + result + ..add('realUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.scanlator; + if (value != null) { + result + ..add('scanlator') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GMangaFragmentData_latestReadChapter deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMangaFragmentData_latestReadChapterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'chapterNumber': + result.chapterNumber = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'fetchedAt': + result.fetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'isBookmarked': + result.isBookmarked = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isDownloaded': + result.isDownloaded = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isRead': + result.isRead = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'lastPageRead': + result.lastPageRead = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'lastReadAt': + result.lastReadAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'mangaId': + result.mangaId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'pageCount': + result.pageCount = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'realUrl': + result.realUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'scanlator': + result.scanlator = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'sourceOrder': + result.sourceOrder = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'uploadDate': + result.uploadDate.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'url': + result.url = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'meta': + result.meta.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GMangaFragmentData_latestReadChapter_meta) + ]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GMangaFragmentData_latestReadChapter_metaSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GMangaFragmentData_latestReadChapter_meta, + _$GMangaFragmentData_latestReadChapter_meta + ]; + @override + final String wireName = 'GMangaFragmentData_latestReadChapter_meta'; + + @override + Iterable serialize( + Serializers serializers, GMangaFragmentData_latestReadChapter_meta object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'value', + serializers.serialize(object.value, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GMangaFragmentData_latestReadChapter_meta deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMangaFragmentData_latestReadChapter_metaBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GMangaFragmentData_latestUploadedChapterSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GMangaFragmentData_latestUploadedChapter, + _$GMangaFragmentData_latestUploadedChapter + ]; + @override + final String wireName = 'GMangaFragmentData_latestUploadedChapter'; + + @override + Iterable serialize( + Serializers serializers, GMangaFragmentData_latestUploadedChapter object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'chapterNumber', + serializers.serialize(object.chapterNumber, + specifiedType: const FullType(double)), + 'fetchedAt', + serializers.serialize(object.fetchedAt, + specifiedType: const FullType(_i1.GLongString)), + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'isBookmarked', + serializers.serialize(object.isBookmarked, + specifiedType: const FullType(bool)), + 'isDownloaded', + serializers.serialize(object.isDownloaded, + specifiedType: const FullType(bool)), + 'isRead', + serializers.serialize(object.isRead, specifiedType: const FullType(bool)), + 'lastPageRead', + serializers.serialize(object.lastPageRead, + specifiedType: const FullType(int)), + 'lastReadAt', + serializers.serialize(object.lastReadAt, + specifiedType: const FullType(_i1.GLongString)), + 'mangaId', + serializers.serialize(object.mangaId, specifiedType: const FullType(int)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'pageCount', + serializers.serialize(object.pageCount, + specifiedType: const FullType(int)), + 'sourceOrder', + serializers.serialize(object.sourceOrder, + specifiedType: const FullType(int)), + 'uploadDate', + serializers.serialize(object.uploadDate, + specifiedType: const FullType(_i1.GLongString)), + 'url', + serializers.serialize(object.url, specifiedType: const FullType(String)), + 'meta', + serializers.serialize(object.meta, + specifiedType: const FullType(BuiltList, const [ + const FullType(GMangaFragmentData_latestUploadedChapter_meta) + ])), + ]; + Object? value; + value = object.realUrl; + if (value != null) { + result + ..add('realUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.scanlator; + if (value != null) { + result + ..add('scanlator') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GMangaFragmentData_latestUploadedChapter deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMangaFragmentData_latestUploadedChapterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'chapterNumber': + result.chapterNumber = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'fetchedAt': + result.fetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'isBookmarked': + result.isBookmarked = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isDownloaded': + result.isDownloaded = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isRead': + result.isRead = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'lastPageRead': + result.lastPageRead = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'lastReadAt': + result.lastReadAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'mangaId': + result.mangaId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'pageCount': + result.pageCount = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'realUrl': + result.realUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'scanlator': + result.scanlator = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'sourceOrder': + result.sourceOrder = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'uploadDate': + result.uploadDate.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'url': + result.url = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'meta': + result.meta.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GMangaFragmentData_latestUploadedChapter_meta) + ]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GMangaFragmentData_latestUploadedChapter_metaSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GMangaFragmentData_latestUploadedChapter_meta, + _$GMangaFragmentData_latestUploadedChapter_meta + ]; + @override + final String wireName = 'GMangaFragmentData_latestUploadedChapter_meta'; + + @override + Iterable serialize(Serializers serializers, + GMangaFragmentData_latestUploadedChapter_meta object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'value', + serializers.serialize(object.value, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GMangaFragmentData_latestUploadedChapter_meta deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMangaFragmentData_latestUploadedChapter_metaBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GMangaFragmentData_metaSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GMangaFragmentData_meta, + _$GMangaFragmentData_meta + ]; + @override + final String wireName = 'GMangaFragmentData_meta'; + + @override + Iterable serialize( + Serializers serializers, GMangaFragmentData_meta object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'value', + serializers.serialize(object.value, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GMangaFragmentData_meta deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMangaFragmentData_metaBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GMangaFragmentData_sourceSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GMangaFragmentData_source, + _$GMangaFragmentData_source + ]; + @override + final String wireName = 'GMangaFragmentData_source'; + + @override + Iterable serialize( + Serializers serializers, GMangaFragmentData_source object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'displayName', + serializers.serialize(object.displayName, + specifiedType: const FullType(String)), + 'iconUrl', + serializers.serialize(object.iconUrl, + specifiedType: const FullType(String)), + 'id', + serializers.serialize(object.id, + specifiedType: const FullType(_i1.GLongString)), + 'isConfigurable', + serializers.serialize(object.isConfigurable, + specifiedType: const FullType(bool)), + 'isNsfw', + serializers.serialize(object.isNsfw, specifiedType: const FullType(bool)), + 'lang', + serializers.serialize(object.lang, specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'supportsLatest', + serializers.serialize(object.supportsLatest, + specifiedType: const FullType(bool)), + 'extension', + serializers.serialize(object.extension, + specifiedType: const FullType(GMangaFragmentData_source_extension)), + ]; + + return result; + } + + @override + GMangaFragmentData_source deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMangaFragmentData_sourceBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'displayName': + result.displayName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'iconUrl': + result.iconUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'id': + result.id.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'isConfigurable': + result.isConfigurable = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isNsfw': + result.isNsfw = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'lang': + result.lang = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'supportsLatest': + result.supportsLatest = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extension': + result.extension.replace(serializers.deserialize(value, + specifiedType: + const FullType(GMangaFragmentData_source_extension))! + as GMangaFragmentData_source_extension); + break; + } + } + + return result.build(); + } +} + +class _$GMangaFragmentData_source_extensionSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GMangaFragmentData_source_extension, + _$GMangaFragmentData_source_extension + ]; + @override + final String wireName = 'GMangaFragmentData_source_extension'; + + @override + Iterable serialize( + Serializers serializers, GMangaFragmentData_source_extension object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'pkgName', + serializers.serialize(object.pkgName, + specifiedType: const FullType(String)), + ]; + Object? value; + value = object.repo; + if (value != null) { + result + ..add('repo') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GMangaFragmentData_source_extension deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMangaFragmentData_source_extensionBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'pkgName': + result.pkgName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'repo': + result.repo = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GMangaFragmentData extends GMangaFragmentData { + @override + final String G__typename; + @override + final _i1.GLongString? age; + @override + final String? artist; + @override + final String? author; + @override + final _i1.GLongString? chaptersAge; + @override + final _i1.GLongString? chaptersLastFetchedAt; + @override + final String? description; + @override + final int downloadCount; + @override + final BuiltList genre; + @override + final int id; + @override + final bool inLibrary; + @override + final _i1.GLongString inLibraryAt; + @override + final bool initialized; + @override + final _i1.GLongString? lastFetchedAt; + @override + final GMangaFragmentData_lastReadChapter? lastReadChapter; + @override + final GMangaFragmentData_latestFetchedChapter? latestFetchedChapter; + @override + final GMangaFragmentData_latestReadChapter? latestReadChapter; + @override + final GMangaFragmentData_latestUploadedChapter? latestUploadedChapter; + @override + final BuiltList meta; + @override + final String? realUrl; + @override + final GMangaFragmentData_source? source; + @override + final _i1.GLongString sourceId; + @override + final _i1.GMangaStatus status; + @override + final String? thumbnailUrl; + @override + final _i1.GLongString? thumbnailUrlLastFetched; + @override + final String title; + @override + final int unreadCount; + @override + final _i1.GUpdateStrategy updateStrategy; + @override + final String url; + + factory _$GMangaFragmentData( + [void Function(GMangaFragmentDataBuilder)? updates]) => + (new GMangaFragmentDataBuilder()..update(updates))._build(); + + _$GMangaFragmentData._( + {required this.G__typename, + this.age, + this.artist, + this.author, + this.chaptersAge, + this.chaptersLastFetchedAt, + this.description, + required this.downloadCount, + required this.genre, + required this.id, + required this.inLibrary, + required this.inLibraryAt, + required this.initialized, + this.lastFetchedAt, + this.lastReadChapter, + this.latestFetchedChapter, + this.latestReadChapter, + this.latestUploadedChapter, + required this.meta, + this.realUrl, + this.source, + required this.sourceId, + required this.status, + this.thumbnailUrl, + this.thumbnailUrlLastFetched, + required this.title, + required this.unreadCount, + required this.updateStrategy, + required this.url}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GMangaFragmentData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + downloadCount, r'GMangaFragmentData', 'downloadCount'); + BuiltValueNullFieldError.checkNotNull( + genre, r'GMangaFragmentData', 'genre'); + BuiltValueNullFieldError.checkNotNull(id, r'GMangaFragmentData', 'id'); + BuiltValueNullFieldError.checkNotNull( + inLibrary, r'GMangaFragmentData', 'inLibrary'); + BuiltValueNullFieldError.checkNotNull( + inLibraryAt, r'GMangaFragmentData', 'inLibraryAt'); + BuiltValueNullFieldError.checkNotNull( + initialized, r'GMangaFragmentData', 'initialized'); + BuiltValueNullFieldError.checkNotNull(meta, r'GMangaFragmentData', 'meta'); + BuiltValueNullFieldError.checkNotNull( + sourceId, r'GMangaFragmentData', 'sourceId'); + BuiltValueNullFieldError.checkNotNull( + status, r'GMangaFragmentData', 'status'); + BuiltValueNullFieldError.checkNotNull( + title, r'GMangaFragmentData', 'title'); + BuiltValueNullFieldError.checkNotNull( + unreadCount, r'GMangaFragmentData', 'unreadCount'); + BuiltValueNullFieldError.checkNotNull( + updateStrategy, r'GMangaFragmentData', 'updateStrategy'); + BuiltValueNullFieldError.checkNotNull(url, r'GMangaFragmentData', 'url'); + } + + @override + GMangaFragmentData rebuild( + void Function(GMangaFragmentDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GMangaFragmentDataBuilder toBuilder() => + new GMangaFragmentDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMangaFragmentData && + G__typename == other.G__typename && + age == other.age && + artist == other.artist && + author == other.author && + chaptersAge == other.chaptersAge && + chaptersLastFetchedAt == other.chaptersLastFetchedAt && + description == other.description && + downloadCount == other.downloadCount && + genre == other.genre && + id == other.id && + inLibrary == other.inLibrary && + inLibraryAt == other.inLibraryAt && + initialized == other.initialized && + lastFetchedAt == other.lastFetchedAt && + lastReadChapter == other.lastReadChapter && + latestFetchedChapter == other.latestFetchedChapter && + latestReadChapter == other.latestReadChapter && + latestUploadedChapter == other.latestUploadedChapter && + meta == other.meta && + realUrl == other.realUrl && + source == other.source && + sourceId == other.sourceId && + status == other.status && + thumbnailUrl == other.thumbnailUrl && + thumbnailUrlLastFetched == other.thumbnailUrlLastFetched && + title == other.title && + unreadCount == other.unreadCount && + updateStrategy == other.updateStrategy && + url == other.url; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, age.hashCode); + _$hash = $jc(_$hash, artist.hashCode); + _$hash = $jc(_$hash, author.hashCode); + _$hash = $jc(_$hash, chaptersAge.hashCode); + _$hash = $jc(_$hash, chaptersLastFetchedAt.hashCode); + _$hash = $jc(_$hash, description.hashCode); + _$hash = $jc(_$hash, downloadCount.hashCode); + _$hash = $jc(_$hash, genre.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, inLibrary.hashCode); + _$hash = $jc(_$hash, inLibraryAt.hashCode); + _$hash = $jc(_$hash, initialized.hashCode); + _$hash = $jc(_$hash, lastFetchedAt.hashCode); + _$hash = $jc(_$hash, lastReadChapter.hashCode); + _$hash = $jc(_$hash, latestFetchedChapter.hashCode); + _$hash = $jc(_$hash, latestReadChapter.hashCode); + _$hash = $jc(_$hash, latestUploadedChapter.hashCode); + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jc(_$hash, realUrl.hashCode); + _$hash = $jc(_$hash, source.hashCode); + _$hash = $jc(_$hash, sourceId.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jc(_$hash, thumbnailUrl.hashCode); + _$hash = $jc(_$hash, thumbnailUrlLastFetched.hashCode); + _$hash = $jc(_$hash, title.hashCode); + _$hash = $jc(_$hash, unreadCount.hashCode); + _$hash = $jc(_$hash, updateStrategy.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GMangaFragmentData') + ..add('G__typename', G__typename) + ..add('age', age) + ..add('artist', artist) + ..add('author', author) + ..add('chaptersAge', chaptersAge) + ..add('chaptersLastFetchedAt', chaptersLastFetchedAt) + ..add('description', description) + ..add('downloadCount', downloadCount) + ..add('genre', genre) + ..add('id', id) + ..add('inLibrary', inLibrary) + ..add('inLibraryAt', inLibraryAt) + ..add('initialized', initialized) + ..add('lastFetchedAt', lastFetchedAt) + ..add('lastReadChapter', lastReadChapter) + ..add('latestFetchedChapter', latestFetchedChapter) + ..add('latestReadChapter', latestReadChapter) + ..add('latestUploadedChapter', latestUploadedChapter) + ..add('meta', meta) + ..add('realUrl', realUrl) + ..add('source', source) + ..add('sourceId', sourceId) + ..add('status', status) + ..add('thumbnailUrl', thumbnailUrl) + ..add('thumbnailUrlLastFetched', thumbnailUrlLastFetched) + ..add('title', title) + ..add('unreadCount', unreadCount) + ..add('updateStrategy', updateStrategy) + ..add('url', url)) + .toString(); + } +} + +class GMangaFragmentDataBuilder + implements Builder { + _$GMangaFragmentData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + _i1.GLongStringBuilder? _age; + _i1.GLongStringBuilder get age => + _$this._age ??= new _i1.GLongStringBuilder(); + set age(_i1.GLongStringBuilder? age) => _$this._age = age; + + String? _artist; + String? get artist => _$this._artist; + set artist(String? artist) => _$this._artist = artist; + + String? _author; + String? get author => _$this._author; + set author(String? author) => _$this._author = author; + + _i1.GLongStringBuilder? _chaptersAge; + _i1.GLongStringBuilder get chaptersAge => + _$this._chaptersAge ??= new _i1.GLongStringBuilder(); + set chaptersAge(_i1.GLongStringBuilder? chaptersAge) => + _$this._chaptersAge = chaptersAge; + + _i1.GLongStringBuilder? _chaptersLastFetchedAt; + _i1.GLongStringBuilder get chaptersLastFetchedAt => + _$this._chaptersLastFetchedAt ??= new _i1.GLongStringBuilder(); + set chaptersLastFetchedAt(_i1.GLongStringBuilder? chaptersLastFetchedAt) => + _$this._chaptersLastFetchedAt = chaptersLastFetchedAt; + + String? _description; + String? get description => _$this._description; + set description(String? description) => _$this._description = description; + + int? _downloadCount; + int? get downloadCount => _$this._downloadCount; + set downloadCount(int? downloadCount) => + _$this._downloadCount = downloadCount; + + ListBuilder? _genre; + ListBuilder get genre => _$this._genre ??= new ListBuilder(); + set genre(ListBuilder? genre) => _$this._genre = genre; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + bool? _inLibrary; + bool? get inLibrary => _$this._inLibrary; + set inLibrary(bool? inLibrary) => _$this._inLibrary = inLibrary; + + _i1.GLongStringBuilder? _inLibraryAt; + _i1.GLongStringBuilder get inLibraryAt => + _$this._inLibraryAt ??= new _i1.GLongStringBuilder(); + set inLibraryAt(_i1.GLongStringBuilder? inLibraryAt) => + _$this._inLibraryAt = inLibraryAt; + + bool? _initialized; + bool? get initialized => _$this._initialized; + set initialized(bool? initialized) => _$this._initialized = initialized; + + _i1.GLongStringBuilder? _lastFetchedAt; + _i1.GLongStringBuilder get lastFetchedAt => + _$this._lastFetchedAt ??= new _i1.GLongStringBuilder(); + set lastFetchedAt(_i1.GLongStringBuilder? lastFetchedAt) => + _$this._lastFetchedAt = lastFetchedAt; + + GMangaFragmentData_lastReadChapterBuilder? _lastReadChapter; + GMangaFragmentData_lastReadChapterBuilder get lastReadChapter => + _$this._lastReadChapter ??= + new GMangaFragmentData_lastReadChapterBuilder(); + set lastReadChapter( + GMangaFragmentData_lastReadChapterBuilder? lastReadChapter) => + _$this._lastReadChapter = lastReadChapter; + + GMangaFragmentData_latestFetchedChapterBuilder? _latestFetchedChapter; + GMangaFragmentData_latestFetchedChapterBuilder get latestFetchedChapter => + _$this._latestFetchedChapter ??= + new GMangaFragmentData_latestFetchedChapterBuilder(); + set latestFetchedChapter( + GMangaFragmentData_latestFetchedChapterBuilder? + latestFetchedChapter) => + _$this._latestFetchedChapter = latestFetchedChapter; + + GMangaFragmentData_latestReadChapterBuilder? _latestReadChapter; + GMangaFragmentData_latestReadChapterBuilder get latestReadChapter => + _$this._latestReadChapter ??= + new GMangaFragmentData_latestReadChapterBuilder(); + set latestReadChapter( + GMangaFragmentData_latestReadChapterBuilder? latestReadChapter) => + _$this._latestReadChapter = latestReadChapter; + + GMangaFragmentData_latestUploadedChapterBuilder? _latestUploadedChapter; + GMangaFragmentData_latestUploadedChapterBuilder get latestUploadedChapter => + _$this._latestUploadedChapter ??= + new GMangaFragmentData_latestUploadedChapterBuilder(); + set latestUploadedChapter( + GMangaFragmentData_latestUploadedChapterBuilder? + latestUploadedChapter) => + _$this._latestUploadedChapter = latestUploadedChapter; + + ListBuilder? _meta; + ListBuilder get meta => + _$this._meta ??= new ListBuilder(); + set meta(ListBuilder? meta) => _$this._meta = meta; + + String? _realUrl; + String? get realUrl => _$this._realUrl; + set realUrl(String? realUrl) => _$this._realUrl = realUrl; + + GMangaFragmentData_sourceBuilder? _source; + GMangaFragmentData_sourceBuilder get source => + _$this._source ??= new GMangaFragmentData_sourceBuilder(); + set source(GMangaFragmentData_sourceBuilder? source) => + _$this._source = source; + + _i1.GLongStringBuilder? _sourceId; + _i1.GLongStringBuilder get sourceId => + _$this._sourceId ??= new _i1.GLongStringBuilder(); + set sourceId(_i1.GLongStringBuilder? sourceId) => _$this._sourceId = sourceId; + + _i1.GMangaStatus? _status; + _i1.GMangaStatus? get status => _$this._status; + set status(_i1.GMangaStatus? status) => _$this._status = status; + + String? _thumbnailUrl; + String? get thumbnailUrl => _$this._thumbnailUrl; + set thumbnailUrl(String? thumbnailUrl) => _$this._thumbnailUrl = thumbnailUrl; + + _i1.GLongStringBuilder? _thumbnailUrlLastFetched; + _i1.GLongStringBuilder get thumbnailUrlLastFetched => + _$this._thumbnailUrlLastFetched ??= new _i1.GLongStringBuilder(); + set thumbnailUrlLastFetched( + _i1.GLongStringBuilder? thumbnailUrlLastFetched) => + _$this._thumbnailUrlLastFetched = thumbnailUrlLastFetched; + + String? _title; + String? get title => _$this._title; + set title(String? title) => _$this._title = title; + + int? _unreadCount; + int? get unreadCount => _$this._unreadCount; + set unreadCount(int? unreadCount) => _$this._unreadCount = unreadCount; + + _i1.GUpdateStrategy? _updateStrategy; + _i1.GUpdateStrategy? get updateStrategy => _$this._updateStrategy; + set updateStrategy(_i1.GUpdateStrategy? updateStrategy) => + _$this._updateStrategy = updateStrategy; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + GMangaFragmentDataBuilder() { + GMangaFragmentData._initializeBuilder(this); + } + + GMangaFragmentDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _age = $v.age?.toBuilder(); + _artist = $v.artist; + _author = $v.author; + _chaptersAge = $v.chaptersAge?.toBuilder(); + _chaptersLastFetchedAt = $v.chaptersLastFetchedAt?.toBuilder(); + _description = $v.description; + _downloadCount = $v.downloadCount; + _genre = $v.genre.toBuilder(); + _id = $v.id; + _inLibrary = $v.inLibrary; + _inLibraryAt = $v.inLibraryAt.toBuilder(); + _initialized = $v.initialized; + _lastFetchedAt = $v.lastFetchedAt?.toBuilder(); + _lastReadChapter = $v.lastReadChapter?.toBuilder(); + _latestFetchedChapter = $v.latestFetchedChapter?.toBuilder(); + _latestReadChapter = $v.latestReadChapter?.toBuilder(); + _latestUploadedChapter = $v.latestUploadedChapter?.toBuilder(); + _meta = $v.meta.toBuilder(); + _realUrl = $v.realUrl; + _source = $v.source?.toBuilder(); + _sourceId = $v.sourceId.toBuilder(); + _status = $v.status; + _thumbnailUrl = $v.thumbnailUrl; + _thumbnailUrlLastFetched = $v.thumbnailUrlLastFetched?.toBuilder(); + _title = $v.title; + _unreadCount = $v.unreadCount; + _updateStrategy = $v.updateStrategy; + _url = $v.url; + _$v = null; + } + return this; + } + + @override + void replace(GMangaFragmentData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMangaFragmentData; + } + + @override + void update(void Function(GMangaFragmentDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMangaFragmentData build() => _build(); + + _$GMangaFragmentData _build() { + _$GMangaFragmentData _$result; + try { + _$result = _$v ?? + new _$GMangaFragmentData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GMangaFragmentData', 'G__typename'), + age: _age?.build(), + artist: artist, + author: author, + chaptersAge: _chaptersAge?.build(), + chaptersLastFetchedAt: _chaptersLastFetchedAt?.build(), + description: description, + downloadCount: BuiltValueNullFieldError.checkNotNull( + downloadCount, r'GMangaFragmentData', 'downloadCount'), + genre: genre.build(), + id: BuiltValueNullFieldError.checkNotNull( + id, r'GMangaFragmentData', 'id'), + inLibrary: BuiltValueNullFieldError.checkNotNull( + inLibrary, r'GMangaFragmentData', 'inLibrary'), + inLibraryAt: inLibraryAt.build(), + initialized: BuiltValueNullFieldError.checkNotNull( + initialized, r'GMangaFragmentData', 'initialized'), + lastFetchedAt: _lastFetchedAt?.build(), + lastReadChapter: _lastReadChapter?.build(), + latestFetchedChapter: _latestFetchedChapter?.build(), + latestReadChapter: _latestReadChapter?.build(), + latestUploadedChapter: _latestUploadedChapter?.build(), + meta: meta.build(), + realUrl: realUrl, + source: _source?.build(), + sourceId: sourceId.build(), + status: BuiltValueNullFieldError.checkNotNull( + status, r'GMangaFragmentData', 'status'), + thumbnailUrl: thumbnailUrl, + thumbnailUrlLastFetched: _thumbnailUrlLastFetched?.build(), + title: BuiltValueNullFieldError.checkNotNull( + title, r'GMangaFragmentData', 'title'), + unreadCount: BuiltValueNullFieldError.checkNotNull( + unreadCount, r'GMangaFragmentData', 'unreadCount'), + updateStrategy: BuiltValueNullFieldError.checkNotNull(updateStrategy, r'GMangaFragmentData', 'updateStrategy'), + url: BuiltValueNullFieldError.checkNotNull(url, r'GMangaFragmentData', 'url')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'age'; + _age?.build(); + + _$failedField = 'chaptersAge'; + _chaptersAge?.build(); + _$failedField = 'chaptersLastFetchedAt'; + _chaptersLastFetchedAt?.build(); + + _$failedField = 'genre'; + genre.build(); + + _$failedField = 'inLibraryAt'; + inLibraryAt.build(); + + _$failedField = 'lastFetchedAt'; + _lastFetchedAt?.build(); + _$failedField = 'lastReadChapter'; + _lastReadChapter?.build(); + _$failedField = 'latestFetchedChapter'; + _latestFetchedChapter?.build(); + _$failedField = 'latestReadChapter'; + _latestReadChapter?.build(); + _$failedField = 'latestUploadedChapter'; + _latestUploadedChapter?.build(); + _$failedField = 'meta'; + meta.build(); + + _$failedField = 'source'; + _source?.build(); + _$failedField = 'sourceId'; + sourceId.build(); + + _$failedField = 'thumbnailUrlLastFetched'; + _thumbnailUrlLastFetched?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GMangaFragmentData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GMangaFragmentData_lastReadChapter + extends GMangaFragmentData_lastReadChapter { + @override + final String G__typename; + @override + final double chapterNumber; + @override + final _i1.GLongString fetchedAt; + @override + final int id; + @override + final bool isBookmarked; + @override + final bool isDownloaded; + @override + final bool isRead; + @override + final int lastPageRead; + @override + final _i1.GLongString lastReadAt; + @override + final int mangaId; + @override + final String name; + @override + final int pageCount; + @override + final String? realUrl; + @override + final String? scanlator; + @override + final int sourceOrder; + @override + final _i1.GLongString uploadDate; + @override + final String url; + @override + final BuiltList meta; + + factory _$GMangaFragmentData_lastReadChapter( + [void Function(GMangaFragmentData_lastReadChapterBuilder)? + updates]) => + (new GMangaFragmentData_lastReadChapterBuilder()..update(updates)) + ._build(); + + _$GMangaFragmentData_lastReadChapter._( + {required this.G__typename, + required this.chapterNumber, + required this.fetchedAt, + required this.id, + required this.isBookmarked, + required this.isDownloaded, + required this.isRead, + required this.lastPageRead, + required this.lastReadAt, + required this.mangaId, + required this.name, + required this.pageCount, + this.realUrl, + this.scanlator, + required this.sourceOrder, + required this.uploadDate, + required this.url, + required this.meta}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GMangaFragmentData_lastReadChapter', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + chapterNumber, r'GMangaFragmentData_lastReadChapter', 'chapterNumber'); + BuiltValueNullFieldError.checkNotNull( + fetchedAt, r'GMangaFragmentData_lastReadChapter', 'fetchedAt'); + BuiltValueNullFieldError.checkNotNull( + id, r'GMangaFragmentData_lastReadChapter', 'id'); + BuiltValueNullFieldError.checkNotNull( + isBookmarked, r'GMangaFragmentData_lastReadChapter', 'isBookmarked'); + BuiltValueNullFieldError.checkNotNull( + isDownloaded, r'GMangaFragmentData_lastReadChapter', 'isDownloaded'); + BuiltValueNullFieldError.checkNotNull( + isRead, r'GMangaFragmentData_lastReadChapter', 'isRead'); + BuiltValueNullFieldError.checkNotNull( + lastPageRead, r'GMangaFragmentData_lastReadChapter', 'lastPageRead'); + BuiltValueNullFieldError.checkNotNull( + lastReadAt, r'GMangaFragmentData_lastReadChapter', 'lastReadAt'); + BuiltValueNullFieldError.checkNotNull( + mangaId, r'GMangaFragmentData_lastReadChapter', 'mangaId'); + BuiltValueNullFieldError.checkNotNull( + name, r'GMangaFragmentData_lastReadChapter', 'name'); + BuiltValueNullFieldError.checkNotNull( + pageCount, r'GMangaFragmentData_lastReadChapter', 'pageCount'); + BuiltValueNullFieldError.checkNotNull( + sourceOrder, r'GMangaFragmentData_lastReadChapter', 'sourceOrder'); + BuiltValueNullFieldError.checkNotNull( + uploadDate, r'GMangaFragmentData_lastReadChapter', 'uploadDate'); + BuiltValueNullFieldError.checkNotNull( + url, r'GMangaFragmentData_lastReadChapter', 'url'); + BuiltValueNullFieldError.checkNotNull( + meta, r'GMangaFragmentData_lastReadChapter', 'meta'); + } + + @override + GMangaFragmentData_lastReadChapter rebuild( + void Function(GMangaFragmentData_lastReadChapterBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GMangaFragmentData_lastReadChapterBuilder toBuilder() => + new GMangaFragmentData_lastReadChapterBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMangaFragmentData_lastReadChapter && + G__typename == other.G__typename && + chapterNumber == other.chapterNumber && + fetchedAt == other.fetchedAt && + id == other.id && + isBookmarked == other.isBookmarked && + isDownloaded == other.isDownloaded && + isRead == other.isRead && + lastPageRead == other.lastPageRead && + lastReadAt == other.lastReadAt && + mangaId == other.mangaId && + name == other.name && + pageCount == other.pageCount && + realUrl == other.realUrl && + scanlator == other.scanlator && + sourceOrder == other.sourceOrder && + uploadDate == other.uploadDate && + url == other.url && + meta == other.meta; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, chapterNumber.hashCode); + _$hash = $jc(_$hash, fetchedAt.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, isBookmarked.hashCode); + _$hash = $jc(_$hash, isDownloaded.hashCode); + _$hash = $jc(_$hash, isRead.hashCode); + _$hash = $jc(_$hash, lastPageRead.hashCode); + _$hash = $jc(_$hash, lastReadAt.hashCode); + _$hash = $jc(_$hash, mangaId.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, pageCount.hashCode); + _$hash = $jc(_$hash, realUrl.hashCode); + _$hash = $jc(_$hash, scanlator.hashCode); + _$hash = $jc(_$hash, sourceOrder.hashCode); + _$hash = $jc(_$hash, uploadDate.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GMangaFragmentData_lastReadChapter') + ..add('G__typename', G__typename) + ..add('chapterNumber', chapterNumber) + ..add('fetchedAt', fetchedAt) + ..add('id', id) + ..add('isBookmarked', isBookmarked) + ..add('isDownloaded', isDownloaded) + ..add('isRead', isRead) + ..add('lastPageRead', lastPageRead) + ..add('lastReadAt', lastReadAt) + ..add('mangaId', mangaId) + ..add('name', name) + ..add('pageCount', pageCount) + ..add('realUrl', realUrl) + ..add('scanlator', scanlator) + ..add('sourceOrder', sourceOrder) + ..add('uploadDate', uploadDate) + ..add('url', url) + ..add('meta', meta)) + .toString(); + } +} + +class GMangaFragmentData_lastReadChapterBuilder + implements + Builder { + _$GMangaFragmentData_lastReadChapter? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + double? _chapterNumber; + double? get chapterNumber => _$this._chapterNumber; + set chapterNumber(double? chapterNumber) => + _$this._chapterNumber = chapterNumber; + + _i1.GLongStringBuilder? _fetchedAt; + _i1.GLongStringBuilder get fetchedAt => + _$this._fetchedAt ??= new _i1.GLongStringBuilder(); + set fetchedAt(_i1.GLongStringBuilder? fetchedAt) => + _$this._fetchedAt = fetchedAt; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + bool? _isBookmarked; + bool? get isBookmarked => _$this._isBookmarked; + set isBookmarked(bool? isBookmarked) => _$this._isBookmarked = isBookmarked; + + bool? _isDownloaded; + bool? get isDownloaded => _$this._isDownloaded; + set isDownloaded(bool? isDownloaded) => _$this._isDownloaded = isDownloaded; + + bool? _isRead; + bool? get isRead => _$this._isRead; + set isRead(bool? isRead) => _$this._isRead = isRead; + + int? _lastPageRead; + int? get lastPageRead => _$this._lastPageRead; + set lastPageRead(int? lastPageRead) => _$this._lastPageRead = lastPageRead; + + _i1.GLongStringBuilder? _lastReadAt; + _i1.GLongStringBuilder get lastReadAt => + _$this._lastReadAt ??= new _i1.GLongStringBuilder(); + set lastReadAt(_i1.GLongStringBuilder? lastReadAt) => + _$this._lastReadAt = lastReadAt; + + int? _mangaId; + int? get mangaId => _$this._mangaId; + set mangaId(int? mangaId) => _$this._mangaId = mangaId; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + int? _pageCount; + int? get pageCount => _$this._pageCount; + set pageCount(int? pageCount) => _$this._pageCount = pageCount; + + String? _realUrl; + String? get realUrl => _$this._realUrl; + set realUrl(String? realUrl) => _$this._realUrl = realUrl; + + String? _scanlator; + String? get scanlator => _$this._scanlator; + set scanlator(String? scanlator) => _$this._scanlator = scanlator; + + int? _sourceOrder; + int? get sourceOrder => _$this._sourceOrder; + set sourceOrder(int? sourceOrder) => _$this._sourceOrder = sourceOrder; + + _i1.GLongStringBuilder? _uploadDate; + _i1.GLongStringBuilder get uploadDate => + _$this._uploadDate ??= new _i1.GLongStringBuilder(); + set uploadDate(_i1.GLongStringBuilder? uploadDate) => + _$this._uploadDate = uploadDate; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + ListBuilder? _meta; + ListBuilder get meta => + _$this._meta ??= + new ListBuilder(); + set meta(ListBuilder? meta) => + _$this._meta = meta; + + GMangaFragmentData_lastReadChapterBuilder() { + GMangaFragmentData_lastReadChapter._initializeBuilder(this); + } + + GMangaFragmentData_lastReadChapterBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _chapterNumber = $v.chapterNumber; + _fetchedAt = $v.fetchedAt.toBuilder(); + _id = $v.id; + _isBookmarked = $v.isBookmarked; + _isDownloaded = $v.isDownloaded; + _isRead = $v.isRead; + _lastPageRead = $v.lastPageRead; + _lastReadAt = $v.lastReadAt.toBuilder(); + _mangaId = $v.mangaId; + _name = $v.name; + _pageCount = $v.pageCount; + _realUrl = $v.realUrl; + _scanlator = $v.scanlator; + _sourceOrder = $v.sourceOrder; + _uploadDate = $v.uploadDate.toBuilder(); + _url = $v.url; + _meta = $v.meta.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GMangaFragmentData_lastReadChapter other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMangaFragmentData_lastReadChapter; + } + + @override + void update( + void Function(GMangaFragmentData_lastReadChapterBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMangaFragmentData_lastReadChapter build() => _build(); + + _$GMangaFragmentData_lastReadChapter _build() { + _$GMangaFragmentData_lastReadChapter _$result; + try { + _$result = _$v ?? + new _$GMangaFragmentData_lastReadChapter._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GMangaFragmentData_lastReadChapter', 'G__typename'), + chapterNumber: BuiltValueNullFieldError.checkNotNull( + chapterNumber, r'GMangaFragmentData_lastReadChapter', 'chapterNumber'), + fetchedAt: fetchedAt.build(), + id: BuiltValueNullFieldError.checkNotNull( + id, r'GMangaFragmentData_lastReadChapter', 'id'), + isBookmarked: BuiltValueNullFieldError.checkNotNull( + isBookmarked, r'GMangaFragmentData_lastReadChapter', 'isBookmarked'), + isDownloaded: BuiltValueNullFieldError.checkNotNull( + isDownloaded, r'GMangaFragmentData_lastReadChapter', 'isDownloaded'), + isRead: BuiltValueNullFieldError.checkNotNull( + isRead, r'GMangaFragmentData_lastReadChapter', 'isRead'), + lastPageRead: BuiltValueNullFieldError.checkNotNull( + lastPageRead, r'GMangaFragmentData_lastReadChapter', 'lastPageRead'), + lastReadAt: lastReadAt.build(), + mangaId: BuiltValueNullFieldError.checkNotNull(mangaId, r'GMangaFragmentData_lastReadChapter', 'mangaId'), + name: BuiltValueNullFieldError.checkNotNull(name, r'GMangaFragmentData_lastReadChapter', 'name'), + pageCount: BuiltValueNullFieldError.checkNotNull(pageCount, r'GMangaFragmentData_lastReadChapter', 'pageCount'), + realUrl: realUrl, + scanlator: scanlator, + sourceOrder: BuiltValueNullFieldError.checkNotNull(sourceOrder, r'GMangaFragmentData_lastReadChapter', 'sourceOrder'), + uploadDate: uploadDate.build(), + url: BuiltValueNullFieldError.checkNotNull(url, r'GMangaFragmentData_lastReadChapter', 'url'), + meta: meta.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'fetchedAt'; + fetchedAt.build(); + + _$failedField = 'lastReadAt'; + lastReadAt.build(); + + _$failedField = 'uploadDate'; + uploadDate.build(); + + _$failedField = 'meta'; + meta.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GMangaFragmentData_lastReadChapter', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GMangaFragmentData_lastReadChapter_meta + extends GMangaFragmentData_lastReadChapter_meta { + @override + final String G__typename; + @override + final String key; + @override + final String value; + + factory _$GMangaFragmentData_lastReadChapter_meta( + [void Function(GMangaFragmentData_lastReadChapter_metaBuilder)? + updates]) => + (new GMangaFragmentData_lastReadChapter_metaBuilder()..update(updates)) + ._build(); + + _$GMangaFragmentData_lastReadChapter_meta._( + {required this.G__typename, required this.key, required this.value}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GMangaFragmentData_lastReadChapter_meta', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + key, r'GMangaFragmentData_lastReadChapter_meta', 'key'); + BuiltValueNullFieldError.checkNotNull( + value, r'GMangaFragmentData_lastReadChapter_meta', 'value'); + } + + @override + GMangaFragmentData_lastReadChapter_meta rebuild( + void Function(GMangaFragmentData_lastReadChapter_metaBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GMangaFragmentData_lastReadChapter_metaBuilder toBuilder() => + new GMangaFragmentData_lastReadChapter_metaBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMangaFragmentData_lastReadChapter_meta && + G__typename == other.G__typename && + key == other.key && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GMangaFragmentData_lastReadChapter_meta') + ..add('G__typename', G__typename) + ..add('key', key) + ..add('value', value)) + .toString(); + } +} + +class GMangaFragmentData_lastReadChapter_metaBuilder + implements + Builder { + _$GMangaFragmentData_lastReadChapter_meta? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GMangaFragmentData_lastReadChapter_metaBuilder() { + GMangaFragmentData_lastReadChapter_meta._initializeBuilder(this); + } + + GMangaFragmentData_lastReadChapter_metaBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _key = $v.key; + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GMangaFragmentData_lastReadChapter_meta other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMangaFragmentData_lastReadChapter_meta; + } + + @override + void update( + void Function(GMangaFragmentData_lastReadChapter_metaBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMangaFragmentData_lastReadChapter_meta build() => _build(); + + _$GMangaFragmentData_lastReadChapter_meta _build() { + final _$result = _$v ?? + new _$GMangaFragmentData_lastReadChapter_meta._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GMangaFragmentData_lastReadChapter_meta', 'G__typename'), + key: BuiltValueNullFieldError.checkNotNull( + key, r'GMangaFragmentData_lastReadChapter_meta', 'key'), + value: BuiltValueNullFieldError.checkNotNull( + value, r'GMangaFragmentData_lastReadChapter_meta', 'value')); + replace(_$result); + return _$result; + } +} + +class _$GMangaFragmentData_latestFetchedChapter + extends GMangaFragmentData_latestFetchedChapter { + @override + final String G__typename; + @override + final double chapterNumber; + @override + final _i1.GLongString fetchedAt; + @override + final int id; + @override + final bool isBookmarked; + @override + final bool isDownloaded; + @override + final bool isRead; + @override + final int lastPageRead; + @override + final _i1.GLongString lastReadAt; + @override + final int mangaId; + @override + final String name; + @override + final int pageCount; + @override + final String? realUrl; + @override + final String? scanlator; + @override + final int sourceOrder; + @override + final _i1.GLongString uploadDate; + @override + final String url; + @override + final BuiltList meta; + + factory _$GMangaFragmentData_latestFetchedChapter( + [void Function(GMangaFragmentData_latestFetchedChapterBuilder)? + updates]) => + (new GMangaFragmentData_latestFetchedChapterBuilder()..update(updates)) + ._build(); + + _$GMangaFragmentData_latestFetchedChapter._( + {required this.G__typename, + required this.chapterNumber, + required this.fetchedAt, + required this.id, + required this.isBookmarked, + required this.isDownloaded, + required this.isRead, + required this.lastPageRead, + required this.lastReadAt, + required this.mangaId, + required this.name, + required this.pageCount, + this.realUrl, + this.scanlator, + required this.sourceOrder, + required this.uploadDate, + required this.url, + required this.meta}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GMangaFragmentData_latestFetchedChapter', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(chapterNumber, + r'GMangaFragmentData_latestFetchedChapter', 'chapterNumber'); + BuiltValueNullFieldError.checkNotNull( + fetchedAt, r'GMangaFragmentData_latestFetchedChapter', 'fetchedAt'); + BuiltValueNullFieldError.checkNotNull( + id, r'GMangaFragmentData_latestFetchedChapter', 'id'); + BuiltValueNullFieldError.checkNotNull(isBookmarked, + r'GMangaFragmentData_latestFetchedChapter', 'isBookmarked'); + BuiltValueNullFieldError.checkNotNull(isDownloaded, + r'GMangaFragmentData_latestFetchedChapter', 'isDownloaded'); + BuiltValueNullFieldError.checkNotNull( + isRead, r'GMangaFragmentData_latestFetchedChapter', 'isRead'); + BuiltValueNullFieldError.checkNotNull(lastPageRead, + r'GMangaFragmentData_latestFetchedChapter', 'lastPageRead'); + BuiltValueNullFieldError.checkNotNull( + lastReadAt, r'GMangaFragmentData_latestFetchedChapter', 'lastReadAt'); + BuiltValueNullFieldError.checkNotNull( + mangaId, r'GMangaFragmentData_latestFetchedChapter', 'mangaId'); + BuiltValueNullFieldError.checkNotNull( + name, r'GMangaFragmentData_latestFetchedChapter', 'name'); + BuiltValueNullFieldError.checkNotNull( + pageCount, r'GMangaFragmentData_latestFetchedChapter', 'pageCount'); + BuiltValueNullFieldError.checkNotNull( + sourceOrder, r'GMangaFragmentData_latestFetchedChapter', 'sourceOrder'); + BuiltValueNullFieldError.checkNotNull( + uploadDate, r'GMangaFragmentData_latestFetchedChapter', 'uploadDate'); + BuiltValueNullFieldError.checkNotNull( + url, r'GMangaFragmentData_latestFetchedChapter', 'url'); + BuiltValueNullFieldError.checkNotNull( + meta, r'GMangaFragmentData_latestFetchedChapter', 'meta'); + } + + @override + GMangaFragmentData_latestFetchedChapter rebuild( + void Function(GMangaFragmentData_latestFetchedChapterBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GMangaFragmentData_latestFetchedChapterBuilder toBuilder() => + new GMangaFragmentData_latestFetchedChapterBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMangaFragmentData_latestFetchedChapter && + G__typename == other.G__typename && + chapterNumber == other.chapterNumber && + fetchedAt == other.fetchedAt && + id == other.id && + isBookmarked == other.isBookmarked && + isDownloaded == other.isDownloaded && + isRead == other.isRead && + lastPageRead == other.lastPageRead && + lastReadAt == other.lastReadAt && + mangaId == other.mangaId && + name == other.name && + pageCount == other.pageCount && + realUrl == other.realUrl && + scanlator == other.scanlator && + sourceOrder == other.sourceOrder && + uploadDate == other.uploadDate && + url == other.url && + meta == other.meta; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, chapterNumber.hashCode); + _$hash = $jc(_$hash, fetchedAt.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, isBookmarked.hashCode); + _$hash = $jc(_$hash, isDownloaded.hashCode); + _$hash = $jc(_$hash, isRead.hashCode); + _$hash = $jc(_$hash, lastPageRead.hashCode); + _$hash = $jc(_$hash, lastReadAt.hashCode); + _$hash = $jc(_$hash, mangaId.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, pageCount.hashCode); + _$hash = $jc(_$hash, realUrl.hashCode); + _$hash = $jc(_$hash, scanlator.hashCode); + _$hash = $jc(_$hash, sourceOrder.hashCode); + _$hash = $jc(_$hash, uploadDate.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GMangaFragmentData_latestFetchedChapter') + ..add('G__typename', G__typename) + ..add('chapterNumber', chapterNumber) + ..add('fetchedAt', fetchedAt) + ..add('id', id) + ..add('isBookmarked', isBookmarked) + ..add('isDownloaded', isDownloaded) + ..add('isRead', isRead) + ..add('lastPageRead', lastPageRead) + ..add('lastReadAt', lastReadAt) + ..add('mangaId', mangaId) + ..add('name', name) + ..add('pageCount', pageCount) + ..add('realUrl', realUrl) + ..add('scanlator', scanlator) + ..add('sourceOrder', sourceOrder) + ..add('uploadDate', uploadDate) + ..add('url', url) + ..add('meta', meta)) + .toString(); + } +} + +class GMangaFragmentData_latestFetchedChapterBuilder + implements + Builder { + _$GMangaFragmentData_latestFetchedChapter? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + double? _chapterNumber; + double? get chapterNumber => _$this._chapterNumber; + set chapterNumber(double? chapterNumber) => + _$this._chapterNumber = chapterNumber; + + _i1.GLongStringBuilder? _fetchedAt; + _i1.GLongStringBuilder get fetchedAt => + _$this._fetchedAt ??= new _i1.GLongStringBuilder(); + set fetchedAt(_i1.GLongStringBuilder? fetchedAt) => + _$this._fetchedAt = fetchedAt; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + bool? _isBookmarked; + bool? get isBookmarked => _$this._isBookmarked; + set isBookmarked(bool? isBookmarked) => _$this._isBookmarked = isBookmarked; + + bool? _isDownloaded; + bool? get isDownloaded => _$this._isDownloaded; + set isDownloaded(bool? isDownloaded) => _$this._isDownloaded = isDownloaded; + + bool? _isRead; + bool? get isRead => _$this._isRead; + set isRead(bool? isRead) => _$this._isRead = isRead; + + int? _lastPageRead; + int? get lastPageRead => _$this._lastPageRead; + set lastPageRead(int? lastPageRead) => _$this._lastPageRead = lastPageRead; + + _i1.GLongStringBuilder? _lastReadAt; + _i1.GLongStringBuilder get lastReadAt => + _$this._lastReadAt ??= new _i1.GLongStringBuilder(); + set lastReadAt(_i1.GLongStringBuilder? lastReadAt) => + _$this._lastReadAt = lastReadAt; + + int? _mangaId; + int? get mangaId => _$this._mangaId; + set mangaId(int? mangaId) => _$this._mangaId = mangaId; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + int? _pageCount; + int? get pageCount => _$this._pageCount; + set pageCount(int? pageCount) => _$this._pageCount = pageCount; + + String? _realUrl; + String? get realUrl => _$this._realUrl; + set realUrl(String? realUrl) => _$this._realUrl = realUrl; + + String? _scanlator; + String? get scanlator => _$this._scanlator; + set scanlator(String? scanlator) => _$this._scanlator = scanlator; + + int? _sourceOrder; + int? get sourceOrder => _$this._sourceOrder; + set sourceOrder(int? sourceOrder) => _$this._sourceOrder = sourceOrder; + + _i1.GLongStringBuilder? _uploadDate; + _i1.GLongStringBuilder get uploadDate => + _$this._uploadDate ??= new _i1.GLongStringBuilder(); + set uploadDate(_i1.GLongStringBuilder? uploadDate) => + _$this._uploadDate = uploadDate; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + ListBuilder? _meta; + ListBuilder get meta => + _$this._meta ??= + new ListBuilder(); + set meta(ListBuilder? meta) => + _$this._meta = meta; + + GMangaFragmentData_latestFetchedChapterBuilder() { + GMangaFragmentData_latestFetchedChapter._initializeBuilder(this); + } + + GMangaFragmentData_latestFetchedChapterBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _chapterNumber = $v.chapterNumber; + _fetchedAt = $v.fetchedAt.toBuilder(); + _id = $v.id; + _isBookmarked = $v.isBookmarked; + _isDownloaded = $v.isDownloaded; + _isRead = $v.isRead; + _lastPageRead = $v.lastPageRead; + _lastReadAt = $v.lastReadAt.toBuilder(); + _mangaId = $v.mangaId; + _name = $v.name; + _pageCount = $v.pageCount; + _realUrl = $v.realUrl; + _scanlator = $v.scanlator; + _sourceOrder = $v.sourceOrder; + _uploadDate = $v.uploadDate.toBuilder(); + _url = $v.url; + _meta = $v.meta.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GMangaFragmentData_latestFetchedChapter other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMangaFragmentData_latestFetchedChapter; + } + + @override + void update( + void Function(GMangaFragmentData_latestFetchedChapterBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMangaFragmentData_latestFetchedChapter build() => _build(); + + _$GMangaFragmentData_latestFetchedChapter _build() { + _$GMangaFragmentData_latestFetchedChapter _$result; + try { + _$result = _$v ?? + new _$GMangaFragmentData_latestFetchedChapter._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GMangaFragmentData_latestFetchedChapter', 'G__typename'), + chapterNumber: BuiltValueNullFieldError.checkNotNull( + chapterNumber, r'GMangaFragmentData_latestFetchedChapter', 'chapterNumber'), + fetchedAt: fetchedAt.build(), + id: BuiltValueNullFieldError.checkNotNull( + id, r'GMangaFragmentData_latestFetchedChapter', 'id'), + isBookmarked: BuiltValueNullFieldError.checkNotNull( + isBookmarked, r'GMangaFragmentData_latestFetchedChapter', 'isBookmarked'), + isDownloaded: BuiltValueNullFieldError.checkNotNull( + isDownloaded, r'GMangaFragmentData_latestFetchedChapter', 'isDownloaded'), + isRead: BuiltValueNullFieldError.checkNotNull( + isRead, r'GMangaFragmentData_latestFetchedChapter', 'isRead'), + lastPageRead: BuiltValueNullFieldError.checkNotNull( + lastPageRead, r'GMangaFragmentData_latestFetchedChapter', 'lastPageRead'), + lastReadAt: lastReadAt.build(), + mangaId: BuiltValueNullFieldError.checkNotNull(mangaId, r'GMangaFragmentData_latestFetchedChapter', 'mangaId'), + name: BuiltValueNullFieldError.checkNotNull(name, r'GMangaFragmentData_latestFetchedChapter', 'name'), + pageCount: BuiltValueNullFieldError.checkNotNull(pageCount, r'GMangaFragmentData_latestFetchedChapter', 'pageCount'), + realUrl: realUrl, + scanlator: scanlator, + sourceOrder: BuiltValueNullFieldError.checkNotNull(sourceOrder, r'GMangaFragmentData_latestFetchedChapter', 'sourceOrder'), + uploadDate: uploadDate.build(), + url: BuiltValueNullFieldError.checkNotNull(url, r'GMangaFragmentData_latestFetchedChapter', 'url'), + meta: meta.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'fetchedAt'; + fetchedAt.build(); + + _$failedField = 'lastReadAt'; + lastReadAt.build(); + + _$failedField = 'uploadDate'; + uploadDate.build(); + + _$failedField = 'meta'; + meta.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GMangaFragmentData_latestFetchedChapter', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GMangaFragmentData_latestFetchedChapter_meta + extends GMangaFragmentData_latestFetchedChapter_meta { + @override + final String G__typename; + @override + final String key; + @override + final String value; + + factory _$GMangaFragmentData_latestFetchedChapter_meta( + [void Function(GMangaFragmentData_latestFetchedChapter_metaBuilder)? + updates]) => + (new GMangaFragmentData_latestFetchedChapter_metaBuilder() + ..update(updates)) + ._build(); + + _$GMangaFragmentData_latestFetchedChapter_meta._( + {required this.G__typename, required this.key, required this.value}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GMangaFragmentData_latestFetchedChapter_meta', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + key, r'GMangaFragmentData_latestFetchedChapter_meta', 'key'); + BuiltValueNullFieldError.checkNotNull( + value, r'GMangaFragmentData_latestFetchedChapter_meta', 'value'); + } + + @override + GMangaFragmentData_latestFetchedChapter_meta rebuild( + void Function(GMangaFragmentData_latestFetchedChapter_metaBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GMangaFragmentData_latestFetchedChapter_metaBuilder toBuilder() => + new GMangaFragmentData_latestFetchedChapter_metaBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMangaFragmentData_latestFetchedChapter_meta && + G__typename == other.G__typename && + key == other.key && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GMangaFragmentData_latestFetchedChapter_meta') + ..add('G__typename', G__typename) + ..add('key', key) + ..add('value', value)) + .toString(); + } +} + +class GMangaFragmentData_latestFetchedChapter_metaBuilder + implements + Builder { + _$GMangaFragmentData_latestFetchedChapter_meta? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GMangaFragmentData_latestFetchedChapter_metaBuilder() { + GMangaFragmentData_latestFetchedChapter_meta._initializeBuilder(this); + } + + GMangaFragmentData_latestFetchedChapter_metaBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _key = $v.key; + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GMangaFragmentData_latestFetchedChapter_meta other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMangaFragmentData_latestFetchedChapter_meta; + } + + @override + void update( + void Function(GMangaFragmentData_latestFetchedChapter_metaBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GMangaFragmentData_latestFetchedChapter_meta build() => _build(); + + _$GMangaFragmentData_latestFetchedChapter_meta _build() { + final _$result = _$v ?? + new _$GMangaFragmentData_latestFetchedChapter_meta._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GMangaFragmentData_latestFetchedChapter_meta', 'G__typename'), + key: BuiltValueNullFieldError.checkNotNull( + key, r'GMangaFragmentData_latestFetchedChapter_meta', 'key'), + value: BuiltValueNullFieldError.checkNotNull(value, + r'GMangaFragmentData_latestFetchedChapter_meta', 'value')); + replace(_$result); + return _$result; + } +} + +class _$GMangaFragmentData_latestReadChapter + extends GMangaFragmentData_latestReadChapter { + @override + final String G__typename; + @override + final double chapterNumber; + @override + final _i1.GLongString fetchedAt; + @override + final int id; + @override + final bool isBookmarked; + @override + final bool isDownloaded; + @override + final bool isRead; + @override + final int lastPageRead; + @override + final _i1.GLongString lastReadAt; + @override + final int mangaId; + @override + final String name; + @override + final int pageCount; + @override + final String? realUrl; + @override + final String? scanlator; + @override + final int sourceOrder; + @override + final _i1.GLongString uploadDate; + @override + final String url; + @override + final BuiltList meta; + + factory _$GMangaFragmentData_latestReadChapter( + [void Function(GMangaFragmentData_latestReadChapterBuilder)? + updates]) => + (new GMangaFragmentData_latestReadChapterBuilder()..update(updates)) + ._build(); + + _$GMangaFragmentData_latestReadChapter._( + {required this.G__typename, + required this.chapterNumber, + required this.fetchedAt, + required this.id, + required this.isBookmarked, + required this.isDownloaded, + required this.isRead, + required this.lastPageRead, + required this.lastReadAt, + required this.mangaId, + required this.name, + required this.pageCount, + this.realUrl, + this.scanlator, + required this.sourceOrder, + required this.uploadDate, + required this.url, + required this.meta}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GMangaFragmentData_latestReadChapter', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(chapterNumber, + r'GMangaFragmentData_latestReadChapter', 'chapterNumber'); + BuiltValueNullFieldError.checkNotNull( + fetchedAt, r'GMangaFragmentData_latestReadChapter', 'fetchedAt'); + BuiltValueNullFieldError.checkNotNull( + id, r'GMangaFragmentData_latestReadChapter', 'id'); + BuiltValueNullFieldError.checkNotNull( + isBookmarked, r'GMangaFragmentData_latestReadChapter', 'isBookmarked'); + BuiltValueNullFieldError.checkNotNull( + isDownloaded, r'GMangaFragmentData_latestReadChapter', 'isDownloaded'); + BuiltValueNullFieldError.checkNotNull( + isRead, r'GMangaFragmentData_latestReadChapter', 'isRead'); + BuiltValueNullFieldError.checkNotNull( + lastPageRead, r'GMangaFragmentData_latestReadChapter', 'lastPageRead'); + BuiltValueNullFieldError.checkNotNull( + lastReadAt, r'GMangaFragmentData_latestReadChapter', 'lastReadAt'); + BuiltValueNullFieldError.checkNotNull( + mangaId, r'GMangaFragmentData_latestReadChapter', 'mangaId'); + BuiltValueNullFieldError.checkNotNull( + name, r'GMangaFragmentData_latestReadChapter', 'name'); + BuiltValueNullFieldError.checkNotNull( + pageCount, r'GMangaFragmentData_latestReadChapter', 'pageCount'); + BuiltValueNullFieldError.checkNotNull( + sourceOrder, r'GMangaFragmentData_latestReadChapter', 'sourceOrder'); + BuiltValueNullFieldError.checkNotNull( + uploadDate, r'GMangaFragmentData_latestReadChapter', 'uploadDate'); + BuiltValueNullFieldError.checkNotNull( + url, r'GMangaFragmentData_latestReadChapter', 'url'); + BuiltValueNullFieldError.checkNotNull( + meta, r'GMangaFragmentData_latestReadChapter', 'meta'); + } + + @override + GMangaFragmentData_latestReadChapter rebuild( + void Function(GMangaFragmentData_latestReadChapterBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GMangaFragmentData_latestReadChapterBuilder toBuilder() => + new GMangaFragmentData_latestReadChapterBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMangaFragmentData_latestReadChapter && + G__typename == other.G__typename && + chapterNumber == other.chapterNumber && + fetchedAt == other.fetchedAt && + id == other.id && + isBookmarked == other.isBookmarked && + isDownloaded == other.isDownloaded && + isRead == other.isRead && + lastPageRead == other.lastPageRead && + lastReadAt == other.lastReadAt && + mangaId == other.mangaId && + name == other.name && + pageCount == other.pageCount && + realUrl == other.realUrl && + scanlator == other.scanlator && + sourceOrder == other.sourceOrder && + uploadDate == other.uploadDate && + url == other.url && + meta == other.meta; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, chapterNumber.hashCode); + _$hash = $jc(_$hash, fetchedAt.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, isBookmarked.hashCode); + _$hash = $jc(_$hash, isDownloaded.hashCode); + _$hash = $jc(_$hash, isRead.hashCode); + _$hash = $jc(_$hash, lastPageRead.hashCode); + _$hash = $jc(_$hash, lastReadAt.hashCode); + _$hash = $jc(_$hash, mangaId.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, pageCount.hashCode); + _$hash = $jc(_$hash, realUrl.hashCode); + _$hash = $jc(_$hash, scanlator.hashCode); + _$hash = $jc(_$hash, sourceOrder.hashCode); + _$hash = $jc(_$hash, uploadDate.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GMangaFragmentData_latestReadChapter') + ..add('G__typename', G__typename) + ..add('chapterNumber', chapterNumber) + ..add('fetchedAt', fetchedAt) + ..add('id', id) + ..add('isBookmarked', isBookmarked) + ..add('isDownloaded', isDownloaded) + ..add('isRead', isRead) + ..add('lastPageRead', lastPageRead) + ..add('lastReadAt', lastReadAt) + ..add('mangaId', mangaId) + ..add('name', name) + ..add('pageCount', pageCount) + ..add('realUrl', realUrl) + ..add('scanlator', scanlator) + ..add('sourceOrder', sourceOrder) + ..add('uploadDate', uploadDate) + ..add('url', url) + ..add('meta', meta)) + .toString(); + } +} + +class GMangaFragmentData_latestReadChapterBuilder + implements + Builder { + _$GMangaFragmentData_latestReadChapter? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + double? _chapterNumber; + double? get chapterNumber => _$this._chapterNumber; + set chapterNumber(double? chapterNumber) => + _$this._chapterNumber = chapterNumber; + + _i1.GLongStringBuilder? _fetchedAt; + _i1.GLongStringBuilder get fetchedAt => + _$this._fetchedAt ??= new _i1.GLongStringBuilder(); + set fetchedAt(_i1.GLongStringBuilder? fetchedAt) => + _$this._fetchedAt = fetchedAt; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + bool? _isBookmarked; + bool? get isBookmarked => _$this._isBookmarked; + set isBookmarked(bool? isBookmarked) => _$this._isBookmarked = isBookmarked; + + bool? _isDownloaded; + bool? get isDownloaded => _$this._isDownloaded; + set isDownloaded(bool? isDownloaded) => _$this._isDownloaded = isDownloaded; + + bool? _isRead; + bool? get isRead => _$this._isRead; + set isRead(bool? isRead) => _$this._isRead = isRead; + + int? _lastPageRead; + int? get lastPageRead => _$this._lastPageRead; + set lastPageRead(int? lastPageRead) => _$this._lastPageRead = lastPageRead; + + _i1.GLongStringBuilder? _lastReadAt; + _i1.GLongStringBuilder get lastReadAt => + _$this._lastReadAt ??= new _i1.GLongStringBuilder(); + set lastReadAt(_i1.GLongStringBuilder? lastReadAt) => + _$this._lastReadAt = lastReadAt; + + int? _mangaId; + int? get mangaId => _$this._mangaId; + set mangaId(int? mangaId) => _$this._mangaId = mangaId; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + int? _pageCount; + int? get pageCount => _$this._pageCount; + set pageCount(int? pageCount) => _$this._pageCount = pageCount; + + String? _realUrl; + String? get realUrl => _$this._realUrl; + set realUrl(String? realUrl) => _$this._realUrl = realUrl; + + String? _scanlator; + String? get scanlator => _$this._scanlator; + set scanlator(String? scanlator) => _$this._scanlator = scanlator; + + int? _sourceOrder; + int? get sourceOrder => _$this._sourceOrder; + set sourceOrder(int? sourceOrder) => _$this._sourceOrder = sourceOrder; + + _i1.GLongStringBuilder? _uploadDate; + _i1.GLongStringBuilder get uploadDate => + _$this._uploadDate ??= new _i1.GLongStringBuilder(); + set uploadDate(_i1.GLongStringBuilder? uploadDate) => + _$this._uploadDate = uploadDate; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + ListBuilder? _meta; + ListBuilder get meta => + _$this._meta ??= + new ListBuilder(); + set meta(ListBuilder? meta) => + _$this._meta = meta; + + GMangaFragmentData_latestReadChapterBuilder() { + GMangaFragmentData_latestReadChapter._initializeBuilder(this); + } + + GMangaFragmentData_latestReadChapterBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _chapterNumber = $v.chapterNumber; + _fetchedAt = $v.fetchedAt.toBuilder(); + _id = $v.id; + _isBookmarked = $v.isBookmarked; + _isDownloaded = $v.isDownloaded; + _isRead = $v.isRead; + _lastPageRead = $v.lastPageRead; + _lastReadAt = $v.lastReadAt.toBuilder(); + _mangaId = $v.mangaId; + _name = $v.name; + _pageCount = $v.pageCount; + _realUrl = $v.realUrl; + _scanlator = $v.scanlator; + _sourceOrder = $v.sourceOrder; + _uploadDate = $v.uploadDate.toBuilder(); + _url = $v.url; + _meta = $v.meta.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GMangaFragmentData_latestReadChapter other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMangaFragmentData_latestReadChapter; + } + + @override + void update( + void Function(GMangaFragmentData_latestReadChapterBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMangaFragmentData_latestReadChapter build() => _build(); + + _$GMangaFragmentData_latestReadChapter _build() { + _$GMangaFragmentData_latestReadChapter _$result; + try { + _$result = _$v ?? + new _$GMangaFragmentData_latestReadChapter._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GMangaFragmentData_latestReadChapter', 'G__typename'), + chapterNumber: BuiltValueNullFieldError.checkNotNull( + chapterNumber, r'GMangaFragmentData_latestReadChapter', 'chapterNumber'), + fetchedAt: fetchedAt.build(), + id: BuiltValueNullFieldError.checkNotNull( + id, r'GMangaFragmentData_latestReadChapter', 'id'), + isBookmarked: BuiltValueNullFieldError.checkNotNull( + isBookmarked, r'GMangaFragmentData_latestReadChapter', 'isBookmarked'), + isDownloaded: BuiltValueNullFieldError.checkNotNull( + isDownloaded, r'GMangaFragmentData_latestReadChapter', 'isDownloaded'), + isRead: BuiltValueNullFieldError.checkNotNull( + isRead, r'GMangaFragmentData_latestReadChapter', 'isRead'), + lastPageRead: BuiltValueNullFieldError.checkNotNull( + lastPageRead, r'GMangaFragmentData_latestReadChapter', 'lastPageRead'), + lastReadAt: lastReadAt.build(), + mangaId: BuiltValueNullFieldError.checkNotNull(mangaId, r'GMangaFragmentData_latestReadChapter', 'mangaId'), + name: BuiltValueNullFieldError.checkNotNull(name, r'GMangaFragmentData_latestReadChapter', 'name'), + pageCount: BuiltValueNullFieldError.checkNotNull(pageCount, r'GMangaFragmentData_latestReadChapter', 'pageCount'), + realUrl: realUrl, + scanlator: scanlator, + sourceOrder: BuiltValueNullFieldError.checkNotNull(sourceOrder, r'GMangaFragmentData_latestReadChapter', 'sourceOrder'), + uploadDate: uploadDate.build(), + url: BuiltValueNullFieldError.checkNotNull(url, r'GMangaFragmentData_latestReadChapter', 'url'), + meta: meta.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'fetchedAt'; + fetchedAt.build(); + + _$failedField = 'lastReadAt'; + lastReadAt.build(); + + _$failedField = 'uploadDate'; + uploadDate.build(); + + _$failedField = 'meta'; + meta.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GMangaFragmentData_latestReadChapter', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GMangaFragmentData_latestReadChapter_meta + extends GMangaFragmentData_latestReadChapter_meta { + @override + final String G__typename; + @override + final String key; + @override + final String value; + + factory _$GMangaFragmentData_latestReadChapter_meta( + [void Function(GMangaFragmentData_latestReadChapter_metaBuilder)? + updates]) => + (new GMangaFragmentData_latestReadChapter_metaBuilder()..update(updates)) + ._build(); + + _$GMangaFragmentData_latestReadChapter_meta._( + {required this.G__typename, required this.key, required this.value}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GMangaFragmentData_latestReadChapter_meta', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + key, r'GMangaFragmentData_latestReadChapter_meta', 'key'); + BuiltValueNullFieldError.checkNotNull( + value, r'GMangaFragmentData_latestReadChapter_meta', 'value'); + } + + @override + GMangaFragmentData_latestReadChapter_meta rebuild( + void Function(GMangaFragmentData_latestReadChapter_metaBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GMangaFragmentData_latestReadChapter_metaBuilder toBuilder() => + new GMangaFragmentData_latestReadChapter_metaBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMangaFragmentData_latestReadChapter_meta && + G__typename == other.G__typename && + key == other.key && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GMangaFragmentData_latestReadChapter_meta') + ..add('G__typename', G__typename) + ..add('key', key) + ..add('value', value)) + .toString(); + } +} + +class GMangaFragmentData_latestReadChapter_metaBuilder + implements + Builder { + _$GMangaFragmentData_latestReadChapter_meta? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GMangaFragmentData_latestReadChapter_metaBuilder() { + GMangaFragmentData_latestReadChapter_meta._initializeBuilder(this); + } + + GMangaFragmentData_latestReadChapter_metaBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _key = $v.key; + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GMangaFragmentData_latestReadChapter_meta other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMangaFragmentData_latestReadChapter_meta; + } + + @override + void update( + void Function(GMangaFragmentData_latestReadChapter_metaBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GMangaFragmentData_latestReadChapter_meta build() => _build(); + + _$GMangaFragmentData_latestReadChapter_meta _build() { + final _$result = _$v ?? + new _$GMangaFragmentData_latestReadChapter_meta._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GMangaFragmentData_latestReadChapter_meta', 'G__typename'), + key: BuiltValueNullFieldError.checkNotNull( + key, r'GMangaFragmentData_latestReadChapter_meta', 'key'), + value: BuiltValueNullFieldError.checkNotNull( + value, r'GMangaFragmentData_latestReadChapter_meta', 'value')); + replace(_$result); + return _$result; + } +} + +class _$GMangaFragmentData_latestUploadedChapter + extends GMangaFragmentData_latestUploadedChapter { + @override + final String G__typename; + @override + final double chapterNumber; + @override + final _i1.GLongString fetchedAt; + @override + final int id; + @override + final bool isBookmarked; + @override + final bool isDownloaded; + @override + final bool isRead; + @override + final int lastPageRead; + @override + final _i1.GLongString lastReadAt; + @override + final int mangaId; + @override + final String name; + @override + final int pageCount; + @override + final String? realUrl; + @override + final String? scanlator; + @override + final int sourceOrder; + @override + final _i1.GLongString uploadDate; + @override + final String url; + @override + final BuiltList meta; + + factory _$GMangaFragmentData_latestUploadedChapter( + [void Function(GMangaFragmentData_latestUploadedChapterBuilder)? + updates]) => + (new GMangaFragmentData_latestUploadedChapterBuilder()..update(updates)) + ._build(); + + _$GMangaFragmentData_latestUploadedChapter._( + {required this.G__typename, + required this.chapterNumber, + required this.fetchedAt, + required this.id, + required this.isBookmarked, + required this.isDownloaded, + required this.isRead, + required this.lastPageRead, + required this.lastReadAt, + required this.mangaId, + required this.name, + required this.pageCount, + this.realUrl, + this.scanlator, + required this.sourceOrder, + required this.uploadDate, + required this.url, + required this.meta}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GMangaFragmentData_latestUploadedChapter', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(chapterNumber, + r'GMangaFragmentData_latestUploadedChapter', 'chapterNumber'); + BuiltValueNullFieldError.checkNotNull( + fetchedAt, r'GMangaFragmentData_latestUploadedChapter', 'fetchedAt'); + BuiltValueNullFieldError.checkNotNull( + id, r'GMangaFragmentData_latestUploadedChapter', 'id'); + BuiltValueNullFieldError.checkNotNull(isBookmarked, + r'GMangaFragmentData_latestUploadedChapter', 'isBookmarked'); + BuiltValueNullFieldError.checkNotNull(isDownloaded, + r'GMangaFragmentData_latestUploadedChapter', 'isDownloaded'); + BuiltValueNullFieldError.checkNotNull( + isRead, r'GMangaFragmentData_latestUploadedChapter', 'isRead'); + BuiltValueNullFieldError.checkNotNull(lastPageRead, + r'GMangaFragmentData_latestUploadedChapter', 'lastPageRead'); + BuiltValueNullFieldError.checkNotNull( + lastReadAt, r'GMangaFragmentData_latestUploadedChapter', 'lastReadAt'); + BuiltValueNullFieldError.checkNotNull( + mangaId, r'GMangaFragmentData_latestUploadedChapter', 'mangaId'); + BuiltValueNullFieldError.checkNotNull( + name, r'GMangaFragmentData_latestUploadedChapter', 'name'); + BuiltValueNullFieldError.checkNotNull( + pageCount, r'GMangaFragmentData_latestUploadedChapter', 'pageCount'); + BuiltValueNullFieldError.checkNotNull(sourceOrder, + r'GMangaFragmentData_latestUploadedChapter', 'sourceOrder'); + BuiltValueNullFieldError.checkNotNull( + uploadDate, r'GMangaFragmentData_latestUploadedChapter', 'uploadDate'); + BuiltValueNullFieldError.checkNotNull( + url, r'GMangaFragmentData_latestUploadedChapter', 'url'); + BuiltValueNullFieldError.checkNotNull( + meta, r'GMangaFragmentData_latestUploadedChapter', 'meta'); + } + + @override + GMangaFragmentData_latestUploadedChapter rebuild( + void Function(GMangaFragmentData_latestUploadedChapterBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GMangaFragmentData_latestUploadedChapterBuilder toBuilder() => + new GMangaFragmentData_latestUploadedChapterBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMangaFragmentData_latestUploadedChapter && + G__typename == other.G__typename && + chapterNumber == other.chapterNumber && + fetchedAt == other.fetchedAt && + id == other.id && + isBookmarked == other.isBookmarked && + isDownloaded == other.isDownloaded && + isRead == other.isRead && + lastPageRead == other.lastPageRead && + lastReadAt == other.lastReadAt && + mangaId == other.mangaId && + name == other.name && + pageCount == other.pageCount && + realUrl == other.realUrl && + scanlator == other.scanlator && + sourceOrder == other.sourceOrder && + uploadDate == other.uploadDate && + url == other.url && + meta == other.meta; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, chapterNumber.hashCode); + _$hash = $jc(_$hash, fetchedAt.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, isBookmarked.hashCode); + _$hash = $jc(_$hash, isDownloaded.hashCode); + _$hash = $jc(_$hash, isRead.hashCode); + _$hash = $jc(_$hash, lastPageRead.hashCode); + _$hash = $jc(_$hash, lastReadAt.hashCode); + _$hash = $jc(_$hash, mangaId.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, pageCount.hashCode); + _$hash = $jc(_$hash, realUrl.hashCode); + _$hash = $jc(_$hash, scanlator.hashCode); + _$hash = $jc(_$hash, sourceOrder.hashCode); + _$hash = $jc(_$hash, uploadDate.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GMangaFragmentData_latestUploadedChapter') + ..add('G__typename', G__typename) + ..add('chapterNumber', chapterNumber) + ..add('fetchedAt', fetchedAt) + ..add('id', id) + ..add('isBookmarked', isBookmarked) + ..add('isDownloaded', isDownloaded) + ..add('isRead', isRead) + ..add('lastPageRead', lastPageRead) + ..add('lastReadAt', lastReadAt) + ..add('mangaId', mangaId) + ..add('name', name) + ..add('pageCount', pageCount) + ..add('realUrl', realUrl) + ..add('scanlator', scanlator) + ..add('sourceOrder', sourceOrder) + ..add('uploadDate', uploadDate) + ..add('url', url) + ..add('meta', meta)) + .toString(); + } +} + +class GMangaFragmentData_latestUploadedChapterBuilder + implements + Builder { + _$GMangaFragmentData_latestUploadedChapter? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + double? _chapterNumber; + double? get chapterNumber => _$this._chapterNumber; + set chapterNumber(double? chapterNumber) => + _$this._chapterNumber = chapterNumber; + + _i1.GLongStringBuilder? _fetchedAt; + _i1.GLongStringBuilder get fetchedAt => + _$this._fetchedAt ??= new _i1.GLongStringBuilder(); + set fetchedAt(_i1.GLongStringBuilder? fetchedAt) => + _$this._fetchedAt = fetchedAt; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + bool? _isBookmarked; + bool? get isBookmarked => _$this._isBookmarked; + set isBookmarked(bool? isBookmarked) => _$this._isBookmarked = isBookmarked; + + bool? _isDownloaded; + bool? get isDownloaded => _$this._isDownloaded; + set isDownloaded(bool? isDownloaded) => _$this._isDownloaded = isDownloaded; + + bool? _isRead; + bool? get isRead => _$this._isRead; + set isRead(bool? isRead) => _$this._isRead = isRead; + + int? _lastPageRead; + int? get lastPageRead => _$this._lastPageRead; + set lastPageRead(int? lastPageRead) => _$this._lastPageRead = lastPageRead; + + _i1.GLongStringBuilder? _lastReadAt; + _i1.GLongStringBuilder get lastReadAt => + _$this._lastReadAt ??= new _i1.GLongStringBuilder(); + set lastReadAt(_i1.GLongStringBuilder? lastReadAt) => + _$this._lastReadAt = lastReadAt; + + int? _mangaId; + int? get mangaId => _$this._mangaId; + set mangaId(int? mangaId) => _$this._mangaId = mangaId; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + int? _pageCount; + int? get pageCount => _$this._pageCount; + set pageCount(int? pageCount) => _$this._pageCount = pageCount; + + String? _realUrl; + String? get realUrl => _$this._realUrl; + set realUrl(String? realUrl) => _$this._realUrl = realUrl; + + String? _scanlator; + String? get scanlator => _$this._scanlator; + set scanlator(String? scanlator) => _$this._scanlator = scanlator; + + int? _sourceOrder; + int? get sourceOrder => _$this._sourceOrder; + set sourceOrder(int? sourceOrder) => _$this._sourceOrder = sourceOrder; + + _i1.GLongStringBuilder? _uploadDate; + _i1.GLongStringBuilder get uploadDate => + _$this._uploadDate ??= new _i1.GLongStringBuilder(); + set uploadDate(_i1.GLongStringBuilder? uploadDate) => + _$this._uploadDate = uploadDate; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + ListBuilder? _meta; + ListBuilder get meta => + _$this._meta ??= + new ListBuilder(); + set meta(ListBuilder? meta) => + _$this._meta = meta; + + GMangaFragmentData_latestUploadedChapterBuilder() { + GMangaFragmentData_latestUploadedChapter._initializeBuilder(this); + } + + GMangaFragmentData_latestUploadedChapterBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _chapterNumber = $v.chapterNumber; + _fetchedAt = $v.fetchedAt.toBuilder(); + _id = $v.id; + _isBookmarked = $v.isBookmarked; + _isDownloaded = $v.isDownloaded; + _isRead = $v.isRead; + _lastPageRead = $v.lastPageRead; + _lastReadAt = $v.lastReadAt.toBuilder(); + _mangaId = $v.mangaId; + _name = $v.name; + _pageCount = $v.pageCount; + _realUrl = $v.realUrl; + _scanlator = $v.scanlator; + _sourceOrder = $v.sourceOrder; + _uploadDate = $v.uploadDate.toBuilder(); + _url = $v.url; + _meta = $v.meta.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GMangaFragmentData_latestUploadedChapter other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMangaFragmentData_latestUploadedChapter; + } + + @override + void update( + void Function(GMangaFragmentData_latestUploadedChapterBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMangaFragmentData_latestUploadedChapter build() => _build(); + + _$GMangaFragmentData_latestUploadedChapter _build() { + _$GMangaFragmentData_latestUploadedChapter _$result; + try { + _$result = _$v ?? + new _$GMangaFragmentData_latestUploadedChapter._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GMangaFragmentData_latestUploadedChapter', 'G__typename'), + chapterNumber: BuiltValueNullFieldError.checkNotNull( + chapterNumber, r'GMangaFragmentData_latestUploadedChapter', 'chapterNumber'), + fetchedAt: fetchedAt.build(), + id: BuiltValueNullFieldError.checkNotNull( + id, r'GMangaFragmentData_latestUploadedChapter', 'id'), + isBookmarked: BuiltValueNullFieldError.checkNotNull( + isBookmarked, r'GMangaFragmentData_latestUploadedChapter', 'isBookmarked'), + isDownloaded: BuiltValueNullFieldError.checkNotNull( + isDownloaded, r'GMangaFragmentData_latestUploadedChapter', 'isDownloaded'), + isRead: BuiltValueNullFieldError.checkNotNull( + isRead, r'GMangaFragmentData_latestUploadedChapter', 'isRead'), + lastPageRead: BuiltValueNullFieldError.checkNotNull( + lastPageRead, r'GMangaFragmentData_latestUploadedChapter', 'lastPageRead'), + lastReadAt: lastReadAt.build(), + mangaId: BuiltValueNullFieldError.checkNotNull(mangaId, r'GMangaFragmentData_latestUploadedChapter', 'mangaId'), + name: BuiltValueNullFieldError.checkNotNull(name, r'GMangaFragmentData_latestUploadedChapter', 'name'), + pageCount: BuiltValueNullFieldError.checkNotNull(pageCount, r'GMangaFragmentData_latestUploadedChapter', 'pageCount'), + realUrl: realUrl, + scanlator: scanlator, + sourceOrder: BuiltValueNullFieldError.checkNotNull(sourceOrder, r'GMangaFragmentData_latestUploadedChapter', 'sourceOrder'), + uploadDate: uploadDate.build(), + url: BuiltValueNullFieldError.checkNotNull(url, r'GMangaFragmentData_latestUploadedChapter', 'url'), + meta: meta.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'fetchedAt'; + fetchedAt.build(); + + _$failedField = 'lastReadAt'; + lastReadAt.build(); + + _$failedField = 'uploadDate'; + uploadDate.build(); + + _$failedField = 'meta'; + meta.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GMangaFragmentData_latestUploadedChapter', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GMangaFragmentData_latestUploadedChapter_meta + extends GMangaFragmentData_latestUploadedChapter_meta { + @override + final String G__typename; + @override + final String key; + @override + final String value; + + factory _$GMangaFragmentData_latestUploadedChapter_meta( + [void Function(GMangaFragmentData_latestUploadedChapter_metaBuilder)? + updates]) => + (new GMangaFragmentData_latestUploadedChapter_metaBuilder() + ..update(updates)) + ._build(); + + _$GMangaFragmentData_latestUploadedChapter_meta._( + {required this.G__typename, required this.key, required this.value}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GMangaFragmentData_latestUploadedChapter_meta', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + key, r'GMangaFragmentData_latestUploadedChapter_meta', 'key'); + BuiltValueNullFieldError.checkNotNull( + value, r'GMangaFragmentData_latestUploadedChapter_meta', 'value'); + } + + @override + GMangaFragmentData_latestUploadedChapter_meta rebuild( + void Function(GMangaFragmentData_latestUploadedChapter_metaBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GMangaFragmentData_latestUploadedChapter_metaBuilder toBuilder() => + new GMangaFragmentData_latestUploadedChapter_metaBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMangaFragmentData_latestUploadedChapter_meta && + G__typename == other.G__typename && + key == other.key && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GMangaFragmentData_latestUploadedChapter_meta') + ..add('G__typename', G__typename) + ..add('key', key) + ..add('value', value)) + .toString(); + } +} + +class GMangaFragmentData_latestUploadedChapter_metaBuilder + implements + Builder { + _$GMangaFragmentData_latestUploadedChapter_meta? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GMangaFragmentData_latestUploadedChapter_metaBuilder() { + GMangaFragmentData_latestUploadedChapter_meta._initializeBuilder(this); + } + + GMangaFragmentData_latestUploadedChapter_metaBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _key = $v.key; + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GMangaFragmentData_latestUploadedChapter_meta other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMangaFragmentData_latestUploadedChapter_meta; + } + + @override + void update( + void Function(GMangaFragmentData_latestUploadedChapter_metaBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GMangaFragmentData_latestUploadedChapter_meta build() => _build(); + + _$GMangaFragmentData_latestUploadedChapter_meta _build() { + final _$result = _$v ?? + new _$GMangaFragmentData_latestUploadedChapter_meta._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GMangaFragmentData_latestUploadedChapter_meta', + 'G__typename'), + key: BuiltValueNullFieldError.checkNotNull( + key, r'GMangaFragmentData_latestUploadedChapter_meta', 'key'), + value: BuiltValueNullFieldError.checkNotNull(value, + r'GMangaFragmentData_latestUploadedChapter_meta', 'value')); + replace(_$result); + return _$result; + } +} + +class _$GMangaFragmentData_meta extends GMangaFragmentData_meta { + @override + final String G__typename; + @override + final String key; + @override + final String value; + + factory _$GMangaFragmentData_meta( + [void Function(GMangaFragmentData_metaBuilder)? updates]) => + (new GMangaFragmentData_metaBuilder()..update(updates))._build(); + + _$GMangaFragmentData_meta._( + {required this.G__typename, required this.key, required this.value}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GMangaFragmentData_meta', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + key, r'GMangaFragmentData_meta', 'key'); + BuiltValueNullFieldError.checkNotNull( + value, r'GMangaFragmentData_meta', 'value'); + } + + @override + GMangaFragmentData_meta rebuild( + void Function(GMangaFragmentData_metaBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GMangaFragmentData_metaBuilder toBuilder() => + new GMangaFragmentData_metaBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMangaFragmentData_meta && + G__typename == other.G__typename && + key == other.key && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GMangaFragmentData_meta') + ..add('G__typename', G__typename) + ..add('key', key) + ..add('value', value)) + .toString(); + } +} + +class GMangaFragmentData_metaBuilder + implements + Builder { + _$GMangaFragmentData_meta? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GMangaFragmentData_metaBuilder() { + GMangaFragmentData_meta._initializeBuilder(this); + } + + GMangaFragmentData_metaBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _key = $v.key; + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GMangaFragmentData_meta other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMangaFragmentData_meta; + } + + @override + void update(void Function(GMangaFragmentData_metaBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMangaFragmentData_meta build() => _build(); + + _$GMangaFragmentData_meta _build() { + final _$result = _$v ?? + new _$GMangaFragmentData_meta._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GMangaFragmentData_meta', 'G__typename'), + key: BuiltValueNullFieldError.checkNotNull( + key, r'GMangaFragmentData_meta', 'key'), + value: BuiltValueNullFieldError.checkNotNull( + value, r'GMangaFragmentData_meta', 'value')); + replace(_$result); + return _$result; + } +} + +class _$GMangaFragmentData_source extends GMangaFragmentData_source { + @override + final String G__typename; + @override + final String displayName; + @override + final String iconUrl; + @override + final _i1.GLongString id; + @override + final bool isConfigurable; + @override + final bool isNsfw; + @override + final String lang; + @override + final String name; + @override + final bool supportsLatest; + @override + final GMangaFragmentData_source_extension extension; + + factory _$GMangaFragmentData_source( + [void Function(GMangaFragmentData_sourceBuilder)? updates]) => + (new GMangaFragmentData_sourceBuilder()..update(updates))._build(); + + _$GMangaFragmentData_source._( + {required this.G__typename, + required this.displayName, + required this.iconUrl, + required this.id, + required this.isConfigurable, + required this.isNsfw, + required this.lang, + required this.name, + required this.supportsLatest, + required this.extension}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GMangaFragmentData_source', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + displayName, r'GMangaFragmentData_source', 'displayName'); + BuiltValueNullFieldError.checkNotNull( + iconUrl, r'GMangaFragmentData_source', 'iconUrl'); + BuiltValueNullFieldError.checkNotNull( + id, r'GMangaFragmentData_source', 'id'); + BuiltValueNullFieldError.checkNotNull( + isConfigurable, r'GMangaFragmentData_source', 'isConfigurable'); + BuiltValueNullFieldError.checkNotNull( + isNsfw, r'GMangaFragmentData_source', 'isNsfw'); + BuiltValueNullFieldError.checkNotNull( + lang, r'GMangaFragmentData_source', 'lang'); + BuiltValueNullFieldError.checkNotNull( + name, r'GMangaFragmentData_source', 'name'); + BuiltValueNullFieldError.checkNotNull( + supportsLatest, r'GMangaFragmentData_source', 'supportsLatest'); + BuiltValueNullFieldError.checkNotNull( + extension, r'GMangaFragmentData_source', 'extension'); + } + + @override + GMangaFragmentData_source rebuild( + void Function(GMangaFragmentData_sourceBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GMangaFragmentData_sourceBuilder toBuilder() => + new GMangaFragmentData_sourceBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMangaFragmentData_source && + G__typename == other.G__typename && + displayName == other.displayName && + iconUrl == other.iconUrl && + id == other.id && + isConfigurable == other.isConfigurable && + isNsfw == other.isNsfw && + lang == other.lang && + name == other.name && + supportsLatest == other.supportsLatest && + extension == other.extension; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, displayName.hashCode); + _$hash = $jc(_$hash, iconUrl.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, isConfigurable.hashCode); + _$hash = $jc(_$hash, isNsfw.hashCode); + _$hash = $jc(_$hash, lang.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, supportsLatest.hashCode); + _$hash = $jc(_$hash, extension.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GMangaFragmentData_source') + ..add('G__typename', G__typename) + ..add('displayName', displayName) + ..add('iconUrl', iconUrl) + ..add('id', id) + ..add('isConfigurable', isConfigurable) + ..add('isNsfw', isNsfw) + ..add('lang', lang) + ..add('name', name) + ..add('supportsLatest', supportsLatest) + ..add('extension', extension)) + .toString(); + } +} + +class GMangaFragmentData_sourceBuilder + implements + Builder { + _$GMangaFragmentData_source? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _displayName; + String? get displayName => _$this._displayName; + set displayName(String? displayName) => _$this._displayName = displayName; + + String? _iconUrl; + String? get iconUrl => _$this._iconUrl; + set iconUrl(String? iconUrl) => _$this._iconUrl = iconUrl; + + _i1.GLongStringBuilder? _id; + _i1.GLongStringBuilder get id => _$this._id ??= new _i1.GLongStringBuilder(); + set id(_i1.GLongStringBuilder? id) => _$this._id = id; + + bool? _isConfigurable; + bool? get isConfigurable => _$this._isConfigurable; + set isConfigurable(bool? isConfigurable) => + _$this._isConfigurable = isConfigurable; + + bool? _isNsfw; + bool? get isNsfw => _$this._isNsfw; + set isNsfw(bool? isNsfw) => _$this._isNsfw = isNsfw; + + String? _lang; + String? get lang => _$this._lang; + set lang(String? lang) => _$this._lang = lang; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + bool? _supportsLatest; + bool? get supportsLatest => _$this._supportsLatest; + set supportsLatest(bool? supportsLatest) => + _$this._supportsLatest = supportsLatest; + + GMangaFragmentData_source_extensionBuilder? _extension; + GMangaFragmentData_source_extensionBuilder get extension => + _$this._extension ??= new GMangaFragmentData_source_extensionBuilder(); + set extension(GMangaFragmentData_source_extensionBuilder? extension) => + _$this._extension = extension; + + GMangaFragmentData_sourceBuilder() { + GMangaFragmentData_source._initializeBuilder(this); + } + + GMangaFragmentData_sourceBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _displayName = $v.displayName; + _iconUrl = $v.iconUrl; + _id = $v.id.toBuilder(); + _isConfigurable = $v.isConfigurable; + _isNsfw = $v.isNsfw; + _lang = $v.lang; + _name = $v.name; + _supportsLatest = $v.supportsLatest; + _extension = $v.extension.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GMangaFragmentData_source other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMangaFragmentData_source; + } + + @override + void update(void Function(GMangaFragmentData_sourceBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMangaFragmentData_source build() => _build(); + + _$GMangaFragmentData_source _build() { + _$GMangaFragmentData_source _$result; + try { + _$result = _$v ?? + new _$GMangaFragmentData_source._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GMangaFragmentData_source', 'G__typename'), + displayName: BuiltValueNullFieldError.checkNotNull( + displayName, r'GMangaFragmentData_source', 'displayName'), + iconUrl: BuiltValueNullFieldError.checkNotNull( + iconUrl, r'GMangaFragmentData_source', 'iconUrl'), + id: id.build(), + isConfigurable: BuiltValueNullFieldError.checkNotNull( + isConfigurable, r'GMangaFragmentData_source', 'isConfigurable'), + isNsfw: BuiltValueNullFieldError.checkNotNull( + isNsfw, r'GMangaFragmentData_source', 'isNsfw'), + lang: BuiltValueNullFieldError.checkNotNull( + lang, r'GMangaFragmentData_source', 'lang'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'GMangaFragmentData_source', 'name'), + supportsLatest: BuiltValueNullFieldError.checkNotNull( + supportsLatest, r'GMangaFragmentData_source', 'supportsLatest'), + extension: extension.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'id'; + id.build(); + + _$failedField = 'extension'; + extension.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GMangaFragmentData_source', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GMangaFragmentData_source_extension + extends GMangaFragmentData_source_extension { + @override + final String G__typename; + @override + final String pkgName; + @override + final String? repo; + + factory _$GMangaFragmentData_source_extension( + [void Function(GMangaFragmentData_source_extensionBuilder)? + updates]) => + (new GMangaFragmentData_source_extensionBuilder()..update(updates)) + ._build(); + + _$GMangaFragmentData_source_extension._( + {required this.G__typename, required this.pkgName, this.repo}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GMangaFragmentData_source_extension', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + pkgName, r'GMangaFragmentData_source_extension', 'pkgName'); + } + + @override + GMangaFragmentData_source_extension rebuild( + void Function(GMangaFragmentData_source_extensionBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GMangaFragmentData_source_extensionBuilder toBuilder() => + new GMangaFragmentData_source_extensionBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMangaFragmentData_source_extension && + G__typename == other.G__typename && + pkgName == other.pkgName && + repo == other.repo; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, pkgName.hashCode); + _$hash = $jc(_$hash, repo.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GMangaFragmentData_source_extension') + ..add('G__typename', G__typename) + ..add('pkgName', pkgName) + ..add('repo', repo)) + .toString(); + } +} + +class GMangaFragmentData_source_extensionBuilder + implements + Builder { + _$GMangaFragmentData_source_extension? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _pkgName; + String? get pkgName => _$this._pkgName; + set pkgName(String? pkgName) => _$this._pkgName = pkgName; + + String? _repo; + String? get repo => _$this._repo; + set repo(String? repo) => _$this._repo = repo; + + GMangaFragmentData_source_extensionBuilder() { + GMangaFragmentData_source_extension._initializeBuilder(this); + } + + GMangaFragmentData_source_extensionBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _pkgName = $v.pkgName; + _repo = $v.repo; + _$v = null; + } + return this; + } + + @override + void replace(GMangaFragmentData_source_extension other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMangaFragmentData_source_extension; + } + + @override + void update( + void Function(GMangaFragmentData_source_extensionBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMangaFragmentData_source_extension build() => _build(); + + _$GMangaFragmentData_source_extension _build() { + final _$result = _$v ?? + new _$GMangaFragmentData_source_extension._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GMangaFragmentData_source_extension', 'G__typename'), + pkgName: BuiltValueNullFieldError.checkNotNull( + pkgName, r'GMangaFragmentData_source_extension', 'pkgName'), + repo: repo); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/manga_book/domain/manga/graphql/__generated__/fragment.req.gql.dart b/lib/src/features/manga_book/domain/manga/graphql/__generated__/fragment.req.gql.dart new file mode 100644 index 00000000..c5be2409 --- /dev/null +++ b/lib/src/features/manga_book/domain/manga/graphql/__generated__/fragment.req.gql.dart @@ -0,0 +1,65 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql/ast.dart' as _i5; +import 'package:tachidesk_sorayomi/src/features/manga_book/domain/manga/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/manga_book/domain/manga/graphql/__generated__/fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/manga_book/domain/manga/graphql/__generated__/fragment.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'fragment.req.gql.g.dart'; + +abstract class GMangaFragmentReq + implements + Built, + _i1.FragmentRequest<_i2.GMangaFragmentData, _i3.GMangaFragmentVars> { + GMangaFragmentReq._(); + + factory GMangaFragmentReq( + [void Function(GMangaFragmentReqBuilder b) updates]) = + _$GMangaFragmentReq; + + static void _initializeBuilder(GMangaFragmentReqBuilder b) => b + ..document = _i4.document + ..fragmentName = 'MangaFragment'; + + @override + _i3.GMangaFragmentVars get vars; + @override + _i5.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GMangaFragmentData? parseData(Map json) => + _i2.GMangaFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GMangaFragmentData data) => data.toJson(); + + static Serializer get serializer => + _$gMangaFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GMangaFragmentReq.serializer, + this, + ) as Map); + + static GMangaFragmentReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GMangaFragmentReq.serializer, + json, + ); +} diff --git a/lib/src/features/manga_book/domain/manga/graphql/__generated__/fragment.req.gql.g.dart b/lib/src/features/manga_book/domain/manga/graphql/__generated__/fragment.req.gql.g.dart new file mode 100644 index 00000000..0d8f2a5c --- /dev/null +++ b/lib/src/features/manga_book/domain/manga/graphql/__generated__/fragment.req.gql.g.dart @@ -0,0 +1,230 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gMangaFragmentReqSerializer = + new _$GMangaFragmentReqSerializer(); + +class _$GMangaFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GMangaFragmentReq, _$GMangaFragmentReq]; + @override + final String wireName = 'GMangaFragmentReq'; + + @override + Iterable serialize(Serializers serializers, GMangaFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GMangaFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i5.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GMangaFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMangaFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GMangaFragmentVars))! + as _i3.GMangaFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i5.DocumentNode))! + as _i5.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GMangaFragmentReq extends GMangaFragmentReq { + @override + final _i3.GMangaFragmentVars vars; + @override + final _i5.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GMangaFragmentReq( + [void Function(GMangaFragmentReqBuilder)? updates]) => + (new GMangaFragmentReqBuilder()..update(updates))._build(); + + _$GMangaFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GMangaFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GMangaFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GMangaFragmentReq', 'idFields'); + } + + @override + GMangaFragmentReq rebuild(void Function(GMangaFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GMangaFragmentReqBuilder toBuilder() => + new GMangaFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMangaFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GMangaFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GMangaFragmentReqBuilder + implements Builder { + _$GMangaFragmentReq? _$v; + + _i3.GMangaFragmentVarsBuilder? _vars; + _i3.GMangaFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GMangaFragmentVarsBuilder(); + set vars(_i3.GMangaFragmentVarsBuilder? vars) => _$this._vars = vars; + + _i5.DocumentNode? _document; + _i5.DocumentNode? get document => _$this._document; + set document(_i5.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GMangaFragmentReqBuilder() { + GMangaFragmentReq._initializeBuilder(this); + } + + GMangaFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GMangaFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMangaFragmentReq; + } + + @override + void update(void Function(GMangaFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMangaFragmentReq build() => _build(); + + _$GMangaFragmentReq _build() { + _$GMangaFragmentReq _$result; + try { + _$result = _$v ?? + new _$GMangaFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GMangaFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GMangaFragmentReq', 'idFields')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GMangaFragmentReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/manga_book/domain/manga/graphql/__generated__/fragment.var.gql.dart b/lib/src/features/manga_book/domain/manga/graphql/__generated__/fragment.var.gql.dart new file mode 100644 index 00000000..5469c911 --- /dev/null +++ b/lib/src/features/manga_book/domain/manga/graphql/__generated__/fragment.var.gql.dart @@ -0,0 +1,33 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragment.var.gql.g.dart'; + +abstract class GMangaFragmentVars + implements Built { + GMangaFragmentVars._(); + + factory GMangaFragmentVars( + [void Function(GMangaFragmentVarsBuilder b) updates]) = + _$GMangaFragmentVars; + + static Serializer get serializer => + _$gMangaFragmentVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GMangaFragmentVars.serializer, + this, + ) as Map); + + static GMangaFragmentVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GMangaFragmentVars.serializer, + json, + ); +} diff --git a/lib/src/features/manga_book/domain/manga/graphql/__generated__/fragment.var.gql.g.dart b/lib/src/features/manga_book/domain/manga/graphql/__generated__/fragment.var.gql.g.dart new file mode 100644 index 00000000..8ba8a066 --- /dev/null +++ b/lib/src/features/manga_book/domain/manga/graphql/__generated__/fragment.var.gql.g.dart @@ -0,0 +1,94 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gMangaFragmentVarsSerializer = + new _$GMangaFragmentVarsSerializer(); + +class _$GMangaFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GMangaFragmentVars, _$GMangaFragmentVars]; + @override + final String wireName = 'GMangaFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GMangaFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GMangaFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GMangaFragmentVarsBuilder().build(); + } +} + +class _$GMangaFragmentVars extends GMangaFragmentVars { + factory _$GMangaFragmentVars( + [void Function(GMangaFragmentVarsBuilder)? updates]) => + (new GMangaFragmentVarsBuilder()..update(updates))._build(); + + _$GMangaFragmentVars._() : super._(); + + @override + GMangaFragmentVars rebuild( + void Function(GMangaFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GMangaFragmentVarsBuilder toBuilder() => + new GMangaFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMangaFragmentVars; + } + + @override + int get hashCode { + return 541620525; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GMangaFragmentVars').toString(); + } +} + +class GMangaFragmentVarsBuilder + implements Builder { + _$GMangaFragmentVars? _$v; + + GMangaFragmentVarsBuilder(); + + @override + void replace(GMangaFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMangaFragmentVars; + } + + @override + void update(void Function(GMangaFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMangaFragmentVars build() => _build(); + + _$GMangaFragmentVars _build() { + final _$result = _$v ?? new _$GMangaFragmentVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/manga_book/domain/manga/graphql/fragment.graphql b/lib/src/features/manga_book/domain/manga/graphql/fragment.graphql new file mode 100644 index 00000000..6f966d49 --- /dev/null +++ b/lib/src/features/manga_book/domain/manga/graphql/fragment.graphql @@ -0,0 +1,45 @@ +# import '/src/features/manga_book/domain/chapter/graphql/fragment.graphql' +# import '/src/features/browse_center/domain/source/graphql/fragment.graphql' +fragment MangaFragment on MangaType { + age + artist + author + chaptersAge + chaptersLastFetchedAt + description + downloadCount + genre + id + inLibrary + inLibraryAt + initialized + lastFetchedAt + lastReadChapter { + ...ChapterFragment + } + latestFetchedChapter { + ...ChapterFragment + } + latestReadChapter { + ...ChapterFragment + } + latestUploadedChapter { + ...ChapterFragment + } + meta { + key + value + } + realUrl + source { + ...SourceFragment + } + sourceId + status + thumbnailUrl + thumbnailUrlLastFetched + title + unreadCount + updateStrategy + url +} diff --git a/lib/src/features/manga_book/domain/manga/manga_model.dart b/lib/src/features/manga_book/domain/manga/manga_model.dart index 83670faa..a109fcee 100644 --- a/lib/src/features/manga_book/domain/manga/manga_model.dart +++ b/lib/src/features/manga_book/domain/manga/manga_model.dart @@ -8,46 +8,14 @@ import 'package:freezed_annotation/freezed_annotation.dart'; import '../../../../constants/enum.dart'; import '../../../../utils/extensions/custom_extensions.dart'; -import '../../../browse_center/domain/source/source_model.dart'; -import '../chapter/chapter_model.dart'; +import 'graphql/__generated__/fragment.data.gql.dart'; part 'manga_model.freezed.dart'; part 'manga_model.g.dart'; -@freezed -class Manga with _$Manga { - Manga._(); - factory Manga({ - String? artist, - String? author, - String? description, - int? downloadCount, - int? chapterCount, - int? lastReadAt, - Chapter? lastChapterRead, - bool? freshData, - List? genre, - bool? inLibrary, - int? id, - int? inLibraryAt, - bool? initialized, - String? realUrl, - Source? source, - String? sourceId, - @JsonKey(fromJson: MangaStatus.fromJson, toJson: MangaStatus.toJson) - MangaStatus? status, - String? thumbnailUrl, - int? thumbnailUrlLastFetched, - String? title, - int? unreadCount, - int? lastFetchedAt, - int? chaptersLastFetchedAt, - String? url, - MangaMeta? meta, - }) = _Manga; - - factory Manga.fromJson(Map json) => _$MangaFromJson(json); +typedef Manga = GMangaFragment; +extension MangaExtensions on GMangaFragment { bool genreMatches( List? mangaGenreList, List? queryGenreList) { Set? mangaSet = mangaGenreList?.map((e) => e.toLowerCase()).toSet(); @@ -59,9 +27,61 @@ class Manga with _$Manga { bool query([String? query]) { return title.query(query) || author.query(query) || - genreMatches(genre, query?.split(',')); + genreMatches(genre.toList(), query?.split(',')); } + + MangaMeta get metaData => MangaMeta.fromJson( + {for (final metaItem in meta) metaItem.key: metaItem.value}); } +// @freezed +// class Manga with _$Manga { +// Manga._(); +// factory Manga({ +// String? artist, +// String? author, +// String? description, +// int? downloadCount, +// int? chapterCount, +// int? lastReadAt, +// Chapter? lastChapterRead, +// Chapter? latestFetchedChapter, +// Chapter? latestReadChapter, +// Chapter? latestUploadedChapter, +// bool? freshData, +// List? genre, +// bool? inLibrary, +// int? id, +// int? inLibraryAt, +// bool? initialized, +// String? realUrl, +// Source? source, +// String? sourceId, +// @JsonKey(fromJson: MangaStatus.fromJson, toJson: MangaStatus.toJson) +// MangaStatus? status, +// String? thumbnailUrl, +// int? thumbnailUrlLastFetched, +// String? title, +// int? unreadCount, +// int? lastFetchedAt, +// int? chaptersLastFetchedAt, +// String? url, +// MangaMeta? meta, +// }) = _Manga; + +// bool genreMatches( +// List? mangaGenreList, List? queryGenreList) { +// Set? mangaSet = mangaGenreList?.map((e) => e.toLowerCase()).toSet(); +// Set? querySet = +// queryGenreList?.map((e) => e.toLowerCase().trim()).toSet(); +// return (mangaSet?.containsAll(querySet ?? {})).ifNull(true); +// } + +// bool query([String? query]) { +// return title.query(query) || +// author.query(query) || +// genreMatches(genre, query?.split(',')); +// } +// } @freezed class MangaMeta with _$MangaMeta { diff --git a/lib/src/features/manga_book/domain/manga/manga_model.freezed.dart b/lib/src/features/manga_book/domain/manga/manga_model.freezed.dart index 7373cb1d..c0894671 100644 --- a/lib/src/features/manga_book/domain/manga/manga_model.freezed.dart +++ b/lib/src/features/manga_book/domain/manga/manga_model.freezed.dart @@ -14,730 +14,6 @@ T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); -Manga _$MangaFromJson(Map json) { - return _Manga.fromJson(json); -} - -/// @nodoc -mixin _$Manga { - String? get artist => throw _privateConstructorUsedError; - String? get author => throw _privateConstructorUsedError; - String? get description => throw _privateConstructorUsedError; - int? get downloadCount => throw _privateConstructorUsedError; - int? get chapterCount => throw _privateConstructorUsedError; - int? get lastReadAt => throw _privateConstructorUsedError; - Chapter? get lastChapterRead => throw _privateConstructorUsedError; - bool? get freshData => throw _privateConstructorUsedError; - List? get genre => throw _privateConstructorUsedError; - bool? get inLibrary => throw _privateConstructorUsedError; - int? get id => throw _privateConstructorUsedError; - int? get inLibraryAt => throw _privateConstructorUsedError; - bool? get initialized => throw _privateConstructorUsedError; - String? get realUrl => throw _privateConstructorUsedError; - Source? get source => throw _privateConstructorUsedError; - String? get sourceId => throw _privateConstructorUsedError; - @JsonKey(fromJson: MangaStatus.fromJson, toJson: MangaStatus.toJson) - MangaStatus? get status => throw _privateConstructorUsedError; - String? get thumbnailUrl => throw _privateConstructorUsedError; - int? get thumbnailUrlLastFetched => throw _privateConstructorUsedError; - String? get title => throw _privateConstructorUsedError; - int? get unreadCount => throw _privateConstructorUsedError; - int? get lastFetchedAt => throw _privateConstructorUsedError; - int? get chaptersLastFetchedAt => throw _privateConstructorUsedError; - String? get url => throw _privateConstructorUsedError; - MangaMeta? get meta => throw _privateConstructorUsedError; - - Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) - $MangaCopyWith get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $MangaCopyWith<$Res> { - factory $MangaCopyWith(Manga value, $Res Function(Manga) then) = - _$MangaCopyWithImpl<$Res, Manga>; - @useResult - $Res call( - {String? artist, - String? author, - String? description, - int? downloadCount, - int? chapterCount, - int? lastReadAt, - Chapter? lastChapterRead, - bool? freshData, - List? genre, - bool? inLibrary, - int? id, - int? inLibraryAt, - bool? initialized, - String? realUrl, - Source? source, - String? sourceId, - @JsonKey(fromJson: MangaStatus.fromJson, toJson: MangaStatus.toJson) - MangaStatus? status, - String? thumbnailUrl, - int? thumbnailUrlLastFetched, - String? title, - int? unreadCount, - int? lastFetchedAt, - int? chaptersLastFetchedAt, - String? url, - MangaMeta? meta}); - - $ChapterCopyWith<$Res>? get lastChapterRead; - $SourceCopyWith<$Res>? get source; - $MangaMetaCopyWith<$Res>? get meta; -} - -/// @nodoc -class _$MangaCopyWithImpl<$Res, $Val extends Manga> - implements $MangaCopyWith<$Res> { - _$MangaCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? artist = freezed, - Object? author = freezed, - Object? description = freezed, - Object? downloadCount = freezed, - Object? chapterCount = freezed, - Object? lastReadAt = freezed, - Object? lastChapterRead = freezed, - Object? freshData = freezed, - Object? genre = freezed, - Object? inLibrary = freezed, - Object? id = freezed, - Object? inLibraryAt = freezed, - Object? initialized = freezed, - Object? realUrl = freezed, - Object? source = freezed, - Object? sourceId = freezed, - Object? status = freezed, - Object? thumbnailUrl = freezed, - Object? thumbnailUrlLastFetched = freezed, - Object? title = freezed, - Object? unreadCount = freezed, - Object? lastFetchedAt = freezed, - Object? chaptersLastFetchedAt = freezed, - Object? url = freezed, - Object? meta = freezed, - }) { - return _then(_value.copyWith( - artist: freezed == artist - ? _value.artist - : artist // ignore: cast_nullable_to_non_nullable - as String?, - author: freezed == author - ? _value.author - : author // ignore: cast_nullable_to_non_nullable - as String?, - description: freezed == description - ? _value.description - : description // ignore: cast_nullable_to_non_nullable - as String?, - downloadCount: freezed == downloadCount - ? _value.downloadCount - : downloadCount // ignore: cast_nullable_to_non_nullable - as int?, - chapterCount: freezed == chapterCount - ? _value.chapterCount - : chapterCount // ignore: cast_nullable_to_non_nullable - as int?, - lastReadAt: freezed == lastReadAt - ? _value.lastReadAt - : lastReadAt // ignore: cast_nullable_to_non_nullable - as int?, - lastChapterRead: freezed == lastChapterRead - ? _value.lastChapterRead - : lastChapterRead // ignore: cast_nullable_to_non_nullable - as Chapter?, - freshData: freezed == freshData - ? _value.freshData - : freshData // ignore: cast_nullable_to_non_nullable - as bool?, - genre: freezed == genre - ? _value.genre - : genre // ignore: cast_nullable_to_non_nullable - as List?, - inLibrary: freezed == inLibrary - ? _value.inLibrary - : inLibrary // ignore: cast_nullable_to_non_nullable - as bool?, - id: freezed == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int?, - inLibraryAt: freezed == inLibraryAt - ? _value.inLibraryAt - : inLibraryAt // ignore: cast_nullable_to_non_nullable - as int?, - initialized: freezed == initialized - ? _value.initialized - : initialized // ignore: cast_nullable_to_non_nullable - as bool?, - realUrl: freezed == realUrl - ? _value.realUrl - : realUrl // ignore: cast_nullable_to_non_nullable - as String?, - source: freezed == source - ? _value.source - : source // ignore: cast_nullable_to_non_nullable - as Source?, - sourceId: freezed == sourceId - ? _value.sourceId - : sourceId // ignore: cast_nullable_to_non_nullable - as String?, - status: freezed == status - ? _value.status - : status // ignore: cast_nullable_to_non_nullable - as MangaStatus?, - thumbnailUrl: freezed == thumbnailUrl - ? _value.thumbnailUrl - : thumbnailUrl // ignore: cast_nullable_to_non_nullable - as String?, - thumbnailUrlLastFetched: freezed == thumbnailUrlLastFetched - ? _value.thumbnailUrlLastFetched - : thumbnailUrlLastFetched // ignore: cast_nullable_to_non_nullable - as int?, - title: freezed == title - ? _value.title - : title // ignore: cast_nullable_to_non_nullable - as String?, - unreadCount: freezed == unreadCount - ? _value.unreadCount - : unreadCount // ignore: cast_nullable_to_non_nullable - as int?, - lastFetchedAt: freezed == lastFetchedAt - ? _value.lastFetchedAt - : lastFetchedAt // ignore: cast_nullable_to_non_nullable - as int?, - chaptersLastFetchedAt: freezed == chaptersLastFetchedAt - ? _value.chaptersLastFetchedAt - : chaptersLastFetchedAt // ignore: cast_nullable_to_non_nullable - as int?, - url: freezed == url - ? _value.url - : url // ignore: cast_nullable_to_non_nullable - as String?, - meta: freezed == meta - ? _value.meta - : meta // ignore: cast_nullable_to_non_nullable - as MangaMeta?, - ) as $Val); - } - - @override - @pragma('vm:prefer-inline') - $ChapterCopyWith<$Res>? get lastChapterRead { - if (_value.lastChapterRead == null) { - return null; - } - - return $ChapterCopyWith<$Res>(_value.lastChapterRead!, (value) { - return _then(_value.copyWith(lastChapterRead: value) as $Val); - }); - } - - @override - @pragma('vm:prefer-inline') - $SourceCopyWith<$Res>? get source { - if (_value.source == null) { - return null; - } - - return $SourceCopyWith<$Res>(_value.source!, (value) { - return _then(_value.copyWith(source: value) as $Val); - }); - } - - @override - @pragma('vm:prefer-inline') - $MangaMetaCopyWith<$Res>? get meta { - if (_value.meta == null) { - return null; - } - - return $MangaMetaCopyWith<$Res>(_value.meta!, (value) { - return _then(_value.copyWith(meta: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$MangaImplCopyWith<$Res> implements $MangaCopyWith<$Res> { - factory _$$MangaImplCopyWith( - _$MangaImpl value, $Res Function(_$MangaImpl) then) = - __$$MangaImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {String? artist, - String? author, - String? description, - int? downloadCount, - int? chapterCount, - int? lastReadAt, - Chapter? lastChapterRead, - bool? freshData, - List? genre, - bool? inLibrary, - int? id, - int? inLibraryAt, - bool? initialized, - String? realUrl, - Source? source, - String? sourceId, - @JsonKey(fromJson: MangaStatus.fromJson, toJson: MangaStatus.toJson) - MangaStatus? status, - String? thumbnailUrl, - int? thumbnailUrlLastFetched, - String? title, - int? unreadCount, - int? lastFetchedAt, - int? chaptersLastFetchedAt, - String? url, - MangaMeta? meta}); - - @override - $ChapterCopyWith<$Res>? get lastChapterRead; - @override - $SourceCopyWith<$Res>? get source; - @override - $MangaMetaCopyWith<$Res>? get meta; -} - -/// @nodoc -class __$$MangaImplCopyWithImpl<$Res> - extends _$MangaCopyWithImpl<$Res, _$MangaImpl> - implements _$$MangaImplCopyWith<$Res> { - __$$MangaImplCopyWithImpl( - _$MangaImpl _value, $Res Function(_$MangaImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? artist = freezed, - Object? author = freezed, - Object? description = freezed, - Object? downloadCount = freezed, - Object? chapterCount = freezed, - Object? lastReadAt = freezed, - Object? lastChapterRead = freezed, - Object? freshData = freezed, - Object? genre = freezed, - Object? inLibrary = freezed, - Object? id = freezed, - Object? inLibraryAt = freezed, - Object? initialized = freezed, - Object? realUrl = freezed, - Object? source = freezed, - Object? sourceId = freezed, - Object? status = freezed, - Object? thumbnailUrl = freezed, - Object? thumbnailUrlLastFetched = freezed, - Object? title = freezed, - Object? unreadCount = freezed, - Object? lastFetchedAt = freezed, - Object? chaptersLastFetchedAt = freezed, - Object? url = freezed, - Object? meta = freezed, - }) { - return _then(_$MangaImpl( - artist: freezed == artist - ? _value.artist - : artist // ignore: cast_nullable_to_non_nullable - as String?, - author: freezed == author - ? _value.author - : author // ignore: cast_nullable_to_non_nullable - as String?, - description: freezed == description - ? _value.description - : description // ignore: cast_nullable_to_non_nullable - as String?, - downloadCount: freezed == downloadCount - ? _value.downloadCount - : downloadCount // ignore: cast_nullable_to_non_nullable - as int?, - chapterCount: freezed == chapterCount - ? _value.chapterCount - : chapterCount // ignore: cast_nullable_to_non_nullable - as int?, - lastReadAt: freezed == lastReadAt - ? _value.lastReadAt - : lastReadAt // ignore: cast_nullable_to_non_nullable - as int?, - lastChapterRead: freezed == lastChapterRead - ? _value.lastChapterRead - : lastChapterRead // ignore: cast_nullable_to_non_nullable - as Chapter?, - freshData: freezed == freshData - ? _value.freshData - : freshData // ignore: cast_nullable_to_non_nullable - as bool?, - genre: freezed == genre - ? _value._genre - : genre // ignore: cast_nullable_to_non_nullable - as List?, - inLibrary: freezed == inLibrary - ? _value.inLibrary - : inLibrary // ignore: cast_nullable_to_non_nullable - as bool?, - id: freezed == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int?, - inLibraryAt: freezed == inLibraryAt - ? _value.inLibraryAt - : inLibraryAt // ignore: cast_nullable_to_non_nullable - as int?, - initialized: freezed == initialized - ? _value.initialized - : initialized // ignore: cast_nullable_to_non_nullable - as bool?, - realUrl: freezed == realUrl - ? _value.realUrl - : realUrl // ignore: cast_nullable_to_non_nullable - as String?, - source: freezed == source - ? _value.source - : source // ignore: cast_nullable_to_non_nullable - as Source?, - sourceId: freezed == sourceId - ? _value.sourceId - : sourceId // ignore: cast_nullable_to_non_nullable - as String?, - status: freezed == status - ? _value.status - : status // ignore: cast_nullable_to_non_nullable - as MangaStatus?, - thumbnailUrl: freezed == thumbnailUrl - ? _value.thumbnailUrl - : thumbnailUrl // ignore: cast_nullable_to_non_nullable - as String?, - thumbnailUrlLastFetched: freezed == thumbnailUrlLastFetched - ? _value.thumbnailUrlLastFetched - : thumbnailUrlLastFetched // ignore: cast_nullable_to_non_nullable - as int?, - title: freezed == title - ? _value.title - : title // ignore: cast_nullable_to_non_nullable - as String?, - unreadCount: freezed == unreadCount - ? _value.unreadCount - : unreadCount // ignore: cast_nullable_to_non_nullable - as int?, - lastFetchedAt: freezed == lastFetchedAt - ? _value.lastFetchedAt - : lastFetchedAt // ignore: cast_nullable_to_non_nullable - as int?, - chaptersLastFetchedAt: freezed == chaptersLastFetchedAt - ? _value.chaptersLastFetchedAt - : chaptersLastFetchedAt // ignore: cast_nullable_to_non_nullable - as int?, - url: freezed == url - ? _value.url - : url // ignore: cast_nullable_to_non_nullable - as String?, - meta: freezed == meta - ? _value.meta - : meta // ignore: cast_nullable_to_non_nullable - as MangaMeta?, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$MangaImpl extends _Manga { - _$MangaImpl( - {this.artist, - this.author, - this.description, - this.downloadCount, - this.chapterCount, - this.lastReadAt, - this.lastChapterRead, - this.freshData, - final List? genre, - this.inLibrary, - this.id, - this.inLibraryAt, - this.initialized, - this.realUrl, - this.source, - this.sourceId, - @JsonKey(fromJson: MangaStatus.fromJson, toJson: MangaStatus.toJson) - this.status, - this.thumbnailUrl, - this.thumbnailUrlLastFetched, - this.title, - this.unreadCount, - this.lastFetchedAt, - this.chaptersLastFetchedAt, - this.url, - this.meta}) - : _genre = genre, - super._(); - - factory _$MangaImpl.fromJson(Map json) => - _$$MangaImplFromJson(json); - - @override - final String? artist; - @override - final String? author; - @override - final String? description; - @override - final int? downloadCount; - @override - final int? chapterCount; - @override - final int? lastReadAt; - @override - final Chapter? lastChapterRead; - @override - final bool? freshData; - final List? _genre; - @override - List? get genre { - final value = _genre; - if (value == null) return null; - if (_genre is EqualUnmodifiableListView) return _genre; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(value); - } - - @override - final bool? inLibrary; - @override - final int? id; - @override - final int? inLibraryAt; - @override - final bool? initialized; - @override - final String? realUrl; - @override - final Source? source; - @override - final String? sourceId; - @override - @JsonKey(fromJson: MangaStatus.fromJson, toJson: MangaStatus.toJson) - final MangaStatus? status; - @override - final String? thumbnailUrl; - @override - final int? thumbnailUrlLastFetched; - @override - final String? title; - @override - final int? unreadCount; - @override - final int? lastFetchedAt; - @override - final int? chaptersLastFetchedAt; - @override - final String? url; - @override - final MangaMeta? meta; - - @override - String toString() { - return 'Manga(artist: $artist, author: $author, description: $description, downloadCount: $downloadCount, chapterCount: $chapterCount, lastReadAt: $lastReadAt, lastChapterRead: $lastChapterRead, freshData: $freshData, genre: $genre, inLibrary: $inLibrary, id: $id, inLibraryAt: $inLibraryAt, initialized: $initialized, realUrl: $realUrl, source: $source, sourceId: $sourceId, status: $status, thumbnailUrl: $thumbnailUrl, thumbnailUrlLastFetched: $thumbnailUrlLastFetched, title: $title, unreadCount: $unreadCount, lastFetchedAt: $lastFetchedAt, chaptersLastFetchedAt: $chaptersLastFetchedAt, url: $url, meta: $meta)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$MangaImpl && - (identical(other.artist, artist) || other.artist == artist) && - (identical(other.author, author) || other.author == author) && - (identical(other.description, description) || - other.description == description) && - (identical(other.downloadCount, downloadCount) || - other.downloadCount == downloadCount) && - (identical(other.chapterCount, chapterCount) || - other.chapterCount == chapterCount) && - (identical(other.lastReadAt, lastReadAt) || - other.lastReadAt == lastReadAt) && - (identical(other.lastChapterRead, lastChapterRead) || - other.lastChapterRead == lastChapterRead) && - (identical(other.freshData, freshData) || - other.freshData == freshData) && - const DeepCollectionEquality().equals(other._genre, _genre) && - (identical(other.inLibrary, inLibrary) || - other.inLibrary == inLibrary) && - (identical(other.id, id) || other.id == id) && - (identical(other.inLibraryAt, inLibraryAt) || - other.inLibraryAt == inLibraryAt) && - (identical(other.initialized, initialized) || - other.initialized == initialized) && - (identical(other.realUrl, realUrl) || other.realUrl == realUrl) && - (identical(other.source, source) || other.source == source) && - (identical(other.sourceId, sourceId) || - other.sourceId == sourceId) && - (identical(other.status, status) || other.status == status) && - (identical(other.thumbnailUrl, thumbnailUrl) || - other.thumbnailUrl == thumbnailUrl) && - (identical( - other.thumbnailUrlLastFetched, thumbnailUrlLastFetched) || - other.thumbnailUrlLastFetched == thumbnailUrlLastFetched) && - (identical(other.title, title) || other.title == title) && - (identical(other.unreadCount, unreadCount) || - other.unreadCount == unreadCount) && - (identical(other.lastFetchedAt, lastFetchedAt) || - other.lastFetchedAt == lastFetchedAt) && - (identical(other.chaptersLastFetchedAt, chaptersLastFetchedAt) || - other.chaptersLastFetchedAt == chaptersLastFetchedAt) && - (identical(other.url, url) || other.url == url) && - (identical(other.meta, meta) || other.meta == meta)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => Object.hashAll([ - runtimeType, - artist, - author, - description, - downloadCount, - chapterCount, - lastReadAt, - lastChapterRead, - freshData, - const DeepCollectionEquality().hash(_genre), - inLibrary, - id, - inLibraryAt, - initialized, - realUrl, - source, - sourceId, - status, - thumbnailUrl, - thumbnailUrlLastFetched, - title, - unreadCount, - lastFetchedAt, - chaptersLastFetchedAt, - url, - meta - ]); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$MangaImplCopyWith<_$MangaImpl> get copyWith => - __$$MangaImplCopyWithImpl<_$MangaImpl>(this, _$identity); - - @override - Map toJson() { - return _$$MangaImplToJson( - this, - ); - } -} - -abstract class _Manga extends Manga { - factory _Manga( - {final String? artist, - final String? author, - final String? description, - final int? downloadCount, - final int? chapterCount, - final int? lastReadAt, - final Chapter? lastChapterRead, - final bool? freshData, - final List? genre, - final bool? inLibrary, - final int? id, - final int? inLibraryAt, - final bool? initialized, - final String? realUrl, - final Source? source, - final String? sourceId, - @JsonKey(fromJson: MangaStatus.fromJson, toJson: MangaStatus.toJson) - final MangaStatus? status, - final String? thumbnailUrl, - final int? thumbnailUrlLastFetched, - final String? title, - final int? unreadCount, - final int? lastFetchedAt, - final int? chaptersLastFetchedAt, - final String? url, - final MangaMeta? meta}) = _$MangaImpl; - _Manga._() : super._(); - - factory _Manga.fromJson(Map json) = _$MangaImpl.fromJson; - - @override - String? get artist; - @override - String? get author; - @override - String? get description; - @override - int? get downloadCount; - @override - int? get chapterCount; - @override - int? get lastReadAt; - @override - Chapter? get lastChapterRead; - @override - bool? get freshData; - @override - List? get genre; - @override - bool? get inLibrary; - @override - int? get id; - @override - int? get inLibraryAt; - @override - bool? get initialized; - @override - String? get realUrl; - @override - Source? get source; - @override - String? get sourceId; - @override - @JsonKey(fromJson: MangaStatus.fromJson, toJson: MangaStatus.toJson) - MangaStatus? get status; - @override - String? get thumbnailUrl; - @override - int? get thumbnailUrlLastFetched; - @override - String? get title; - @override - int? get unreadCount; - @override - int? get lastFetchedAt; - @override - int? get chaptersLastFetchedAt; - @override - String? get url; - @override - MangaMeta? get meta; - @override - @JsonKey(ignore: true) - _$$MangaImplCopyWith<_$MangaImpl> get copyWith => - throw _privateConstructorUsedError; -} - MangaMeta _$MangaMetaFromJson(Map json) { return _MangaMeta.fromJson(json); } diff --git a/lib/src/features/manga_book/domain/manga/manga_model.g.dart b/lib/src/features/manga_book/domain/manga/manga_model.g.dart index 3be9d6e1..00f54340 100644 --- a/lib/src/features/manga_book/domain/manga/manga_model.g.dart +++ b/lib/src/features/manga_book/domain/manga/manga_model.g.dart @@ -6,70 +6,6 @@ part of 'manga_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_$MangaImpl _$$MangaImplFromJson(Map json) => _$MangaImpl( - artist: json['artist'] as String?, - author: json['author'] as String?, - description: json['description'] as String?, - downloadCount: json['downloadCount'] as int?, - chapterCount: json['chapterCount'] as int?, - lastReadAt: json['lastReadAt'] as int?, - lastChapterRead: json['lastChapterRead'] == null - ? null - : Chapter.fromJson(json['lastChapterRead'] as Map), - freshData: json['freshData'] as bool?, - genre: - (json['genre'] as List?)?.map((e) => e as String).toList(), - inLibrary: json['inLibrary'] as bool?, - id: json['id'] as int?, - inLibraryAt: json['inLibraryAt'] as int?, - initialized: json['initialized'] as bool?, - realUrl: json['realUrl'] as String?, - source: json['source'] == null - ? null - : Source.fromJson(json['source'] as Map), - sourceId: json['sourceId'] as String?, - status: MangaStatus.fromJson(json['status'] as String), - thumbnailUrl: json['thumbnailUrl'] as String?, - thumbnailUrlLastFetched: json['thumbnailUrlLastFetched'] as int?, - title: json['title'] as String?, - unreadCount: json['unreadCount'] as int?, - lastFetchedAt: json['lastFetchedAt'] as int?, - chaptersLastFetchedAt: json['chaptersLastFetchedAt'] as int?, - url: json['url'] as String?, - meta: json['meta'] == null - ? null - : MangaMeta.fromJson(json['meta'] as Map), - ); - -Map _$$MangaImplToJson(_$MangaImpl instance) => - { - 'artist': instance.artist, - 'author': instance.author, - 'description': instance.description, - 'downloadCount': instance.downloadCount, - 'chapterCount': instance.chapterCount, - 'lastReadAt': instance.lastReadAt, - 'lastChapterRead': instance.lastChapterRead?.toJson(), - 'freshData': instance.freshData, - 'genre': instance.genre, - 'inLibrary': instance.inLibrary, - 'id': instance.id, - 'inLibraryAt': instance.inLibraryAt, - 'initialized': instance.initialized, - 'realUrl': instance.realUrl, - 'source': instance.source?.toJson(), - 'sourceId': instance.sourceId, - 'status': MangaStatus.toJson(instance.status), - 'thumbnailUrl': instance.thumbnailUrl, - 'thumbnailUrlLastFetched': instance.thumbnailUrlLastFetched, - 'title': instance.title, - 'unreadCount': instance.unreadCount, - 'lastFetchedAt': instance.lastFetchedAt, - 'chaptersLastFetchedAt': instance.chaptersLastFetchedAt, - 'url': instance.url, - 'meta': instance.meta?.toJson(), - }; - _$MangaMetaImpl _$$MangaMetaImplFromJson(Map json) => _$MangaMetaImpl( invertTap: MangaMeta.fromJsonToBool( diff --git a/lib/src/features/manga_book/domain/update_status/update_status_model.dart b/lib/src/features/manga_book/domain/update_status/update_status_model.dart index bb6bc02f..9f5bbaba 100644 --- a/lib/src/features/manga_book/domain/update_status/update_status_model.dart +++ b/lib/src/features/manga_book/domain/update_status/update_status_model.dart @@ -10,7 +10,6 @@ import '../../../../utils/extensions/custom_extensions.dart'; import '../manga/manga_model.dart'; part 'update_status_model.freezed.dart'; -part 'update_status_model.g.dart'; @freezed class UpdateStatus with _$UpdateStatus { @@ -36,7 +35,4 @@ class UpdateStatus with _$UpdateStatus { bool get isUpdateChecking => (total).isGreaterThan(0) && !(isUpdateCheckCompleted); - - factory UpdateStatus.fromJson(Map json) => - _$UpdateStatusFromJson(json); } diff --git a/lib/src/features/manga_book/domain/update_status/update_status_model.freezed.dart b/lib/src/features/manga_book/domain/update_status/update_status_model.freezed.dart index f95e9d6b..0a11df13 100644 --- a/lib/src/features/manga_book/domain/update_status/update_status_model.freezed.dart +++ b/lib/src/features/manga_book/domain/update_status/update_status_model.freezed.dart @@ -14,10 +14,6 @@ T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); -UpdateStatus _$UpdateStatusFromJson(Map json) { - return _UpdateStatus.fromJson(json); -} - /// @nodoc mixin _$UpdateStatus { @JsonKey(name: "PENDING") @@ -29,7 +25,6 @@ mixin _$UpdateStatus { @JsonKey(name: "FAILED") List? get failed => throw _privateConstructorUsedError; - Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) $UpdateStatusCopyWith get copyWith => throw _privateConstructorUsedError; @@ -140,7 +135,7 @@ class __$$UpdateStatusImplCopyWithImpl<$Res> } /// @nodoc -@JsonSerializable() + class _$UpdateStatusImpl extends _UpdateStatus { _$UpdateStatusImpl( {@JsonKey(name: "PENDING") final List? pending, @@ -153,9 +148,6 @@ class _$UpdateStatusImpl extends _UpdateStatus { _failed = failed, super._(); - factory _$UpdateStatusImpl.fromJson(Map json) => - _$$UpdateStatusImplFromJson(json); - final List? _pending; @override @JsonKey(name: "PENDING") @@ -217,7 +209,6 @@ class _$UpdateStatusImpl extends _UpdateStatus { const DeepCollectionEquality().equals(other._failed, _failed)); } - @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, @@ -231,13 +222,6 @@ class _$UpdateStatusImpl extends _UpdateStatus { @pragma('vm:prefer-inline') _$$UpdateStatusImplCopyWith<_$UpdateStatusImpl> get copyWith => __$$UpdateStatusImplCopyWithImpl<_$UpdateStatusImpl>(this, _$identity); - - @override - Map toJson() { - return _$$UpdateStatusImplToJson( - this, - ); - } } abstract class _UpdateStatus extends UpdateStatus { @@ -248,9 +232,6 @@ abstract class _UpdateStatus extends UpdateStatus { @JsonKey(name: "FAILED") final List? failed}) = _$UpdateStatusImpl; _UpdateStatus._() : super._(); - factory _UpdateStatus.fromJson(Map json) = - _$UpdateStatusImpl.fromJson; - @override @JsonKey(name: "PENDING") List? get pending; diff --git a/lib/src/features/manga_book/domain/update_status/update_status_model.g.dart b/lib/src/features/manga_book/domain/update_status/update_status_model.g.dart deleted file mode 100644 index a6b2ff64..00000000 --- a/lib/src/features/manga_book/domain/update_status/update_status_model.g.dart +++ /dev/null @@ -1,31 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'update_status_model.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$UpdateStatusImpl _$$UpdateStatusImplFromJson(Map json) => - _$UpdateStatusImpl( - pending: (json['PENDING'] as List?) - ?.map((e) => Manga.fromJson(e as Map)) - .toList(), - running: (json['RUNNING'] as List?) - ?.map((e) => Manga.fromJson(e as Map)) - .toList(), - completed: (json['COMPLETE'] as List?) - ?.map((e) => Manga.fromJson(e as Map)) - .toList(), - failed: (json['FAILED'] as List?) - ?.map((e) => Manga.fromJson(e as Map)) - .toList(), - ); - -Map _$$UpdateStatusImplToJson(_$UpdateStatusImpl instance) => - { - 'PENDING': instance.pending?.map((e) => e.toJson()).toList(), - 'RUNNING': instance.running?.map((e) => e.toJson()).toList(), - 'COMPLETE': instance.completed?.map((e) => e.toJson()).toList(), - 'FAILED': instance.failed?.map((e) => e.toJson()).toList(), - }; diff --git a/lib/src/features/manga_book/presentation/downloads/downloads_screen.dart b/lib/src/features/manga_book/presentation/downloads/downloads_screen.dart index 69c4bc9f..1c316453 100644 --- a/lib/src/features/manga_book/presentation/downloads/downloads_screen.dart +++ b/lib/src/features/manga_book/presentation/downloads/downloads_screen.dart @@ -20,7 +20,7 @@ class DownloadsScreen extends ConsumerWidget { @override Widget build(BuildContext context, WidgetRef ref) { - final toast = ref.watch(toastProvider(context)); + final toast = ref.watch(toastProvider); final downloadsChapterIds = ref.watch(downloadsChapterIdsProvider); final downloadsGlobalStatus = ref.watch(downloadsStatusProvider); final showDownloadsFAB = ref.watch(showDownloadsFABProvider); @@ -44,9 +44,9 @@ class DownloadsScreen extends ConsumerWidget { context, (data) { if (data == null) { - return Emoticons(text: context.l10n.errorSomethingWentWrong); + return Emoticons(title: context.l10n.errorSomethingWentWrong); } else if (downloadsChapterIds.isBlank) { - return Emoticons(text: context.l10n.noDownloads); + return Emoticons(title: context.l10n.noDownloads); } else { final downloadsCount = (downloadsChapterIds.length).getValueOnNullOrNegative(); diff --git a/lib/src/features/manga_book/presentation/downloads/widgets/download_progress_list_tile.dart b/lib/src/features/manga_book/presentation/downloads/widgets/download_progress_list_tile.dart index 2f0822a1..32907fc9 100644 --- a/lib/src/features/manga_book/presentation/downloads/widgets/download_progress_list_tile.dart +++ b/lib/src/features/manga_book/presentation/downloads/widgets/download_progress_list_tile.dart @@ -9,7 +9,6 @@ import 'package:flutter_hooks/flutter_hooks.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../../constants/app_sizes.dart'; - import '../../../../../routes/router_config.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; import '../../../../../utils/misc/toast/toast.dart'; @@ -25,12 +24,12 @@ class DownloadProgressListTile extends HookConsumerWidget { required this.downloadsCount, }); final int chapterId; - final Toast toast; + final Toast? toast; final int index; final int downloadsCount; Future toggleChapterToQueue( - Toast toast, + Toast? toast, WidgetRef ref, bool addToDownload, int mangaId, diff --git a/lib/src/features/manga_book/presentation/downloads/widgets/downloads_fab.dart b/lib/src/features/manga_book/presentation/downloads/widgets/downloads_fab.dart index c1042c21..663117c7 100644 --- a/lib/src/features/manga_book/presentation/downloads/widgets/downloads_fab.dart +++ b/lib/src/features/manga_book/presentation/downloads/widgets/downloads_fab.dart @@ -16,7 +16,7 @@ class DownloadsFab extends ConsumerWidget { final String status; @override Widget build(BuildContext context, WidgetRef ref) { - final toast = ref.watch(toastProvider(context)); + final toast = ref.watch(toastProvider); if (status == "Stopped" || status == "Error") { return FloatingActionButton.extended( onPressed: () async { @@ -26,7 +26,7 @@ class DownloadsFab extends ConsumerWidget { }, label: Text(context.l10n.resume), isExtended: context.isTablet, - icon: const Icon(Icons.play_arrow), + icon: const Icon(Icons.play_arrow_rounded), ); } else { return FloatingActionButton.extended( diff --git a/lib/src/features/manga_book/presentation/manga_details/controller/manga_details_controller.dart b/lib/src/features/manga_book/presentation/manga_details/controller/manga_details_controller.dart index 48bbe4d9..7ed7e10b 100644 --- a/lib/src/features/manga_book/presentation/manga_details/controller/manga_details_controller.dart +++ b/lib/src/features/manga_book/presentation/manga_details/controller/manga_details_controller.dart @@ -115,7 +115,7 @@ class MangaChapterFilterScanlator extends _$MangaChapterFilterScanlator { @override String build({required int mangaId}) { final manga = ref.watch(mangaWithIdProvider(mangaId: mangaId)); - return manga.valueOrNull?.meta?.scanlator ?? MangaMetaKeys.scanlator.key; + return manga.valueOrNull?.metaData.scanlator ?? MangaMetaKeys.scanlator.key; } void update(String? scanlator) async { @@ -151,17 +151,17 @@ AsyncValue?> mangaChapterListWithFilter( bool applyChapterFilter(Chapter chapter) { if (chapterFilterUnread != null && - (chapterFilterUnread ^ !(chapter.read.ifNull()))) { + (chapterFilterUnread ^ !(chapter.isRead.ifNull()))) { return false; } if (chapterFilterDownloaded != null && - (chapterFilterDownloaded ^ (chapter.downloaded.ifNull()))) { + (chapterFilterDownloaded ^ (chapter.isDownloaded.ifNull()))) { return false; } if (chapterFilterBookmark != null && - (chapterFilterBookmark ^ (chapter.bookmarked.ifNull()))) { + (chapterFilterBookmark ^ (chapter.isBookmarked.ifNull()))) { return false; } @@ -175,11 +175,11 @@ AsyncValue?> mangaChapterListWithFilter( int applyChapterSort(Chapter m1, Chapter m2) { final sortDirToggle = (sortedDirection ? 1 : -1); return (switch (sortedBy) { - ChapterSort.fetchedDate => - (m1.fetchedAt ?? 0).compareTo(m2.fetchedAt ?? 0), - ChapterSort.source => (m1.index ?? 0).compareTo(m2.index ?? 0), - ChapterSort.uploadDate => - (m1.uploadDate ?? 0).compareTo(m2.uploadDate ?? 0), + ChapterSort.fetchedDate => (int.tryParse(m1.fetchedAt.value) ?? 0) + .compareTo(int.tryParse(m2.fetchedAt.value) ?? 0), + ChapterSort.source => (m1.index).compareTo(m2.index), + ChapterSort.uploadDate => (int.tryParse(m1.uploadDate.value) ?? 0) + .compareTo(int.tryParse(m2.uploadDate.value) ?? 0), }) * sortDirToggle; } @@ -204,10 +204,10 @@ Chapter? firstUnreadInFilteredChapterList( } else { if (isAscSorted) { return filteredList - .firstWhereOrNull((element) => !element.read.ifNull(true)); + .firstWhereOrNull((element) => !element.isRead.ifNull(true)); } else { return filteredList - .lastWhereOrNull((element) => !element.read.ifNull(true)); + .lastWhereOrNull((element) => !element.isRead.ifNull(true)); } } } @@ -287,7 +287,7 @@ class MangaCategoryList extends _$MangaCategoryList { .watch(mangaBookRepositoryProvider) .getMangaCategoryList(mangaId: mangaId); return { - for (Category i in (result ?? [])) "${i.id ?? ''}": i, + for (Category i in (result ?? [])) "${i.id}": i, }; } @@ -296,7 +296,7 @@ class MangaCategoryList extends _$MangaCategoryList { .watch(mangaBookRepositoryProvider) .getMangaCategoryList(mangaId: mangaId)); state = result.copyWithData((data) => { - for (Category i in (data ?? [])) "${i.id ?? ''}": i, + for (Category i in (data ?? [])) "${i.id}": i, }); } } diff --git a/lib/src/features/manga_book/presentation/manga_details/controller/manga_details_controller.g.dart b/lib/src/features/manga_book/presentation/manga_details/controller/manga_details_controller.g.dart index c1856ea0..5912deb5 100644 --- a/lib/src/features/manga_book/presentation/manga_details/controller/manga_details_controller.g.dart +++ b/lib/src/features/manga_book/presentation/manga_details/controller/manga_details_controller.g.dart @@ -157,7 +157,7 @@ class _MangaScanlatorListProviderElement } String _$mangaChapterListWithFilterHash() => - r'd8e95ee63920e7ee5acf15deda7b9d795ca452c9'; + r'9fa136b43d918d2508ffa36214bdca4313e39098'; /// See also [mangaChapterListWithFilter]. @ProviderFor(mangaChapterListWithFilter) @@ -292,7 +292,7 @@ class _MangaChapterListWithFilterProviderElement } String _$firstUnreadInFilteredChapterListHash() => - r'ed13a5108da7bb4f9224899075348531da8a118e'; + r'5c59f446d8aec6520c2baabab74002bc97147984'; /// See also [firstUnreadInFilteredChapterList]. @ProviderFor(firstUnreadInFilteredChapterList) @@ -884,7 +884,7 @@ class _MangaChapterListProviderElement } String _$mangaChapterFilterScanlatorHash() => - r'4d6da76af3cbbf033f1ca5fb04ea6eb7798c5820'; + r'1e9cc2f48459bce949610737e71ad921f2d9aece'; abstract class _$MangaChapterFilterScanlator extends BuildlessAutoDisposeNotifier { @@ -1114,7 +1114,7 @@ final mangaChapterFilterBookmarkedProvider = ); typedef _$MangaChapterFilterBookmarked = AutoDisposeNotifier; -String _$mangaCategoryListHash() => r'3fec3a544adc138ec7fbc98ad216e1b7399d0983'; +String _$mangaCategoryListHash() => r'05985e2dadc47610c47a1e095477346d94d696fb'; abstract class _$MangaCategoryList extends BuildlessAutoDisposeAsyncNotifier?> { diff --git a/lib/src/features/manga_book/presentation/manga_details/manga_details_screen.dart b/lib/src/features/manga_book/presentation/manga_details/manga_details_screen.dart index 24a31489..ea2a8e91 100644 --- a/lib/src/features/manga_book/presentation/manga_details/manga_details_screen.dart +++ b/lib/src/features/manga_book/presentation/manga_details/manga_details_screen.dart @@ -58,7 +58,7 @@ class MangaDetailsScreen extends HookConsumerWidget { final refresh = useCallback(([onlineFetch = false]) async { if (context.mounted && onlineFetch) { - ref.read(toastProvider(context)).show( + ref.read(toastProvider)?.show( context.l10n.updating, withMicrotask: true, ); @@ -67,11 +67,11 @@ class MangaDetailsScreen extends HookConsumerWidget { await chapterListRefresh(onlineFetch); if (context.mounted && onlineFetch) { if (manga.hasError) { - ref.read(toastProvider(context)).showError( + ref.read(toastProvider)?.showError( context.l10n.errorSomethingWentWrong, ); } else { - ref.read(toastProvider(context)).show( + ref.read(toastProvider)?.show( context.l10n.updateCompleted, withMicrotask: true, ); @@ -108,10 +108,8 @@ class MangaDetailsScreen extends HookConsumerWidget { final chapterList = [ ...?filteredChapterList.valueOrNull ]; - selectedChapters.value = ({ - for (Chapter i in chapterList) - if (i.id != null) i.id!: i - }); + selectedChapters.value = + ({for (Chapter i in chapterList) i.id: i}); }, icon: const Icon(Icons.select_all_rounded), ), @@ -122,9 +120,8 @@ class MangaDetailsScreen extends HookConsumerWidget { ]; selectedChapters.value = ({ for (Chapter i in chapterList) - if (i.id != null && - !selectedChapters.value.containsKey(i.id)) - i.id!: i + if (!selectedChapters.value.containsKey(i.id)) + i.id: i }); }, icon: const Icon(Icons.flip_to_back_rounded), @@ -213,15 +210,15 @@ class MangaDetailsScreen extends HookConsumerWidget { ? FloatingActionButton.extended( isExtended: context.isTablet, label: Text( - data?.lastChapterRead?.index != null + data?.lastReadChapter?.index != null ? context.l10n.resume : context.l10n.start, ), icon: const Icon(Icons.play_arrow_rounded), onPressed: () { ReaderRoute( - mangaId: firstUnreadChapter.mangaId ?? mangaId, - chapterIndex: firstUnreadChapter.index ?? 0, + mangaId: firstUnreadChapter.mangaId, + chapterIndex: firstUnreadChapter.index, showReaderLayoutAnimation: true, ).push(context); }, @@ -248,7 +245,7 @@ class MangaDetailsScreen extends HookConsumerWidget { selectedChapters: selectedChapters, ) : Emoticons( - text: context.l10n.noMangaFound, + title: context.l10n.noMangaFound, button: TextButton( onPressed: refresh, child: Text(context.l10n.refresh), @@ -295,8 +292,7 @@ class MultiSelectPopupButton extends StatelessWidget { selectedChapters.value = ({ ...selectedChapters.value, for (int i = lastIndex + 1; i < maxIndex; i++) - if (chapterList[i].id != null) - chapterList[i].id!: chapterList[i] + chapterList[i].id: chapterList[i] }); }, child: Text(context.l10n.selectNext10), @@ -307,7 +303,7 @@ class MultiSelectPopupButton extends StatelessWidget { selectedChapters.value = ({ for (Chapter i in chapterList) - if (i.id != null && !i.read.ifNull()) i.id!: i + if (!i.isRead.ifNull()) i.id: i }); }, child: Text(context.l10n.selectUnread), @@ -326,8 +322,7 @@ class MultiSelectPopupButton extends StatelessWidget { selectedChapters.value = ({ for (int i = firstIndex; i <= lastIndex; i++) - if (chapterList[i].id != null) - chapterList[i].id!: chapterList[i] + chapterList[i].id: chapterList[i] }); }, child: Text(context.l10n.selectInBetween), diff --git a/lib/src/features/manga_book/presentation/manga_details/widgets/big_screen_manga_details.dart b/lib/src/features/manga_book/presentation/manga_details/widgets/big_screen_manga_details.dart index 14a4644e..1242a16e 100644 --- a/lib/src/features/manga_book/presentation/manga_details/widgets/big_screen_manga_details.dart +++ b/lib/src/features/manga_book/presentation/manga_details/widgets/big_screen_manga_details.dart @@ -90,7 +90,7 @@ class BigScreenMangaDetails extends ConsumerWidget { toggleSelect: (Chapter val) { if ((val.id).isNull) return; selectedChapters.value = selectedChapters.value - .toggleKey(val.id!, val); + .toggleKey(val.id, val); }, ); }, @@ -101,7 +101,7 @@ class BigScreenMangaDetails extends ConsumerWidget { ); } else { return Emoticons( - text: context.l10n.noChaptersFound, + title: context.l10n.noChaptersFound, button: TextButton( onPressed: () => onListRefresh(true), child: Text(context.l10n.refresh), diff --git a/lib/src/features/manga_book/presentation/manga_details/widgets/chapter_list_tile.dart b/lib/src/features/manga_book/presentation/manga_details/widgets/chapter_list_tile.dart index 8fe7bb30..abe3f8c4 100644 --- a/lib/src/features/manga_book/presentation/manga_details/widgets/chapter_list_tile.dart +++ b/lib/src/features/manga_book/presentation/manga_details/widgets/chapter_list_tile.dart @@ -39,62 +39,59 @@ class ChapterListTile extends StatelessWidget { title: Row( mainAxisSize: MainAxisSize.min, children: [ - if (chapter.bookmarked.ifNull()) ...[ + if (chapter.isBookmarked.ifNull()) ...[ Icon( - Icons.bookmark, - color: chapter.read.ifNull() ? Colors.grey : context.iconColor, + Icons.bookmark_rounded, + color: + chapter.isRead.ifNull() ? Colors.grey : context.iconColor, size: 20, ), const Gap(4), ], Expanded( child: Text( - chapter.getDisplayName(context), + chapter.name, style: TextStyle( - color: chapter.read.ifNull() ? Colors.grey : null, + color: chapter.isRead.ifNull() ? Colors.grey : null, ), overflow: TextOverflow.ellipsis, ), ), ], ), - subtitle: chapter.uploadDate != null - ? Row( - children: [ - Text( - chapter.uploadDate!.toDaysAgo(context), - style: TextStyle( - color: chapter.read.ifNull() ? Colors.grey : null, - ), + subtitle: Row( + children: [ + Text( + int.tryParse(chapter.uploadDate.value).toDaysAgo(context), + style: TextStyle( + color: chapter.isRead.ifNull() ? Colors.grey : null, + ), + ), + if (!chapter.isRead.ifNull() && + (chapter.lastPageRead).getValueOnNullOrNegative() != 0) + Text( + " • ${context.l10n.page(chapter.lastPageRead.getValueOnNullOrNegative() + 1)}", + style: const TextStyle(color: Colors.grey), + overflow: TextOverflow.ellipsis, + ), + if (chapter.scanlator.isNotBlank) + Expanded( + child: Text( + " • ${chapter.scanlator}", + style: TextStyle( + color: chapter.isRead.ifNull() ? Colors.grey : null, ), - if (!chapter.read.ifNull() && - (chapter.lastPageRead).getValueOnNullOrNegative() != 0) - Text( - " • ${context.l10n.page(chapter.lastPageRead.getValueOnNullOrNegative() + 1)}", - style: const TextStyle(color: Colors.grey), - overflow: TextOverflow.ellipsis, - ), - if (chapter.scanlator.isNotBlank) - Expanded( - child: Text( - " • ${chapter.scanlator}", - style: TextStyle( - color: chapter.read.ifNull() ? Colors.grey : null, - ), - overflow: TextOverflow.ellipsis, - ), - ), - ], - ) - : null, - trailing: (chapter.index != null && manga.id != null) - ? DownloadStatusIcon( - updateData: updateData, - chapter: chapter, - mangaId: manga.id!, - isDownloaded: chapter.downloaded.ifNull(), - ) - : null, + overflow: TextOverflow.ellipsis, + ), + ), + ], + ), + trailing: DownloadStatusIcon( + updateData: updateData, + chapter: chapter, + mangaId: manga.id, + isDownloaded: chapter.isDownloaded.ifNull(), + ), selectedColor: context.theme.colorScheme.onSurface, selectedTileColor: context.isDarkMode ? Colors.grey.shade700 : Colors.grey.shade300, @@ -102,8 +99,8 @@ class ChapterListTile extends StatelessWidget { onTap: canTapSelect ? () => toggleSelect(chapter) : () => ReaderRoute( - mangaId: manga.id!, - chapterIndex: chapter.index!, + mangaId: manga.id, + chapterIndex: chapter.index, showReaderLayoutAnimation: true, ).push(context), onLongPress: () => toggleSelect(chapter), diff --git a/lib/src/features/manga_book/presentation/manga_details/widgets/edit_manga_category_dialog.dart b/lib/src/features/manga_book/presentation/manga_details/widgets/edit_manga_category_dialog.dart index 2477fb92..be7450c3 100644 --- a/lib/src/features/manga_book/presentation/manga_details/widgets/edit_manga_category_dialog.dart +++ b/lib/src/features/manga_book/presentation/manga_details/widgets/edit_manga_category_dialog.dart @@ -8,7 +8,6 @@ import 'package:flutter/material.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../../constants/app_sizes.dart'; - import '../../../../../utils/extensions/custom_extensions.dart'; import '../../../../../widgets/async_buttons/async_checkbox_list_tile.dart'; import '../../../../../widgets/popup_widgets/pop_button.dart'; @@ -47,50 +46,52 @@ class EditMangaCategoryDialog extends HookConsumerWidget { actions: [PopButton(popText: context.l10n.close)], content: categoryList.showUiWhenData( context, - (data) => ConstrainedBox( - constraints: BoxConstraints(maxHeight: context.height * .7), - child: data.isBlank || (data.isSingletonList && data!.first.id == 0) - ? Padding( - padding: KEdgeInsets.h16.size, - child: Text(context.l10n.noCategoriesFoundAlt), - ) - : SingleChildScrollView( - child: mangaCategoryList.showUiWhenData( - context, - (selectedCategoryList) => Column( - children: [ - for (Category category in data!) - if (category.id != 0) - AsyncCheckboxListTile( - onChanged: (value) async { - await AsyncValue.guard( - () => value.ifNull() - ? ref - .read(mangaBookRepositoryProvider) - .addMangaToCategory( - mangaId, - "${category.id!}", - ) - : ref - .read(mangaBookRepositoryProvider) - .removeMangaFromCategory( - mangaId, - "${category.id!}", - ), - ); - await ref.read(provider.notifier).refresh(); - }, - value: selectedCategoryList?.containsKey( - "${category.id}", - ) ?? - false, - title: Text(category.name ?? ""), - ), - ], + (data) { + return ConstrainedBox( + constraints: BoxConstraints(maxHeight: context.height * .7), + child: data.isBlank || (data.isSingletonList && data!.first.id == 0) + ? Padding( + padding: KEdgeInsets.h16.size, + child: Text(context.l10n.noCategoriesFoundAlt), + ) + : SingleChildScrollView( + child: mangaCategoryList.showUiWhenData( + context, + (selectedCategoryList) => Column( + children: [ + for (Category category in data!) + if (category.id != 0) + AsyncCheckboxListTile( + onChanged: (value) async { + await AsyncValue.guard( + () => value.ifNull() + ? ref + .read(mangaBookRepositoryProvider) + .addMangaToCategory( + mangaId, + "${category.id}", + ) + : ref + .read(mangaBookRepositoryProvider) + .removeMangaFromCategory( + mangaId, + "${category.id}", + ), + ); + await ref.read(provider.notifier).refresh(); + }, + value: selectedCategoryList?.containsKey( + "${category.id}", + ) ?? + false, + title: Text(category.name), + ), + ], + ), ), ), - ), - ), + ); + }, ), ); } diff --git a/lib/src/features/manga_book/presentation/manga_details/widgets/manga_description.dart b/lib/src/features/manga_book/presentation/manga_details/widgets/manga_description.dart index 05230c6e..d2b8a722 100644 --- a/lib/src/features/manga_book/presentation/manga_details/widgets/manga_description.dart +++ b/lib/src/features/manga_book/presentation/manga_details/widgets/manga_description.dart @@ -10,7 +10,6 @@ import 'package:flutter_hooks/flutter_hooks.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../../constants/app_sizes.dart'; - import '../../../../../routes/router_config.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; import '../../../../../utils/launch_url_in_web.dart'; @@ -59,7 +58,7 @@ class MangaDescription extends HookConsumerWidget { await refresh(); }); if (context.mounted) { - val.showToastOnError(ref.read(toastProvider(context))); + val.showToastOnError(ref.read(toastProvider)); } }, isPrimary: manga.inLibrary.ifNull(), @@ -76,10 +75,10 @@ class MangaDescription extends HookConsumerWidget { launchUrlInWeb( context, (manga.realUrl ?? ""), - ref.read(toastProvider(context)), + ref.read(toastProvider), ); }, - icon: const Icon(Icons.public), + icon: const Icon(Icons.public_rounded), style: TextButton.styleFrom(foregroundColor: Colors.grey), label: Text(context.l10n.webView), ), @@ -137,7 +136,7 @@ class MangaDescription extends HookConsumerWidget { runSpacing: 8, // alignment: WrapAlignment.spaceBetween, children: [ - ...?manga.genre?.map( + ...manga.genre.map( (e) => Chip(label: Text(e)), ) ], @@ -150,7 +149,7 @@ class MangaDescription extends HookConsumerWidget { scrollDirection: Axis.horizontal, child: Row( children: [ - ...?manga.genre?.map( + ...manga.genre.map( (e) => Padding( padding: KEdgeInsets.h4.size, child: Chip(label: Text(e)), diff --git a/lib/src/features/manga_book/presentation/manga_details/widgets/small_screen_manga_details.dart b/lib/src/features/manga_book/presentation/manga_details/widgets/small_screen_manga_details.dart index 217e2a5b..e409ddd0 100644 --- a/lib/src/features/manga_book/presentation/manga_details/widgets/small_screen_manga_details.dart +++ b/lib/src/features/manga_book/presentation/manga_details/widgets/small_screen_manga_details.dart @@ -80,7 +80,7 @@ class SmallScreenMangaDetails extends ConsumerWidget { toggleSelect: (Chapter val) { if ((val.id).isNull) return; selectedChapters.value = - selectedChapters.value.toggleKey(val.id!, val); + selectedChapters.value.toggleKey(val.id, val); }, ), childCount: filteredChapterList!.length, @@ -89,7 +89,7 @@ class SmallScreenMangaDetails extends ConsumerWidget { } else { return SliverToBoxAdapter( child: Emoticons( - text: context.l10n.noChaptersFound, + title: context.l10n.noChaptersFound, button: TextButton( onPressed: () => onDescriptionRefresh(true), child: Text(context.l10n.refresh), diff --git a/lib/src/features/manga_book/presentation/reader/reader_screen.dart b/lib/src/features/manga_book/presentation/reader/reader_screen.dart index 3ff1a554..68182056 100644 --- a/lib/src/features/manga_book/presentation/reader/reader_screen.dart +++ b/lib/src/features/manga_book/presentation/reader/reader_screen.dart @@ -16,6 +16,7 @@ import '../../../../utils/extensions/custom_extensions.dart'; import '../../../settings/presentation/reader/widgets/reader_mode_tile/reader_mode_tile.dart'; import '../../data/manga_book_repository.dart'; import '../../domain/chapter_patch/chapter_put_model.dart'; +import '../../domain/manga/manga_model.dart'; import '../manga_details/controller/manga_details_controller.dart'; import 'controller/reader_controller.dart'; import 'widgets/reader_mode/continuous_reader_mode.dart'; @@ -45,7 +46,7 @@ class ReaderScreen extends HookConsumerWidget { final updateLastRead = useCallback((int currentPage) async { final chapterValue = chapter.valueOrNull; final isReadingCompeted = chapterValue != null && - ((chapterValue.read).ifNull() || + ((chapterValue.isRead).ifNull() || (currentPage >= ((chapterValue.pageCount).getValueOnNullOrNegative() - 1))); await AsyncValue.guard( @@ -63,7 +64,7 @@ class ReaderScreen extends HookConsumerWidget { final onPageChanged = useCallback>( (int index) async { final chapterValue = chapter.valueOrNull; - if ((chapterValue?.read).ifNull() || + if ((chapterValue?.isRead).ifNull() || (chapterValue?.lastPageRead).getValueOnNullOrNegative() >= index) { return; } @@ -114,7 +115,8 @@ class ReaderScreen extends HookConsumerWidget { context, (chapterData) { if (chapterData == null) return const SizedBox.shrink(); - return switch (data.meta?.readerMode ?? defaultReaderMode) { + return switch ( + data.metaData.readerMode ?? defaultReaderMode) { ReaderMode.singleVertical => SinglePageReaderMode( chapter: chapterData, manga: data, diff --git a/lib/src/features/manga_book/presentation/reader/widgets/chapter_separator.dart b/lib/src/features/manga_book/presentation/reader/widgets/chapter_separator.dart index 5a7b84b4..05c34066 100644 --- a/lib/src/features/manga_book/presentation/reader/widgets/chapter_separator.dart +++ b/lib/src/features/manga_book/presentation/reader/widgets/chapter_separator.dart @@ -31,17 +31,17 @@ class ChapterSeparator extends ConsumerWidget { Widget build(BuildContext context, WidgetRef ref) { final nextPrevChapterPair = ref.watch( getNextAndPreviousChaptersProvider( - mangaId: manga.id!, + mangaId: manga.id, chapterIndex: "${chapter.index}", ), ); final navigationLayout = ref.watch(readerNavigationLayoutKeyProvider); - final showPrevNextButtons = - manga.meta?.readerNavigationLayout == ReaderNavigationLayout.disabled || - ((manga.meta?.readerNavigationLayout == null || - manga.meta?.readerNavigationLayout == - ReaderNavigationLayout.defaultNavigation) && - navigationLayout == ReaderNavigationLayout.disabled); + final showPrevNextButtons = manga.metaData.readerNavigationLayout == + ReaderNavigationLayout.disabled || + ((manga.metaData.readerNavigationLayout == null || + manga.metaData.readerNavigationLayout == + ReaderNavigationLayout.defaultNavigation) && + navigationLayout == ReaderNavigationLayout.disabled); return Center( child: SingleChildScrollView( child: Column( @@ -56,13 +56,12 @@ class ChapterSeparator extends ConsumerWidget { padding: KEdgeInsets.v16.size, child: FilledButton( onPressed: () => ReaderRoute( - mangaId: nextPrevChapterPair!.second!.mangaId!, - chapterIndex: nextPrevChapterPair.second!.index!, + mangaId: nextPrevChapterPair!.second!.mangaId, + chapterIndex: nextPrevChapterPair.second!.index, ).pushReplacement(context), child: Text( context.l10n.previousChapter( - nextPrevChapterPair?.second?.getDisplayName(context) ?? - "", + nextPrevChapterPair?.second?.name ?? "", ), ), ), @@ -76,7 +75,7 @@ class ChapterSeparator extends ConsumerWidget { overflow: TextOverflow.ellipsis, ), Text( - chapter.getDisplayName(context), + chapter.name, style: context.textTheme.bodyMedium ?.copyWith(fontWeight: FontWeight.bold), overflow: TextOverflow.ellipsis, @@ -88,12 +87,12 @@ class ChapterSeparator extends ConsumerWidget { padding: KEdgeInsets.v16.size, child: FilledButton( onPressed: () => ReaderRoute( - mangaId: nextPrevChapterPair!.first!.mangaId!, - chapterIndex: nextPrevChapterPair.first!.index!, + mangaId: nextPrevChapterPair!.first!.mangaId, + chapterIndex: nextPrevChapterPair.first!.index, ).pushReplacement(context), child: Text( context.l10n.nextChapter( - nextPrevChapterPair?.first?.getDisplayName(context) ?? "", + nextPrevChapterPair?.first?.name ?? "", ), ), ), diff --git a/lib/src/features/manga_book/presentation/reader/widgets/reader_mode/continuous_reader_mode.dart b/lib/src/features/manga_book/presentation/reader/widgets/reader_mode/continuous_reader_mode.dart index bb436cbb..fc55e3a4 100644 --- a/lib/src/features/manga_book/presentation/reader/widgets/reader_mode/continuous_reader_mode.dart +++ b/lib/src/features/manga_book/presentation/reader/widgets/reader_mode/continuous_reader_mode.dart @@ -48,7 +48,7 @@ class ContinuousReaderMode extends HookConsumerWidget { final scrollController = useMemoized(() => ItemScrollController()); final positionsListener = useMemoized(() => ItemPositionsListener.create()); final currentIndex = useState( - chapter.read.ifNull() + chapter.isRead.ifNull() ? 0 : (chapter.lastPageRead).getValueOnNullOrNegative(), ); @@ -136,12 +136,12 @@ class ContinuousReaderMode extends HookConsumerWidget { ScrollablePositionedList.separated( itemScrollController: scrollController, itemPositionsListener: positionsListener, - initialScrollIndex: chapter.read.ifNull() + initialScrollIndex: chapter.isRead.ifNull() ? 0 : chapter.lastPageRead.getValueOnNullOrNegative(), scrollDirection: scrollDirection, reverse: reverse, - itemCount: chapter.pageCount ?? 0, + itemCount: chapter.pageCount, minCacheExtent: scrollDirection == Axis.vertical ? context.height * 2 : context.width * 2, @@ -155,8 +155,8 @@ class ContinuousReaderMode extends HookConsumerWidget { : BoxFit.fitHeight, appendApiToUrl: true, imageUrl: MangaUrl.chapterPageWithIndex( - chapterIndex: chapter.index!, - mangaId: manga.id!, + chapterIndex: chapter.index, + mangaId: manga.id, pageIndex: index, ), progressIndicatorBuilder: (_, __, downloadProgress) => Center( @@ -174,7 +174,7 @@ class ContinuousReaderMode extends HookConsumerWidget { child: child, ), ); - if (index == 0 || index == (chapter.pageCount ?? 1) - 1) { + if (index == 0 || index == chapter.pageCount - 1) { final bool reverseDirection = scrollDirection == Axis.horizontal && reverse; final separator = SizedBox( diff --git a/lib/src/features/manga_book/presentation/reader/widgets/reader_mode/single_page_reader_mode.dart b/lib/src/features/manga_book/presentation/reader/widgets/reader_mode/single_page_reader_mode.dart index b20c6abe..df915f5f 100644 --- a/lib/src/features/manga_book/presentation/reader/widgets/reader_mode/single_page_reader_mode.dart +++ b/lib/src/features/manga_book/presentation/reader/widgets/reader_mode/single_page_reader_mode.dart @@ -45,7 +45,7 @@ class SinglePageReaderMode extends HookConsumerWidget { Widget build(BuildContext context, WidgetRef ref) { final cacheManager = useMemoized(() => DefaultCacheManager()); final scrollController = usePageController( - initialPage: chapter.read.ifNull() + initialPage: chapter.isRead.ifNull() ? 0 : chapter.lastPageRead.getValueOnNullOrNegative(), ); @@ -58,8 +58,8 @@ class SinglePageReaderMode extends HookConsumerWidget { cacheManager.getServerFile( ref, MangaUrl.chapterPageWithIndex( - chapterIndex: chapter.index!, - mangaId: manga.id!, + chapterIndex: chapter.index, + mangaId: manga.id, pageIndex: currentPage - 1, ), ); @@ -69,8 +69,8 @@ class SinglePageReaderMode extends HookConsumerWidget { cacheManager.getServerFile( ref, MangaUrl.chapterPageWithIndex( - chapterIndex: chapter.index!, - mangaId: manga.id!, + chapterIndex: chapter.index, + mangaId: manga.id, pageIndex: currentPage + 1, ), ); @@ -80,8 +80,8 @@ class SinglePageReaderMode extends HookConsumerWidget { cacheManager.getServerFile( ref, MangaUrl.chapterPageWithIndex( - chapterIndex: chapter.index!, - mangaId: manga.id!, + chapterIndex: chapter.index, + mangaId: manga.id, pageIndex: currentPage + 2, ), ); @@ -126,8 +126,8 @@ class SinglePageReaderMode extends HookConsumerWidget { size: Size.fromHeight(context.height), appendApiToUrl: true, imageUrl: MangaUrl.chapterPageWithIndex( - chapterIndex: chapter.index!, - mangaId: manga.id!, + chapterIndex: chapter.index, + mangaId: manga.id, pageIndex: index, ), progressIndicatorBuilder: (context, url, downloadProgress) => diff --git a/lib/src/features/manga_book/presentation/reader/widgets/reader_wrapper.dart b/lib/src/features/manga_book/presentation/reader/widgets/reader_wrapper.dart index c5f42ed3..62c1424d 100644 --- a/lib/src/features/manga_book/presentation/reader/widgets/reader_wrapper.dart +++ b/lib/src/features/manga_book/presentation/reader/widgets/reader_wrapper.dart @@ -68,7 +68,7 @@ class ReaderWrapper extends HookConsumerWidget { Widget build(BuildContext context, WidgetRef ref) { final nextPrevChapterPair = ref.watch( getNextAndPreviousChaptersProvider( - mangaId: manga.id!, + mangaId: manga.id, chapterIndex: "${chapter.index}", ), ); @@ -90,13 +90,14 @@ class ReaderWrapper extends HookConsumerWidget { final visibility = useState(ref.read(readerInitialOverlayProvider).ifNull()); final mangaReaderPadding = - useState(manga.meta?.readerPadding ?? localMangaReaderPadding); + useState(manga.metaData.readerPadding ?? localMangaReaderPadding); final mangaReaderMagnifierSize = useState( - manga.meta?.readerMagnifierSize ?? localMangaReaderMagnifierSize, + manga.metaData.readerMagnifierSize ?? localMangaReaderMagnifierSize, ); - final mangaReaderMode = manga.meta?.readerMode ?? ReaderMode.defaultReader; - final mangaReaderNavigationLayout = manga.meta?.readerNavigationLayout ?? + final mangaReaderMode = + manga.metaData.readerMode ?? ReaderMode.defaultReader; + final mangaReaderNavigationLayout = manga.metaData.readerNavigationLayout ?? ReaderNavigationLayout.defaultNavigation; final showReaderModePopup = useCallback( @@ -111,12 +112,12 @@ class ReaderWrapper extends HookConsumerWidget { if (context.mounted) Navigator.pop(context); await AsyncValue.guard( () => ref.read(mangaBookRepositoryProvider).patchMangaMeta( - mangaId: manga.id!, + mangaId: manga.id, key: MangaMetaKeys.readerMode.key, value: enumValue.name, ), ); - ref.invalidate(mangaWithIdProvider(mangaId: manga.id!)); + ref.invalidate(mangaWithIdProvider(mangaId: manga.id)); }, ), ), @@ -135,12 +136,12 @@ class ReaderWrapper extends HookConsumerWidget { if (context.mounted) Navigator.pop(context); await AsyncValue.guard( () => ref.read(mangaBookRepositoryProvider).patchMangaMeta( - mangaId: manga.id!, + mangaId: manga.id, key: MangaMetaKeys.readerNavigationLayout.key, value: enumValue.name, ), ); - ref.invalidate(mangaWithIdProvider(mangaId: manga.id!)); + ref.invalidate(mangaWithIdProvider(mangaId: manga.id)); }, ), ), @@ -182,13 +183,13 @@ class ReaderWrapper extends HookConsumerWidget { title: ListTile( title: (manga.title).isNotBlank ? Text( - "${manga.title}", + manga.title, overflow: TextOverflow.ellipsis, ) : null, subtitle: (chapter.name).isNotBlank ? Text( - "${chapter.name}", + chapter.name, overflow: TextOverflow.ellipsis, ) : null, @@ -202,10 +203,10 @@ class ReaderWrapper extends HookConsumerWidget { launchUrlInWeb( context, (chapter.realUrl ?? ""), - ref.read(toastProvider(context)), + ref.read(toastProvider), ); }, - icon: const Icon(Icons.public), + icon: const Icon(Icons.public_rounded), ) ], ) @@ -247,12 +248,12 @@ class ReaderWrapper extends HookConsumerWidget { onChanged: (value) { AsyncValue.guard( () => ref.read(mangaBookRepositoryProvider).patchMangaMeta( - mangaId: manga.id!, + mangaId: manga.id, key: MangaMetaKeys.readerPadding.key, value: value, ), ); - ref.invalidate(mangaWithIdProvider(mangaId: manga.id!)); + ref.invalidate(mangaWithIdProvider(mangaId: manga.id)); }, ), AsyncReaderMagnifierSizeSlider( @@ -260,12 +261,12 @@ class ReaderWrapper extends HookConsumerWidget { onChanged: (value) { AsyncValue.guard( () => ref.read(mangaBookRepositoryProvider).patchMangaMeta( - mangaId: manga.id!, + mangaId: manga.id, key: MangaMetaKeys.readerMagnifierSize.key, value: value, ), ); - ref.invalidate(mangaWithIdProvider(mangaId: manga.id!)); + ref.invalidate(mangaWithIdProvider(mangaId: manga.id)); }, ), ], @@ -284,9 +285,9 @@ class ReaderWrapper extends HookConsumerWidget { onPressed: nextPrevChapterPair?.second != null ? () => ReaderRoute( mangaId: - nextPrevChapterPair!.second!.mangaId!, + nextPrevChapterPair!.second!.mangaId, chapterIndex: - nextPrevChapterPair.second!.index!, + nextPrevChapterPair.second!.index, toPrev: true, transVertical: scrollDirection != Axis.vertical, @@ -300,7 +301,7 @@ class ReaderWrapper extends HookConsumerWidget { Expanded( child: PageNumberSlider( currentValue: currentIndex, - maxValue: chapter.pageCount ?? 1, + maxValue: chapter.pageCount, onChanged: (index) => onChanged(index), inverted: invertTap, ), @@ -311,9 +312,9 @@ class ReaderWrapper extends HookConsumerWidget { onPressed: nextPrevChapterPair?.first != null ? () => ReaderRoute( mangaId: - nextPrevChapterPair!.first!.mangaId!, + nextPrevChapterPair!.first!.mangaId, chapterIndex: - nextPrevChapterPair.first!.index!, + nextPrevChapterPair.first!.index, transVertical: scrollDirection != Axis.vertical, ).pushReplacement(context) @@ -336,27 +337,22 @@ class ReaderWrapper extends HookConsumerWidget { child: Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ - if (chapter.index != null && - chapter.bookmarked != null) - SingleChapterActionIcon( - icon: chapter.bookmarked! - ? Icons.bookmark_rounded - : Icons.bookmark_outline_rounded, - chapterIndex: chapter.index!, - mangaId: manga.id!, - chapterPut: ChapterPut( - bookmarked: !chapter.bookmarked!, - ), - refresh: () async { - if (manga.id != null && - chapter.index != null) { - return ref.refresh(chapterProvider( - mangaId: manga.id!, - chapterIndex: chapter.index!, - ).future); - } - }, + SingleChapterActionIcon( + icon: chapter.isBookmarked + ? Icons.bookmark_rounded + : Icons.bookmark_outline_rounded, + chapterIndex: chapter.index, + mangaId: manga.id, + chapterPut: ChapterPut( + bookmarked: !chapter.isBookmarked, ), + refresh: () async { + return ref.refresh(chapterProvider( + mangaId: manga.id, + chapterIndex: chapter.index, + ).future); + }, + ), IconButton( icon: const Icon(Icons.app_settings_alt_outlined), onPressed: () => showReaderModePopup(), @@ -390,8 +386,8 @@ class ReaderWrapper extends HookConsumerWidget { onInvoke: (intent) { nextPrevChapterPair?.second != null ? ReaderRoute( - mangaId: nextPrevChapterPair!.second!.mangaId!, - chapterIndex: nextPrevChapterPair.second!.index!, + mangaId: nextPrevChapterPair!.second!.mangaId, + chapterIndex: nextPrevChapterPair.second!.index, toPrev: true, transVertical: scrollDirection != Axis.vertical, ).pushReplacement(context) @@ -402,8 +398,8 @@ class ReaderWrapper extends HookConsumerWidget { NextChapterIntent: CallbackAction( onInvoke: (intent) => nextPrevChapterPair?.first != null ? ReaderRoute( - mangaId: nextPrevChapterPair!.first!.mangaId!, - chapterIndex: nextPrevChapterPair.first!.index!, + mangaId: nextPrevChapterPair!.first!.mangaId, + chapterIndex: nextPrevChapterPair.first!.index, transVertical: scrollDirection != Axis.vertical, ).pushReplacement(context) : onNext(), @@ -423,7 +419,7 @@ class ReaderWrapper extends HookConsumerWidget { toggleVisibility: () => visibility.value = !visibility.value, scrollDirection: scrollDirection, - mangaId: manga.id!, + mangaId: manga.id, mangaReaderPadding: mangaReaderPadding.value, mangaReaderMagnifierSize: mangaReaderMagnifierSize.value, onNext: onNext, @@ -486,14 +482,14 @@ class ReaderView extends HookWidget { nextChapter() => prevNextChapterPair?.first != null ? ReaderRoute( mangaId: mangaId, - chapterIndex: prevNextChapterPair!.first!.index!, + chapterIndex: prevNextChapterPair!.first!.index, transVertical: scrollDirection != Axis.vertical, ).pushReplacement(context) : null; prevChapter() => prevNextChapterPair?.second != null ? ReaderRoute( mangaId: mangaId, - chapterIndex: prevNextChapterPair!.second!.index!, + chapterIndex: prevNextChapterPair!.second!.index, toPrev: true, transVertical: scrollDirection != Axis.vertical, ).pushReplacement(context) diff --git a/lib/src/features/manga_book/presentation/updates/updates_screen.dart b/lib/src/features/manga_book/presentation/updates/updates_screen.dart index 56c1f5eb..c9c47651 100644 --- a/lib/src/features/manga_book/presentation/updates/updates_screen.dart +++ b/lib/src/features/manga_book/presentation/updates/updates_screen.dart @@ -118,14 +118,14 @@ class UpdatesScreen extends HookConsumerWidget { firstPageProgressIndicatorBuilder: (context) => const CenterSorayomiShimmerIndicator(), firstPageErrorIndicatorBuilder: (context) => Emoticons( - text: controller.error.toString(), + title: controller.error.toString(), button: TextButton( onPressed: () => controller.refresh(), child: Text(context.l10n.retry), ), ), noItemsFoundIndicatorBuilder: (context) => Emoticons( - text: context.l10n.noUpdatesFound, + title: context.l10n.noUpdatesFound, button: TextButton( onPressed: () => controller.refresh(), child: Text(context.l10n.refresh), @@ -134,8 +134,9 @@ class UpdatesScreen extends HookConsumerWidget { itemBuilder: (context, item, index) { int? previousDate; try { - previousDate = - controller.itemList?[index - 1].chapter?.fetchedAt; + previousDate = int.tryParse( + controller.itemList?[index - 1].chapter?.fetchedAt.value ?? + ""); } catch (e) { previousDate = null; } @@ -147,10 +148,10 @@ class UpdatesScreen extends HookConsumerWidget { } else { final chapter = ref .refresh(chapterProvider( - mangaId: item.manga!.id!, - chapterIndex: item.chapter!.index!, + mangaId: item.manga!.id, + chapterIndex: item.chapter!.index, )) - .valueOrToast(ref.read(toastProvider(context))); + .valueOrToast(ref.read(toastProvider)); try { controller.itemList = [...?controller.itemList] ..replaceRange(index, index + 1, [ @@ -164,15 +165,16 @@ class UpdatesScreen extends HookConsumerWidget { } }, isSelected: - selectedChapters.value.containsKey(item.chapter!.id!), + selectedChapters.value.containsKey(item.chapter!.id), canTapSelect: selectedChapters.value.isNotEmpty, toggleSelect: (Chapter val) { if ((val.id).isNull) return; selectedChapters.value = - (selectedChapters.value.toggleKey(val.id!, val)); + (selectedChapters.value.toggleKey(val.id, val)); }, ); - if ((item.chapter?.fetchedAt).isSameDayAs(previousDate)) { + if ((int.tryParse(item.chapter?.fetchedAt.value ?? "")) + .isSameDayAs(previousDate)) { return chapterTile; } else { return Column( @@ -180,7 +182,8 @@ class UpdatesScreen extends HookConsumerWidget { children: [ ListTile( title: Text( - item.chapter!.fetchedAt.toDaysAgoFromSeconds(context), + int.tryParse(item.chapter?.fetchedAt.value ?? "") + .toDaysAgoFromSeconds(context), ), ), chapterTile, diff --git a/lib/src/features/manga_book/presentation/updates/widgets/chapter_manga_list_tile.dart b/lib/src/features/manga_book/presentation/updates/widgets/chapter_manga_list_tile.dart index f78f4c41..cd558829 100644 --- a/lib/src/features/manga_book/presentation/updates/widgets/chapter_manga_list_tile.dart +++ b/lib/src/features/manga_book/presentation/updates/widgets/chapter_manga_list_tile.dart @@ -33,7 +33,7 @@ class ChapterMangaListTile extends StatelessWidget { @override Widget build(BuildContext context) { - final color = (pair.chapter?.read).ifNull() ? Colors.grey : null; + final color = (pair.chapter?.isRead).ifNull() ? Colors.grey : null; return GestureDetector( onSecondaryTap: pair.chapter != null ? () => toggleSelect(pair.chapter!) : null, @@ -41,8 +41,8 @@ class ChapterMangaListTile extends StatelessWidget { title: Row( mainAxisSize: MainAxisSize.min, children: [ - if ((pair.chapter?.bookmarked).ifNull()) ...[ - const Icon(Icons.bookmark, size: 20), + if ((pair.chapter?.isBookmarked).ifNull()) ...[ + const Icon(Icons.bookmark_rounded, size: 20), const Gap(4), ], Expanded( @@ -59,7 +59,7 @@ class ChapterMangaListTile extends StatelessWidget { onTap: () { if ((pair.manga?.id) != null) { MangaRoute( - mangaId: pair.manga!.id!, + mangaId: pair.manga!.id, ).push(context); } }, @@ -75,8 +75,8 @@ class ChapterMangaListTile extends StatelessWidget { ), trailing: (pair.manga?.id != null && pair.chapter?.index != null) ? DownloadStatusIcon( - isDownloaded: (pair.chapter?.downloaded).ifNull(), - mangaId: pair.manga!.id!, + isDownloaded: (pair.chapter?.isDownloaded).ifNull(), + mangaId: pair.manga!.id, chapter: pair.chapter!, updateData: updatePair, ) @@ -91,8 +91,8 @@ class ChapterMangaListTile extends StatelessWidget { toggleSelect(pair.chapter!); } else { ReaderRoute( - mangaId: pair.manga!.id!, - chapterIndex: pair.chapter!.index!, + mangaId: pair.manga!.id, + chapterIndex: pair.chapter!.index, showReaderLayoutAnimation: true, ).push(context); } diff --git a/lib/src/features/manga_book/widgets/chapter_actions/multi_chapters_action_icon.dart b/lib/src/features/manga_book/widgets/chapter_actions/multi_chapters_action_icon.dart index 3599797c..1f7f57a2 100644 --- a/lib/src/features/manga_book/widgets/chapter_actions/multi_chapters_action_icon.dart +++ b/lib/src/features/manga_book/widgets/chapter_actions/multi_chapters_action_icon.dart @@ -44,7 +44,7 @@ class MultiChaptersActionIcon extends ConsumerWidget { ), ); if (context.mounted) { - result.showToastOnError(ref.read(toastProvider(context))); + result.showToastOnError(ref.read(toastProvider)); } await refresh(change != null); }, diff --git a/lib/src/features/manga_book/widgets/chapter_actions/multi_chapters_actions_bottom_app_bar.dart b/lib/src/features/manga_book/widgets/chapter_actions/multi_chapters_actions_bottom_app_bar.dart index f078c3d4..a88f44fb 100644 --- a/lib/src/features/manga_book/widgets/chapter_actions/multi_chapters_actions_bottom_app_bar.dart +++ b/lib/src/features/manga_book/widgets/chapter_actions/multi_chapters_actions_bottom_app_bar.dart @@ -6,7 +6,6 @@ import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; - import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../constants/app_sizes.dart'; @@ -46,24 +45,24 @@ class MultiChaptersActionsBottomAppBar extends HookConsumerWidget { child: Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ - if (selectedList.any((e) => e.bookmarked.ifNull())) + if (selectedList.any((e) => e.isBookmarked.ifNull())) MultiChaptersActionIcon( - icon: Icons.bookmark_remove_sharp, + icon: Icons.bookmark_remove_rounded, chapterList: chapterList, change: ChapterChange(isBookmarked: false), refresh: refresh, ), - if (selectedList.any((e) => !(e.bookmarked.ifNull()))) + if (selectedList.any((e) => !(e.isBookmarked.ifNull()))) MultiChaptersActionIcon( - icon: Icons.bookmark_add_sharp, + icon: Icons.bookmark_add_rounded, chapterList: chapterList, change: ChapterChange(isBookmarked: true), refresh: refresh, ), if (selectedList.isSingletonList && hasPreviousDone) SingleChapterActionIcon( - chapterIndex: selectedChapters.value[chapterList.first]!.index!, - mangaId: selectedChapters.value[chapterList.first]!.mangaId!, + chapterIndex: selectedChapters.value[chapterList.first]!.index, + mangaId: selectedChapters.value[chapterList.first]!.mangaId, imageIcon: ImageIcon( Assets.icons.previousDone.provider(), color: context.theme.cardTheme.color, @@ -71,32 +70,32 @@ class MultiChaptersActionsBottomAppBar extends HookConsumerWidget { chapterPut: ChapterPut(markPrevRead: true), refresh: refresh, ), - if (selectedList.any((e) => !(e.read.ifNull()))) + if (selectedList.any((e) => !(e.isRead.ifNull()))) MultiChaptersActionIcon( - icon: Icons.done_all_sharp, + icon: Icons.done_all_rounded, chapterList: chapterList, change: ChapterChange(isRead: true, lastPageRead: 0), refresh: refresh, ), - if (selectedList.any((e) => e.read.ifNull())) + if (selectedList.any((e) => e.isRead.ifNull())) MultiChaptersActionIcon( - icon: Icons.remove_done_sharp, + icon: Icons.remove_done_rounded, chapterList: chapterList, change: ChapterChange(isRead: false), refresh: refresh, ), - if (selectedList.any((e) => !(e.downloaded.ifNull()))) + if (selectedList.any((e) => !(e.isDownloaded.ifNull()))) MultiChaptersActionIcon( - icon: Icons.download_sharp, + icon: Icons.download_rounded, chapterList: [ for (var e in selectedList) - if (!(e.downloaded.ifNull(true))) (e.id!) + if (!(e.isDownloaded.ifNull(true))) (e.id) ], refresh: refresh, ), - if (selectedList.any((e) => e.downloaded.ifNull())) + if (selectedList.any((e) => e.isDownloaded.ifNull())) MultiChaptersActionIcon( - icon: Icons.delete_sharp, + icon: Icons.delete_rounded, chapterList: chapterList, change: ChapterChange(delete: true), refresh: refresh, diff --git a/lib/src/features/manga_book/widgets/chapter_actions/single_chapter_action_icon.dart b/lib/src/features/manga_book/widgets/chapter_actions/single_chapter_action_icon.dart index 05587c4d..ffb1d996 100644 --- a/lib/src/features/manga_book/widgets/chapter_actions/single_chapter_action_icon.dart +++ b/lib/src/features/manga_book/widgets/chapter_actions/single_chapter_action_icon.dart @@ -42,7 +42,7 @@ class SingleChapterActionIcon extends ConsumerWidget { ), )); if (context.mounted) { - result.showToastOnError(ref.read(toastProvider(context))); + result.showToastOnError(ref.read(toastProvider)); } await refresh(); }, diff --git a/lib/src/features/manga_book/widgets/download_status_icon.dart b/lib/src/features/manga_book/widgets/download_status_icon.dart index db0c5d7a..fa4cc0e1 100644 --- a/lib/src/features/manga_book/widgets/download_status_icon.dart +++ b/lib/src/features/manga_book/widgets/download_status_icon.dart @@ -6,7 +6,6 @@ import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; - import 'package:flutter_hooks/flutter_hooks.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; @@ -44,21 +43,20 @@ class DownloadStatusIcon extends HookConsumerWidget { } Future toggleChapterToQueue( - Toast toast, + Toast? toast, WidgetRef ref, { bool isAdd = false, bool isRemove = false, bool isError = false, }) async { try { - if (chapter.index == null) return; (await AsyncValue.guard(() async { final repo = ref.read(downloadsRepositoryProvider); if (isRemove || isError) { - await repo.removeChapterFromDownloadQueue(mangaId, chapter.index!); + await repo.removeChapterFromDownloadQueue(mangaId, chapter.index); } if (isAdd || isError) { - await repo.addChapterToDownloadQueue(mangaId, chapter.index!); + await repo.addChapterToDownloadQueue(mangaId, chapter.index); } })) .showToastOnError(toast); @@ -71,8 +69,8 @@ class DownloadStatusIcon extends HookConsumerWidget { Widget build(BuildContext context, WidgetRef ref) { final isLoading = useState(false); - final toast = ref.watch(toastProvider(context)); - final download = ref.watch(downloadsFromIdProvider(chapter.id ?? -1)); + final toast = ref.watch(toastProvider); + final download = ref.watch(downloadsFromIdProvider(chapter.id)); useEffect(() { if (download?.state == "Finished") { Future.microtask( @@ -110,7 +108,7 @@ class DownloadStatusIcon extends HookConsumerWidget { (await AsyncValue.guard( () => ref.read(mangaBookRepositoryProvider).modifyBulkChapters( batch: ChapterBatch( - chapterIds: [chapter.id!], + chapterIds: [chapter.id], change: ChapterChange(delete: true), ), ), diff --git a/lib/src/features/manga_book/widgets/update_status_fab.dart b/lib/src/features/manga_book/widgets/update_status_fab.dart index 3a9e511a..b96f9621 100644 --- a/lib/src/features/manga_book/widgets/update_status_fab.dart +++ b/lib/src/features/manga_book/widgets/update_status_fab.dart @@ -19,8 +19,10 @@ class UpdateStatusFab extends ConsumerWidget { final updateStatus = ref.watch(updatesSocketProvider); final showStatus = (updateStatus.valueOrNull?.isUpdateChecking).ifNull(); return FloatingActionButton.extended( - icon: showStatus ? null : const Icon(Icons.refresh), + icon: showStatus ? null : const Icon(Icons.refresh_rounded), onPressed: () => showStatus + //TODO: showStatus + ? const UpdateStatusRoute().push(context) : ref.read(updatesRepositoryProvider).fetchUpdates(), label: showStatus diff --git a/lib/src/features/manga_book/widgets/update_status_popup_menu.dart b/lib/src/features/manga_book/widgets/update_status_popup_menu.dart index beef86ca..23491ced 100644 --- a/lib/src/features/manga_book/widgets/update_status_popup_menu.dart +++ b/lib/src/features/manga_book/widgets/update_status_popup_menu.dart @@ -8,7 +8,6 @@ import 'package:flutter/material.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../constants/app_sizes.dart'; - import '../../../routes/router_config.dart'; import '../../../utils/extensions/custom_extensions.dart'; import '../../library/domain/category/category_model.dart'; @@ -30,7 +29,7 @@ class UpdateStatusPopupMenu extends ConsumerWidget { itemBuilder: (context) { final category = getCategory?.call(); return [ - if (category != null && category.id != null && category.id != 0) + if (category != null && category.id != 0) PopupMenuItem( child: Text(context.l10n.categoryUpdate), onTap: () => ref diff --git a/lib/src/features/manga_book/widgets/update_status_summary_sheet.dart b/lib/src/features/manga_book/widgets/update_status_summary_sheet.dart index 723d466d..0c1f748e 100644 --- a/lib/src/features/manga_book/widgets/update_status_summary_sheet.dart +++ b/lib/src/features/manga_book/widgets/update_status_summary_sheet.dart @@ -90,7 +90,7 @@ class UpdateStatusExpansionTile extends StatelessWidget { .map((e) => MangaCoverListTile( manga: e, showCountBadges: true, - onPressed: () => MangaRoute(mangaId: e.id!).push(context), + onPressed: () => MangaRoute(mangaId: e.id).push(context), )) .toList(), ); diff --git a/lib/src/features/quick_open/domain/quick_search_result.freezed.dart b/lib/src/features/quick_open/domain/quick_search_result.freezed.dart index e341f41f..07c0b8e9 100644 --- a/lib/src/features/quick_open/domain/quick_search_result.freezed.dart +++ b/lib/src/features/quick_open/domain/quick_search_result.freezed.dart @@ -348,8 +348,6 @@ abstract class _$$SourceQuickSearchResultImplCopyWith<$Res> { __$$SourceQuickSearchResultImplCopyWithImpl<$Res>; @useResult $Res call({Source source}); - - $SourceCopyWith<$Res> get source; } /// @nodoc @@ -364,23 +362,15 @@ class __$$SourceQuickSearchResultImplCopyWithImpl<$Res> @pragma('vm:prefer-inline') @override $Res call({ - Object? source = null, + Object? source = freezed, }) { return _then(_$SourceQuickSearchResultImpl( - source: null == source + source: freezed == source ? _value.source : source // ignore: cast_nullable_to_non_nullable as Source, )); } - - @override - @pragma('vm:prefer-inline') - $SourceCopyWith<$Res> get source { - return $SourceCopyWith<$Res>(_value.source, (value) { - return _then(_value.copyWith(source: value)); - }); - } } /// @nodoc @@ -401,11 +391,12 @@ class _$SourceQuickSearchResultImpl implements SourceQuickSearchResult { return identical(this, other) || (other.runtimeType == runtimeType && other is _$SourceQuickSearchResultImpl && - (identical(other.source, source) || other.source == source)); + const DeepCollectionEquality().equals(other.source, source)); } @override - int get hashCode => Object.hash(runtimeType, source); + int get hashCode => + Object.hash(runtimeType, const DeepCollectionEquality().hash(source)); @JsonKey(ignore: true) @override @@ -548,8 +539,6 @@ abstract class _$$SourceSearchQuickSearchResultImplCopyWith<$Res> { __$$SourceSearchQuickSearchResultImplCopyWithImpl<$Res>; @useResult $Res call({Source source, String query}); - - $SourceCopyWith<$Res> get source; } /// @nodoc @@ -565,11 +554,11 @@ class __$$SourceSearchQuickSearchResultImplCopyWithImpl<$Res> @pragma('vm:prefer-inline') @override $Res call({ - Object? source = null, + Object? source = freezed, Object? query = null, }) { return _then(_$SourceSearchQuickSearchResultImpl( - source: null == source + source: freezed == source ? _value.source : source // ignore: cast_nullable_to_non_nullable as Source, @@ -579,14 +568,6 @@ class __$$SourceSearchQuickSearchResultImplCopyWithImpl<$Res> as String, )); } - - @override - @pragma('vm:prefer-inline') - $SourceCopyWith<$Res> get source { - return $SourceCopyWith<$Res>(_value.source, (value) { - return _then(_value.copyWith(source: value)); - }); - } } /// @nodoc @@ -611,12 +592,13 @@ class _$SourceSearchQuickSearchResultImpl return identical(this, other) || (other.runtimeType == runtimeType && other is _$SourceSearchQuickSearchResultImpl && - (identical(other.source, source) || other.source == source) && + const DeepCollectionEquality().equals(other.source, source) && (identical(other.query, query) || other.query == query)); } @override - int get hashCode => Object.hash(runtimeType, source, query); + int get hashCode => Object.hash( + runtimeType, const DeepCollectionEquality().hash(source), query); @JsonKey(ignore: true) @override @@ -763,8 +745,6 @@ abstract class _$$CategoryQuickSearchResultImplCopyWith<$Res> { __$$CategoryQuickSearchResultImplCopyWithImpl<$Res>; @useResult $Res call({Category category}); - - $CategoryCopyWith<$Res> get category; } /// @nodoc @@ -780,23 +760,15 @@ class __$$CategoryQuickSearchResultImplCopyWithImpl<$Res> @pragma('vm:prefer-inline') @override $Res call({ - Object? category = null, + Object? category = freezed, }) { return _then(_$CategoryQuickSearchResultImpl( - category: null == category + category: freezed == category ? _value.category : category // ignore: cast_nullable_to_non_nullable as Category, )); } - - @override - @pragma('vm:prefer-inline') - $CategoryCopyWith<$Res> get category { - return $CategoryCopyWith<$Res>(_value.category, (value) { - return _then(_value.copyWith(category: value)); - }); - } } /// @nodoc @@ -817,12 +789,12 @@ class _$CategoryQuickSearchResultImpl implements CategoryQuickSearchResult { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CategoryQuickSearchResultImpl && - (identical(other.category, category) || - other.category == category)); + const DeepCollectionEquality().equals(other.category, category)); } @override - int get hashCode => Object.hash(runtimeType, category); + int get hashCode => + Object.hash(runtimeType, const DeepCollectionEquality().hash(category)); @JsonKey(ignore: true) @override @@ -965,9 +937,6 @@ abstract class _$$CategoryMangaQuickSearchResultImplCopyWith<$Res> { __$$CategoryMangaQuickSearchResultImplCopyWithImpl<$Res>; @useResult $Res call({Category category, Manga manga}); - - $CategoryCopyWith<$Res> get category; - $MangaCopyWith<$Res> get manga; } /// @nodoc @@ -983,36 +952,20 @@ class __$$CategoryMangaQuickSearchResultImplCopyWithImpl<$Res> @pragma('vm:prefer-inline') @override $Res call({ - Object? category = null, - Object? manga = null, + Object? category = freezed, + Object? manga = freezed, }) { return _then(_$CategoryMangaQuickSearchResultImpl( - category: null == category + category: freezed == category ? _value.category : category // ignore: cast_nullable_to_non_nullable as Category, - manga: null == manga + manga: freezed == manga ? _value.manga : manga // ignore: cast_nullable_to_non_nullable as Manga, )); } - - @override - @pragma('vm:prefer-inline') - $CategoryCopyWith<$Res> get category { - return $CategoryCopyWith<$Res>(_value.category, (value) { - return _then(_value.copyWith(category: value)); - }); - } - - @override - @pragma('vm:prefer-inline') - $MangaCopyWith<$Res> get manga { - return $MangaCopyWith<$Res>(_value.manga, (value) { - return _then(_value.copyWith(manga: value)); - }); - } } /// @nodoc @@ -1037,13 +990,15 @@ class _$CategoryMangaQuickSearchResultImpl return identical(this, other) || (other.runtimeType == runtimeType && other is _$CategoryMangaQuickSearchResultImpl && - (identical(other.category, category) || - other.category == category) && - (identical(other.manga, manga) || other.manga == manga)); + const DeepCollectionEquality().equals(other.category, category) && + const DeepCollectionEquality().equals(other.manga, manga)); } @override - int get hashCode => Object.hash(runtimeType, category, manga); + int get hashCode => Object.hash( + runtimeType, + const DeepCollectionEquality().hash(category), + const DeepCollectionEquality().hash(manga)); @JsonKey(ignore: true) @override @@ -1190,10 +1145,6 @@ abstract class _$$CategoryMangaChapterQuickSearchResultImplCopyWith<$Res> { __$$CategoryMangaChapterQuickSearchResultImplCopyWithImpl<$Res>; @useResult $Res call({Category? category, Manga manga, Chapter chapter}); - - $CategoryCopyWith<$Res>? get category; - $MangaCopyWith<$Res> get manga; - $ChapterCopyWith<$Res> get chapter; } /// @nodoc @@ -1210,52 +1161,24 @@ class __$$CategoryMangaChapterQuickSearchResultImplCopyWithImpl<$Res> @override $Res call({ Object? category = freezed, - Object? manga = null, - Object? chapter = null, + Object? manga = freezed, + Object? chapter = freezed, }) { return _then(_$CategoryMangaChapterQuickSearchResultImpl( category: freezed == category ? _value.category : category // ignore: cast_nullable_to_non_nullable as Category?, - manga: null == manga + manga: freezed == manga ? _value.manga : manga // ignore: cast_nullable_to_non_nullable as Manga, - chapter: null == chapter + chapter: freezed == chapter ? _value.chapter : chapter // ignore: cast_nullable_to_non_nullable as Chapter, )); } - - @override - @pragma('vm:prefer-inline') - $CategoryCopyWith<$Res>? get category { - if (_value.category == null) { - return null; - } - - return $CategoryCopyWith<$Res>(_value.category!, (value) { - return _then(_value.copyWith(category: value)); - }); - } - - @override - @pragma('vm:prefer-inline') - $MangaCopyWith<$Res> get manga { - return $MangaCopyWith<$Res>(_value.manga, (value) { - return _then(_value.copyWith(manga: value)); - }); - } - - @override - @pragma('vm:prefer-inline') - $ChapterCopyWith<$Res> get chapter { - return $ChapterCopyWith<$Res>(_value.chapter, (value) { - return _then(_value.copyWith(chapter: value)); - }); - } } /// @nodoc @@ -1282,14 +1205,17 @@ class _$CategoryMangaChapterQuickSearchResultImpl return identical(this, other) || (other.runtimeType == runtimeType && other is _$CategoryMangaChapterQuickSearchResultImpl && - (identical(other.category, category) || - other.category == category) && - (identical(other.manga, manga) || other.manga == manga) && - (identical(other.chapter, chapter) || other.chapter == chapter)); + const DeepCollectionEquality().equals(other.category, category) && + const DeepCollectionEquality().equals(other.manga, manga) && + const DeepCollectionEquality().equals(other.chapter, chapter)); } @override - int get hashCode => Object.hash(runtimeType, category, manga, chapter); + int get hashCode => Object.hash( + runtimeType, + const DeepCollectionEquality().hash(category), + const DeepCollectionEquality().hash(manga), + const DeepCollectionEquality().hash(chapter)); @JsonKey(ignore: true) @override @@ -1440,9 +1366,6 @@ abstract class _$$MangaQuickSearchResultImplCopyWith<$Res> { __$$MangaQuickSearchResultImplCopyWithImpl<$Res>; @useResult $Res call({Source? source, Manga manga}); - - $SourceCopyWith<$Res>? get source; - $MangaCopyWith<$Res> get manga; } /// @nodoc @@ -1458,39 +1381,19 @@ class __$$MangaQuickSearchResultImplCopyWithImpl<$Res> @override $Res call({ Object? source = freezed, - Object? manga = null, + Object? manga = freezed, }) { return _then(_$MangaQuickSearchResultImpl( source: freezed == source ? _value.source : source // ignore: cast_nullable_to_non_nullable as Source?, - manga: null == manga + manga: freezed == manga ? _value.manga : manga // ignore: cast_nullable_to_non_nullable as Manga, )); } - - @override - @pragma('vm:prefer-inline') - $SourceCopyWith<$Res>? get source { - if (_value.source == null) { - return null; - } - - return $SourceCopyWith<$Res>(_value.source!, (value) { - return _then(_value.copyWith(source: value)); - }); - } - - @override - @pragma('vm:prefer-inline') - $MangaCopyWith<$Res> get manga { - return $MangaCopyWith<$Res>(_value.manga, (value) { - return _then(_value.copyWith(manga: value)); - }); - } } /// @nodoc @@ -1513,12 +1416,15 @@ class _$MangaQuickSearchResultImpl implements MangaQuickSearchResult { return identical(this, other) || (other.runtimeType == runtimeType && other is _$MangaQuickSearchResultImpl && - (identical(other.source, source) || other.source == source) && - (identical(other.manga, manga) || other.manga == manga)); + const DeepCollectionEquality().equals(other.source, source) && + const DeepCollectionEquality().equals(other.manga, manga)); } @override - int get hashCode => Object.hash(runtimeType, source, manga); + int get hashCode => Object.hash( + runtimeType, + const DeepCollectionEquality().hash(source), + const DeepCollectionEquality().hash(manga)); @JsonKey(ignore: true) @override @@ -1663,10 +1569,6 @@ abstract class _$$ChapterQuickSearchResultImplCopyWith<$Res> { __$$ChapterQuickSearchResultImplCopyWithImpl<$Res>; @useResult $Res call({Source? source, Manga manga, Chapter chapter}); - - $SourceCopyWith<$Res>? get source; - $MangaCopyWith<$Res> get manga; - $ChapterCopyWith<$Res> get chapter; } /// @nodoc @@ -1683,52 +1585,24 @@ class __$$ChapterQuickSearchResultImplCopyWithImpl<$Res> @override $Res call({ Object? source = freezed, - Object? manga = null, - Object? chapter = null, + Object? manga = freezed, + Object? chapter = freezed, }) { return _then(_$ChapterQuickSearchResultImpl( source: freezed == source ? _value.source : source // ignore: cast_nullable_to_non_nullable as Source?, - manga: null == manga + manga: freezed == manga ? _value.manga : manga // ignore: cast_nullable_to_non_nullable as Manga, - chapter: null == chapter + chapter: freezed == chapter ? _value.chapter : chapter // ignore: cast_nullable_to_non_nullable as Chapter, )); } - - @override - @pragma('vm:prefer-inline') - $SourceCopyWith<$Res>? get source { - if (_value.source == null) { - return null; - } - - return $SourceCopyWith<$Res>(_value.source!, (value) { - return _then(_value.copyWith(source: value)); - }); - } - - @override - @pragma('vm:prefer-inline') - $MangaCopyWith<$Res> get manga { - return $MangaCopyWith<$Res>(_value.manga, (value) { - return _then(_value.copyWith(manga: value)); - }); - } - - @override - @pragma('vm:prefer-inline') - $ChapterCopyWith<$Res> get chapter { - return $ChapterCopyWith<$Res>(_value.chapter, (value) { - return _then(_value.copyWith(chapter: value)); - }); - } } /// @nodoc @@ -1754,13 +1628,17 @@ class _$ChapterQuickSearchResultImpl implements ChapterQuickSearchResult { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ChapterQuickSearchResultImpl && - (identical(other.source, source) || other.source == source) && - (identical(other.manga, manga) || other.manga == manga) && - (identical(other.chapter, chapter) || other.chapter == chapter)); + const DeepCollectionEquality().equals(other.source, source) && + const DeepCollectionEquality().equals(other.manga, manga) && + const DeepCollectionEquality().equals(other.chapter, chapter)); } @override - int get hashCode => Object.hash(runtimeType, source, manga, chapter); + int get hashCode => Object.hash( + runtimeType, + const DeepCollectionEquality().hash(source), + const DeepCollectionEquality().hash(manga), + const DeepCollectionEquality().hash(chapter)); @JsonKey(ignore: true) @override diff --git a/lib/src/features/quick_open/presentation/quick_search/controller/quick_search_controller.dart b/lib/src/features/quick_open/presentation/quick_search/controller/quick_search_controller.dart index 397b0f1d..dae8fda4 100644 --- a/lib/src/features/quick_open/presentation/quick_search/controller/quick_search_controller.dart +++ b/lib/src/features/quick_open/presentation/quick_search/controller/quick_search_controller.dart @@ -6,6 +6,7 @@ import 'package:flutter/material.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; + import '../../../../../constants/quick_open_help_text.dart'; import '../../../../../routes/router_config.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; @@ -14,9 +15,11 @@ import '../../../../browse_center/presentation/source/controller/source_controll import '../../../../library/domain/category/category_model.dart'; import '../../../../library/presentation/category/controller/edit_category_controller.dart'; import '../../../../library/presentation/library/controller/library_controller.dart'; +import '../../../../manga_book/domain/chapter/chapter_model.dart'; import '../../../../manga_book/domain/manga/manga_model.dart'; import '../../../../manga_book/presentation/manga_details/controller/manga_details_controller.dart'; import '../../../domain/quick_search_result.dart'; + part 'quick_search_controller.g.dart'; @riverpod @@ -59,7 +62,7 @@ List? processesQuickSearch( List? chapterSearch(Manga manga, {Category? category, String? query}) { final chapterList = ref - .watch(mangaChapterListProvider(mangaId: manga.id!)) + .watch(mangaChapterListProvider(mangaId: manga.id)) .valueOrNull ?.where( (chapter) => chapter.query(query), @@ -90,13 +93,13 @@ List? processesQuickSearch( final mangaChapterQueryList = categoryMangaQueryList[1].split(':'); final mangaList = ref - .watch(categoryMangaListProvider(firstCategory!.id!)) + .watch(categoryMangaListProvider(firstCategory!.id)) .valueOrNull ?.where((e) => e.query(mangaChapterQueryList.firstOrNull)); if (mangaChapterQueryList.length > 1) { final firstManga = mangaList.firstOrNull; - if (firstManga != null && firstManga.id != null) { + if (firstManga != null) { return chapterSearch( firstManga, category: firstCategory, diff --git a/lib/src/features/quick_open/presentation/quick_search/controller/quick_search_controller.g.dart b/lib/src/features/quick_open/presentation/quick_search/controller/quick_search_controller.g.dart index ff6af366..49271638 100644 --- a/lib/src/features/quick_open/presentation/quick_search/controller/quick_search_controller.g.dart +++ b/lib/src/features/quick_open/presentation/quick_search/controller/quick_search_controller.g.dart @@ -7,7 +7,7 @@ part of 'quick_search_controller.dart'; // ************************************************************************** String _$processesQuickSearchHash() => - r'93fc20d8122c2e7cb96f566d756f68d9436cc08c'; + r'20e162df4445824891c7e6340d97215dd99e09a5'; /// Copied from Dart SDK class _SystemHash { diff --git a/lib/src/features/quick_open/presentation/quick_search/widgets/category_query_list_tile.dart b/lib/src/features/quick_open/presentation/quick_search/widgets/category_query_list_tile.dart index e688e71e..ac05f86f 100644 --- a/lib/src/features/quick_open/presentation/quick_search/widgets/category_query_list_tile.dart +++ b/lib/src/features/quick_open/presentation/quick_search/widgets/category_query_list_tile.dart @@ -36,22 +36,22 @@ class CategoryQueryListTile extends StatelessWidget { } else if ((chapter?.name).isBlank) { title = (manga?.title ?? ""); } else { - title = chapter?.getDisplayName(context) ?? ""; + title = chapter?.name ?? ""; } return InkWell( onTap: () { if (chapter?.index != null) { ReaderRoute( - mangaId: manga!.id!, - chapterIndex: chapter!.index!, + mangaId: manga!.id, + chapterIndex: chapter!.index, showReaderLayoutAnimation: true, ).push(context); } else if (manga?.id != null) { - MangaRoute(mangaId: manga!.id!, categoryId: category?.id) + MangaRoute(mangaId: manga!.id, categoryId: category?.id) .push(context); } else { - LibraryRoute(initialCategoryOrder: category?.order).push(context); + LibraryRoute(categoryId: category?.order ?? 0).push(context); } afterClick?.call(); }, diff --git a/lib/src/features/quick_open/presentation/quick_search/widgets/source_query_list_tile.dart b/lib/src/features/quick_open/presentation/quick_search/widgets/source_query_list_tile.dart index d7835bd1..83111dc6 100644 --- a/lib/src/features/quick_open/presentation/quick_search/widgets/source_query_list_tile.dart +++ b/lib/src/features/quick_open/presentation/quick_search/widgets/source_query_list_tile.dart @@ -9,7 +9,6 @@ import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../../constants/app_sizes.dart'; import '../../../../../constants/enum.dart'; - import '../../../../../routes/router_config.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; import '../../../../../widgets/server_image.dart'; @@ -31,19 +30,18 @@ class SourceQueryListTile extends ConsumerWidget { Widget build(BuildContext context, WidgetRef ref) { return ListTile( onTap: (() async { - if (source.id == null) return; - ref.read(sourceLastUsedProvider.notifier).update(source.id); - SourceMangaRoute( - sourceId: source.id!, + ref.read(sourceLastUsedProvider.notifier).update(source.id.value); + SourceTypeRoute( + sourceId: source.id.value, sourceType: query.isBlank ? SourceType.popular : SourceType.filter, query: query, - ).push(context); + ).go(context); afterClick?.call(); }), leading: ClipRRect( borderRadius: KBorderRadius.r8.radius, child: ServerImage( - imageUrl: source.iconUrl ?? "", + imageUrl: source.iconUrl, size: const Size.square(48), ), ), @@ -52,7 +50,7 @@ class SourceQueryListTile extends ConsumerWidget { text: TextSpan( children: [ TextSpan( - text: "${source.displayName ?? source.name ?? ""}/ ", + text: "${source.displayName}/ ", style: Theme.of(context).textTheme.bodySmall?.copyWith( letterSpacing: .1, wordSpacing: .1, @@ -66,10 +64,10 @@ class SourceQueryListTile extends ConsumerWidget { ], ), ) - : Text(source.displayName ?? source.name ?? ""), - subtitle: (source.lang?.displayName).isNotBlank + : Text(source.displayName), + subtitle: (source.language?.displayName).isNotBlank ? Text( - source.lang?.displayName ?? "", + source.language?.displayName ?? "", style: TextStyle(color: context.theme.hintColor), ) : null, diff --git a/lib/src/features/settings/controller/server_controller.dart b/lib/src/features/settings/controller/server_controller.dart new file mode 100644 index 00000000..97f689db --- /dev/null +++ b/lib/src/features/settings/controller/server_controller.dart @@ -0,0 +1,16 @@ +import 'package:riverpod_annotation/riverpod_annotation.dart'; + +import '../../../utils/extensions/custom_extensions.dart'; +import '../data/settings_repository.dart'; + +part 'server_controller.g.dart'; + +@riverpod +class Settings extends _$Settings { + @override + Stream build() => + ref.watch(settingsRepositoryProvider).getServerSettings(); + + void updateState(SettingsDto value) => + state = state.copyWithData((_) => value); +} diff --git a/lib/src/features/settings/controller/server_controller.g.dart b/lib/src/features/settings/controller/server_controller.g.dart new file mode 100644 index 00000000..1017afbb --- /dev/null +++ b/lib/src/features/settings/controller/server_controller.g.dart @@ -0,0 +1,25 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'server_controller.dart'; + +// ************************************************************************** +// RiverpodGenerator +// ************************************************************************** + +String _$settingsHash() => r'7980358be1bb37c35fc365430f5007488c3eb9f8'; + +/// See also [Settings]. +@ProviderFor(Settings) +final settingsProvider = + AutoDisposeStreamNotifierProvider.internal( + Settings.new, + name: r'settingsProvider', + debugGetCreateSourceHash: + const bool.fromEnvironment('dart.vm.product') ? null : _$settingsHash, + dependencies: null, + allTransitiveDependencies: null, +); + +typedef _$Settings = AutoDisposeStreamNotifier; +// ignore_for_file: type=lint +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member diff --git a/lib/src/features/settings/controller/settings_controller.dart b/lib/src/features/settings/controller/settings_controller.dart deleted file mode 100644 index b119b559..00000000 --- a/lib/src/features/settings/controller/settings_controller.dart +++ /dev/null @@ -1,16 +0,0 @@ -import 'package:riverpod_annotation/riverpod_annotation.dart'; - -import '../data/settings_repository.dart'; -import '../domain/automatic_backup_settings_dto.dart'; -import '../domain/restore_status.dart'; - -part 'settings_controller.g.dart'; - -@riverpod -Stream restoreStatus(RestoreStatusRef ref, String restoreId) => - ref.watch(settingsRepositoryProvider).getRestoreStatus(restoreId); - -@riverpod -Stream automaticBackupSettings( - AutomaticBackupSettingsRef ref) => - ref.watch(settingsRepositoryProvider).getAutomaticBackupSettings(); diff --git a/lib/src/features/settings/data/graphql/__generated__/settings_query.ast.gql.dart b/lib/src/features/settings/data/graphql/__generated__/settings_query.ast.gql.dart index d16b2a9b..d359e8c0 100644 --- a/lib/src/features/settings/data/graphql/__generated__/settings_query.ast.gql.dart +++ b/lib/src/features/settings/data/graphql/__generated__/settings_query.ast.gql.dart @@ -3,10 +3,22 @@ // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i4; -const AutomaticBackupSettings = _i1.OperationDefinitionNode( +const ServerSettings = _i1.OperationDefinitionNode( type: _i1.OperationType.query, - name: _i1.NameNode(value: 'AutomaticBackupSettings'), + name: _i1.NameNode(value: 'ServerSettings'), variableDefinitions: [], directives: [], selectionSet: _i1.SelectionSetNode(selections: [ @@ -16,532 +28,56 @@ const AutomaticBackupSettings = _i1.OperationDefinitionNode( arguments: [], directives: [], selectionSet: _i1.SelectionSetNode(selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'backupInterval'), - alias: null, - arguments: [], + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'backupPath'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'backupTTL'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'backupTime'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - ]), - ) - ]), -); -const RestoreStatus = _i1.OperationDefinitionNode( - type: _i1.OperationType.query, - name: _i1.NameNode(value: 'RestoreStatus'), - variableDefinitions: [ - _i1.VariableDefinitionNode( - variable: _i1.VariableNode(name: _i1.NameNode(value: 'restoreId')), - type: _i1.NamedTypeNode( - name: _i1.NameNode(value: 'String'), - isNonNull: true, - ), - defaultValue: _i1.DefaultValueNode(value: null), - directives: [], - ) - ], - directives: [], - selectionSet: _i1.SelectionSetNode(selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'restoreStatus'), - alias: null, - arguments: [ - _i1.ArgumentNode( - name: _i1.NameNode(value: 'id'), - value: _i1.VariableNode(name: _i1.NameNode(value: 'restoreId')), ) - ], - directives: [], - selectionSet: _i1.SelectionSetNode(selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'mangaProgress'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'state'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'totalManga'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), ]), ) ]), ); -const ValidateBackup = _i1.OperationDefinitionNode( - type: _i1.OperationType.query, - name: _i1.NameNode(value: 'ValidateBackup'), - variableDefinitions: [ - _i1.VariableDefinitionNode( - variable: _i1.VariableNode(name: _i1.NameNode(value: 'backup')), - type: _i1.NamedTypeNode( - name: _i1.NameNode(value: 'Upload'), - isNonNull: true, - ), - defaultValue: _i1.DefaultValueNode(value: null), - directives: [], - ) - ], +const SettingsFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'SettingsFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SettingsType'), + isNonNull: false, + )), directives: [], selectionSet: _i1.SelectionSetNode(selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'validateBackup'), - alias: null, - arguments: [ - _i1.ArgumentNode( - name: _i1.NameNode(value: 'input'), - value: _i1.ObjectValueNode(fields: [ - _i1.ObjectFieldNode( - name: _i1.NameNode(value: 'backup'), - value: _i1.VariableNode(name: _i1.NameNode(value: 'backup')), - ) - ]), - ) - ], - directives: [], - selectionSet: _i1.SelectionSetNode(selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'missingSources'), - alias: null, - arguments: [], - directives: [], - selectionSet: _i1.SelectionSetNode(selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ) - ]), - ) - ]), - ) - ]), -); -const CreateBackup = _i1.OperationDefinitionNode( - type: _i1.OperationType.mutation, - name: _i1.NameNode(value: 'CreateBackup'), - variableDefinitions: [ - _i1.VariableDefinitionNode( - variable: - _i1.VariableNode(name: _i1.NameNode(value: 'includeCategories')), - type: _i1.NamedTypeNode( - name: _i1.NameNode(value: 'Boolean'), - isNonNull: false, - ), - defaultValue: - _i1.DefaultValueNode(value: _i1.BooleanValueNode(value: true)), + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'AutomaticBackupSettingsFragment'), directives: [], ), - _i1.VariableDefinitionNode( - variable: _i1.VariableNode(name: _i1.NameNode(value: 'includeChapters')), - type: _i1.NamedTypeNode( - name: _i1.NameNode(value: 'Boolean'), - isNonNull: false, - ), - defaultValue: - _i1.DefaultValueNode(value: _i1.BooleanValueNode(value: true)), + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'ServerBindingFragment'), directives: [], ), - ], - directives: [], - selectionSet: _i1.SelectionSetNode(selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'createBackup'), - alias: null, - arguments: [ - _i1.ArgumentNode( - name: _i1.NameNode(value: 'input'), - value: _i1.ObjectValueNode(fields: [ - _i1.ObjectFieldNode( - name: _i1.NameNode(value: 'includeCategories'), - value: _i1.VariableNode( - name: _i1.NameNode(value: 'includeCategories')), - ), - _i1.ObjectFieldNode( - name: _i1.NameNode(value: 'includeChapters'), - value: _i1.VariableNode( - name: _i1.NameNode(value: 'includeChapters')), - ), - ]), - ) - ], - directives: [], - selectionSet: _i1.SelectionSetNode(selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'clientMutationId'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'url'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - ]), - ) - ]), -); -const RestoreBackup = _i1.OperationDefinitionNode( - type: _i1.OperationType.mutation, - name: _i1.NameNode(value: 'RestoreBackup'), - variableDefinitions: [ - _i1.VariableDefinitionNode( - variable: _i1.VariableNode(name: _i1.NameNode(value: 'backup')), - type: _i1.NamedTypeNode( - name: _i1.NameNode(value: 'Upload'), - isNonNull: true, - ), - defaultValue: _i1.DefaultValueNode(value: null), - directives: [], - ) - ], - directives: [], - selectionSet: _i1.SelectionSetNode(selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'restoreBackup'), - alias: null, - arguments: [ - _i1.ArgumentNode( - name: _i1.NameNode(value: 'input'), - value: _i1.ObjectValueNode(fields: [ - _i1.ObjectFieldNode( - name: _i1.NameNode(value: 'backup'), - value: _i1.VariableNode(name: _i1.NameNode(value: 'backup')), - ) - ]), - ) - ], - directives: [], - selectionSet: _i1.SelectionSetNode(selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'clientMutationId'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'id'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'status'), - alias: null, - arguments: [], - directives: [], - selectionSet: _i1.SelectionSetNode(selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'mangaProgress'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'state'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - _i1.FieldNode( - name: _i1.NameNode(value: 'totalManga'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - ]), - ), - ]), - ) - ]), -); -const UpdateBackupPath = _i1.OperationDefinitionNode( - type: _i1.OperationType.mutation, - name: _i1.NameNode(value: 'UpdateBackupPath'), - variableDefinitions: [ - _i1.VariableDefinitionNode( - variable: _i1.VariableNode(name: _i1.NameNode(value: 'backupPath')), - type: _i1.NamedTypeNode( - name: _i1.NameNode(value: 'String'), - isNonNull: false, - ), - defaultValue: _i1.DefaultValueNode( - value: _i1.StringValueNode( - value: '', - isBlock: false, - )), - directives: [], - ) - ], - directives: [], - selectionSet: _i1.SelectionSetNode(selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'setSettings'), - alias: null, - arguments: [ - _i1.ArgumentNode( - name: _i1.NameNode(value: 'input'), - value: _i1.ObjectValueNode(fields: [ - _i1.ObjectFieldNode( - name: _i1.NameNode(value: 'settings'), - value: _i1.ObjectValueNode(fields: [ - _i1.ObjectFieldNode( - name: _i1.NameNode(value: 'backupPath'), - value: - _i1.VariableNode(name: _i1.NameNode(value: 'backupPath')), - ) - ]), - ) - ]), - ) - ], - directives: [], - selectionSet: _i1.SelectionSetNode(selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'settings'), - alias: null, - arguments: [], - directives: [], - selectionSet: _i1.SelectionSetNode(selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'backupPath'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ) - ]), - ) - ]), - ) - ]), -); -const UpdateBackupTime = _i1.OperationDefinitionNode( - type: _i1.OperationType.mutation, - name: _i1.NameNode(value: 'UpdateBackupTime'), - variableDefinitions: [ - _i1.VariableDefinitionNode( - variable: _i1.VariableNode(name: _i1.NameNode(value: 'backupTime')), - type: _i1.NamedTypeNode( - name: _i1.NameNode(value: 'String'), - isNonNull: false, - ), - defaultValue: _i1.DefaultValueNode( - value: _i1.StringValueNode( - value: '12:00', - isBlock: false, - )), - directives: [], - ) - ], - directives: [], - selectionSet: _i1.SelectionSetNode(selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'setSettings'), - alias: null, - arguments: [ - _i1.ArgumentNode( - name: _i1.NameNode(value: 'input'), - value: _i1.ObjectValueNode(fields: [ - _i1.ObjectFieldNode( - name: _i1.NameNode(value: 'settings'), - value: _i1.ObjectValueNode(fields: [ - _i1.ObjectFieldNode( - name: _i1.NameNode(value: 'backupTime'), - value: - _i1.VariableNode(name: _i1.NameNode(value: 'backupTime')), - ) - ]), - ) - ]), - ) - ], - directives: [], - selectionSet: _i1.SelectionSetNode(selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'settings'), - alias: null, - arguments: [], - directives: [], - selectionSet: _i1.SelectionSetNode(selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'backupTime'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ) - ]), - ) - ]), - ) - ]), -); -const UpdateBackupInterval = _i1.OperationDefinitionNode( - type: _i1.OperationType.mutation, - name: _i1.NameNode(value: 'UpdateBackupInterval'), - variableDefinitions: [ - _i1.VariableDefinitionNode( - variable: _i1.VariableNode(name: _i1.NameNode(value: 'backupInterval')), - type: _i1.NamedTypeNode( - name: _i1.NameNode(value: 'Int'), - isNonNull: false, - ), - defaultValue: _i1.DefaultValueNode(value: _i1.IntValueNode(value: '1')), + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SocksProxyFragment'), directives: [], - ) - ], - directives: [], - selectionSet: _i1.SelectionSetNode(selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'setSettings'), - alias: null, - arguments: [ - _i1.ArgumentNode( - name: _i1.NameNode(value: 'input'), - value: _i1.ObjectValueNode(fields: [ - _i1.ObjectFieldNode( - name: _i1.NameNode(value: 'settings'), - value: _i1.ObjectValueNode(fields: [ - _i1.ObjectFieldNode( - name: _i1.NameNode(value: 'backupInterval'), - value: _i1.VariableNode( - name: _i1.NameNode(value: 'backupInterval')), - ) - ]), - ) - ]), - ) - ], + ), + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'CloudFlareBypassFragment'), directives: [], - selectionSet: _i1.SelectionSetNode(selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'settings'), - alias: null, - arguments: [], - directives: [], - selectionSet: _i1.SelectionSetNode(selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'backupInterval'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ) - ]), - ) - ]), - ) - ]), -); -const UpdateBackupTTL = _i1.OperationDefinitionNode( - type: _i1.OperationType.mutation, - name: _i1.NameNode(value: 'UpdateBackupTTL'), - variableDefinitions: [ - _i1.VariableDefinitionNode( - variable: _i1.VariableNode(name: _i1.NameNode(value: 'backupTTL')), - type: _i1.NamedTypeNode( - name: _i1.NameNode(value: 'Int'), - isNonNull: false, - ), - defaultValue: _i1.DefaultValueNode(value: _i1.IntValueNode(value: '14')), + ), + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'MiscSettingsFragment'), directives: [], - ) - ], - directives: [], - selectionSet: _i1.SelectionSetNode(selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'setSettings'), - alias: null, - arguments: [ - _i1.ArgumentNode( - name: _i1.NameNode(value: 'input'), - value: _i1.ObjectValueNode(fields: [ - _i1.ObjectFieldNode( - name: _i1.NameNode(value: 'settings'), - value: _i1.ObjectValueNode(fields: [ - _i1.ObjectFieldNode( - name: _i1.NameNode(value: 'backupTTL'), - value: - _i1.VariableNode(name: _i1.NameNode(value: 'backupTTL')), - ) - ]), - ) - ]), - ) - ], + ), + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'BrowserSettingsFragment'), directives: [], - selectionSet: _i1.SelectionSetNode(selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'settings'), - alias: null, - arguments: [], - directives: [], - selectionSet: _i1.SelectionSetNode(selections: [ - _i1.FieldNode( - name: _i1.NameNode(value: 'backupTTL'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ) - ]), - ) - ]), - ) + ), ]), ); const document = _i1.DocumentNode(definitions: [ - AutomaticBackupSettings, - RestoreStatus, - ValidateBackup, - CreateBackup, - RestoreBackup, - UpdateBackupPath, - UpdateBackupTime, - UpdateBackupInterval, - UpdateBackupTTL, + ServerSettings, + SettingsFragment, + _i2.AutomaticBackupSettingsFragment, + _i3.ServerBindingFragment, + _i4.SocksProxyFragment, + _i5.CloudFlareBypassFragment, + _i6.MiscSettingsFragment, + _i7.BrowserSettingsFragment, ]); diff --git a/lib/src/features/settings/data/graphql/__generated__/settings_query.data.gql.dart b/lib/src/features/settings/data/graphql/__generated__/settings_query.data.gql.dart index a0be6a56..24762b6f 100644 --- a/lib/src/features/settings/data/graphql/__generated__/settings_query.data.gql.dart +++ b/lib/src/features/settings/data/graphql/__generated__/settings_query.data.gql.dart @@ -5,773 +5,271 @@ import 'package:built_collection/built_collection.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; -import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.data.gql.dart' as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.data.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.data.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.data.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.data.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.data.gql.dart' + as _i4; import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' as _i1; part 'settings_query.data.gql.g.dart'; -abstract class GAutomaticBackupSettingsData - implements - Built { - GAutomaticBackupSettingsData._(); +abstract class GServerSettingsData + implements Built { + GServerSettingsData._(); - factory GAutomaticBackupSettingsData( - [void Function(GAutomaticBackupSettingsDataBuilder b) updates]) = - _$GAutomaticBackupSettingsData; + factory GServerSettingsData( + [void Function(GServerSettingsDataBuilder b) updates]) = + _$GServerSettingsData; - static void _initializeBuilder(GAutomaticBackupSettingsDataBuilder b) => + static void _initializeBuilder(GServerSettingsDataBuilder b) => b..G__typename = 'Query'; @BuiltValueField(wireName: '__typename') String get G__typename; - GAutomaticBackupSettingsData_settings get settings; - static Serializer get serializer => - _$gAutomaticBackupSettingsDataSerializer; + GServerSettingsData_settings get settings; + static Serializer get serializer => + _$gServerSettingsDataSerializer; Map toJson() => (_i1.serializers.serializeWith( - GAutomaticBackupSettingsData.serializer, + GServerSettingsData.serializer, this, ) as Map); - static GAutomaticBackupSettingsData? fromJson(Map json) => + static GServerSettingsData? fromJson(Map json) => _i1.serializers.deserializeWith( - GAutomaticBackupSettingsData.serializer, + GServerSettingsData.serializer, json, ); } -abstract class GAutomaticBackupSettingsData_settings +abstract class GServerSettingsData_settings implements - Built { - GAutomaticBackupSettingsData_settings._(); + Built, + GSettingsFragment { + GServerSettingsData_settings._(); - factory GAutomaticBackupSettingsData_settings( - [void Function(GAutomaticBackupSettingsData_settingsBuilder b) - updates]) = _$GAutomaticBackupSettingsData_settings; + factory GServerSettingsData_settings( + [void Function(GServerSettingsData_settingsBuilder b) updates]) = + _$GServerSettingsData_settings; - static void _initializeBuilder( - GAutomaticBackupSettingsData_settingsBuilder b) => + static void _initializeBuilder(GServerSettingsData_settingsBuilder b) => b..G__typename = 'SettingsType'; + @override @BuiltValueField(wireName: '__typename') String get G__typename; + @override int get backupInterval; + @override String get backupPath; + @override int get backupTTL; + @override String get backupTime; - static Serializer get serializer => - _$gAutomaticBackupSettingsDataSettingsSerializer; - - Map toJson() => (_i1.serializers.serializeWith( - GAutomaticBackupSettingsData_settings.serializer, - this, - ) as Map); - - static GAutomaticBackupSettingsData_settings? fromJson( - Map json) => - _i1.serializers.deserializeWith( - GAutomaticBackupSettingsData_settings.serializer, - json, - ); -} - -abstract class GRestoreStatusData - implements Built { - GRestoreStatusData._(); - - factory GRestoreStatusData( - [void Function(GRestoreStatusDataBuilder b) updates]) = - _$GRestoreStatusData; - - static void _initializeBuilder(GRestoreStatusDataBuilder b) => - b..G__typename = 'Query'; - - @BuiltValueField(wireName: '__typename') - String get G__typename; - GRestoreStatusData_restoreStatus? get restoreStatus; - static Serializer get serializer => - _$gRestoreStatusDataSerializer; - - Map toJson() => (_i1.serializers.serializeWith( - GRestoreStatusData.serializer, - this, - ) as Map); - - static GRestoreStatusData? fromJson(Map json) => - _i1.serializers.deserializeWith( - GRestoreStatusData.serializer, - json, - ); -} - -abstract class GRestoreStatusData_restoreStatus - implements - Built { - GRestoreStatusData_restoreStatus._(); - - factory GRestoreStatusData_restoreStatus( - [void Function(GRestoreStatusData_restoreStatusBuilder b) updates]) = - _$GRestoreStatusData_restoreStatus; - - static void _initializeBuilder(GRestoreStatusData_restoreStatusBuilder b) => - b..G__typename = 'BackupRestoreStatus'; - - @BuiltValueField(wireName: '__typename') - String get G__typename; - int get mangaProgress; - _i2.GBackupRestoreState get state; - int get totalManga; - static Serializer get serializer => - _$gRestoreStatusDataRestoreStatusSerializer; - - Map toJson() => (_i1.serializers.serializeWith( - GRestoreStatusData_restoreStatus.serializer, - this, - ) as Map); - - static GRestoreStatusData_restoreStatus? fromJson( - Map json) => - _i1.serializers.deserializeWith( - GRestoreStatusData_restoreStatus.serializer, - json, - ); -} - -abstract class GValidateBackupData - implements Built { - GValidateBackupData._(); - - factory GValidateBackupData( - [void Function(GValidateBackupDataBuilder b) updates]) = - _$GValidateBackupData; - - static void _initializeBuilder(GValidateBackupDataBuilder b) => - b..G__typename = 'Query'; - - @BuiltValueField(wireName: '__typename') - String get G__typename; - GValidateBackupData_validateBackup get validateBackup; - static Serializer get serializer => - _$gValidateBackupDataSerializer; - - Map toJson() => (_i1.serializers.serializeWith( - GValidateBackupData.serializer, - this, - ) as Map); - - static GValidateBackupData? fromJson(Map json) => - _i1.serializers.deserializeWith( - GValidateBackupData.serializer, - json, - ); -} - -abstract class GValidateBackupData_validateBackup - implements - Built { - GValidateBackupData_validateBackup._(); - - factory GValidateBackupData_validateBackup( - [void Function(GValidateBackupData_validateBackupBuilder b) - updates]) = _$GValidateBackupData_validateBackup; - - static void _initializeBuilder(GValidateBackupData_validateBackupBuilder b) => - b..G__typename = 'ValidateBackupResult'; - - @BuiltValueField(wireName: '__typename') - String get G__typename; - BuiltList - get missingSources; - static Serializer get serializer => - _$gValidateBackupDataValidateBackupSerializer; - - Map toJson() => (_i1.serializers.serializeWith( - GValidateBackupData_validateBackup.serializer, - this, - ) as Map); - - static GValidateBackupData_validateBackup? fromJson( - Map json) => - _i1.serializers.deserializeWith( - GValidateBackupData_validateBackup.serializer, - json, - ); -} - -abstract class GValidateBackupData_validateBackup_missingSources - implements - Built { - GValidateBackupData_validateBackup_missingSources._(); - - factory GValidateBackupData_validateBackup_missingSources( - [void Function(GValidateBackupData_validateBackup_missingSourcesBuilder b) - updates]) = _$GValidateBackupData_validateBackup_missingSources; - - static void _initializeBuilder( - GValidateBackupData_validateBackup_missingSourcesBuilder b) => - b..G__typename = 'ValidateBackupSource'; - - @BuiltValueField(wireName: '__typename') - String get G__typename; - String get name; - static Serializer - get serializer => - _$gValidateBackupDataValidateBackupMissingSourcesSerializer; - - Map toJson() => (_i1.serializers.serializeWith( - GValidateBackupData_validateBackup_missingSources.serializer, - this, - ) as Map); - - static GValidateBackupData_validateBackup_missingSources? fromJson( - Map json) => - _i1.serializers.deserializeWith( - GValidateBackupData_validateBackup_missingSources.serializer, - json, - ); -} - -abstract class GCreateBackupData - implements Built { - GCreateBackupData._(); - - factory GCreateBackupData( - [void Function(GCreateBackupDataBuilder b) updates]) = - _$GCreateBackupData; - - static void _initializeBuilder(GCreateBackupDataBuilder b) => - b..G__typename = 'Mutation'; - - @BuiltValueField(wireName: '__typename') - String get G__typename; - GCreateBackupData_createBackup get createBackup; - static Serializer get serializer => - _$gCreateBackupDataSerializer; - + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + static Serializer get serializer => + _$gServerSettingsDataSettingsSerializer; + + @override Map toJson() => (_i1.serializers.serializeWith( - GCreateBackupData.serializer, + GServerSettingsData_settings.serializer, this, ) as Map); - static GCreateBackupData? fromJson(Map json) => + static GServerSettingsData_settings? fromJson(Map json) => _i1.serializers.deserializeWith( - GCreateBackupData.serializer, + GServerSettingsData_settings.serializer, json, ); } -abstract class GCreateBackupData_createBackup +abstract class GSettingsFragment implements - Built { - GCreateBackupData_createBackup._(); - - factory GCreateBackupData_createBackup( - [void Function(GCreateBackupData_createBackupBuilder b) updates]) = - _$GCreateBackupData_createBackup; - - static void _initializeBuilder(GCreateBackupData_createBackupBuilder b) => - b..G__typename = 'CreateBackupPayload'; - - @BuiltValueField(wireName: '__typename') - String get G__typename; - String? get clientMutationId; - String get url; - static Serializer get serializer => - _$gCreateBackupDataCreateBackupSerializer; - - Map toJson() => (_i1.serializers.serializeWith( - GCreateBackupData_createBackup.serializer, - this, - ) as Map); - - static GCreateBackupData_createBackup? fromJson(Map json) => - _i1.serializers.deserializeWith( - GCreateBackupData_createBackup.serializer, - json, - ); -} - -abstract class GRestoreBackupData - implements Built { - GRestoreBackupData._(); - - factory GRestoreBackupData( - [void Function(GRestoreBackupDataBuilder b) updates]) = - _$GRestoreBackupData; - - static void _initializeBuilder(GRestoreBackupDataBuilder b) => - b..G__typename = 'Mutation'; - - @BuiltValueField(wireName: '__typename') - String get G__typename; - GRestoreBackupData_restoreBackup get restoreBackup; - static Serializer get serializer => - _$gRestoreBackupDataSerializer; - - Map toJson() => (_i1.serializers.serializeWith( - GRestoreBackupData.serializer, - this, - ) as Map); - - static GRestoreBackupData? fromJson(Map json) => - _i1.serializers.deserializeWith( - GRestoreBackupData.serializer, - json, - ); -} - -abstract class GRestoreBackupData_restoreBackup - implements - Built { - GRestoreBackupData_restoreBackup._(); - - factory GRestoreBackupData_restoreBackup( - [void Function(GRestoreBackupData_restoreBackupBuilder b) updates]) = - _$GRestoreBackupData_restoreBackup; - - static void _initializeBuilder(GRestoreBackupData_restoreBackupBuilder b) => - b..G__typename = 'RestoreBackupPayload'; - - @BuiltValueField(wireName: '__typename') - String get G__typename; - String? get clientMutationId; - String get id; - GRestoreBackupData_restoreBackup_status? get status; - static Serializer get serializer => - _$gRestoreBackupDataRestoreBackupSerializer; - - Map toJson() => (_i1.serializers.serializeWith( - GRestoreBackupData_restoreBackup.serializer, - this, - ) as Map); - - static GRestoreBackupData_restoreBackup? fromJson( - Map json) => - _i1.serializers.deserializeWith( - GRestoreBackupData_restoreBackup.serializer, - json, - ); -} - -abstract class GRestoreBackupData_restoreBackup_status - implements - Built { - GRestoreBackupData_restoreBackup_status._(); - - factory GRestoreBackupData_restoreBackup_status( - [void Function(GRestoreBackupData_restoreBackup_statusBuilder b) - updates]) = _$GRestoreBackupData_restoreBackup_status; - - static void _initializeBuilder( - GRestoreBackupData_restoreBackup_statusBuilder b) => - b..G__typename = 'BackupRestoreStatus'; - - @BuiltValueField(wireName: '__typename') - String get G__typename; - int get mangaProgress; - _i2.GBackupRestoreState get state; - int get totalManga; - static Serializer get serializer => - _$gRestoreBackupDataRestoreBackupStatusSerializer; - - Map toJson() => (_i1.serializers.serializeWith( - GRestoreBackupData_restoreBackup_status.serializer, - this, - ) as Map); - - static GRestoreBackupData_restoreBackup_status? fromJson( - Map json) => - _i1.serializers.deserializeWith( - GRestoreBackupData_restoreBackup_status.serializer, - json, - ); -} - -abstract class GUpdateBackupPathData - implements Built { - GUpdateBackupPathData._(); - - factory GUpdateBackupPathData( - [void Function(GUpdateBackupPathDataBuilder b) updates]) = - _$GUpdateBackupPathData; - - static void _initializeBuilder(GUpdateBackupPathDataBuilder b) => - b..G__typename = 'Mutation'; - - @BuiltValueField(wireName: '__typename') - String get G__typename; - GUpdateBackupPathData_setSettings get setSettings; - static Serializer get serializer => - _$gUpdateBackupPathDataSerializer; - - Map toJson() => (_i1.serializers.serializeWith( - GUpdateBackupPathData.serializer, - this, - ) as Map); - - static GUpdateBackupPathData? fromJson(Map json) => - _i1.serializers.deserializeWith( - GUpdateBackupPathData.serializer, - json, - ); -} - -abstract class GUpdateBackupPathData_setSettings - implements - Built { - GUpdateBackupPathData_setSettings._(); - - factory GUpdateBackupPathData_setSettings( - [void Function(GUpdateBackupPathData_setSettingsBuilder b) updates]) = - _$GUpdateBackupPathData_setSettings; - - static void _initializeBuilder(GUpdateBackupPathData_setSettingsBuilder b) => - b..G__typename = 'SetSettingsPayload'; - - @BuiltValueField(wireName: '__typename') - String get G__typename; - GUpdateBackupPathData_setSettings_settings get settings; - static Serializer get serializer => - _$gUpdateBackupPathDataSetSettingsSerializer; - - Map toJson() => (_i1.serializers.serializeWith( - GUpdateBackupPathData_setSettings.serializer, - this, - ) as Map); - - static GUpdateBackupPathData_setSettings? fromJson( - Map json) => - _i1.serializers.deserializeWith( - GUpdateBackupPathData_setSettings.serializer, - json, - ); -} - -abstract class GUpdateBackupPathData_setSettings_settings - implements - Built { - GUpdateBackupPathData_setSettings_settings._(); - - factory GUpdateBackupPathData_setSettings_settings( - [void Function(GUpdateBackupPathData_setSettings_settingsBuilder b) - updates]) = _$GUpdateBackupPathData_setSettings_settings; - - static void _initializeBuilder( - GUpdateBackupPathData_setSettings_settingsBuilder b) => - b..G__typename = 'SettingsType'; - - @BuiltValueField(wireName: '__typename') + _i2.GAutomaticBackupSettingsFragment, + _i3.GServerBindingFragment, + _i4.GSocksProxyFragment, + _i5.GCloudFlareBypassFragment, + _i6.GMiscSettingsFragment, + _i7.GBrowserSettingsFragment { + @override String get G__typename; + @override + int get backupInterval; + @override String get backupPath; - static Serializer - get serializer => _$gUpdateBackupPathDataSetSettingsSettingsSerializer; - - Map toJson() => (_i1.serializers.serializeWith( - GUpdateBackupPathData_setSettings_settings.serializer, - this, - ) as Map); - - static GUpdateBackupPathData_setSettings_settings? fromJson( - Map json) => - _i1.serializers.deserializeWith( - GUpdateBackupPathData_setSettings_settings.serializer, - json, - ); -} - -abstract class GUpdateBackupTimeData - implements Built { - GUpdateBackupTimeData._(); - - factory GUpdateBackupTimeData( - [void Function(GUpdateBackupTimeDataBuilder b) updates]) = - _$GUpdateBackupTimeData; - - static void _initializeBuilder(GUpdateBackupTimeDataBuilder b) => - b..G__typename = 'Mutation'; - - @BuiltValueField(wireName: '__typename') - String get G__typename; - GUpdateBackupTimeData_setSettings get setSettings; - static Serializer get serializer => - _$gUpdateBackupTimeDataSerializer; - - Map toJson() => (_i1.serializers.serializeWith( - GUpdateBackupTimeData.serializer, - this, - ) as Map); - - static GUpdateBackupTimeData? fromJson(Map json) => - _i1.serializers.deserializeWith( - GUpdateBackupTimeData.serializer, - json, - ); -} - -abstract class GUpdateBackupTimeData_setSettings - implements - Built { - GUpdateBackupTimeData_setSettings._(); - - factory GUpdateBackupTimeData_setSettings( - [void Function(GUpdateBackupTimeData_setSettingsBuilder b) updates]) = - _$GUpdateBackupTimeData_setSettings; - - static void _initializeBuilder(GUpdateBackupTimeData_setSettingsBuilder b) => - b..G__typename = 'SetSettingsPayload'; - - @BuiltValueField(wireName: '__typename') - String get G__typename; - GUpdateBackupTimeData_setSettings_settings get settings; - static Serializer get serializer => - _$gUpdateBackupTimeDataSetSettingsSerializer; - - Map toJson() => (_i1.serializers.serializeWith( - GUpdateBackupTimeData_setSettings.serializer, - this, - ) as Map); - - static GUpdateBackupTimeData_setSettings? fromJson( - Map json) => - _i1.serializers.deserializeWith( - GUpdateBackupTimeData_setSettings.serializer, - json, - ); -} - -abstract class GUpdateBackupTimeData_setSettings_settings - implements - Built { - GUpdateBackupTimeData_setSettings_settings._(); - - factory GUpdateBackupTimeData_setSettings_settings( - [void Function(GUpdateBackupTimeData_setSettings_settingsBuilder b) - updates]) = _$GUpdateBackupTimeData_setSettings_settings; - - static void _initializeBuilder( - GUpdateBackupTimeData_setSettings_settingsBuilder b) => - b..G__typename = 'SettingsType'; - - @BuiltValueField(wireName: '__typename') - String get G__typename; + @override + int get backupTTL; + @override String get backupTime; - static Serializer - get serializer => _$gUpdateBackupTimeDataSetSettingsSettingsSerializer; - - Map toJson() => (_i1.serializers.serializeWith( - GUpdateBackupTimeData_setSettings_settings.serializer, - this, - ) as Map); - - static GUpdateBackupTimeData_setSettings_settings? fromJson( - Map json) => - _i1.serializers.deserializeWith( - GUpdateBackupTimeData_setSettings_settings.serializer, - json, - ); + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + @override + Map toJson(); } -abstract class GUpdateBackupIntervalData +abstract class GSettingsFragmentData implements - Built { - GUpdateBackupIntervalData._(); - - factory GUpdateBackupIntervalData( - [void Function(GUpdateBackupIntervalDataBuilder b) updates]) = - _$GUpdateBackupIntervalData; - - static void _initializeBuilder(GUpdateBackupIntervalDataBuilder b) => - b..G__typename = 'Mutation'; - - @BuiltValueField(wireName: '__typename') - String get G__typename; - GUpdateBackupIntervalData_setSettings get setSettings; - static Serializer get serializer => - _$gUpdateBackupIntervalDataSerializer; - - Map toJson() => (_i1.serializers.serializeWith( - GUpdateBackupIntervalData.serializer, - this, - ) as Map); - - static GUpdateBackupIntervalData? fromJson(Map json) => - _i1.serializers.deserializeWith( - GUpdateBackupIntervalData.serializer, - json, - ); -} - -abstract class GUpdateBackupIntervalData_setSettings - implements - Built { - GUpdateBackupIntervalData_setSettings._(); - - factory GUpdateBackupIntervalData_setSettings( - [void Function(GUpdateBackupIntervalData_setSettingsBuilder b) - updates]) = _$GUpdateBackupIntervalData_setSettings; - - static void _initializeBuilder( - GUpdateBackupIntervalData_setSettingsBuilder b) => - b..G__typename = 'SetSettingsPayload'; - - @BuiltValueField(wireName: '__typename') - String get G__typename; - GUpdateBackupIntervalData_setSettings_settings get settings; - static Serializer get serializer => - _$gUpdateBackupIntervalDataSetSettingsSerializer; - - Map toJson() => (_i1.serializers.serializeWith( - GUpdateBackupIntervalData_setSettings.serializer, - this, - ) as Map); - - static GUpdateBackupIntervalData_setSettings? fromJson( - Map json) => - _i1.serializers.deserializeWith( - GUpdateBackupIntervalData_setSettings.serializer, - json, - ); -} - -abstract class GUpdateBackupIntervalData_setSettings_settings - implements - Built { - GUpdateBackupIntervalData_setSettings_settings._(); - - factory GUpdateBackupIntervalData_setSettings_settings( - [void Function(GUpdateBackupIntervalData_setSettings_settingsBuilder b) - updates]) = _$GUpdateBackupIntervalData_setSettings_settings; - - static void _initializeBuilder( - GUpdateBackupIntervalData_setSettings_settingsBuilder b) => + Built, + GSettingsFragment, + _i2.GAutomaticBackupSettingsFragment, + _i3.GServerBindingFragment, + _i4.GSocksProxyFragment, + _i5.GCloudFlareBypassFragment, + _i6.GMiscSettingsFragment, + _i7.GBrowserSettingsFragment { + GSettingsFragmentData._(); + + factory GSettingsFragmentData( + [void Function(GSettingsFragmentDataBuilder b) updates]) = + _$GSettingsFragmentData; + + static void _initializeBuilder(GSettingsFragmentDataBuilder b) => b..G__typename = 'SettingsType'; + @override @BuiltValueField(wireName: '__typename') String get G__typename; + @override int get backupInterval; - static Serializer - get serializer => - _$gUpdateBackupIntervalDataSetSettingsSettingsSerializer; - - Map toJson() => (_i1.serializers.serializeWith( - GUpdateBackupIntervalData_setSettings_settings.serializer, - this, - ) as Map); - - static GUpdateBackupIntervalData_setSettings_settings? fromJson( - Map json) => - _i1.serializers.deserializeWith( - GUpdateBackupIntervalData_setSettings_settings.serializer, - json, - ); -} - -abstract class GUpdateBackupTTLData - implements Built { - GUpdateBackupTTLData._(); - - factory GUpdateBackupTTLData( - [void Function(GUpdateBackupTTLDataBuilder b) updates]) = - _$GUpdateBackupTTLData; - - static void _initializeBuilder(GUpdateBackupTTLDataBuilder b) => - b..G__typename = 'Mutation'; - - @BuiltValueField(wireName: '__typename') - String get G__typename; - GUpdateBackupTTLData_setSettings get setSettings; - static Serializer get serializer => - _$gUpdateBackupTTLDataSerializer; - - Map toJson() => (_i1.serializers.serializeWith( - GUpdateBackupTTLData.serializer, - this, - ) as Map); - - static GUpdateBackupTTLData? fromJson(Map json) => - _i1.serializers.deserializeWith( - GUpdateBackupTTLData.serializer, - json, - ); -} - -abstract class GUpdateBackupTTLData_setSettings - implements - Built { - GUpdateBackupTTLData_setSettings._(); - - factory GUpdateBackupTTLData_setSettings( - [void Function(GUpdateBackupTTLData_setSettingsBuilder b) updates]) = - _$GUpdateBackupTTLData_setSettings; - - static void _initializeBuilder(GUpdateBackupTTLData_setSettingsBuilder b) => - b..G__typename = 'SetSettingsPayload'; - - @BuiltValueField(wireName: '__typename') - String get G__typename; - GUpdateBackupTTLData_setSettings_settings get settings; - static Serializer get serializer => - _$gUpdateBackupTTLDataSetSettingsSerializer; - - Map toJson() => (_i1.serializers.serializeWith( - GUpdateBackupTTLData_setSettings.serializer, - this, - ) as Map); - - static GUpdateBackupTTLData_setSettings? fromJson( - Map json) => - _i1.serializers.deserializeWith( - GUpdateBackupTTLData_setSettings.serializer, - json, - ); -} - -abstract class GUpdateBackupTTLData_setSettings_settings - implements - Built { - GUpdateBackupTTLData_setSettings_settings._(); - - factory GUpdateBackupTTLData_setSettings_settings( - [void Function(GUpdateBackupTTLData_setSettings_settingsBuilder b) - updates]) = _$GUpdateBackupTTLData_setSettings_settings; - - static void _initializeBuilder( - GUpdateBackupTTLData_setSettings_settingsBuilder b) => - b..G__typename = 'SettingsType'; - - @BuiltValueField(wireName: '__typename') - String get G__typename; + @override + String get backupPath; + @override int get backupTTL; - static Serializer get serializer => - _$gUpdateBackupTTLDataSetSettingsSettingsSerializer; - + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + static Serializer get serializer => + _$gSettingsFragmentDataSerializer; + + @override Map toJson() => (_i1.serializers.serializeWith( - GUpdateBackupTTLData_setSettings_settings.serializer, + GSettingsFragmentData.serializer, this, ) as Map); - static GUpdateBackupTTLData_setSettings_settings? fromJson( - Map json) => + static GSettingsFragmentData? fromJson(Map json) => _i1.serializers.deserializeWith( - GUpdateBackupTTLData_setSettings_settings.serializer, + GSettingsFragmentData.serializer, json, ); } diff --git a/lib/src/features/settings/data/graphql/__generated__/settings_query.data.gql.g.dart b/lib/src/features/settings/data/graphql/__generated__/settings_query.data.gql.g.dart index d4aed3b8..d45f4eb2 100644 --- a/lib/src/features/settings/data/graphql/__generated__/settings_query.data.gql.g.dart +++ b/lib/src/features/settings/data/graphql/__generated__/settings_query.data.gql.g.dart @@ -6,84 +6,27 @@ part of 'settings_query.data.gql.dart'; // BuiltValueGenerator // ************************************************************************** -Serializer - _$gAutomaticBackupSettingsDataSerializer = - new _$GAutomaticBackupSettingsDataSerializer(); -Serializer - _$gAutomaticBackupSettingsDataSettingsSerializer = - new _$GAutomaticBackupSettingsData_settingsSerializer(); -Serializer _$gRestoreStatusDataSerializer = - new _$GRestoreStatusDataSerializer(); -Serializer - _$gRestoreStatusDataRestoreStatusSerializer = - new _$GRestoreStatusData_restoreStatusSerializer(); -Serializer _$gValidateBackupDataSerializer = - new _$GValidateBackupDataSerializer(); -Serializer - _$gValidateBackupDataValidateBackupSerializer = - new _$GValidateBackupData_validateBackupSerializer(); -Serializer - _$gValidateBackupDataValidateBackupMissingSourcesSerializer = - new _$GValidateBackupData_validateBackup_missingSourcesSerializer(); -Serializer _$gCreateBackupDataSerializer = - new _$GCreateBackupDataSerializer(); -Serializer - _$gCreateBackupDataCreateBackupSerializer = - new _$GCreateBackupData_createBackupSerializer(); -Serializer _$gRestoreBackupDataSerializer = - new _$GRestoreBackupDataSerializer(); -Serializer - _$gRestoreBackupDataRestoreBackupSerializer = - new _$GRestoreBackupData_restoreBackupSerializer(); -Serializer - _$gRestoreBackupDataRestoreBackupStatusSerializer = - new _$GRestoreBackupData_restoreBackup_statusSerializer(); -Serializer _$gUpdateBackupPathDataSerializer = - new _$GUpdateBackupPathDataSerializer(); -Serializer - _$gUpdateBackupPathDataSetSettingsSerializer = - new _$GUpdateBackupPathData_setSettingsSerializer(); -Serializer - _$gUpdateBackupPathDataSetSettingsSettingsSerializer = - new _$GUpdateBackupPathData_setSettings_settingsSerializer(); -Serializer _$gUpdateBackupTimeDataSerializer = - new _$GUpdateBackupTimeDataSerializer(); -Serializer - _$gUpdateBackupTimeDataSetSettingsSerializer = - new _$GUpdateBackupTimeData_setSettingsSerializer(); -Serializer - _$gUpdateBackupTimeDataSetSettingsSettingsSerializer = - new _$GUpdateBackupTimeData_setSettings_settingsSerializer(); -Serializer _$gUpdateBackupIntervalDataSerializer = - new _$GUpdateBackupIntervalDataSerializer(); -Serializer - _$gUpdateBackupIntervalDataSetSettingsSerializer = - new _$GUpdateBackupIntervalData_setSettingsSerializer(); -Serializer - _$gUpdateBackupIntervalDataSetSettingsSettingsSerializer = - new _$GUpdateBackupIntervalData_setSettings_settingsSerializer(); -Serializer _$gUpdateBackupTTLDataSerializer = - new _$GUpdateBackupTTLDataSerializer(); -Serializer - _$gUpdateBackupTTLDataSetSettingsSerializer = - new _$GUpdateBackupTTLData_setSettingsSerializer(); -Serializer - _$gUpdateBackupTTLDataSetSettingsSettingsSerializer = - new _$GUpdateBackupTTLData_setSettings_settingsSerializer(); +Serializer _$gServerSettingsDataSerializer = + new _$GServerSettingsDataSerializer(); +Serializer + _$gServerSettingsDataSettingsSerializer = + new _$GServerSettingsData_settingsSerializer(); +Serializer _$gSettingsFragmentDataSerializer = + new _$GSettingsFragmentDataSerializer(); -class _$GAutomaticBackupSettingsDataSerializer - implements StructuredSerializer { +class _$GServerSettingsDataSerializer + implements StructuredSerializer { @override final Iterable types = const [ - GAutomaticBackupSettingsData, - _$GAutomaticBackupSettingsData + GServerSettingsData, + _$GServerSettingsData ]; @override - final String wireName = 'GAutomaticBackupSettingsData'; + final String wireName = 'GServerSettingsData'; @override Iterable serialize( - Serializers serializers, GAutomaticBackupSettingsData object, + Serializers serializers, GServerSettingsData object, {FullType specifiedType = FullType.unspecified}) { final result = [ '__typename', @@ -91,17 +34,17 @@ class _$GAutomaticBackupSettingsDataSerializer specifiedType: const FullType(String)), 'settings', serializers.serialize(object.settings, - specifiedType: const FullType(GAutomaticBackupSettingsData_settings)), + specifiedType: const FullType(GServerSettingsData_settings)), ]; return result; } @override - GAutomaticBackupSettingsData deserialize( + GServerSettingsData deserialize( Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { - final result = new GAutomaticBackupSettingsDataBuilder(); + final result = new GServerSettingsDataBuilder(); final iterator = serialized.iterator; while (iterator.moveNext()) { @@ -115,9 +58,8 @@ class _$GAutomaticBackupSettingsDataSerializer break; case 'settings': result.settings.replace(serializers.deserialize(value, - specifiedType: - const FullType(GAutomaticBackupSettingsData_settings))! - as GAutomaticBackupSettingsData_settings); + specifiedType: const FullType(GServerSettingsData_settings))! + as GServerSettingsData_settings); break; } } @@ -126,19 +68,19 @@ class _$GAutomaticBackupSettingsDataSerializer } } -class _$GAutomaticBackupSettingsData_settingsSerializer - implements StructuredSerializer { +class _$GServerSettingsData_settingsSerializer + implements StructuredSerializer { @override final Iterable types = const [ - GAutomaticBackupSettingsData_settings, - _$GAutomaticBackupSettingsData_settings + GServerSettingsData_settings, + _$GServerSettingsData_settings ]; @override - final String wireName = 'GAutomaticBackupSettingsData_settings'; + final String wireName = 'GServerSettingsData_settings'; @override Iterable serialize( - Serializers serializers, GAutomaticBackupSettingsData_settings object, + Serializers serializers, GServerSettingsData_settings object, {FullType specifiedType = FullType.unspecified}) { final result = [ '__typename', @@ -156,16 +98,72 @@ class _$GAutomaticBackupSettingsData_settingsSerializer 'backupTime', serializers.serialize(object.backupTime, specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), ]; return result; } @override - GAutomaticBackupSettingsData_settings deserialize( + GServerSettingsData_settings deserialize( Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { - final result = new GAutomaticBackupSettingsData_settingsBuilder(); + final result = new GServerSettingsData_settingsBuilder(); final iterator = serialized.iterator; while (iterator.moveNext()) { @@ -193,348 +191,83 @@ class _$GAutomaticBackupSettingsData_settingsSerializer result.backupTime = serializers.deserialize(value, specifiedType: const FullType(String))! as String; break; - } - } - - return result.build(); - } -} - -class _$GRestoreStatusDataSerializer - implements StructuredSerializer { - @override - final Iterable types = const [GRestoreStatusData, _$GRestoreStatusData]; - @override - final String wireName = 'GRestoreStatusData'; - - @override - Iterable serialize( - Serializers serializers, GRestoreStatusData object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - '__typename', - serializers.serialize(object.G__typename, - specifiedType: const FullType(String)), - ]; - Object? value; - value = object.restoreStatus; - if (value != null) { - result - ..add('restoreStatus') - ..add(serializers.serialize(value, - specifiedType: const FullType(GRestoreStatusData_restoreStatus))); - } - return result; - } - - @override - GRestoreStatusData deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GRestoreStatusDataBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case '__typename': - result.G__typename = serializers.deserialize(value, + case 'ip': + result.ip = serializers.deserialize(value, specifiedType: const FullType(String))! as String; break; - case 'restoreStatus': - result.restoreStatus.replace(serializers.deserialize(value, - specifiedType: - const FullType(GRestoreStatusData_restoreStatus))! - as GRestoreStatusData_restoreStatus); + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; break; - } - } - - return result.build(); - } -} - -class _$GRestoreStatusData_restoreStatusSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - GRestoreStatusData_restoreStatus, - _$GRestoreStatusData_restoreStatus - ]; - @override - final String wireName = 'GRestoreStatusData_restoreStatus'; - - @override - Iterable serialize( - Serializers serializers, GRestoreStatusData_restoreStatus object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - '__typename', - serializers.serialize(object.G__typename, - specifiedType: const FullType(String)), - 'mangaProgress', - serializers.serialize(object.mangaProgress, - specifiedType: const FullType(int)), - 'state', - serializers.serialize(object.state, - specifiedType: const FullType(_i2.GBackupRestoreState)), - 'totalManga', - serializers.serialize(object.totalManga, - specifiedType: const FullType(int)), - ]; - - return result; - } - - @override - GRestoreStatusData_restoreStatus deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GRestoreStatusData_restoreStatusBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case '__typename': - result.G__typename = serializers.deserialize(value, + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, specifiedType: const FullType(String))! as String; break; - case 'mangaProgress': - result.mangaProgress = serializers.deserialize(value, - specifiedType: const FullType(int))! as int; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; break; - case 'state': - result.state = serializers.deserialize(value, - specifiedType: const FullType(_i2.GBackupRestoreState))! - as _i2.GBackupRestoreState; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; break; - case 'totalManga': - result.totalManga = serializers.deserialize(value, + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, specifiedType: const FullType(int))! as int; break; - } - } - - return result.build(); - } -} - -class _$GValidateBackupDataSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - GValidateBackupData, - _$GValidateBackupData - ]; - @override - final String wireName = 'GValidateBackupData'; - - @override - Iterable serialize( - Serializers serializers, GValidateBackupData object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - '__typename', - serializers.serialize(object.G__typename, - specifiedType: const FullType(String)), - 'validateBackup', - serializers.serialize(object.validateBackup, - specifiedType: const FullType(GValidateBackupData_validateBackup)), - ]; - - return result; - } - - @override - GValidateBackupData deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GValidateBackupDataBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case '__typename': - result.G__typename = serializers.deserialize(value, + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, specifiedType: const FullType(String))! as String; break; - case 'validateBackup': - result.validateBackup.replace(serializers.deserialize(value, - specifiedType: - const FullType(GValidateBackupData_validateBackup))! - as GValidateBackupData_validateBackup); + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; break; - } - } - - return result.build(); - } -} - -class _$GValidateBackupData_validateBackupSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - GValidateBackupData_validateBackup, - _$GValidateBackupData_validateBackup - ]; - @override - final String wireName = 'GValidateBackupData_validateBackup'; - - @override - Iterable serialize( - Serializers serializers, GValidateBackupData_validateBackup object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - '__typename', - serializers.serialize(object.G__typename, - specifiedType: const FullType(String)), - 'missingSources', - serializers.serialize(object.missingSources, - specifiedType: const FullType(BuiltList, const [ - const FullType(GValidateBackupData_validateBackup_missingSources) - ])), - ]; - - return result; - } - - @override - GValidateBackupData_validateBackup deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GValidateBackupData_validateBackupBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case '__typename': - result.G__typename = serializers.deserialize(value, + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, specifiedType: const FullType(String))! as String; break; - case 'missingSources': - result.missingSources.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltList, const [ - const FullType( - GValidateBackupData_validateBackup_missingSources) - ]))! as BuiltList); + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; break; - } - } - - return result.build(); - } -} - -class _$GValidateBackupData_validateBackup_missingSourcesSerializer - implements - StructuredSerializer< - GValidateBackupData_validateBackup_missingSources> { - @override - final Iterable types = const [ - GValidateBackupData_validateBackup_missingSources, - _$GValidateBackupData_validateBackup_missingSources - ]; - @override - final String wireName = 'GValidateBackupData_validateBackup_missingSources'; - - @override - Iterable serialize(Serializers serializers, - GValidateBackupData_validateBackup_missingSources object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - '__typename', - serializers.serialize(object.G__typename, - specifiedType: const FullType(String)), - 'name', - serializers.serialize(object.name, specifiedType: const FullType(String)), - ]; - - return result; - } - - @override - GValidateBackupData_validateBackup_missingSources deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = - new GValidateBackupData_validateBackup_missingSourcesBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case '__typename': - result.G__typename = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; break; - case 'name': - result.name = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; break; - } - } - - return result.build(); - } -} - -class _$GCreateBackupDataSerializer - implements StructuredSerializer { - @override - final Iterable types = const [GCreateBackupData, _$GCreateBackupData]; - @override - final String wireName = 'GCreateBackupData'; - - @override - Iterable serialize(Serializers serializers, GCreateBackupData object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - '__typename', - serializers.serialize(object.G__typename, - specifiedType: const FullType(String)), - 'createBackup', - serializers.serialize(object.createBackup, - specifiedType: const FullType(GCreateBackupData_createBackup)), - ]; - - return result; - } - - @override - GCreateBackupData deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GCreateBackupDataBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case '__typename': - result.G__typename = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); break; - case 'createBackup': - result.createBackup.replace(serializers.deserialize(value, - specifiedType: - const FullType(GCreateBackupData_createBackup))! - as GCreateBackupData_createBackup); + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; break; } } @@ -543,3706 +276,325 @@ class _$GCreateBackupDataSerializer } } -class _$GCreateBackupData_createBackupSerializer - implements StructuredSerializer { +class _$GSettingsFragmentDataSerializer + implements StructuredSerializer { @override final Iterable types = const [ - GCreateBackupData_createBackup, - _$GCreateBackupData_createBackup + GSettingsFragmentData, + _$GSettingsFragmentData ]; @override - final String wireName = 'GCreateBackupData_createBackup'; + final String wireName = 'GSettingsFragmentData'; @override Iterable serialize( - Serializers serializers, GCreateBackupData_createBackup object, + Serializers serializers, GSettingsFragmentData object, {FullType specifiedType = FullType.unspecified}) { final result = [ '__typename', serializers.serialize(object.G__typename, specifiedType: const FullType(String)), - 'url', - serializers.serialize(object.url, specifiedType: const FullType(String)), - ]; - Object? value; - value = object.clientMutationId; - if (value != null) { - result - ..add('clientMutationId') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); - } - return result; - } - - @override - GCreateBackupData_createBackup deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GCreateBackupData_createBackupBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case '__typename': - result.G__typename = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; - break; - case 'clientMutationId': - result.clientMutationId = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; - break; - case 'url': - result.url = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; - break; - } - } - - return result.build(); - } -} - -class _$GRestoreBackupDataSerializer - implements StructuredSerializer { - @override - final Iterable types = const [GRestoreBackupData, _$GRestoreBackupData]; - @override - final String wireName = 'GRestoreBackupData'; - - @override - Iterable serialize( - Serializers serializers, GRestoreBackupData object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - '__typename', - serializers.serialize(object.G__typename, - specifiedType: const FullType(String)), - 'restoreBackup', - serializers.serialize(object.restoreBackup, - specifiedType: const FullType(GRestoreBackupData_restoreBackup)), - ]; - - return result; - } - - @override - GRestoreBackupData deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GRestoreBackupDataBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case '__typename': - result.G__typename = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; - break; - case 'restoreBackup': - result.restoreBackup.replace(serializers.deserialize(value, - specifiedType: - const FullType(GRestoreBackupData_restoreBackup))! - as GRestoreBackupData_restoreBackup); - break; - } - } - - return result.build(); - } -} - -class _$GRestoreBackupData_restoreBackupSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - GRestoreBackupData_restoreBackup, - _$GRestoreBackupData_restoreBackup - ]; - @override - final String wireName = 'GRestoreBackupData_restoreBackup'; - - @override - Iterable serialize( - Serializers serializers, GRestoreBackupData_restoreBackup object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - '__typename', - serializers.serialize(object.G__typename, - specifiedType: const FullType(String)), - 'id', - serializers.serialize(object.id, specifiedType: const FullType(String)), - ]; - Object? value; - value = object.clientMutationId; - if (value != null) { - result - ..add('clientMutationId') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); - } - value = object.status; - if (value != null) { - result - ..add('status') - ..add(serializers.serialize(value, - specifiedType: - const FullType(GRestoreBackupData_restoreBackup_status))); - } - return result; - } - - @override - GRestoreBackupData_restoreBackup deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GRestoreBackupData_restoreBackupBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case '__typename': - result.G__typename = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; - break; - case 'clientMutationId': - result.clientMutationId = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; - break; - case 'id': - result.id = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; - break; - case 'status': - result.status.replace(serializers.deserialize(value, - specifiedType: - const FullType(GRestoreBackupData_restoreBackup_status))! - as GRestoreBackupData_restoreBackup_status); - break; - } - } - - return result.build(); - } -} - -class _$GRestoreBackupData_restoreBackup_statusSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - GRestoreBackupData_restoreBackup_status, - _$GRestoreBackupData_restoreBackup_status - ]; - @override - final String wireName = 'GRestoreBackupData_restoreBackup_status'; - - @override - Iterable serialize( - Serializers serializers, GRestoreBackupData_restoreBackup_status object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - '__typename', - serializers.serialize(object.G__typename, - specifiedType: const FullType(String)), - 'mangaProgress', - serializers.serialize(object.mangaProgress, + 'backupInterval', + serializers.serialize(object.backupInterval, specifiedType: const FullType(int)), - 'state', - serializers.serialize(object.state, - specifiedType: const FullType(_i2.GBackupRestoreState)), - 'totalManga', - serializers.serialize(object.totalManga, + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, specifiedType: const FullType(int)), - ]; - - return result; - } - - @override - GRestoreBackupData_restoreBackup_status deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GRestoreBackupData_restoreBackup_statusBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case '__typename': - result.G__typename = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; - break; - case 'mangaProgress': - result.mangaProgress = serializers.deserialize(value, - specifiedType: const FullType(int))! as int; - break; - case 'state': - result.state = serializers.deserialize(value, - specifiedType: const FullType(_i2.GBackupRestoreState))! - as _i2.GBackupRestoreState; - break; - case 'totalManga': - result.totalManga = serializers.deserialize(value, - specifiedType: const FullType(int))! as int; - break; - } - } - - return result.build(); - } -} - -class _$GUpdateBackupPathDataSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - GUpdateBackupPathData, - _$GUpdateBackupPathData - ]; - @override - final String wireName = 'GUpdateBackupPathData'; - - @override - Iterable serialize( - Serializers serializers, GUpdateBackupPathData object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - '__typename', - serializers.serialize(object.G__typename, + 'backupTime', + serializers.serialize(object.backupTime, specifiedType: const FullType(String)), - 'setSettings', - serializers.serialize(object.setSettings, - specifiedType: const FullType(GUpdateBackupPathData_setSettings)), - ]; - - return result; - } - - @override - GUpdateBackupPathData deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GUpdateBackupPathDataBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case '__typename': - result.G__typename = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; - break; - case 'setSettings': - result.setSettings.replace(serializers.deserialize(value, - specifiedType: - const FullType(GUpdateBackupPathData_setSettings))! - as GUpdateBackupPathData_setSettings); - break; - } - } - - return result.build(); - } -} - -class _$GUpdateBackupPathData_setSettingsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - GUpdateBackupPathData_setSettings, - _$GUpdateBackupPathData_setSettings - ]; - @override - final String wireName = 'GUpdateBackupPathData_setSettings'; - - @override - Iterable serialize( - Serializers serializers, GUpdateBackupPathData_setSettings object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - '__typename', - serializers.serialize(object.G__typename, + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, specifiedType: const FullType(String)), - 'settings', - serializers.serialize(object.settings, - specifiedType: - const FullType(GUpdateBackupPathData_setSettings_settings)), - ]; - - return result; - } - - @override - GUpdateBackupPathData_setSettings deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GUpdateBackupPathData_setSettingsBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case '__typename': - result.G__typename = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; - break; - case 'settings': - result.settings.replace(serializers.deserialize(value, - specifiedType: const FullType( - GUpdateBackupPathData_setSettings_settings))! - as GUpdateBackupPathData_setSettings_settings); - break; - } - } - - return result.build(); - } -} - -class _$GUpdateBackupPathData_setSettings_settingsSerializer - implements - StructuredSerializer { - @override - final Iterable types = const [ - GUpdateBackupPathData_setSettings_settings, - _$GUpdateBackupPathData_setSettings_settings - ]; - @override - final String wireName = 'GUpdateBackupPathData_setSettings_settings'; - - @override - Iterable serialize(Serializers serializers, - GUpdateBackupPathData_setSettings_settings object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - '__typename', - serializers.serialize(object.G__typename, + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, specifiedType: const FullType(String)), - 'backupPath', - serializers.serialize(object.backupPath, + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, specifiedType: const FullType(String)), - ]; - - return result; - } - - @override - GUpdateBackupPathData_setSettings_settings deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GUpdateBackupPathData_setSettings_settingsBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case '__typename': - result.G__typename = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; - break; - case 'backupPath': - result.backupPath = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; - break; - } - } - - return result.build(); - } -} - -class _$GUpdateBackupTimeDataSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - GUpdateBackupTimeData, - _$GUpdateBackupTimeData - ]; - @override - final String wireName = 'GUpdateBackupTimeData'; - - @override - Iterable serialize( - Serializers serializers, GUpdateBackupTimeData object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - '__typename', - serializers.serialize(object.G__typename, - specifiedType: const FullType(String)), - 'setSettings', - serializers.serialize(object.setSettings, - specifiedType: const FullType(GUpdateBackupTimeData_setSettings)), - ]; - - return result; - } - - @override - GUpdateBackupTimeData deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GUpdateBackupTimeDataBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case '__typename': - result.G__typename = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; - break; - case 'setSettings': - result.setSettings.replace(serializers.deserialize(value, - specifiedType: - const FullType(GUpdateBackupTimeData_setSettings))! - as GUpdateBackupTimeData_setSettings); - break; - } - } - - return result.build(); - } -} - -class _$GUpdateBackupTimeData_setSettingsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - GUpdateBackupTimeData_setSettings, - _$GUpdateBackupTimeData_setSettings - ]; - @override - final String wireName = 'GUpdateBackupTimeData_setSettings'; - - @override - Iterable serialize( - Serializers serializers, GUpdateBackupTimeData_setSettings object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - '__typename', - serializers.serialize(object.G__typename, - specifiedType: const FullType(String)), - 'settings', - serializers.serialize(object.settings, - specifiedType: - const FullType(GUpdateBackupTimeData_setSettings_settings)), - ]; - - return result; - } - - @override - GUpdateBackupTimeData_setSettings deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GUpdateBackupTimeData_setSettingsBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case '__typename': - result.G__typename = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; - break; - case 'settings': - result.settings.replace(serializers.deserialize(value, - specifiedType: const FullType( - GUpdateBackupTimeData_setSettings_settings))! - as GUpdateBackupTimeData_setSettings_settings); - break; - } - } - - return result.build(); - } -} - -class _$GUpdateBackupTimeData_setSettings_settingsSerializer - implements - StructuredSerializer { - @override - final Iterable types = const [ - GUpdateBackupTimeData_setSettings_settings, - _$GUpdateBackupTimeData_setSettings_settings - ]; - @override - final String wireName = 'GUpdateBackupTimeData_setSettings_settings'; - - @override - Iterable serialize(Serializers serializers, - GUpdateBackupTimeData_setSettings_settings object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - '__typename', - serializers.serialize(object.G__typename, - specifiedType: const FullType(String)), - 'backupTime', - serializers.serialize(object.backupTime, - specifiedType: const FullType(String)), - ]; - - return result; - } - - @override - GUpdateBackupTimeData_setSettings_settings deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GUpdateBackupTimeData_setSettings_settingsBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case '__typename': - result.G__typename = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; - break; - case 'backupTime': - result.backupTime = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; - break; - } - } - - return result.build(); - } -} - -class _$GUpdateBackupIntervalDataSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - GUpdateBackupIntervalData, - _$GUpdateBackupIntervalData - ]; - @override - final String wireName = 'GUpdateBackupIntervalData'; - - @override - Iterable serialize( - Serializers serializers, GUpdateBackupIntervalData object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - '__typename', - serializers.serialize(object.G__typename, - specifiedType: const FullType(String)), - 'setSettings', - serializers.serialize(object.setSettings, - specifiedType: const FullType(GUpdateBackupIntervalData_setSettings)), - ]; - - return result; - } - - @override - GUpdateBackupIntervalData deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GUpdateBackupIntervalDataBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case '__typename': - result.G__typename = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; - break; - case 'setSettings': - result.setSettings.replace(serializers.deserialize(value, - specifiedType: - const FullType(GUpdateBackupIntervalData_setSettings))! - as GUpdateBackupIntervalData_setSettings); - break; - } - } - - return result.build(); - } -} - -class _$GUpdateBackupIntervalData_setSettingsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - GUpdateBackupIntervalData_setSettings, - _$GUpdateBackupIntervalData_setSettings - ]; - @override - final String wireName = 'GUpdateBackupIntervalData_setSettings'; - - @override - Iterable serialize( - Serializers serializers, GUpdateBackupIntervalData_setSettings object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - '__typename', - serializers.serialize(object.G__typename, - specifiedType: const FullType(String)), - 'settings', - serializers.serialize(object.settings, - specifiedType: - const FullType(GUpdateBackupIntervalData_setSettings_settings)), - ]; - - return result; - } - - @override - GUpdateBackupIntervalData_setSettings deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GUpdateBackupIntervalData_setSettingsBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case '__typename': - result.G__typename = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; - break; - case 'settings': - result.settings.replace(serializers.deserialize(value, - specifiedType: const FullType( - GUpdateBackupIntervalData_setSettings_settings))! - as GUpdateBackupIntervalData_setSettings_settings); - break; - } - } - - return result.build(); - } -} - -class _$GUpdateBackupIntervalData_setSettings_settingsSerializer - implements - StructuredSerializer { - @override - final Iterable types = const [ - GUpdateBackupIntervalData_setSettings_settings, - _$GUpdateBackupIntervalData_setSettings_settings - ]; - @override - final String wireName = 'GUpdateBackupIntervalData_setSettings_settings'; - - @override - Iterable serialize(Serializers serializers, - GUpdateBackupIntervalData_setSettings_settings object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - '__typename', - serializers.serialize(object.G__typename, - specifiedType: const FullType(String)), - 'backupInterval', - serializers.serialize(object.backupInterval, - specifiedType: const FullType(int)), - ]; - - return result; - } - - @override - GUpdateBackupIntervalData_setSettings_settings deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GUpdateBackupIntervalData_setSettings_settingsBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case '__typename': - result.G__typename = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; - break; - case 'backupInterval': - result.backupInterval = serializers.deserialize(value, - specifiedType: const FullType(int))! as int; - break; - } - } - - return result.build(); - } -} - -class _$GUpdateBackupTTLDataSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - GUpdateBackupTTLData, - _$GUpdateBackupTTLData - ]; - @override - final String wireName = 'GUpdateBackupTTLData'; - - @override - Iterable serialize( - Serializers serializers, GUpdateBackupTTLData object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - '__typename', - serializers.serialize(object.G__typename, - specifiedType: const FullType(String)), - 'setSettings', - serializers.serialize(object.setSettings, - specifiedType: const FullType(GUpdateBackupTTLData_setSettings)), - ]; - - return result; - } - - @override - GUpdateBackupTTLData deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GUpdateBackupTTLDataBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case '__typename': - result.G__typename = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; - break; - case 'setSettings': - result.setSettings.replace(serializers.deserialize(value, - specifiedType: - const FullType(GUpdateBackupTTLData_setSettings))! - as GUpdateBackupTTLData_setSettings); - break; - } - } - - return result.build(); - } -} - -class _$GUpdateBackupTTLData_setSettingsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - GUpdateBackupTTLData_setSettings, - _$GUpdateBackupTTLData_setSettings - ]; - @override - final String wireName = 'GUpdateBackupTTLData_setSettings'; - - @override - Iterable serialize( - Serializers serializers, GUpdateBackupTTLData_setSettings object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - '__typename', - serializers.serialize(object.G__typename, - specifiedType: const FullType(String)), - 'settings', - serializers.serialize(object.settings, - specifiedType: - const FullType(GUpdateBackupTTLData_setSettings_settings)), - ]; - - return result; - } - - @override - GUpdateBackupTTLData_setSettings deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GUpdateBackupTTLData_setSettingsBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case '__typename': - result.G__typename = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; - break; - case 'settings': - result.settings.replace(serializers.deserialize(value, - specifiedType: const FullType( - GUpdateBackupTTLData_setSettings_settings))! - as GUpdateBackupTTLData_setSettings_settings); - break; - } - } - - return result.build(); - } -} - -class _$GUpdateBackupTTLData_setSettings_settingsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - GUpdateBackupTTLData_setSettings_settings, - _$GUpdateBackupTTLData_setSettings_settings - ]; - @override - final String wireName = 'GUpdateBackupTTLData_setSettings_settings'; - - @override - Iterable serialize( - Serializers serializers, GUpdateBackupTTLData_setSettings_settings object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - '__typename', - serializers.serialize(object.G__typename, - specifiedType: const FullType(String)), - 'backupTTL', - serializers.serialize(object.backupTTL, - specifiedType: const FullType(int)), - ]; - - return result; - } - - @override - GUpdateBackupTTLData_setSettings_settings deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GUpdateBackupTTLData_setSettings_settingsBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case '__typename': - result.G__typename = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; - break; - case 'backupTTL': - result.backupTTL = serializers.deserialize(value, - specifiedType: const FullType(int))! as int; - break; - } - } - - return result.build(); - } -} - -class _$GAutomaticBackupSettingsData extends GAutomaticBackupSettingsData { - @override - final String G__typename; - @override - final GAutomaticBackupSettingsData_settings settings; - - factory _$GAutomaticBackupSettingsData( - [void Function(GAutomaticBackupSettingsDataBuilder)? updates]) => - (new GAutomaticBackupSettingsDataBuilder()..update(updates))._build(); - - _$GAutomaticBackupSettingsData._( - {required this.G__typename, required this.settings}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - G__typename, r'GAutomaticBackupSettingsData', 'G__typename'); - BuiltValueNullFieldError.checkNotNull( - settings, r'GAutomaticBackupSettingsData', 'settings'); - } - - @override - GAutomaticBackupSettingsData rebuild( - void Function(GAutomaticBackupSettingsDataBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GAutomaticBackupSettingsDataBuilder toBuilder() => - new GAutomaticBackupSettingsDataBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GAutomaticBackupSettingsData && - G__typename == other.G__typename && - settings == other.settings; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, G__typename.hashCode); - _$hash = $jc(_$hash, settings.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GAutomaticBackupSettingsData') - ..add('G__typename', G__typename) - ..add('settings', settings)) - .toString(); - } -} - -class GAutomaticBackupSettingsDataBuilder - implements - Builder { - _$GAutomaticBackupSettingsData? _$v; - - String? _G__typename; - String? get G__typename => _$this._G__typename; - set G__typename(String? G__typename) => _$this._G__typename = G__typename; - - GAutomaticBackupSettingsData_settingsBuilder? _settings; - GAutomaticBackupSettingsData_settingsBuilder get settings => - _$this._settings ??= new GAutomaticBackupSettingsData_settingsBuilder(); - set settings(GAutomaticBackupSettingsData_settingsBuilder? settings) => - _$this._settings = settings; - - GAutomaticBackupSettingsDataBuilder() { - GAutomaticBackupSettingsData._initializeBuilder(this); - } - - GAutomaticBackupSettingsDataBuilder get _$this { - final $v = _$v; - if ($v != null) { - _G__typename = $v.G__typename; - _settings = $v.settings.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(GAutomaticBackupSettingsData other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GAutomaticBackupSettingsData; - } - - @override - void update(void Function(GAutomaticBackupSettingsDataBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GAutomaticBackupSettingsData build() => _build(); - - _$GAutomaticBackupSettingsData _build() { - _$GAutomaticBackupSettingsData _$result; - try { - _$result = _$v ?? - new _$GAutomaticBackupSettingsData._( - G__typename: BuiltValueNullFieldError.checkNotNull( - G__typename, r'GAutomaticBackupSettingsData', 'G__typename'), - settings: settings.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'settings'; - settings.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'GAutomaticBackupSettingsData', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -class _$GAutomaticBackupSettingsData_settings - extends GAutomaticBackupSettingsData_settings { - @override - final String G__typename; - @override - final int backupInterval; - @override - final String backupPath; - @override - final int backupTTL; - @override - final String backupTime; - - factory _$GAutomaticBackupSettingsData_settings( - [void Function(GAutomaticBackupSettingsData_settingsBuilder)? - updates]) => - (new GAutomaticBackupSettingsData_settingsBuilder()..update(updates)) - ._build(); - - _$GAutomaticBackupSettingsData_settings._( - {required this.G__typename, - required this.backupInterval, - required this.backupPath, - required this.backupTTL, - required this.backupTime}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - G__typename, r'GAutomaticBackupSettingsData_settings', 'G__typename'); - BuiltValueNullFieldError.checkNotNull(backupInterval, - r'GAutomaticBackupSettingsData_settings', 'backupInterval'); - BuiltValueNullFieldError.checkNotNull( - backupPath, r'GAutomaticBackupSettingsData_settings', 'backupPath'); - BuiltValueNullFieldError.checkNotNull( - backupTTL, r'GAutomaticBackupSettingsData_settings', 'backupTTL'); - BuiltValueNullFieldError.checkNotNull( - backupTime, r'GAutomaticBackupSettingsData_settings', 'backupTime'); - } - - @override - GAutomaticBackupSettingsData_settings rebuild( - void Function(GAutomaticBackupSettingsData_settingsBuilder) - updates) => - (toBuilder()..update(updates)).build(); - - @override - GAutomaticBackupSettingsData_settingsBuilder toBuilder() => - new GAutomaticBackupSettingsData_settingsBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GAutomaticBackupSettingsData_settings && - G__typename == other.G__typename && - backupInterval == other.backupInterval && - backupPath == other.backupPath && - backupTTL == other.backupTTL && - backupTime == other.backupTime; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, G__typename.hashCode); - _$hash = $jc(_$hash, backupInterval.hashCode); - _$hash = $jc(_$hash, backupPath.hashCode); - _$hash = $jc(_$hash, backupTTL.hashCode); - _$hash = $jc(_$hash, backupTime.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper( - r'GAutomaticBackupSettingsData_settings') - ..add('G__typename', G__typename) - ..add('backupInterval', backupInterval) - ..add('backupPath', backupPath) - ..add('backupTTL', backupTTL) - ..add('backupTime', backupTime)) - .toString(); - } -} - -class GAutomaticBackupSettingsData_settingsBuilder - implements - Builder { - _$GAutomaticBackupSettingsData_settings? _$v; - - String? _G__typename; - String? get G__typename => _$this._G__typename; - set G__typename(String? G__typename) => _$this._G__typename = G__typename; - - int? _backupInterval; - int? get backupInterval => _$this._backupInterval; - set backupInterval(int? backupInterval) => - _$this._backupInterval = backupInterval; - - String? _backupPath; - String? get backupPath => _$this._backupPath; - set backupPath(String? backupPath) => _$this._backupPath = backupPath; - - int? _backupTTL; - int? get backupTTL => _$this._backupTTL; - set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; - - String? _backupTime; - String? get backupTime => _$this._backupTime; - set backupTime(String? backupTime) => _$this._backupTime = backupTime; - - GAutomaticBackupSettingsData_settingsBuilder() { - GAutomaticBackupSettingsData_settings._initializeBuilder(this); - } - - GAutomaticBackupSettingsData_settingsBuilder get _$this { - final $v = _$v; - if ($v != null) { - _G__typename = $v.G__typename; - _backupInterval = $v.backupInterval; - _backupPath = $v.backupPath; - _backupTTL = $v.backupTTL; - _backupTime = $v.backupTime; - _$v = null; - } - return this; - } - - @override - void replace(GAutomaticBackupSettingsData_settings other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GAutomaticBackupSettingsData_settings; - } - - @override - void update( - void Function(GAutomaticBackupSettingsData_settingsBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GAutomaticBackupSettingsData_settings build() => _build(); - - _$GAutomaticBackupSettingsData_settings _build() { - final _$result = _$v ?? - new _$GAutomaticBackupSettingsData_settings._( - G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, - r'GAutomaticBackupSettingsData_settings', 'G__typename'), - backupInterval: BuiltValueNullFieldError.checkNotNull( - backupInterval, - r'GAutomaticBackupSettingsData_settings', - 'backupInterval'), - backupPath: BuiltValueNullFieldError.checkNotNull(backupPath, - r'GAutomaticBackupSettingsData_settings', 'backupPath'), - backupTTL: BuiltValueNullFieldError.checkNotNull( - backupTTL, r'GAutomaticBackupSettingsData_settings', 'backupTTL'), - backupTime: BuiltValueNullFieldError.checkNotNull(backupTime, - r'GAutomaticBackupSettingsData_settings', 'backupTime')); - replace(_$result); - return _$result; - } -} - -class _$GRestoreStatusData extends GRestoreStatusData { - @override - final String G__typename; - @override - final GRestoreStatusData_restoreStatus? restoreStatus; - - factory _$GRestoreStatusData( - [void Function(GRestoreStatusDataBuilder)? updates]) => - (new GRestoreStatusDataBuilder()..update(updates))._build(); - - _$GRestoreStatusData._({required this.G__typename, this.restoreStatus}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - G__typename, r'GRestoreStatusData', 'G__typename'); - } - - @override - GRestoreStatusData rebuild( - void Function(GRestoreStatusDataBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GRestoreStatusDataBuilder toBuilder() => - new GRestoreStatusDataBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GRestoreStatusData && - G__typename == other.G__typename && - restoreStatus == other.restoreStatus; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, G__typename.hashCode); - _$hash = $jc(_$hash, restoreStatus.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GRestoreStatusData') - ..add('G__typename', G__typename) - ..add('restoreStatus', restoreStatus)) - .toString(); - } -} - -class GRestoreStatusDataBuilder - implements Builder { - _$GRestoreStatusData? _$v; - - String? _G__typename; - String? get G__typename => _$this._G__typename; - set G__typename(String? G__typename) => _$this._G__typename = G__typename; - - GRestoreStatusData_restoreStatusBuilder? _restoreStatus; - GRestoreStatusData_restoreStatusBuilder get restoreStatus => - _$this._restoreStatus ??= new GRestoreStatusData_restoreStatusBuilder(); - set restoreStatus(GRestoreStatusData_restoreStatusBuilder? restoreStatus) => - _$this._restoreStatus = restoreStatus; - - GRestoreStatusDataBuilder() { - GRestoreStatusData._initializeBuilder(this); - } - - GRestoreStatusDataBuilder get _$this { - final $v = _$v; - if ($v != null) { - _G__typename = $v.G__typename; - _restoreStatus = $v.restoreStatus?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(GRestoreStatusData other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GRestoreStatusData; - } - - @override - void update(void Function(GRestoreStatusDataBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GRestoreStatusData build() => _build(); - - _$GRestoreStatusData _build() { - _$GRestoreStatusData _$result; - try { - _$result = _$v ?? - new _$GRestoreStatusData._( - G__typename: BuiltValueNullFieldError.checkNotNull( - G__typename, r'GRestoreStatusData', 'G__typename'), - restoreStatus: _restoreStatus?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'restoreStatus'; - _restoreStatus?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'GRestoreStatusData', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -class _$GRestoreStatusData_restoreStatus - extends GRestoreStatusData_restoreStatus { - @override - final String G__typename; - @override - final int mangaProgress; - @override - final _i2.GBackupRestoreState state; - @override - final int totalManga; - - factory _$GRestoreStatusData_restoreStatus( - [void Function(GRestoreStatusData_restoreStatusBuilder)? updates]) => - (new GRestoreStatusData_restoreStatusBuilder()..update(updates))._build(); - - _$GRestoreStatusData_restoreStatus._( - {required this.G__typename, - required this.mangaProgress, - required this.state, - required this.totalManga}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - G__typename, r'GRestoreStatusData_restoreStatus', 'G__typename'); - BuiltValueNullFieldError.checkNotNull( - mangaProgress, r'GRestoreStatusData_restoreStatus', 'mangaProgress'); - BuiltValueNullFieldError.checkNotNull( - state, r'GRestoreStatusData_restoreStatus', 'state'); - BuiltValueNullFieldError.checkNotNull( - totalManga, r'GRestoreStatusData_restoreStatus', 'totalManga'); - } - - @override - GRestoreStatusData_restoreStatus rebuild( - void Function(GRestoreStatusData_restoreStatusBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GRestoreStatusData_restoreStatusBuilder toBuilder() => - new GRestoreStatusData_restoreStatusBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GRestoreStatusData_restoreStatus && - G__typename == other.G__typename && - mangaProgress == other.mangaProgress && - state == other.state && - totalManga == other.totalManga; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, G__typename.hashCode); - _$hash = $jc(_$hash, mangaProgress.hashCode); - _$hash = $jc(_$hash, state.hashCode); - _$hash = $jc(_$hash, totalManga.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GRestoreStatusData_restoreStatus') - ..add('G__typename', G__typename) - ..add('mangaProgress', mangaProgress) - ..add('state', state) - ..add('totalManga', totalManga)) - .toString(); - } -} - -class GRestoreStatusData_restoreStatusBuilder - implements - Builder { - _$GRestoreStatusData_restoreStatus? _$v; - - String? _G__typename; - String? get G__typename => _$this._G__typename; - set G__typename(String? G__typename) => _$this._G__typename = G__typename; - - int? _mangaProgress; - int? get mangaProgress => _$this._mangaProgress; - set mangaProgress(int? mangaProgress) => - _$this._mangaProgress = mangaProgress; - - _i2.GBackupRestoreState? _state; - _i2.GBackupRestoreState? get state => _$this._state; - set state(_i2.GBackupRestoreState? state) => _$this._state = state; - - int? _totalManga; - int? get totalManga => _$this._totalManga; - set totalManga(int? totalManga) => _$this._totalManga = totalManga; - - GRestoreStatusData_restoreStatusBuilder() { - GRestoreStatusData_restoreStatus._initializeBuilder(this); - } - - GRestoreStatusData_restoreStatusBuilder get _$this { - final $v = _$v; - if ($v != null) { - _G__typename = $v.G__typename; - _mangaProgress = $v.mangaProgress; - _state = $v.state; - _totalManga = $v.totalManga; - _$v = null; - } - return this; - } - - @override - void replace(GRestoreStatusData_restoreStatus other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GRestoreStatusData_restoreStatus; - } - - @override - void update(void Function(GRestoreStatusData_restoreStatusBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GRestoreStatusData_restoreStatus build() => _build(); - - _$GRestoreStatusData_restoreStatus _build() { - final _$result = _$v ?? - new _$GRestoreStatusData_restoreStatus._( - G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, - r'GRestoreStatusData_restoreStatus', 'G__typename'), - mangaProgress: BuiltValueNullFieldError.checkNotNull(mangaProgress, - r'GRestoreStatusData_restoreStatus', 'mangaProgress'), - state: BuiltValueNullFieldError.checkNotNull( - state, r'GRestoreStatusData_restoreStatus', 'state'), - totalManga: BuiltValueNullFieldError.checkNotNull( - totalManga, r'GRestoreStatusData_restoreStatus', 'totalManga')); - replace(_$result); - return _$result; - } -} - -class _$GValidateBackupData extends GValidateBackupData { - @override - final String G__typename; - @override - final GValidateBackupData_validateBackup validateBackup; - - factory _$GValidateBackupData( - [void Function(GValidateBackupDataBuilder)? updates]) => - (new GValidateBackupDataBuilder()..update(updates))._build(); - - _$GValidateBackupData._( - {required this.G__typename, required this.validateBackup}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - G__typename, r'GValidateBackupData', 'G__typename'); - BuiltValueNullFieldError.checkNotNull( - validateBackup, r'GValidateBackupData', 'validateBackup'); - } - - @override - GValidateBackupData rebuild( - void Function(GValidateBackupDataBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GValidateBackupDataBuilder toBuilder() => - new GValidateBackupDataBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GValidateBackupData && - G__typename == other.G__typename && - validateBackup == other.validateBackup; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, G__typename.hashCode); - _$hash = $jc(_$hash, validateBackup.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GValidateBackupData') - ..add('G__typename', G__typename) - ..add('validateBackup', validateBackup)) - .toString(); - } -} - -class GValidateBackupDataBuilder - implements Builder { - _$GValidateBackupData? _$v; - - String? _G__typename; - String? get G__typename => _$this._G__typename; - set G__typename(String? G__typename) => _$this._G__typename = G__typename; - - GValidateBackupData_validateBackupBuilder? _validateBackup; - GValidateBackupData_validateBackupBuilder get validateBackup => - _$this._validateBackup ??= - new GValidateBackupData_validateBackupBuilder(); - set validateBackup( - GValidateBackupData_validateBackupBuilder? validateBackup) => - _$this._validateBackup = validateBackup; - - GValidateBackupDataBuilder() { - GValidateBackupData._initializeBuilder(this); - } - - GValidateBackupDataBuilder get _$this { - final $v = _$v; - if ($v != null) { - _G__typename = $v.G__typename; - _validateBackup = $v.validateBackup.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(GValidateBackupData other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GValidateBackupData; - } - - @override - void update(void Function(GValidateBackupDataBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GValidateBackupData build() => _build(); - - _$GValidateBackupData _build() { - _$GValidateBackupData _$result; - try { - _$result = _$v ?? - new _$GValidateBackupData._( - G__typename: BuiltValueNullFieldError.checkNotNull( - G__typename, r'GValidateBackupData', 'G__typename'), - validateBackup: validateBackup.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'validateBackup'; - validateBackup.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'GValidateBackupData', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -class _$GValidateBackupData_validateBackup - extends GValidateBackupData_validateBackup { - @override - final String G__typename; - @override - final BuiltList - missingSources; - - factory _$GValidateBackupData_validateBackup( - [void Function(GValidateBackupData_validateBackupBuilder)? - updates]) => - (new GValidateBackupData_validateBackupBuilder()..update(updates)) - ._build(); - - _$GValidateBackupData_validateBackup._( - {required this.G__typename, required this.missingSources}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - G__typename, r'GValidateBackupData_validateBackup', 'G__typename'); - BuiltValueNullFieldError.checkNotNull(missingSources, - r'GValidateBackupData_validateBackup', 'missingSources'); - } - - @override - GValidateBackupData_validateBackup rebuild( - void Function(GValidateBackupData_validateBackupBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GValidateBackupData_validateBackupBuilder toBuilder() => - new GValidateBackupData_validateBackupBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GValidateBackupData_validateBackup && - G__typename == other.G__typename && - missingSources == other.missingSources; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, G__typename.hashCode); - _$hash = $jc(_$hash, missingSources.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GValidateBackupData_validateBackup') - ..add('G__typename', G__typename) - ..add('missingSources', missingSources)) - .toString(); - } -} - -class GValidateBackupData_validateBackupBuilder - implements - Builder { - _$GValidateBackupData_validateBackup? _$v; - - String? _G__typename; - String? get G__typename => _$this._G__typename; - set G__typename(String? G__typename) => _$this._G__typename = G__typename; - - ListBuilder? - _missingSources; - ListBuilder - get missingSources => _$this._missingSources ??= - new ListBuilder(); - set missingSources( - ListBuilder? - missingSources) => - _$this._missingSources = missingSources; - - GValidateBackupData_validateBackupBuilder() { - GValidateBackupData_validateBackup._initializeBuilder(this); - } - - GValidateBackupData_validateBackupBuilder get _$this { - final $v = _$v; - if ($v != null) { - _G__typename = $v.G__typename; - _missingSources = $v.missingSources.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(GValidateBackupData_validateBackup other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GValidateBackupData_validateBackup; - } - - @override - void update( - void Function(GValidateBackupData_validateBackupBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GValidateBackupData_validateBackup build() => _build(); - - _$GValidateBackupData_validateBackup _build() { - _$GValidateBackupData_validateBackup _$result; - try { - _$result = _$v ?? - new _$GValidateBackupData_validateBackup._( - G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, - r'GValidateBackupData_validateBackup', 'G__typename'), - missingSources: missingSources.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'missingSources'; - missingSources.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'GValidateBackupData_validateBackup', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -class _$GValidateBackupData_validateBackup_missingSources - extends GValidateBackupData_validateBackup_missingSources { - @override - final String G__typename; - @override - final String name; - - factory _$GValidateBackupData_validateBackup_missingSources( - [void Function( - GValidateBackupData_validateBackup_missingSourcesBuilder)? - updates]) => - (new GValidateBackupData_validateBackup_missingSourcesBuilder() - ..update(updates)) - ._build(); - - _$GValidateBackupData_validateBackup_missingSources._( - {required this.G__typename, required this.name}) - : super._() { - BuiltValueNullFieldError.checkNotNull(G__typename, - r'GValidateBackupData_validateBackup_missingSources', 'G__typename'); - BuiltValueNullFieldError.checkNotNull( - name, r'GValidateBackupData_validateBackup_missingSources', 'name'); - } - - @override - GValidateBackupData_validateBackup_missingSources rebuild( - void Function( - GValidateBackupData_validateBackup_missingSourcesBuilder) - updates) => - (toBuilder()..update(updates)).build(); - - @override - GValidateBackupData_validateBackup_missingSourcesBuilder toBuilder() => - new GValidateBackupData_validateBackup_missingSourcesBuilder() - ..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GValidateBackupData_validateBackup_missingSources && - G__typename == other.G__typename && - name == other.name; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, G__typename.hashCode); - _$hash = $jc(_$hash, name.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper( - r'GValidateBackupData_validateBackup_missingSources') - ..add('G__typename', G__typename) - ..add('name', name)) - .toString(); - } -} - -class GValidateBackupData_validateBackup_missingSourcesBuilder - implements - Builder { - _$GValidateBackupData_validateBackup_missingSources? _$v; - - String? _G__typename; - String? get G__typename => _$this._G__typename; - set G__typename(String? G__typename) => _$this._G__typename = G__typename; - - String? _name; - String? get name => _$this._name; - set name(String? name) => _$this._name = name; - - GValidateBackupData_validateBackup_missingSourcesBuilder() { - GValidateBackupData_validateBackup_missingSources._initializeBuilder(this); - } - - GValidateBackupData_validateBackup_missingSourcesBuilder get _$this { - final $v = _$v; - if ($v != null) { - _G__typename = $v.G__typename; - _name = $v.name; - _$v = null; - } - return this; - } - - @override - void replace(GValidateBackupData_validateBackup_missingSources other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GValidateBackupData_validateBackup_missingSources; - } - - @override - void update( - void Function(GValidateBackupData_validateBackup_missingSourcesBuilder)? - updates) { - if (updates != null) updates(this); - } - - @override - GValidateBackupData_validateBackup_missingSources build() => _build(); - - _$GValidateBackupData_validateBackup_missingSources _build() { - final _$result = _$v ?? - new _$GValidateBackupData_validateBackup_missingSources._( - G__typename: BuiltValueNullFieldError.checkNotNull( - G__typename, - r'GValidateBackupData_validateBackup_missingSources', - 'G__typename'), - name: BuiltValueNullFieldError.checkNotNull(name, - r'GValidateBackupData_validateBackup_missingSources', 'name')); - replace(_$result); - return _$result; - } -} - -class _$GCreateBackupData extends GCreateBackupData { - @override - final String G__typename; - @override - final GCreateBackupData_createBackup createBackup; - - factory _$GCreateBackupData( - [void Function(GCreateBackupDataBuilder)? updates]) => - (new GCreateBackupDataBuilder()..update(updates))._build(); - - _$GCreateBackupData._({required this.G__typename, required this.createBackup}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - G__typename, r'GCreateBackupData', 'G__typename'); - BuiltValueNullFieldError.checkNotNull( - createBackup, r'GCreateBackupData', 'createBackup'); - } - - @override - GCreateBackupData rebuild(void Function(GCreateBackupDataBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GCreateBackupDataBuilder toBuilder() => - new GCreateBackupDataBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GCreateBackupData && - G__typename == other.G__typename && - createBackup == other.createBackup; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, G__typename.hashCode); - _$hash = $jc(_$hash, createBackup.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GCreateBackupData') - ..add('G__typename', G__typename) - ..add('createBackup', createBackup)) - .toString(); - } -} - -class GCreateBackupDataBuilder - implements Builder { - _$GCreateBackupData? _$v; - - String? _G__typename; - String? get G__typename => _$this._G__typename; - set G__typename(String? G__typename) => _$this._G__typename = G__typename; - - GCreateBackupData_createBackupBuilder? _createBackup; - GCreateBackupData_createBackupBuilder get createBackup => - _$this._createBackup ??= new GCreateBackupData_createBackupBuilder(); - set createBackup(GCreateBackupData_createBackupBuilder? createBackup) => - _$this._createBackup = createBackup; - - GCreateBackupDataBuilder() { - GCreateBackupData._initializeBuilder(this); - } - - GCreateBackupDataBuilder get _$this { - final $v = _$v; - if ($v != null) { - _G__typename = $v.G__typename; - _createBackup = $v.createBackup.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(GCreateBackupData other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GCreateBackupData; - } - - @override - void update(void Function(GCreateBackupDataBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GCreateBackupData build() => _build(); - - _$GCreateBackupData _build() { - _$GCreateBackupData _$result; - try { - _$result = _$v ?? - new _$GCreateBackupData._( - G__typename: BuiltValueNullFieldError.checkNotNull( - G__typename, r'GCreateBackupData', 'G__typename'), - createBackup: createBackup.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'createBackup'; - createBackup.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'GCreateBackupData', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -class _$GCreateBackupData_createBackup extends GCreateBackupData_createBackup { - @override - final String G__typename; - @override - final String? clientMutationId; - @override - final String url; - - factory _$GCreateBackupData_createBackup( - [void Function(GCreateBackupData_createBackupBuilder)? updates]) => - (new GCreateBackupData_createBackupBuilder()..update(updates))._build(); - - _$GCreateBackupData_createBackup._( - {required this.G__typename, this.clientMutationId, required this.url}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - G__typename, r'GCreateBackupData_createBackup', 'G__typename'); - BuiltValueNullFieldError.checkNotNull( - url, r'GCreateBackupData_createBackup', 'url'); - } - - @override - GCreateBackupData_createBackup rebuild( - void Function(GCreateBackupData_createBackupBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GCreateBackupData_createBackupBuilder toBuilder() => - new GCreateBackupData_createBackupBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GCreateBackupData_createBackup && - G__typename == other.G__typename && - clientMutationId == other.clientMutationId && - url == other.url; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, G__typename.hashCode); - _$hash = $jc(_$hash, clientMutationId.hashCode); - _$hash = $jc(_$hash, url.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GCreateBackupData_createBackup') - ..add('G__typename', G__typename) - ..add('clientMutationId', clientMutationId) - ..add('url', url)) - .toString(); - } -} - -class GCreateBackupData_createBackupBuilder - implements - Builder { - _$GCreateBackupData_createBackup? _$v; - - String? _G__typename; - String? get G__typename => _$this._G__typename; - set G__typename(String? G__typename) => _$this._G__typename = G__typename; - - String? _clientMutationId; - String? get clientMutationId => _$this._clientMutationId; - set clientMutationId(String? clientMutationId) => - _$this._clientMutationId = clientMutationId; - - String? _url; - String? get url => _$this._url; - set url(String? url) => _$this._url = url; - - GCreateBackupData_createBackupBuilder() { - GCreateBackupData_createBackup._initializeBuilder(this); - } - - GCreateBackupData_createBackupBuilder get _$this { - final $v = _$v; - if ($v != null) { - _G__typename = $v.G__typename; - _clientMutationId = $v.clientMutationId; - _url = $v.url; - _$v = null; - } - return this; - } - - @override - void replace(GCreateBackupData_createBackup other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GCreateBackupData_createBackup; - } - - @override - void update(void Function(GCreateBackupData_createBackupBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GCreateBackupData_createBackup build() => _build(); - - _$GCreateBackupData_createBackup _build() { - final _$result = _$v ?? - new _$GCreateBackupData_createBackup._( - G__typename: BuiltValueNullFieldError.checkNotNull( - G__typename, r'GCreateBackupData_createBackup', 'G__typename'), - clientMutationId: clientMutationId, - url: BuiltValueNullFieldError.checkNotNull( - url, r'GCreateBackupData_createBackup', 'url')); - replace(_$result); - return _$result; - } -} - -class _$GRestoreBackupData extends GRestoreBackupData { - @override - final String G__typename; - @override - final GRestoreBackupData_restoreBackup restoreBackup; - - factory _$GRestoreBackupData( - [void Function(GRestoreBackupDataBuilder)? updates]) => - (new GRestoreBackupDataBuilder()..update(updates))._build(); - - _$GRestoreBackupData._( - {required this.G__typename, required this.restoreBackup}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - G__typename, r'GRestoreBackupData', 'G__typename'); - BuiltValueNullFieldError.checkNotNull( - restoreBackup, r'GRestoreBackupData', 'restoreBackup'); - } - - @override - GRestoreBackupData rebuild( - void Function(GRestoreBackupDataBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GRestoreBackupDataBuilder toBuilder() => - new GRestoreBackupDataBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GRestoreBackupData && - G__typename == other.G__typename && - restoreBackup == other.restoreBackup; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, G__typename.hashCode); - _$hash = $jc(_$hash, restoreBackup.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GRestoreBackupData') - ..add('G__typename', G__typename) - ..add('restoreBackup', restoreBackup)) - .toString(); - } -} - -class GRestoreBackupDataBuilder - implements Builder { - _$GRestoreBackupData? _$v; - - String? _G__typename; - String? get G__typename => _$this._G__typename; - set G__typename(String? G__typename) => _$this._G__typename = G__typename; - - GRestoreBackupData_restoreBackupBuilder? _restoreBackup; - GRestoreBackupData_restoreBackupBuilder get restoreBackup => - _$this._restoreBackup ??= new GRestoreBackupData_restoreBackupBuilder(); - set restoreBackup(GRestoreBackupData_restoreBackupBuilder? restoreBackup) => - _$this._restoreBackup = restoreBackup; - - GRestoreBackupDataBuilder() { - GRestoreBackupData._initializeBuilder(this); - } - - GRestoreBackupDataBuilder get _$this { - final $v = _$v; - if ($v != null) { - _G__typename = $v.G__typename; - _restoreBackup = $v.restoreBackup.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(GRestoreBackupData other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GRestoreBackupData; - } - - @override - void update(void Function(GRestoreBackupDataBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GRestoreBackupData build() => _build(); - - _$GRestoreBackupData _build() { - _$GRestoreBackupData _$result; - try { - _$result = _$v ?? - new _$GRestoreBackupData._( - G__typename: BuiltValueNullFieldError.checkNotNull( - G__typename, r'GRestoreBackupData', 'G__typename'), - restoreBackup: restoreBackup.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'restoreBackup'; - restoreBackup.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'GRestoreBackupData', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -class _$GRestoreBackupData_restoreBackup - extends GRestoreBackupData_restoreBackup { - @override - final String G__typename; - @override - final String? clientMutationId; - @override - final String id; - @override - final GRestoreBackupData_restoreBackup_status? status; - - factory _$GRestoreBackupData_restoreBackup( - [void Function(GRestoreBackupData_restoreBackupBuilder)? updates]) => - (new GRestoreBackupData_restoreBackupBuilder()..update(updates))._build(); - - _$GRestoreBackupData_restoreBackup._( - {required this.G__typename, - this.clientMutationId, - required this.id, - this.status}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - G__typename, r'GRestoreBackupData_restoreBackup', 'G__typename'); - BuiltValueNullFieldError.checkNotNull( - id, r'GRestoreBackupData_restoreBackup', 'id'); - } - - @override - GRestoreBackupData_restoreBackup rebuild( - void Function(GRestoreBackupData_restoreBackupBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GRestoreBackupData_restoreBackupBuilder toBuilder() => - new GRestoreBackupData_restoreBackupBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GRestoreBackupData_restoreBackup && - G__typename == other.G__typename && - clientMutationId == other.clientMutationId && - id == other.id && - status == other.status; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, G__typename.hashCode); - _$hash = $jc(_$hash, clientMutationId.hashCode); - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jc(_$hash, status.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GRestoreBackupData_restoreBackup') - ..add('G__typename', G__typename) - ..add('clientMutationId', clientMutationId) - ..add('id', id) - ..add('status', status)) - .toString(); - } -} - -class GRestoreBackupData_restoreBackupBuilder - implements - Builder { - _$GRestoreBackupData_restoreBackup? _$v; - - String? _G__typename; - String? get G__typename => _$this._G__typename; - set G__typename(String? G__typename) => _$this._G__typename = G__typename; - - String? _clientMutationId; - String? get clientMutationId => _$this._clientMutationId; - set clientMutationId(String? clientMutationId) => - _$this._clientMutationId = clientMutationId; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - GRestoreBackupData_restoreBackup_statusBuilder? _status; - GRestoreBackupData_restoreBackup_statusBuilder get status => - _$this._status ??= new GRestoreBackupData_restoreBackup_statusBuilder(); - set status(GRestoreBackupData_restoreBackup_statusBuilder? status) => - _$this._status = status; - - GRestoreBackupData_restoreBackupBuilder() { - GRestoreBackupData_restoreBackup._initializeBuilder(this); - } - - GRestoreBackupData_restoreBackupBuilder get _$this { - final $v = _$v; - if ($v != null) { - _G__typename = $v.G__typename; - _clientMutationId = $v.clientMutationId; - _id = $v.id; - _status = $v.status?.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(GRestoreBackupData_restoreBackup other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GRestoreBackupData_restoreBackup; - } - - @override - void update(void Function(GRestoreBackupData_restoreBackupBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GRestoreBackupData_restoreBackup build() => _build(); - - _$GRestoreBackupData_restoreBackup _build() { - _$GRestoreBackupData_restoreBackup _$result; - try { - _$result = _$v ?? - new _$GRestoreBackupData_restoreBackup._( - G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, - r'GRestoreBackupData_restoreBackup', 'G__typename'), - clientMutationId: clientMutationId, - id: BuiltValueNullFieldError.checkNotNull( - id, r'GRestoreBackupData_restoreBackup', 'id'), - status: _status?.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'status'; - _status?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'GRestoreBackupData_restoreBackup', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -class _$GRestoreBackupData_restoreBackup_status - extends GRestoreBackupData_restoreBackup_status { - @override - final String G__typename; - @override - final int mangaProgress; - @override - final _i2.GBackupRestoreState state; - @override - final int totalManga; - - factory _$GRestoreBackupData_restoreBackup_status( - [void Function(GRestoreBackupData_restoreBackup_statusBuilder)? - updates]) => - (new GRestoreBackupData_restoreBackup_statusBuilder()..update(updates)) - ._build(); - - _$GRestoreBackupData_restoreBackup_status._( - {required this.G__typename, - required this.mangaProgress, - required this.state, - required this.totalManga}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - G__typename, r'GRestoreBackupData_restoreBackup_status', 'G__typename'); - BuiltValueNullFieldError.checkNotNull(mangaProgress, - r'GRestoreBackupData_restoreBackup_status', 'mangaProgress'); - BuiltValueNullFieldError.checkNotNull( - state, r'GRestoreBackupData_restoreBackup_status', 'state'); - BuiltValueNullFieldError.checkNotNull( - totalManga, r'GRestoreBackupData_restoreBackup_status', 'totalManga'); - } - - @override - GRestoreBackupData_restoreBackup_status rebuild( - void Function(GRestoreBackupData_restoreBackup_statusBuilder) - updates) => - (toBuilder()..update(updates)).build(); - - @override - GRestoreBackupData_restoreBackup_statusBuilder toBuilder() => - new GRestoreBackupData_restoreBackup_statusBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GRestoreBackupData_restoreBackup_status && - G__typename == other.G__typename && - mangaProgress == other.mangaProgress && - state == other.state && - totalManga == other.totalManga; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, G__typename.hashCode); - _$hash = $jc(_$hash, mangaProgress.hashCode); - _$hash = $jc(_$hash, state.hashCode); - _$hash = $jc(_$hash, totalManga.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper( - r'GRestoreBackupData_restoreBackup_status') - ..add('G__typename', G__typename) - ..add('mangaProgress', mangaProgress) - ..add('state', state) - ..add('totalManga', totalManga)) - .toString(); - } -} - -class GRestoreBackupData_restoreBackup_statusBuilder - implements - Builder { - _$GRestoreBackupData_restoreBackup_status? _$v; - - String? _G__typename; - String? get G__typename => _$this._G__typename; - set G__typename(String? G__typename) => _$this._G__typename = G__typename; - - int? _mangaProgress; - int? get mangaProgress => _$this._mangaProgress; - set mangaProgress(int? mangaProgress) => - _$this._mangaProgress = mangaProgress; - - _i2.GBackupRestoreState? _state; - _i2.GBackupRestoreState? get state => _$this._state; - set state(_i2.GBackupRestoreState? state) => _$this._state = state; - - int? _totalManga; - int? get totalManga => _$this._totalManga; - set totalManga(int? totalManga) => _$this._totalManga = totalManga; - - GRestoreBackupData_restoreBackup_statusBuilder() { - GRestoreBackupData_restoreBackup_status._initializeBuilder(this); - } - - GRestoreBackupData_restoreBackup_statusBuilder get _$this { - final $v = _$v; - if ($v != null) { - _G__typename = $v.G__typename; - _mangaProgress = $v.mangaProgress; - _state = $v.state; - _totalManga = $v.totalManga; - _$v = null; - } - return this; - } - - @override - void replace(GRestoreBackupData_restoreBackup_status other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GRestoreBackupData_restoreBackup_status; - } - - @override - void update( - void Function(GRestoreBackupData_restoreBackup_statusBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GRestoreBackupData_restoreBackup_status build() => _build(); - - _$GRestoreBackupData_restoreBackup_status _build() { - final _$result = _$v ?? - new _$GRestoreBackupData_restoreBackup_status._( - G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, - r'GRestoreBackupData_restoreBackup_status', 'G__typename'), - mangaProgress: BuiltValueNullFieldError.checkNotNull(mangaProgress, - r'GRestoreBackupData_restoreBackup_status', 'mangaProgress'), - state: BuiltValueNullFieldError.checkNotNull( - state, r'GRestoreBackupData_restoreBackup_status', 'state'), - totalManga: BuiltValueNullFieldError.checkNotNull(totalManga, - r'GRestoreBackupData_restoreBackup_status', 'totalManga')); - replace(_$result); - return _$result; - } -} - -class _$GUpdateBackupPathData extends GUpdateBackupPathData { - @override - final String G__typename; - @override - final GUpdateBackupPathData_setSettings setSettings; - - factory _$GUpdateBackupPathData( - [void Function(GUpdateBackupPathDataBuilder)? updates]) => - (new GUpdateBackupPathDataBuilder()..update(updates))._build(); - - _$GUpdateBackupPathData._( - {required this.G__typename, required this.setSettings}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - G__typename, r'GUpdateBackupPathData', 'G__typename'); - BuiltValueNullFieldError.checkNotNull( - setSettings, r'GUpdateBackupPathData', 'setSettings'); - } - - @override - GUpdateBackupPathData rebuild( - void Function(GUpdateBackupPathDataBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GUpdateBackupPathDataBuilder toBuilder() => - new GUpdateBackupPathDataBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GUpdateBackupPathData && - G__typename == other.G__typename && - setSettings == other.setSettings; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, G__typename.hashCode); - _$hash = $jc(_$hash, setSettings.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GUpdateBackupPathData') - ..add('G__typename', G__typename) - ..add('setSettings', setSettings)) - .toString(); - } -} - -class GUpdateBackupPathDataBuilder - implements Builder { - _$GUpdateBackupPathData? _$v; - - String? _G__typename; - String? get G__typename => _$this._G__typename; - set G__typename(String? G__typename) => _$this._G__typename = G__typename; - - GUpdateBackupPathData_setSettingsBuilder? _setSettings; - GUpdateBackupPathData_setSettingsBuilder get setSettings => - _$this._setSettings ??= new GUpdateBackupPathData_setSettingsBuilder(); - set setSettings(GUpdateBackupPathData_setSettingsBuilder? setSettings) => - _$this._setSettings = setSettings; - - GUpdateBackupPathDataBuilder() { - GUpdateBackupPathData._initializeBuilder(this); - } - - GUpdateBackupPathDataBuilder get _$this { - final $v = _$v; - if ($v != null) { - _G__typename = $v.G__typename; - _setSettings = $v.setSettings.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(GUpdateBackupPathData other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GUpdateBackupPathData; - } - - @override - void update(void Function(GUpdateBackupPathDataBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GUpdateBackupPathData build() => _build(); - - _$GUpdateBackupPathData _build() { - _$GUpdateBackupPathData _$result; - try { - _$result = _$v ?? - new _$GUpdateBackupPathData._( - G__typename: BuiltValueNullFieldError.checkNotNull( - G__typename, r'GUpdateBackupPathData', 'G__typename'), - setSettings: setSettings.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'setSettings'; - setSettings.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'GUpdateBackupPathData', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -class _$GUpdateBackupPathData_setSettings - extends GUpdateBackupPathData_setSettings { - @override - final String G__typename; - @override - final GUpdateBackupPathData_setSettings_settings settings; - - factory _$GUpdateBackupPathData_setSettings( - [void Function(GUpdateBackupPathData_setSettingsBuilder)? updates]) => - (new GUpdateBackupPathData_setSettingsBuilder()..update(updates)) - ._build(); - - _$GUpdateBackupPathData_setSettings._( - {required this.G__typename, required this.settings}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - G__typename, r'GUpdateBackupPathData_setSettings', 'G__typename'); - BuiltValueNullFieldError.checkNotNull( - settings, r'GUpdateBackupPathData_setSettings', 'settings'); - } - - @override - GUpdateBackupPathData_setSettings rebuild( - void Function(GUpdateBackupPathData_setSettingsBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GUpdateBackupPathData_setSettingsBuilder toBuilder() => - new GUpdateBackupPathData_setSettingsBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GUpdateBackupPathData_setSettings && - G__typename == other.G__typename && - settings == other.settings; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, G__typename.hashCode); - _$hash = $jc(_$hash, settings.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GUpdateBackupPathData_setSettings') - ..add('G__typename', G__typename) - ..add('settings', settings)) - .toString(); - } -} - -class GUpdateBackupPathData_setSettingsBuilder - implements - Builder { - _$GUpdateBackupPathData_setSettings? _$v; - - String? _G__typename; - String? get G__typename => _$this._G__typename; - set G__typename(String? G__typename) => _$this._G__typename = G__typename; - - GUpdateBackupPathData_setSettings_settingsBuilder? _settings; - GUpdateBackupPathData_setSettings_settingsBuilder get settings => - _$this._settings ??= - new GUpdateBackupPathData_setSettings_settingsBuilder(); - set settings(GUpdateBackupPathData_setSettings_settingsBuilder? settings) => - _$this._settings = settings; - - GUpdateBackupPathData_setSettingsBuilder() { - GUpdateBackupPathData_setSettings._initializeBuilder(this); - } - - GUpdateBackupPathData_setSettingsBuilder get _$this { - final $v = _$v; - if ($v != null) { - _G__typename = $v.G__typename; - _settings = $v.settings.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(GUpdateBackupPathData_setSettings other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GUpdateBackupPathData_setSettings; - } - - @override - void update( - void Function(GUpdateBackupPathData_setSettingsBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GUpdateBackupPathData_setSettings build() => _build(); - - _$GUpdateBackupPathData_setSettings _build() { - _$GUpdateBackupPathData_setSettings _$result; - try { - _$result = _$v ?? - new _$GUpdateBackupPathData_setSettings._( - G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, - r'GUpdateBackupPathData_setSettings', 'G__typename'), - settings: settings.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'settings'; - settings.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'GUpdateBackupPathData_setSettings', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -class _$GUpdateBackupPathData_setSettings_settings - extends GUpdateBackupPathData_setSettings_settings { - @override - final String G__typename; - @override - final String backupPath; - - factory _$GUpdateBackupPathData_setSettings_settings( - [void Function(GUpdateBackupPathData_setSettings_settingsBuilder)? - updates]) => - (new GUpdateBackupPathData_setSettings_settingsBuilder()..update(updates)) - ._build(); - - _$GUpdateBackupPathData_setSettings_settings._( - {required this.G__typename, required this.backupPath}) - : super._() { - BuiltValueNullFieldError.checkNotNull(G__typename, - r'GUpdateBackupPathData_setSettings_settings', 'G__typename'); - BuiltValueNullFieldError.checkNotNull(backupPath, - r'GUpdateBackupPathData_setSettings_settings', 'backupPath'); - } - - @override - GUpdateBackupPathData_setSettings_settings rebuild( - void Function(GUpdateBackupPathData_setSettings_settingsBuilder) - updates) => - (toBuilder()..update(updates)).build(); - - @override - GUpdateBackupPathData_setSettings_settingsBuilder toBuilder() => - new GUpdateBackupPathData_setSettings_settingsBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GUpdateBackupPathData_setSettings_settings && - G__typename == other.G__typename && - backupPath == other.backupPath; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, G__typename.hashCode); - _$hash = $jc(_$hash, backupPath.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper( - r'GUpdateBackupPathData_setSettings_settings') - ..add('G__typename', G__typename) - ..add('backupPath', backupPath)) - .toString(); - } -} - -class GUpdateBackupPathData_setSettings_settingsBuilder - implements - Builder { - _$GUpdateBackupPathData_setSettings_settings? _$v; - - String? _G__typename; - String? get G__typename => _$this._G__typename; - set G__typename(String? G__typename) => _$this._G__typename = G__typename; - - String? _backupPath; - String? get backupPath => _$this._backupPath; - set backupPath(String? backupPath) => _$this._backupPath = backupPath; - - GUpdateBackupPathData_setSettings_settingsBuilder() { - GUpdateBackupPathData_setSettings_settings._initializeBuilder(this); - } - - GUpdateBackupPathData_setSettings_settingsBuilder get _$this { - final $v = _$v; - if ($v != null) { - _G__typename = $v.G__typename; - _backupPath = $v.backupPath; - _$v = null; - } - return this; - } - - @override - void replace(GUpdateBackupPathData_setSettings_settings other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GUpdateBackupPathData_setSettings_settings; - } - - @override - void update( - void Function(GUpdateBackupPathData_setSettings_settingsBuilder)? - updates) { - if (updates != null) updates(this); - } - - @override - GUpdateBackupPathData_setSettings_settings build() => _build(); - - _$GUpdateBackupPathData_setSettings_settings _build() { - final _$result = _$v ?? - new _$GUpdateBackupPathData_setSettings_settings._( - G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, - r'GUpdateBackupPathData_setSettings_settings', 'G__typename'), - backupPath: BuiltValueNullFieldError.checkNotNull(backupPath, - r'GUpdateBackupPathData_setSettings_settings', 'backupPath')); - replace(_$result); - return _$result; - } -} - -class _$GUpdateBackupTimeData extends GUpdateBackupTimeData { - @override - final String G__typename; - @override - final GUpdateBackupTimeData_setSettings setSettings; - - factory _$GUpdateBackupTimeData( - [void Function(GUpdateBackupTimeDataBuilder)? updates]) => - (new GUpdateBackupTimeDataBuilder()..update(updates))._build(); - - _$GUpdateBackupTimeData._( - {required this.G__typename, required this.setSettings}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - G__typename, r'GUpdateBackupTimeData', 'G__typename'); - BuiltValueNullFieldError.checkNotNull( - setSettings, r'GUpdateBackupTimeData', 'setSettings'); - } - - @override - GUpdateBackupTimeData rebuild( - void Function(GUpdateBackupTimeDataBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GUpdateBackupTimeDataBuilder toBuilder() => - new GUpdateBackupTimeDataBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GUpdateBackupTimeData && - G__typename == other.G__typename && - setSettings == other.setSettings; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, G__typename.hashCode); - _$hash = $jc(_$hash, setSettings.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GUpdateBackupTimeData') - ..add('G__typename', G__typename) - ..add('setSettings', setSettings)) - .toString(); - } -} - -class GUpdateBackupTimeDataBuilder - implements Builder { - _$GUpdateBackupTimeData? _$v; - - String? _G__typename; - String? get G__typename => _$this._G__typename; - set G__typename(String? G__typename) => _$this._G__typename = G__typename; - - GUpdateBackupTimeData_setSettingsBuilder? _setSettings; - GUpdateBackupTimeData_setSettingsBuilder get setSettings => - _$this._setSettings ??= new GUpdateBackupTimeData_setSettingsBuilder(); - set setSettings(GUpdateBackupTimeData_setSettingsBuilder? setSettings) => - _$this._setSettings = setSettings; - - GUpdateBackupTimeDataBuilder() { - GUpdateBackupTimeData._initializeBuilder(this); - } - - GUpdateBackupTimeDataBuilder get _$this { - final $v = _$v; - if ($v != null) { - _G__typename = $v.G__typename; - _setSettings = $v.setSettings.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(GUpdateBackupTimeData other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GUpdateBackupTimeData; - } - - @override - void update(void Function(GUpdateBackupTimeDataBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GUpdateBackupTimeData build() => _build(); - - _$GUpdateBackupTimeData _build() { - _$GUpdateBackupTimeData _$result; - try { - _$result = _$v ?? - new _$GUpdateBackupTimeData._( - G__typename: BuiltValueNullFieldError.checkNotNull( - G__typename, r'GUpdateBackupTimeData', 'G__typename'), - setSettings: setSettings.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'setSettings'; - setSettings.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'GUpdateBackupTimeData', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -class _$GUpdateBackupTimeData_setSettings - extends GUpdateBackupTimeData_setSettings { - @override - final String G__typename; - @override - final GUpdateBackupTimeData_setSettings_settings settings; - - factory _$GUpdateBackupTimeData_setSettings( - [void Function(GUpdateBackupTimeData_setSettingsBuilder)? updates]) => - (new GUpdateBackupTimeData_setSettingsBuilder()..update(updates)) - ._build(); - - _$GUpdateBackupTimeData_setSettings._( - {required this.G__typename, required this.settings}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - G__typename, r'GUpdateBackupTimeData_setSettings', 'G__typename'); - BuiltValueNullFieldError.checkNotNull( - settings, r'GUpdateBackupTimeData_setSettings', 'settings'); - } - - @override - GUpdateBackupTimeData_setSettings rebuild( - void Function(GUpdateBackupTimeData_setSettingsBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GUpdateBackupTimeData_setSettingsBuilder toBuilder() => - new GUpdateBackupTimeData_setSettingsBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GUpdateBackupTimeData_setSettings && - G__typename == other.G__typename && - settings == other.settings; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, G__typename.hashCode); - _$hash = $jc(_$hash, settings.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GUpdateBackupTimeData_setSettings') - ..add('G__typename', G__typename) - ..add('settings', settings)) - .toString(); - } -} - -class GUpdateBackupTimeData_setSettingsBuilder - implements - Builder { - _$GUpdateBackupTimeData_setSettings? _$v; - - String? _G__typename; - String? get G__typename => _$this._G__typename; - set G__typename(String? G__typename) => _$this._G__typename = G__typename; - - GUpdateBackupTimeData_setSettings_settingsBuilder? _settings; - GUpdateBackupTimeData_setSettings_settingsBuilder get settings => - _$this._settings ??= - new GUpdateBackupTimeData_setSettings_settingsBuilder(); - set settings(GUpdateBackupTimeData_setSettings_settingsBuilder? settings) => - _$this._settings = settings; - - GUpdateBackupTimeData_setSettingsBuilder() { - GUpdateBackupTimeData_setSettings._initializeBuilder(this); - } - - GUpdateBackupTimeData_setSettingsBuilder get _$this { - final $v = _$v; - if ($v != null) { - _G__typename = $v.G__typename; - _settings = $v.settings.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(GUpdateBackupTimeData_setSettings other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GUpdateBackupTimeData_setSettings; - } - - @override - void update( - void Function(GUpdateBackupTimeData_setSettingsBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GUpdateBackupTimeData_setSettings build() => _build(); - - _$GUpdateBackupTimeData_setSettings _build() { - _$GUpdateBackupTimeData_setSettings _$result; - try { - _$result = _$v ?? - new _$GUpdateBackupTimeData_setSettings._( - G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, - r'GUpdateBackupTimeData_setSettings', 'G__typename'), - settings: settings.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'settings'; - settings.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'GUpdateBackupTimeData_setSettings', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -class _$GUpdateBackupTimeData_setSettings_settings - extends GUpdateBackupTimeData_setSettings_settings { - @override - final String G__typename; - @override - final String backupTime; - - factory _$GUpdateBackupTimeData_setSettings_settings( - [void Function(GUpdateBackupTimeData_setSettings_settingsBuilder)? - updates]) => - (new GUpdateBackupTimeData_setSettings_settingsBuilder()..update(updates)) - ._build(); - - _$GUpdateBackupTimeData_setSettings_settings._( - {required this.G__typename, required this.backupTime}) - : super._() { - BuiltValueNullFieldError.checkNotNull(G__typename, - r'GUpdateBackupTimeData_setSettings_settings', 'G__typename'); - BuiltValueNullFieldError.checkNotNull(backupTime, - r'GUpdateBackupTimeData_setSettings_settings', 'backupTime'); - } - - @override - GUpdateBackupTimeData_setSettings_settings rebuild( - void Function(GUpdateBackupTimeData_setSettings_settingsBuilder) - updates) => - (toBuilder()..update(updates)).build(); - - @override - GUpdateBackupTimeData_setSettings_settingsBuilder toBuilder() => - new GUpdateBackupTimeData_setSettings_settingsBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GUpdateBackupTimeData_setSettings_settings && - G__typename == other.G__typename && - backupTime == other.backupTime; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, G__typename.hashCode); - _$hash = $jc(_$hash, backupTime.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper( - r'GUpdateBackupTimeData_setSettings_settings') - ..add('G__typename', G__typename) - ..add('backupTime', backupTime)) - .toString(); - } -} - -class GUpdateBackupTimeData_setSettings_settingsBuilder - implements - Builder { - _$GUpdateBackupTimeData_setSettings_settings? _$v; - - String? _G__typename; - String? get G__typename => _$this._G__typename; - set G__typename(String? G__typename) => _$this._G__typename = G__typename; - - String? _backupTime; - String? get backupTime => _$this._backupTime; - set backupTime(String? backupTime) => _$this._backupTime = backupTime; - - GUpdateBackupTimeData_setSettings_settingsBuilder() { - GUpdateBackupTimeData_setSettings_settings._initializeBuilder(this); - } - - GUpdateBackupTimeData_setSettings_settingsBuilder get _$this { - final $v = _$v; - if ($v != null) { - _G__typename = $v.G__typename; - _backupTime = $v.backupTime; - _$v = null; - } - return this; - } - - @override - void replace(GUpdateBackupTimeData_setSettings_settings other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GUpdateBackupTimeData_setSettings_settings; - } - - @override - void update( - void Function(GUpdateBackupTimeData_setSettings_settingsBuilder)? - updates) { - if (updates != null) updates(this); - } - - @override - GUpdateBackupTimeData_setSettings_settings build() => _build(); - - _$GUpdateBackupTimeData_setSettings_settings _build() { - final _$result = _$v ?? - new _$GUpdateBackupTimeData_setSettings_settings._( - G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, - r'GUpdateBackupTimeData_setSettings_settings', 'G__typename'), - backupTime: BuiltValueNullFieldError.checkNotNull(backupTime, - r'GUpdateBackupTimeData_setSettings_settings', 'backupTime')); - replace(_$result); - return _$result; - } -} - -class _$GUpdateBackupIntervalData extends GUpdateBackupIntervalData { - @override - final String G__typename; - @override - final GUpdateBackupIntervalData_setSettings setSettings; - - factory _$GUpdateBackupIntervalData( - [void Function(GUpdateBackupIntervalDataBuilder)? updates]) => - (new GUpdateBackupIntervalDataBuilder()..update(updates))._build(); - - _$GUpdateBackupIntervalData._( - {required this.G__typename, required this.setSettings}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - G__typename, r'GUpdateBackupIntervalData', 'G__typename'); - BuiltValueNullFieldError.checkNotNull( - setSettings, r'GUpdateBackupIntervalData', 'setSettings'); - } - - @override - GUpdateBackupIntervalData rebuild( - void Function(GUpdateBackupIntervalDataBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GUpdateBackupIntervalDataBuilder toBuilder() => - new GUpdateBackupIntervalDataBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GUpdateBackupIntervalData && - G__typename == other.G__typename && - setSettings == other.setSettings; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, G__typename.hashCode); - _$hash = $jc(_$hash, setSettings.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GUpdateBackupIntervalData') - ..add('G__typename', G__typename) - ..add('setSettings', setSettings)) - .toString(); - } -} - -class GUpdateBackupIntervalDataBuilder - implements - Builder { - _$GUpdateBackupIntervalData? _$v; - - String? _G__typename; - String? get G__typename => _$this._G__typename; - set G__typename(String? G__typename) => _$this._G__typename = G__typename; - - GUpdateBackupIntervalData_setSettingsBuilder? _setSettings; - GUpdateBackupIntervalData_setSettingsBuilder get setSettings => - _$this._setSettings ??= - new GUpdateBackupIntervalData_setSettingsBuilder(); - set setSettings(GUpdateBackupIntervalData_setSettingsBuilder? setSettings) => - _$this._setSettings = setSettings; - - GUpdateBackupIntervalDataBuilder() { - GUpdateBackupIntervalData._initializeBuilder(this); - } - - GUpdateBackupIntervalDataBuilder get _$this { - final $v = _$v; - if ($v != null) { - _G__typename = $v.G__typename; - _setSettings = $v.setSettings.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(GUpdateBackupIntervalData other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GUpdateBackupIntervalData; - } - - @override - void update(void Function(GUpdateBackupIntervalDataBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GUpdateBackupIntervalData build() => _build(); - - _$GUpdateBackupIntervalData _build() { - _$GUpdateBackupIntervalData _$result; - try { - _$result = _$v ?? - new _$GUpdateBackupIntervalData._( - G__typename: BuiltValueNullFieldError.checkNotNull( - G__typename, r'GUpdateBackupIntervalData', 'G__typename'), - setSettings: setSettings.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'setSettings'; - setSettings.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'GUpdateBackupIntervalData', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -class _$GUpdateBackupIntervalData_setSettings - extends GUpdateBackupIntervalData_setSettings { - @override - final String G__typename; - @override - final GUpdateBackupIntervalData_setSettings_settings settings; - - factory _$GUpdateBackupIntervalData_setSettings( - [void Function(GUpdateBackupIntervalData_setSettingsBuilder)? - updates]) => - (new GUpdateBackupIntervalData_setSettingsBuilder()..update(updates)) - ._build(); - - _$GUpdateBackupIntervalData_setSettings._( - {required this.G__typename, required this.settings}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - G__typename, r'GUpdateBackupIntervalData_setSettings', 'G__typename'); - BuiltValueNullFieldError.checkNotNull( - settings, r'GUpdateBackupIntervalData_setSettings', 'settings'); - } - - @override - GUpdateBackupIntervalData_setSettings rebuild( - void Function(GUpdateBackupIntervalData_setSettingsBuilder) - updates) => - (toBuilder()..update(updates)).build(); - - @override - GUpdateBackupIntervalData_setSettingsBuilder toBuilder() => - new GUpdateBackupIntervalData_setSettingsBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GUpdateBackupIntervalData_setSettings && - G__typename == other.G__typename && - settings == other.settings; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, G__typename.hashCode); - _$hash = $jc(_$hash, settings.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper( - r'GUpdateBackupIntervalData_setSettings') - ..add('G__typename', G__typename) - ..add('settings', settings)) - .toString(); - } -} - -class GUpdateBackupIntervalData_setSettingsBuilder - implements - Builder { - _$GUpdateBackupIntervalData_setSettings? _$v; - - String? _G__typename; - String? get G__typename => _$this._G__typename; - set G__typename(String? G__typename) => _$this._G__typename = G__typename; - - GUpdateBackupIntervalData_setSettings_settingsBuilder? _settings; - GUpdateBackupIntervalData_setSettings_settingsBuilder get settings => - _$this._settings ??= - new GUpdateBackupIntervalData_setSettings_settingsBuilder(); - set settings( - GUpdateBackupIntervalData_setSettings_settingsBuilder? settings) => - _$this._settings = settings; - - GUpdateBackupIntervalData_setSettingsBuilder() { - GUpdateBackupIntervalData_setSettings._initializeBuilder(this); - } - - GUpdateBackupIntervalData_setSettingsBuilder get _$this { - final $v = _$v; - if ($v != null) { - _G__typename = $v.G__typename; - _settings = $v.settings.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(GUpdateBackupIntervalData_setSettings other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GUpdateBackupIntervalData_setSettings; - } - - @override - void update( - void Function(GUpdateBackupIntervalData_setSettingsBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GUpdateBackupIntervalData_setSettings build() => _build(); - - _$GUpdateBackupIntervalData_setSettings _build() { - _$GUpdateBackupIntervalData_setSettings _$result; - try { - _$result = _$v ?? - new _$GUpdateBackupIntervalData_setSettings._( - G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, - r'GUpdateBackupIntervalData_setSettings', 'G__typename'), - settings: settings.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'settings'; - settings.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'GUpdateBackupIntervalData_setSettings', - _$failedField, - e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -class _$GUpdateBackupIntervalData_setSettings_settings - extends GUpdateBackupIntervalData_setSettings_settings { - @override - final String G__typename; - @override - final int backupInterval; - - factory _$GUpdateBackupIntervalData_setSettings_settings( - [void Function(GUpdateBackupIntervalData_setSettings_settingsBuilder)? - updates]) => - (new GUpdateBackupIntervalData_setSettings_settingsBuilder() - ..update(updates)) - ._build(); - - _$GUpdateBackupIntervalData_setSettings_settings._( - {required this.G__typename, required this.backupInterval}) - : super._() { - BuiltValueNullFieldError.checkNotNull(G__typename, - r'GUpdateBackupIntervalData_setSettings_settings', 'G__typename'); - BuiltValueNullFieldError.checkNotNull(backupInterval, - r'GUpdateBackupIntervalData_setSettings_settings', 'backupInterval'); - } - - @override - GUpdateBackupIntervalData_setSettings_settings rebuild( - void Function(GUpdateBackupIntervalData_setSettings_settingsBuilder) - updates) => - (toBuilder()..update(updates)).build(); - - @override - GUpdateBackupIntervalData_setSettings_settingsBuilder toBuilder() => - new GUpdateBackupIntervalData_setSettings_settingsBuilder() - ..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GUpdateBackupIntervalData_setSettings_settings && - G__typename == other.G__typename && - backupInterval == other.backupInterval; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, G__typename.hashCode); - _$hash = $jc(_$hash, backupInterval.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper( - r'GUpdateBackupIntervalData_setSettings_settings') - ..add('G__typename', G__typename) - ..add('backupInterval', backupInterval)) - .toString(); - } -} - -class GUpdateBackupIntervalData_setSettings_settingsBuilder - implements - Builder { - _$GUpdateBackupIntervalData_setSettings_settings? _$v; - - String? _G__typename; - String? get G__typename => _$this._G__typename; - set G__typename(String? G__typename) => _$this._G__typename = G__typename; - - int? _backupInterval; - int? get backupInterval => _$this._backupInterval; - set backupInterval(int? backupInterval) => - _$this._backupInterval = backupInterval; - - GUpdateBackupIntervalData_setSettings_settingsBuilder() { - GUpdateBackupIntervalData_setSettings_settings._initializeBuilder(this); - } - - GUpdateBackupIntervalData_setSettings_settingsBuilder get _$this { - final $v = _$v; - if ($v != null) { - _G__typename = $v.G__typename; - _backupInterval = $v.backupInterval; - _$v = null; - } - return this; - } + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + ]; - @override - void replace(GUpdateBackupIntervalData_setSettings_settings other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GUpdateBackupIntervalData_setSettings_settings; + return result; } @override - void update( - void Function(GUpdateBackupIntervalData_setSettings_settingsBuilder)? - updates) { - if (updates != null) updates(this); - } + GSettingsFragmentData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSettingsFragmentDataBuilder(); - @override - GUpdateBackupIntervalData_setSettings_settings build() => _build(); + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } - _$GUpdateBackupIntervalData_setSettings_settings _build() { - final _$result = _$v ?? - new _$GUpdateBackupIntervalData_setSettings_settings._( - G__typename: BuiltValueNullFieldError.checkNotNull( - G__typename, - r'GUpdateBackupIntervalData_setSettings_settings', - 'G__typename'), - backupInterval: BuiltValueNullFieldError.checkNotNull( - backupInterval, - r'GUpdateBackupIntervalData_setSettings_settings', - 'backupInterval')); - replace(_$result); - return _$result; + return result.build(); } } -class _$GUpdateBackupTTLData extends GUpdateBackupTTLData { +class _$GServerSettingsData extends GServerSettingsData { @override final String G__typename; @override - final GUpdateBackupTTLData_setSettings setSettings; + final GServerSettingsData_settings settings; - factory _$GUpdateBackupTTLData( - [void Function(GUpdateBackupTTLDataBuilder)? updates]) => - (new GUpdateBackupTTLDataBuilder()..update(updates))._build(); + factory _$GServerSettingsData( + [void Function(GServerSettingsDataBuilder)? updates]) => + (new GServerSettingsDataBuilder()..update(updates))._build(); - _$GUpdateBackupTTLData._( - {required this.G__typename, required this.setSettings}) + _$GServerSettingsData._({required this.G__typename, required this.settings}) : super._() { BuiltValueNullFieldError.checkNotNull( - G__typename, r'GUpdateBackupTTLData', 'G__typename'); + G__typename, r'GServerSettingsData', 'G__typename'); BuiltValueNullFieldError.checkNotNull( - setSettings, r'GUpdateBackupTTLData', 'setSettings'); + settings, r'GServerSettingsData', 'settings'); } @override - GUpdateBackupTTLData rebuild( - void Function(GUpdateBackupTTLDataBuilder) updates) => + GServerSettingsData rebuild( + void Function(GServerSettingsDataBuilder) updates) => (toBuilder()..update(updates)).build(); @override - GUpdateBackupTTLDataBuilder toBuilder() => - new GUpdateBackupTTLDataBuilder()..replace(this); + GServerSettingsDataBuilder toBuilder() => + new GServerSettingsDataBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; - return other is GUpdateBackupTTLData && + return other is GServerSettingsData && G__typename == other.G__typename && - setSettings == other.setSettings; + settings == other.settings; } @override int get hashCode { var _$hash = 0; _$hash = $jc(_$hash, G__typename.hashCode); - _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jc(_$hash, settings.hashCode); _$hash = $jf(_$hash); return _$hash; } @override String toString() { - return (newBuiltValueToStringHelper(r'GUpdateBackupTTLData') + return (newBuiltValueToStringHelper(r'GServerSettingsData') ..add('G__typename', G__typename) - ..add('setSettings', setSettings)) + ..add('settings', settings)) .toString(); } } -class GUpdateBackupTTLDataBuilder - implements Builder { - _$GUpdateBackupTTLData? _$v; +class GServerSettingsDataBuilder + implements Builder { + _$GServerSettingsData? _$v; String? _G__typename; String? get G__typename => _$this._G__typename; set G__typename(String? G__typename) => _$this._G__typename = G__typename; - GUpdateBackupTTLData_setSettingsBuilder? _setSettings; - GUpdateBackupTTLData_setSettingsBuilder get setSettings => - _$this._setSettings ??= new GUpdateBackupTTLData_setSettingsBuilder(); - set setSettings(GUpdateBackupTTLData_setSettingsBuilder? setSettings) => - _$this._setSettings = setSettings; + GServerSettingsData_settingsBuilder? _settings; + GServerSettingsData_settingsBuilder get settings => + _$this._settings ??= new GServerSettingsData_settingsBuilder(); + set settings(GServerSettingsData_settingsBuilder? settings) => + _$this._settings = settings; - GUpdateBackupTTLDataBuilder() { - GUpdateBackupTTLData._initializeBuilder(this); + GServerSettingsDataBuilder() { + GServerSettingsData._initializeBuilder(this); } - GUpdateBackupTTLDataBuilder get _$this { + GServerSettingsDataBuilder get _$this { final $v = _$v; if ($v != null) { _G__typename = $v.G__typename; - _setSettings = $v.setSettings.toBuilder(); + _settings = $v.settings.toBuilder(); _$v = null; } return this; } @override - void replace(GUpdateBackupTTLData other) { + void replace(GServerSettingsData other) { ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GUpdateBackupTTLData; + _$v = other as _$GServerSettingsData; } @override - void update(void Function(GUpdateBackupTTLDataBuilder)? updates) { + void update(void Function(GServerSettingsDataBuilder)? updates) { if (updates != null) updates(this); } @override - GUpdateBackupTTLData build() => _build(); + GServerSettingsData build() => _build(); - _$GUpdateBackupTTLData _build() { - _$GUpdateBackupTTLData _$result; + _$GServerSettingsData _build() { + _$GServerSettingsData _$result; try { _$result = _$v ?? - new _$GUpdateBackupTTLData._( + new _$GServerSettingsData._( G__typename: BuiltValueNullFieldError.checkNotNull( - G__typename, r'GUpdateBackupTTLData', 'G__typename'), - setSettings: setSettings.build()); + G__typename, r'GServerSettingsData', 'G__typename'), + settings: settings.build()); } catch (_) { late String _$failedField; try { - _$failedField = 'setSettings'; - setSettings.build(); + _$failedField = 'settings'; + settings.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'GUpdateBackupTTLData', _$failedField, e.toString()); + r'GServerSettingsData', _$failedField, e.toString()); } rethrow; } @@ -4251,122 +603,452 @@ class GUpdateBackupTTLDataBuilder } } -class _$GUpdateBackupTTLData_setSettings - extends GUpdateBackupTTLData_setSettings { +class _$GServerSettingsData_settings extends GServerSettingsData_settings { @override final String G__typename; @override - final GUpdateBackupTTLData_setSettings_settings settings; + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; - factory _$GUpdateBackupTTLData_setSettings( - [void Function(GUpdateBackupTTLData_setSettingsBuilder)? updates]) => - (new GUpdateBackupTTLData_setSettingsBuilder()..update(updates))._build(); + factory _$GServerSettingsData_settings( + [void Function(GServerSettingsData_settingsBuilder)? updates]) => + (new GServerSettingsData_settingsBuilder()..update(updates))._build(); - _$GUpdateBackupTTLData_setSettings._( - {required this.G__typename, required this.settings}) + _$GServerSettingsData_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath}) : super._() { BuiltValueNullFieldError.checkNotNull( - G__typename, r'GUpdateBackupTTLData_setSettings', 'G__typename'); + G__typename, r'GServerSettingsData_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + backupInterval, r'GServerSettingsData_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull( + backupPath, r'GServerSettingsData_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GServerSettingsData_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull( + backupTime, r'GServerSettingsData_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GServerSettingsData_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GServerSettingsData_settings', 'port'); + BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, + r'GServerSettingsData_settings', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull( + socksProxyHost, r'GServerSettingsData_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull(socksProxyPassword, + r'GServerSettingsData_settings', 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPort, r'GServerSettingsData_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull(socksProxyUsername, + r'GServerSettingsData_settings', 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull(socksProxyVersion, + r'GServerSettingsData_settings', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, + r'GServerSettingsData_settings', 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull(flareSolverrSessionName, + r'GServerSettingsData_settings', 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, + r'GServerSettingsData_settings', 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, + r'GServerSettingsData_settings', 'flareSolverrTimeout'); BuiltValueNullFieldError.checkNotNull( - settings, r'GUpdateBackupTTLData_setSettings', 'settings'); + flareSolverrUrl, r'GServerSettingsData_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, r'GServerSettingsData_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, + r'GServerSettingsData_settings', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, + r'GServerSettingsData_settings', 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + extensionRepos, r'GServerSettingsData_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, + r'GServerSettingsData_settings', 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull( + localSourcePath, r'GServerSettingsData_settings', 'localSourcePath'); } @override - GUpdateBackupTTLData_setSettings rebuild( - void Function(GUpdateBackupTTLData_setSettingsBuilder) updates) => + GServerSettingsData_settings rebuild( + void Function(GServerSettingsData_settingsBuilder) updates) => (toBuilder()..update(updates)).build(); @override - GUpdateBackupTTLData_setSettingsBuilder toBuilder() => - new GUpdateBackupTTLData_setSettingsBuilder()..replace(this); + GServerSettingsData_settingsBuilder toBuilder() => + new GServerSettingsData_settingsBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; - return other is GUpdateBackupTTLData_setSettings && + return other is GServerSettingsData_settings && G__typename == other.G__typename && - settings == other.settings; + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath; } @override int get hashCode { var _$hash = 0; _$hash = $jc(_$hash, G__typename.hashCode); - _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); _$hash = $jf(_$hash); return _$hash; } @override String toString() { - return (newBuiltValueToStringHelper(r'GUpdateBackupTTLData_setSettings') + return (newBuiltValueToStringHelper(r'GServerSettingsData_settings') ..add('G__typename', G__typename) - ..add('settings', settings)) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath)) .toString(); } } -class GUpdateBackupTTLData_setSettingsBuilder +class GServerSettingsData_settingsBuilder implements - Builder { - _$GUpdateBackupTTLData_setSettings? _$v; + Builder { + _$GServerSettingsData_settings? _$v; String? _G__typename; String? get G__typename => _$this._G__typename; set G__typename(String? G__typename) => _$this._G__typename = G__typename; - GUpdateBackupTTLData_setSettings_settingsBuilder? _settings; - GUpdateBackupTTLData_setSettings_settingsBuilder get settings => - _$this._settings ??= - new GUpdateBackupTTLData_setSettings_settingsBuilder(); - set settings(GUpdateBackupTTLData_setSettings_settingsBuilder? settings) => - _$this._settings = settings; + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; - GUpdateBackupTTLData_setSettingsBuilder() { - GUpdateBackupTTLData_setSettings._initializeBuilder(this); - } + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; - GUpdateBackupTTLData_setSettingsBuilder get _$this { + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + GServerSettingsData_settingsBuilder() { + GServerSettingsData_settings._initializeBuilder(this); + } + + GServerSettingsData_settingsBuilder get _$this { final $v = _$v; if ($v != null) { _G__typename = $v.G__typename; - _settings = $v.settings.toBuilder(); + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; _$v = null; } return this; } @override - void replace(GUpdateBackupTTLData_setSettings other) { + void replace(GServerSettingsData_settings other) { ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GUpdateBackupTTLData_setSettings; + _$v = other as _$GServerSettingsData_settings; } @override - void update(void Function(GUpdateBackupTTLData_setSettingsBuilder)? updates) { + void update(void Function(GServerSettingsData_settingsBuilder)? updates) { if (updates != null) updates(this); } @override - GUpdateBackupTTLData_setSettings build() => _build(); + GServerSettingsData_settings build() => _build(); - _$GUpdateBackupTTLData_setSettings _build() { - _$GUpdateBackupTTLData_setSettings _$result; + _$GServerSettingsData_settings _build() { + _$GServerSettingsData_settings _$result; try { _$result = _$v ?? - new _$GUpdateBackupTTLData_setSettings._( - G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, - r'GUpdateBackupTTLData_setSettings', 'G__typename'), - settings: settings.build()); + new _$GServerSettingsData_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GServerSettingsData_settings', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, r'GServerSettingsData_settings', 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, r'GServerSettingsData_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GServerSettingsData_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, r'GServerSettingsData_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GServerSettingsData_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull( + port, r'GServerSettingsData_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, r'GServerSettingsData_settings', 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull(socksProxyHost, r'GServerSettingsData_settings', 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull(socksProxyPassword, r'GServerSettingsData_settings', 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull(socksProxyPort, r'GServerSettingsData_settings', 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull(socksProxyUsername, r'GServerSettingsData_settings', 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull(socksProxyVersion, r'GServerSettingsData_settings', 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, r'GServerSettingsData_settings', 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionName, r'GServerSettingsData_settings', 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, r'GServerSettingsData_settings', 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, r'GServerSettingsData_settings', 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, r'GServerSettingsData_settings', 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, r'GServerSettingsData_settings', 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, r'GServerSettingsData_settings', 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, r'GServerSettingsData_settings', 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, r'GServerSettingsData_settings', 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull(localSourcePath, r'GServerSettingsData_settings', 'localSourcePath')); } catch (_) { late String _$failedField; try { - _$failedField = 'settings'; - settings.build(); + _$failedField = 'extensionRepos'; + extensionRepos.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'GUpdateBackupTTLData_setSettings', _$failedField, e.toString()); + r'GServerSettingsData_settings', _$failedField, e.toString()); } rethrow; } @@ -4375,116 +1057,452 @@ class GUpdateBackupTTLData_setSettingsBuilder } } -class _$GUpdateBackupTTLData_setSettings_settings - extends GUpdateBackupTTLData_setSettings_settings { +class _$GSettingsFragmentData extends GSettingsFragmentData { @override final String G__typename; @override + final int backupInterval; + @override + final String backupPath; + @override final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; - factory _$GUpdateBackupTTLData_setSettings_settings( - [void Function(GUpdateBackupTTLData_setSettings_settingsBuilder)? - updates]) => - (new GUpdateBackupTTLData_setSettings_settingsBuilder()..update(updates)) - ._build(); + factory _$GSettingsFragmentData( + [void Function(GSettingsFragmentDataBuilder)? updates]) => + (new GSettingsFragmentDataBuilder()..update(updates))._build(); - _$GUpdateBackupTTLData_setSettings_settings._( - {required this.G__typename, required this.backupTTL}) + _$GSettingsFragmentData._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath}) : super._() { - BuiltValueNullFieldError.checkNotNull(G__typename, - r'GUpdateBackupTTLData_setSettings_settings', 'G__typename'); BuiltValueNullFieldError.checkNotNull( - backupTTL, r'GUpdateBackupTTLData_setSettings_settings', 'backupTTL'); + G__typename, r'GSettingsFragmentData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + backupInterval, r'GSettingsFragmentData', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull( + backupPath, r'GSettingsFragmentData', 'backupPath'); + BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GSettingsFragmentData', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull( + backupTime, r'GSettingsFragmentData', 'backupTime'); + BuiltValueNullFieldError.checkNotNull(ip, r'GSettingsFragmentData', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GSettingsFragmentData', 'port'); + BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, r'GSettingsFragmentData', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull( + socksProxyHost, r'GSettingsFragmentData', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, r'GSettingsFragmentData', 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPort, r'GSettingsFragmentData', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, r'GSettingsFragmentData', 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, r'GSettingsFragmentData', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, r'GSettingsFragmentData', 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull(flareSolverrSessionName, + r'GSettingsFragmentData', 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, + r'GSettingsFragmentData', 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, r'GSettingsFragmentData', 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, r'GSettingsFragmentData', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, r'GSettingsFragmentData', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, r'GSettingsFragmentData', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, r'GSettingsFragmentData', 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + extensionRepos, r'GSettingsFragmentData', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, r'GSettingsFragmentData', 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull( + localSourcePath, r'GSettingsFragmentData', 'localSourcePath'); } @override - GUpdateBackupTTLData_setSettings_settings rebuild( - void Function(GUpdateBackupTTLData_setSettings_settingsBuilder) - updates) => + GSettingsFragmentData rebuild( + void Function(GSettingsFragmentDataBuilder) updates) => (toBuilder()..update(updates)).build(); @override - GUpdateBackupTTLData_setSettings_settingsBuilder toBuilder() => - new GUpdateBackupTTLData_setSettings_settingsBuilder()..replace(this); + GSettingsFragmentDataBuilder toBuilder() => + new GSettingsFragmentDataBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; - return other is GUpdateBackupTTLData_setSettings_settings && + return other is GSettingsFragmentData && G__typename == other.G__typename && - backupTTL == other.backupTTL; + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath; } @override int get hashCode { var _$hash = 0; _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); _$hash = $jf(_$hash); return _$hash; } @override String toString() { - return (newBuiltValueToStringHelper( - r'GUpdateBackupTTLData_setSettings_settings') + return (newBuiltValueToStringHelper(r'GSettingsFragmentData') ..add('G__typename', G__typename) - ..add('backupTTL', backupTTL)) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath)) .toString(); } } -class GUpdateBackupTTLData_setSettings_settingsBuilder - implements - Builder { - _$GUpdateBackupTTLData_setSettings_settings? _$v; +class GSettingsFragmentDataBuilder + implements Builder { + _$GSettingsFragmentData? _$v; String? _G__typename; String? get G__typename => _$this._G__typename; set G__typename(String? G__typename) => _$this._G__typename = G__typename; + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + int? _backupTTL; int? get backupTTL => _$this._backupTTL; set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; - GUpdateBackupTTLData_setSettings_settingsBuilder() { - GUpdateBackupTTLData_setSettings_settings._initializeBuilder(this); - } + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; - GUpdateBackupTTLData_setSettings_settingsBuilder get _$this { + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + GSettingsFragmentDataBuilder() { + GSettingsFragmentData._initializeBuilder(this); + } + + GSettingsFragmentDataBuilder get _$this { final $v = _$v; if ($v != null) { _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; _$v = null; } return this; } @override - void replace(GUpdateBackupTTLData_setSettings_settings other) { + void replace(GSettingsFragmentData other) { ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GUpdateBackupTTLData_setSettings_settings; + _$v = other as _$GSettingsFragmentData; } @override - void update( - void Function(GUpdateBackupTTLData_setSettings_settingsBuilder)? - updates) { + void update(void Function(GSettingsFragmentDataBuilder)? updates) { if (updates != null) updates(this); } @override - GUpdateBackupTTLData_setSettings_settings build() => _build(); + GSettingsFragmentData build() => _build(); - _$GUpdateBackupTTLData_setSettings_settings _build() { - final _$result = _$v ?? - new _$GUpdateBackupTTLData_setSettings_settings._( - G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, - r'GUpdateBackupTTLData_setSettings_settings', 'G__typename'), - backupTTL: BuiltValueNullFieldError.checkNotNull(backupTTL, - r'GUpdateBackupTTLData_setSettings_settings', 'backupTTL')); + _$GSettingsFragmentData _build() { + _$GSettingsFragmentData _$result; + try { + _$result = _$v ?? + new _$GSettingsFragmentData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSettingsFragmentData', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, r'GSettingsFragmentData', 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, r'GSettingsFragmentData', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GSettingsFragmentData', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, r'GSettingsFragmentData', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GSettingsFragmentData', 'ip'), + port: BuiltValueNullFieldError.checkNotNull( + port, r'GSettingsFragmentData', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, r'GSettingsFragmentData', 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull(socksProxyHost, r'GSettingsFragmentData', 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull(socksProxyPassword, r'GSettingsFragmentData', 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull(socksProxyPort, r'GSettingsFragmentData', 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull(socksProxyUsername, r'GSettingsFragmentData', 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull(socksProxyVersion, r'GSettingsFragmentData', 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, r'GSettingsFragmentData', 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionName, r'GSettingsFragmentData', 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, r'GSettingsFragmentData', 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, r'GSettingsFragmentData', 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, r'GSettingsFragmentData', 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, r'GSettingsFragmentData', 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, r'GSettingsFragmentData', 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, r'GSettingsFragmentData', 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, r'GSettingsFragmentData', 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull(localSourcePath, r'GSettingsFragmentData', 'localSourcePath')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSettingsFragmentData', _$failedField, e.toString()); + } + rethrow; + } replace(_$result); return _$result; } diff --git a/lib/src/features/settings/data/graphql/__generated__/settings_query.req.gql.dart b/lib/src/features/settings/data/graphql/__generated__/settings_query.req.gql.dart index 621828ee..e5d11e7d 100644 --- a/lib/src/features/settings/data/graphql/__generated__/settings_query.req.gql.dart +++ b/lib/src/features/settings/data/graphql/__generated__/settings_query.req.gql.dart @@ -5,6 +5,7 @@ import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql/ast.dart' as _i7; import 'package:gql_exec/gql_exec.dart' as _i4; import 'package:tachidesk_sorayomi/src/features/settings/data/graphql/__generated__/settings_query.ast.gql.dart' as _i5; @@ -17,26 +18,25 @@ import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dar part 'settings_query.req.gql.g.dart'; -abstract class GAutomaticBackupSettingsReq +abstract class GServerSettingsReq implements - Built, - _i1.OperationRequest<_i2.GAutomaticBackupSettingsData, - _i3.GAutomaticBackupSettingsVars> { - GAutomaticBackupSettingsReq._(); + Built, + _i1.OperationRequest<_i2.GServerSettingsData, _i3.GServerSettingsVars> { + GServerSettingsReq._(); - factory GAutomaticBackupSettingsReq( - [void Function(GAutomaticBackupSettingsReqBuilder b) updates]) = - _$GAutomaticBackupSettingsReq; + factory GServerSettingsReq( + [void Function(GServerSettingsReqBuilder b) updates]) = + _$GServerSettingsReq; - static void _initializeBuilder(GAutomaticBackupSettingsReqBuilder b) => b + static void _initializeBuilder(GServerSettingsReqBuilder b) => b ..operation = _i4.Operation( document: _i5.document, - operationName: 'AutomaticBackupSettings', + operationName: 'ServerSettings', ) ..executeOnListen = true; @override - _i3.GAutomaticBackupSettingsVars get vars; + _i3.GServerSettingsVars get vars; @override _i4.Operation get operation; @override @@ -50,12 +50,12 @@ abstract class GAutomaticBackupSettingsReq String? get requestId; @override @BuiltValueField(serialize: false) - _i2.GAutomaticBackupSettingsData? Function( - _i2.GAutomaticBackupSettingsData?, - _i2.GAutomaticBackupSettingsData?, + _i2.GServerSettingsData? Function( + _i2.GServerSettingsData?, + _i2.GServerSettingsData?, )? get updateResult; @override - _i2.GAutomaticBackupSettingsData? get optimisticResponse; + _i2.GServerSettingsData? get optimisticResponse; @override String? get updateCacheHandlerKey; @override @@ -68,674 +68,81 @@ abstract class GAutomaticBackupSettingsReq @BuiltValueField(serialize: false) _i4.Context? get context; @override - _i2.GAutomaticBackupSettingsData? parseData(Map json) => - _i2.GAutomaticBackupSettingsData.fromJson(json); + _i2.GServerSettingsData? parseData(Map json) => + _i2.GServerSettingsData.fromJson(json); @override Map varsToJson() => vars.toJson(); @override - Map dataToJson(_i2.GAutomaticBackupSettingsData data) => + Map dataToJson(_i2.GServerSettingsData data) => data.toJson(); @override - _i1.OperationRequest<_i2.GAutomaticBackupSettingsData, - _i3.GAutomaticBackupSettingsVars> transformOperation( - _i4.Operation Function(_i4.Operation) transform) => - this.rebuild((b) => b..operation = transform(operation)); - - static Serializer get serializer => - _$gAutomaticBackupSettingsReqSerializer; - - Map toJson() => (_i6.serializers.serializeWith( - GAutomaticBackupSettingsReq.serializer, - this, - ) as Map); - - static GAutomaticBackupSettingsReq? fromJson(Map json) => - _i6.serializers.deserializeWith( - GAutomaticBackupSettingsReq.serializer, - json, - ); -} - -abstract class GRestoreStatusReq - implements - Built, - _i1.OperationRequest<_i2.GRestoreStatusData, _i3.GRestoreStatusVars> { - GRestoreStatusReq._(); - - factory GRestoreStatusReq( - [void Function(GRestoreStatusReqBuilder b) updates]) = - _$GRestoreStatusReq; - - static void _initializeBuilder(GRestoreStatusReqBuilder b) => b - ..operation = _i4.Operation( - document: _i5.document, - operationName: 'RestoreStatus', - ) - ..executeOnListen = true; - - @override - _i3.GRestoreStatusVars get vars; - @override - _i4.Operation get operation; - @override - _i4.Request get execRequest => _i4.Request( - operation: operation, - variables: vars.toJson(), - context: context ?? const _i4.Context(), - ); - - @override - String? get requestId; - @override - @BuiltValueField(serialize: false) - _i2.GRestoreStatusData? Function( - _i2.GRestoreStatusData?, - _i2.GRestoreStatusData?, - )? get updateResult; - @override - _i2.GRestoreStatusData? get optimisticResponse; - @override - String? get updateCacheHandlerKey; - @override - Map? get updateCacheHandlerContext; - @override - _i1.FetchPolicy? get fetchPolicy; - @override - bool get executeOnListen; - @override - @BuiltValueField(serialize: false) - _i4.Context? get context; - @override - _i2.GRestoreStatusData? parseData(Map json) => - _i2.GRestoreStatusData.fromJson(json); - - @override - Map varsToJson() => vars.toJson(); - - @override - Map dataToJson(_i2.GRestoreStatusData data) => data.toJson(); - - @override - _i1.OperationRequest<_i2.GRestoreStatusData, _i3.GRestoreStatusVars> - transformOperation(_i4.Operation Function(_i4.Operation) transform) => - this.rebuild((b) => b..operation = transform(operation)); - - static Serializer get serializer => - _$gRestoreStatusReqSerializer; - - Map toJson() => (_i6.serializers.serializeWith( - GRestoreStatusReq.serializer, - this, - ) as Map); - - static GRestoreStatusReq? fromJson(Map json) => - _i6.serializers.deserializeWith( - GRestoreStatusReq.serializer, - json, - ); -} - -abstract class GValidateBackupReq - implements - Built, - _i1.OperationRequest<_i2.GValidateBackupData, _i3.GValidateBackupVars> { - GValidateBackupReq._(); - - factory GValidateBackupReq( - [void Function(GValidateBackupReqBuilder b) updates]) = - _$GValidateBackupReq; - - static void _initializeBuilder(GValidateBackupReqBuilder b) => b - ..operation = _i4.Operation( - document: _i5.document, - operationName: 'ValidateBackup', - ) - ..executeOnListen = true; - - @override - _i3.GValidateBackupVars get vars; - @override - _i4.Operation get operation; - @override - _i4.Request get execRequest => _i4.Request( - operation: operation, - variables: vars.toJson(), - context: context ?? const _i4.Context(), - ); - - @override - String? get requestId; - @override - @BuiltValueField(serialize: false) - _i2.GValidateBackupData? Function( - _i2.GValidateBackupData?, - _i2.GValidateBackupData?, - )? get updateResult; - @override - _i2.GValidateBackupData? get optimisticResponse; - @override - String? get updateCacheHandlerKey; - @override - Map? get updateCacheHandlerContext; - @override - _i1.FetchPolicy? get fetchPolicy; - @override - bool get executeOnListen; - @override - @BuiltValueField(serialize: false) - _i4.Context? get context; - @override - _i2.GValidateBackupData? parseData(Map json) => - _i2.GValidateBackupData.fromJson(json); - - @override - Map varsToJson() => vars.toJson(); - - @override - Map dataToJson(_i2.GValidateBackupData data) => - data.toJson(); - - @override - _i1.OperationRequest<_i2.GValidateBackupData, _i3.GValidateBackupVars> - transformOperation(_i4.Operation Function(_i4.Operation) transform) => - this.rebuild((b) => b..operation = transform(operation)); - - static Serializer get serializer => - _$gValidateBackupReqSerializer; - - Map toJson() => (_i6.serializers.serializeWith( - GValidateBackupReq.serializer, - this, - ) as Map); - - static GValidateBackupReq? fromJson(Map json) => - _i6.serializers.deserializeWith( - GValidateBackupReq.serializer, - json, - ); -} - -abstract class GCreateBackupReq - implements - Built, - _i1.OperationRequest<_i2.GCreateBackupData, _i3.GCreateBackupVars> { - GCreateBackupReq._(); - - factory GCreateBackupReq([void Function(GCreateBackupReqBuilder b) updates]) = - _$GCreateBackupReq; - - static void _initializeBuilder(GCreateBackupReqBuilder b) => b - ..operation = _i4.Operation( - document: _i5.document, - operationName: 'CreateBackup', - ) - ..executeOnListen = true; - - @override - _i3.GCreateBackupVars get vars; - @override - _i4.Operation get operation; - @override - _i4.Request get execRequest => _i4.Request( - operation: operation, - variables: vars.toJson(), - context: context ?? const _i4.Context(), - ); - - @override - String? get requestId; - @override - @BuiltValueField(serialize: false) - _i2.GCreateBackupData? Function( - _i2.GCreateBackupData?, - _i2.GCreateBackupData?, - )? get updateResult; - @override - _i2.GCreateBackupData? get optimisticResponse; - @override - String? get updateCacheHandlerKey; - @override - Map? get updateCacheHandlerContext; - @override - _i1.FetchPolicy? get fetchPolicy; - @override - bool get executeOnListen; - @override - @BuiltValueField(serialize: false) - _i4.Context? get context; - @override - _i2.GCreateBackupData? parseData(Map json) => - _i2.GCreateBackupData.fromJson(json); - - @override - Map varsToJson() => vars.toJson(); - - @override - Map dataToJson(_i2.GCreateBackupData data) => data.toJson(); - - @override - _i1.OperationRequest<_i2.GCreateBackupData, _i3.GCreateBackupVars> + _i1.OperationRequest<_i2.GServerSettingsData, _i3.GServerSettingsVars> transformOperation(_i4.Operation Function(_i4.Operation) transform) => this.rebuild((b) => b..operation = transform(operation)); - static Serializer get serializer => - _$gCreateBackupReqSerializer; + static Serializer get serializer => + _$gServerSettingsReqSerializer; Map toJson() => (_i6.serializers.serializeWith( - GCreateBackupReq.serializer, + GServerSettingsReq.serializer, this, ) as Map); - static GCreateBackupReq? fromJson(Map json) => + static GServerSettingsReq? fromJson(Map json) => _i6.serializers.deserializeWith( - GCreateBackupReq.serializer, + GServerSettingsReq.serializer, json, ); } -abstract class GRestoreBackupReq +abstract class GSettingsFragmentReq implements - Built, - _i1.OperationRequest<_i2.GRestoreBackupData, _i3.GRestoreBackupVars> { - GRestoreBackupReq._(); - - factory GRestoreBackupReq( - [void Function(GRestoreBackupReqBuilder b) updates]) = - _$GRestoreBackupReq; - - static void _initializeBuilder(GRestoreBackupReqBuilder b) => b - ..operation = _i4.Operation( - document: _i5.document, - operationName: 'RestoreBackup', - ) - ..executeOnListen = true; - - @override - _i3.GRestoreBackupVars get vars; - @override - _i4.Operation get operation; - @override - _i4.Request get execRequest => _i4.Request( - operation: operation, - variables: vars.toJson(), - context: context ?? const _i4.Context(), - ); - - @override - String? get requestId; - @override - @BuiltValueField(serialize: false) - _i2.GRestoreBackupData? Function( - _i2.GRestoreBackupData?, - _i2.GRestoreBackupData?, - )? get updateResult; - @override - _i2.GRestoreBackupData? get optimisticResponse; - @override - String? get updateCacheHandlerKey; - @override - Map? get updateCacheHandlerContext; - @override - _i1.FetchPolicy? get fetchPolicy; - @override - bool get executeOnListen; - @override - @BuiltValueField(serialize: false) - _i4.Context? get context; - @override - _i2.GRestoreBackupData? parseData(Map json) => - _i2.GRestoreBackupData.fromJson(json); - - @override - Map varsToJson() => vars.toJson(); - - @override - Map dataToJson(_i2.GRestoreBackupData data) => data.toJson(); - - @override - _i1.OperationRequest<_i2.GRestoreBackupData, _i3.GRestoreBackupVars> - transformOperation(_i4.Operation Function(_i4.Operation) transform) => - this.rebuild((b) => b..operation = transform(operation)); - - static Serializer get serializer => - _$gRestoreBackupReqSerializer; - - Map toJson() => (_i6.serializers.serializeWith( - GRestoreBackupReq.serializer, - this, - ) as Map); - - static GRestoreBackupReq? fromJson(Map json) => - _i6.serializers.deserializeWith( - GRestoreBackupReq.serializer, - json, - ); -} - -abstract class GUpdateBackupPathReq - implements - Built, - _i1.OperationRequest<_i2.GUpdateBackupPathData, - _i3.GUpdateBackupPathVars> { - GUpdateBackupPathReq._(); - - factory GUpdateBackupPathReq( - [void Function(GUpdateBackupPathReqBuilder b) updates]) = - _$GUpdateBackupPathReq; - - static void _initializeBuilder(GUpdateBackupPathReqBuilder b) => b - ..operation = _i4.Operation( - document: _i5.document, - operationName: 'UpdateBackupPath', - ) - ..executeOnListen = true; - - @override - _i3.GUpdateBackupPathVars get vars; - @override - _i4.Operation get operation; - @override - _i4.Request get execRequest => _i4.Request( - operation: operation, - variables: vars.toJson(), - context: context ?? const _i4.Context(), - ); - - @override - String? get requestId; - @override - @BuiltValueField(serialize: false) - _i2.GUpdateBackupPathData? Function( - _i2.GUpdateBackupPathData?, - _i2.GUpdateBackupPathData?, - )? get updateResult; - @override - _i2.GUpdateBackupPathData? get optimisticResponse; - @override - String? get updateCacheHandlerKey; - @override - Map? get updateCacheHandlerContext; - @override - _i1.FetchPolicy? get fetchPolicy; - @override - bool get executeOnListen; - @override - @BuiltValueField(serialize: false) - _i4.Context? get context; - @override - _i2.GUpdateBackupPathData? parseData(Map json) => - _i2.GUpdateBackupPathData.fromJson(json); - - @override - Map varsToJson() => vars.toJson(); - - @override - Map dataToJson(_i2.GUpdateBackupPathData data) => - data.toJson(); - - @override - _i1.OperationRequest<_i2.GUpdateBackupPathData, _i3.GUpdateBackupPathVars> - transformOperation(_i4.Operation Function(_i4.Operation) transform) => - this.rebuild((b) => b..operation = transform(operation)); - - static Serializer get serializer => - _$gUpdateBackupPathReqSerializer; - - Map toJson() => (_i6.serializers.serializeWith( - GUpdateBackupPathReq.serializer, - this, - ) as Map); - - static GUpdateBackupPathReq? fromJson(Map json) => - _i6.serializers.deserializeWith( - GUpdateBackupPathReq.serializer, - json, - ); -} - -abstract class GUpdateBackupTimeReq - implements - Built, - _i1.OperationRequest<_i2.GUpdateBackupTimeData, - _i3.GUpdateBackupTimeVars> { - GUpdateBackupTimeReq._(); - - factory GUpdateBackupTimeReq( - [void Function(GUpdateBackupTimeReqBuilder b) updates]) = - _$GUpdateBackupTimeReq; - - static void _initializeBuilder(GUpdateBackupTimeReqBuilder b) => b - ..operation = _i4.Operation( - document: _i5.document, - operationName: 'UpdateBackupTime', - ) - ..executeOnListen = true; - - @override - _i3.GUpdateBackupTimeVars get vars; - @override - _i4.Operation get operation; - @override - _i4.Request get execRequest => _i4.Request( - operation: operation, - variables: vars.toJson(), - context: context ?? const _i4.Context(), - ); - - @override - String? get requestId; - @override - @BuiltValueField(serialize: false) - _i2.GUpdateBackupTimeData? Function( - _i2.GUpdateBackupTimeData?, - _i2.GUpdateBackupTimeData?, - )? get updateResult; - @override - _i2.GUpdateBackupTimeData? get optimisticResponse; - @override - String? get updateCacheHandlerKey; - @override - Map? get updateCacheHandlerContext; - @override - _i1.FetchPolicy? get fetchPolicy; - @override - bool get executeOnListen; - @override - @BuiltValueField(serialize: false) - _i4.Context? get context; - @override - _i2.GUpdateBackupTimeData? parseData(Map json) => - _i2.GUpdateBackupTimeData.fromJson(json); - - @override - Map varsToJson() => vars.toJson(); - - @override - Map dataToJson(_i2.GUpdateBackupTimeData data) => - data.toJson(); - - @override - _i1.OperationRequest<_i2.GUpdateBackupTimeData, _i3.GUpdateBackupTimeVars> - transformOperation(_i4.Operation Function(_i4.Operation) transform) => - this.rebuild((b) => b..operation = transform(operation)); - - static Serializer get serializer => - _$gUpdateBackupTimeReqSerializer; - - Map toJson() => (_i6.serializers.serializeWith( - GUpdateBackupTimeReq.serializer, - this, - ) as Map); - - static GUpdateBackupTimeReq? fromJson(Map json) => - _i6.serializers.deserializeWith( - GUpdateBackupTimeReq.serializer, - json, - ); -} - -abstract class GUpdateBackupIntervalReq - implements - Built, - _i1.OperationRequest<_i2.GUpdateBackupIntervalData, - _i3.GUpdateBackupIntervalVars> { - GUpdateBackupIntervalReq._(); - - factory GUpdateBackupIntervalReq( - [void Function(GUpdateBackupIntervalReqBuilder b) updates]) = - _$GUpdateBackupIntervalReq; - - static void _initializeBuilder(GUpdateBackupIntervalReqBuilder b) => b - ..operation = _i4.Operation( - document: _i5.document, - operationName: 'UpdateBackupInterval', - ) - ..executeOnListen = true; - - @override - _i3.GUpdateBackupIntervalVars get vars; - @override - _i4.Operation get operation; - @override - _i4.Request get execRequest => _i4.Request( - operation: operation, - variables: vars.toJson(), - context: context ?? const _i4.Context(), - ); - - @override - String? get requestId; - @override - @BuiltValueField(serialize: false) - _i2.GUpdateBackupIntervalData? Function( - _i2.GUpdateBackupIntervalData?, - _i2.GUpdateBackupIntervalData?, - )? get updateResult; - @override - _i2.GUpdateBackupIntervalData? get optimisticResponse; - @override - String? get updateCacheHandlerKey; - @override - Map? get updateCacheHandlerContext; - @override - _i1.FetchPolicy? get fetchPolicy; - @override - bool get executeOnListen; - @override - @BuiltValueField(serialize: false) - _i4.Context? get context; - @override - _i2.GUpdateBackupIntervalData? parseData(Map json) => - _i2.GUpdateBackupIntervalData.fromJson(json); - - @override - Map varsToJson() => vars.toJson(); - - @override - Map dataToJson(_i2.GUpdateBackupIntervalData data) => - data.toJson(); - - @override - _i1.OperationRequest<_i2.GUpdateBackupIntervalData, - _i3.GUpdateBackupIntervalVars> transformOperation( - _i4.Operation Function(_i4.Operation) transform) => - this.rebuild((b) => b..operation = transform(operation)); - - static Serializer get serializer => - _$gUpdateBackupIntervalReqSerializer; - - Map toJson() => (_i6.serializers.serializeWith( - GUpdateBackupIntervalReq.serializer, - this, - ) as Map); - - static GUpdateBackupIntervalReq? fromJson(Map json) => - _i6.serializers.deserializeWith( - GUpdateBackupIntervalReq.serializer, - json, - ); -} - -abstract class GUpdateBackupTTLReq - implements - Built, + Built, _i1 - .OperationRequest<_i2.GUpdateBackupTTLData, _i3.GUpdateBackupTTLVars> { - GUpdateBackupTTLReq._(); - - factory GUpdateBackupTTLReq( - [void Function(GUpdateBackupTTLReqBuilder b) updates]) = - _$GUpdateBackupTTLReq; + .FragmentRequest<_i2.GSettingsFragmentData, _i3.GSettingsFragmentVars> { + GSettingsFragmentReq._(); - static void _initializeBuilder(GUpdateBackupTTLReqBuilder b) => b - ..operation = _i4.Operation( - document: _i5.document, - operationName: 'UpdateBackupTTL', - ) - ..executeOnListen = true; + factory GSettingsFragmentReq( + [void Function(GSettingsFragmentReqBuilder b) updates]) = + _$GSettingsFragmentReq; - @override - _i3.GUpdateBackupTTLVars get vars; - @override - _i4.Operation get operation; - @override - _i4.Request get execRequest => _i4.Request( - operation: operation, - variables: vars.toJson(), - context: context ?? const _i4.Context(), - ); + static void _initializeBuilder(GSettingsFragmentReqBuilder b) => b + ..document = _i5.document + ..fragmentName = 'SettingsFragment'; @override - String? get requestId; - @override - @BuiltValueField(serialize: false) - _i2.GUpdateBackupTTLData? Function( - _i2.GUpdateBackupTTLData?, - _i2.GUpdateBackupTTLData?, - )? get updateResult; - @override - _i2.GUpdateBackupTTLData? get optimisticResponse; + _i3.GSettingsFragmentVars get vars; @override - String? get updateCacheHandlerKey; + _i7.DocumentNode get document; @override - Map? get updateCacheHandlerContext; + String? get fragmentName; @override - _i1.FetchPolicy? get fetchPolicy; + Map get idFields; @override - bool get executeOnListen; - @override - @BuiltValueField(serialize: false) - _i4.Context? get context; - @override - _i2.GUpdateBackupTTLData? parseData(Map json) => - _i2.GUpdateBackupTTLData.fromJson(json); + _i2.GSettingsFragmentData? parseData(Map json) => + _i2.GSettingsFragmentData.fromJson(json); @override Map varsToJson() => vars.toJson(); @override - Map dataToJson(_i2.GUpdateBackupTTLData data) => + Map dataToJson(_i2.GSettingsFragmentData data) => data.toJson(); - @override - _i1.OperationRequest<_i2.GUpdateBackupTTLData, _i3.GUpdateBackupTTLVars> - transformOperation(_i4.Operation Function(_i4.Operation) transform) => - this.rebuild((b) => b..operation = transform(operation)); - - static Serializer get serializer => - _$gUpdateBackupTTLReqSerializer; + static Serializer get serializer => + _$gSettingsFragmentReqSerializer; Map toJson() => (_i6.serializers.serializeWith( - GUpdateBackupTTLReq.serializer, + GSettingsFragmentReq.serializer, this, ) as Map); - static GUpdateBackupTTLReq? fromJson(Map json) => + static GSettingsFragmentReq? fromJson(Map json) => _i6.serializers.deserializeWith( - GUpdateBackupTTLReq.serializer, + GSettingsFragmentReq.serializer, json, ); } diff --git a/lib/src/features/settings/data/graphql/__generated__/settings_query.req.gql.g.dart b/lib/src/features/settings/data/graphql/__generated__/settings_query.req.gql.g.dart index f099b52a..8476bed3 100644 --- a/lib/src/features/settings/data/graphql/__generated__/settings_query.req.gql.g.dart +++ b/lib/src/features/settings/data/graphql/__generated__/settings_query.req.gql.g.dart @@ -6,283 +6,26 @@ part of 'settings_query.req.gql.dart'; // BuiltValueGenerator // ************************************************************************** -Serializer - _$gAutomaticBackupSettingsReqSerializer = - new _$GAutomaticBackupSettingsReqSerializer(); -Serializer _$gRestoreStatusReqSerializer = - new _$GRestoreStatusReqSerializer(); -Serializer _$gValidateBackupReqSerializer = - new _$GValidateBackupReqSerializer(); -Serializer _$gCreateBackupReqSerializer = - new _$GCreateBackupReqSerializer(); -Serializer _$gRestoreBackupReqSerializer = - new _$GRestoreBackupReqSerializer(); -Serializer _$gUpdateBackupPathReqSerializer = - new _$GUpdateBackupPathReqSerializer(); -Serializer _$gUpdateBackupTimeReqSerializer = - new _$GUpdateBackupTimeReqSerializer(); -Serializer _$gUpdateBackupIntervalReqSerializer = - new _$GUpdateBackupIntervalReqSerializer(); -Serializer _$gUpdateBackupTTLReqSerializer = - new _$GUpdateBackupTTLReqSerializer(); +Serializer _$gServerSettingsReqSerializer = + new _$GServerSettingsReqSerializer(); +Serializer _$gSettingsFragmentReqSerializer = + new _$GSettingsFragmentReqSerializer(); -class _$GAutomaticBackupSettingsReqSerializer - implements StructuredSerializer { +class _$GServerSettingsReqSerializer + implements StructuredSerializer { @override - final Iterable types = const [ - GAutomaticBackupSettingsReq, - _$GAutomaticBackupSettingsReq - ]; - @override - final String wireName = 'GAutomaticBackupSettingsReq'; - - @override - Iterable serialize( - Serializers serializers, GAutomaticBackupSettingsReq object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'vars', - serializers.serialize(object.vars, - specifiedType: const FullType(_i3.GAutomaticBackupSettingsVars)), - 'operation', - serializers.serialize(object.operation, - specifiedType: const FullType(_i4.Operation)), - 'executeOnListen', - serializers.serialize(object.executeOnListen, - specifiedType: const FullType(bool)), - ]; - Object? value; - value = object.requestId; - if (value != null) { - result - ..add('requestId') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); - } - value = object.optimisticResponse; - if (value != null) { - result - ..add('optimisticResponse') - ..add(serializers.serialize(value, - specifiedType: const FullType(_i2.GAutomaticBackupSettingsData))); - } - value = object.updateCacheHandlerKey; - if (value != null) { - result - ..add('updateCacheHandlerKey') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); - } - value = object.updateCacheHandlerContext; - if (value != null) { - result - ..add('updateCacheHandlerContext') - ..add(serializers.serialize(value, - specifiedType: const FullType( - Map, const [const FullType(String), const FullType(dynamic)]))); - } - value = object.fetchPolicy; - if (value != null) { - result - ..add('fetchPolicy') - ..add(serializers.serialize(value, - specifiedType: const FullType(_i1.FetchPolicy))); - } - return result; - } - - @override - GAutomaticBackupSettingsReq deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GAutomaticBackupSettingsReqBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'vars': - result.vars.replace(serializers.deserialize(value, - specifiedType: - const FullType(_i3.GAutomaticBackupSettingsVars))! - as _i3.GAutomaticBackupSettingsVars); - break; - case 'operation': - result.operation = serializers.deserialize(value, - specifiedType: const FullType(_i4.Operation))! as _i4.Operation; - break; - case 'requestId': - result.requestId = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; - break; - case 'optimisticResponse': - result.optimisticResponse.replace(serializers.deserialize(value, - specifiedType: - const FullType(_i2.GAutomaticBackupSettingsData))! - as _i2.GAutomaticBackupSettingsData); - break; - case 'updateCacheHandlerKey': - result.updateCacheHandlerKey = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; - break; - case 'updateCacheHandlerContext': - result.updateCacheHandlerContext = serializers.deserialize(value, - specifiedType: const FullType(Map, const [ - const FullType(String), - const FullType(dynamic) - ])) as Map?; - break; - case 'fetchPolicy': - result.fetchPolicy = serializers.deserialize(value, - specifiedType: const FullType(_i1.FetchPolicy)) - as _i1.FetchPolicy?; - break; - case 'executeOnListen': - result.executeOnListen = serializers.deserialize(value, - specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - -class _$GRestoreStatusReqSerializer - implements StructuredSerializer { - @override - final Iterable types = const [GRestoreStatusReq, _$GRestoreStatusReq]; - @override - final String wireName = 'GRestoreStatusReq'; - - @override - Iterable serialize(Serializers serializers, GRestoreStatusReq object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'vars', - serializers.serialize(object.vars, - specifiedType: const FullType(_i3.GRestoreStatusVars)), - 'operation', - serializers.serialize(object.operation, - specifiedType: const FullType(_i4.Operation)), - 'executeOnListen', - serializers.serialize(object.executeOnListen, - specifiedType: const FullType(bool)), - ]; - Object? value; - value = object.requestId; - if (value != null) { - result - ..add('requestId') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); - } - value = object.optimisticResponse; - if (value != null) { - result - ..add('optimisticResponse') - ..add(serializers.serialize(value, - specifiedType: const FullType(_i2.GRestoreStatusData))); - } - value = object.updateCacheHandlerKey; - if (value != null) { - result - ..add('updateCacheHandlerKey') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); - } - value = object.updateCacheHandlerContext; - if (value != null) { - result - ..add('updateCacheHandlerContext') - ..add(serializers.serialize(value, - specifiedType: const FullType( - Map, const [const FullType(String), const FullType(dynamic)]))); - } - value = object.fetchPolicy; - if (value != null) { - result - ..add('fetchPolicy') - ..add(serializers.serialize(value, - specifiedType: const FullType(_i1.FetchPolicy))); - } - return result; - } - - @override - GRestoreStatusReq deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GRestoreStatusReqBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'vars': - result.vars.replace(serializers.deserialize(value, - specifiedType: const FullType(_i3.GRestoreStatusVars))! - as _i3.GRestoreStatusVars); - break; - case 'operation': - result.operation = serializers.deserialize(value, - specifiedType: const FullType(_i4.Operation))! as _i4.Operation; - break; - case 'requestId': - result.requestId = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; - break; - case 'optimisticResponse': - result.optimisticResponse.replace(serializers.deserialize(value, - specifiedType: const FullType(_i2.GRestoreStatusData))! - as _i2.GRestoreStatusData); - break; - case 'updateCacheHandlerKey': - result.updateCacheHandlerKey = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; - break; - case 'updateCacheHandlerContext': - result.updateCacheHandlerContext = serializers.deserialize(value, - specifiedType: const FullType(Map, const [ - const FullType(String), - const FullType(dynamic) - ])) as Map?; - break; - case 'fetchPolicy': - result.fetchPolicy = serializers.deserialize(value, - specifiedType: const FullType(_i1.FetchPolicy)) - as _i1.FetchPolicy?; - break; - case 'executeOnListen': - result.executeOnListen = serializers.deserialize(value, - specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - -class _$GValidateBackupReqSerializer - implements StructuredSerializer { + final Iterable types = const [GServerSettingsReq, _$GServerSettingsReq]; @override - final Iterable types = const [GValidateBackupReq, _$GValidateBackupReq]; - @override - final String wireName = 'GValidateBackupReq'; + final String wireName = 'GServerSettingsReq'; @override Iterable serialize( - Serializers serializers, GValidateBackupReq object, + Serializers serializers, GServerSettingsReq object, {FullType specifiedType = FullType.unspecified}) { final result = [ 'vars', serializers.serialize(object.vars, - specifiedType: const FullType(_i3.GValidateBackupVars)), + specifiedType: const FullType(_i3.GServerSettingsVars)), 'operation', serializers.serialize(object.operation, specifiedType: const FullType(_i4.Operation)), @@ -303,2505 +46,179 @@ class _$GValidateBackupReqSerializer result ..add('optimisticResponse') ..add(serializers.serialize(value, - specifiedType: const FullType(_i2.GValidateBackupData))); + specifiedType: const FullType(_i2.GServerSettingsData))); } value = object.updateCacheHandlerKey; if (value != null) { result ..add('updateCacheHandlerKey') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); - } - value = object.updateCacheHandlerContext; - if (value != null) { - result - ..add('updateCacheHandlerContext') - ..add(serializers.serialize(value, - specifiedType: const FullType( - Map, const [const FullType(String), const FullType(dynamic)]))); - } - value = object.fetchPolicy; - if (value != null) { - result - ..add('fetchPolicy') - ..add(serializers.serialize(value, - specifiedType: const FullType(_i1.FetchPolicy))); - } - return result; - } - - @override - GValidateBackupReq deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GValidateBackupReqBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'vars': - result.vars.replace(serializers.deserialize(value, - specifiedType: const FullType(_i3.GValidateBackupVars))! - as _i3.GValidateBackupVars); - break; - case 'operation': - result.operation = serializers.deserialize(value, - specifiedType: const FullType(_i4.Operation))! as _i4.Operation; - break; - case 'requestId': - result.requestId = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; - break; - case 'optimisticResponse': - result.optimisticResponse.replace(serializers.deserialize(value, - specifiedType: const FullType(_i2.GValidateBackupData))! - as _i2.GValidateBackupData); - break; - case 'updateCacheHandlerKey': - result.updateCacheHandlerKey = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; - break; - case 'updateCacheHandlerContext': - result.updateCacheHandlerContext = serializers.deserialize(value, - specifiedType: const FullType(Map, const [ - const FullType(String), - const FullType(dynamic) - ])) as Map?; - break; - case 'fetchPolicy': - result.fetchPolicy = serializers.deserialize(value, - specifiedType: const FullType(_i1.FetchPolicy)) - as _i1.FetchPolicy?; - break; - case 'executeOnListen': - result.executeOnListen = serializers.deserialize(value, - specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - -class _$GCreateBackupReqSerializer - implements StructuredSerializer { - @override - final Iterable types = const [GCreateBackupReq, _$GCreateBackupReq]; - @override - final String wireName = 'GCreateBackupReq'; - - @override - Iterable serialize(Serializers serializers, GCreateBackupReq object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'vars', - serializers.serialize(object.vars, - specifiedType: const FullType(_i3.GCreateBackupVars)), - 'operation', - serializers.serialize(object.operation, - specifiedType: const FullType(_i4.Operation)), - 'executeOnListen', - serializers.serialize(object.executeOnListen, - specifiedType: const FullType(bool)), - ]; - Object? value; - value = object.requestId; - if (value != null) { - result - ..add('requestId') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); - } - value = object.optimisticResponse; - if (value != null) { - result - ..add('optimisticResponse') - ..add(serializers.serialize(value, - specifiedType: const FullType(_i2.GCreateBackupData))); - } - value = object.updateCacheHandlerKey; - if (value != null) { - result - ..add('updateCacheHandlerKey') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); - } - value = object.updateCacheHandlerContext; - if (value != null) { - result - ..add('updateCacheHandlerContext') - ..add(serializers.serialize(value, - specifiedType: const FullType( - Map, const [const FullType(String), const FullType(dynamic)]))); - } - value = object.fetchPolicy; - if (value != null) { - result - ..add('fetchPolicy') - ..add(serializers.serialize(value, - specifiedType: const FullType(_i1.FetchPolicy))); - } - return result; - } - - @override - GCreateBackupReq deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GCreateBackupReqBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'vars': - result.vars.replace(serializers.deserialize(value, - specifiedType: const FullType(_i3.GCreateBackupVars))! - as _i3.GCreateBackupVars); - break; - case 'operation': - result.operation = serializers.deserialize(value, - specifiedType: const FullType(_i4.Operation))! as _i4.Operation; - break; - case 'requestId': - result.requestId = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; - break; - case 'optimisticResponse': - result.optimisticResponse.replace(serializers.deserialize(value, - specifiedType: const FullType(_i2.GCreateBackupData))! - as _i2.GCreateBackupData); - break; - case 'updateCacheHandlerKey': - result.updateCacheHandlerKey = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; - break; - case 'updateCacheHandlerContext': - result.updateCacheHandlerContext = serializers.deserialize(value, - specifiedType: const FullType(Map, const [ - const FullType(String), - const FullType(dynamic) - ])) as Map?; - break; - case 'fetchPolicy': - result.fetchPolicy = serializers.deserialize(value, - specifiedType: const FullType(_i1.FetchPolicy)) - as _i1.FetchPolicy?; - break; - case 'executeOnListen': - result.executeOnListen = serializers.deserialize(value, - specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - -class _$GRestoreBackupReqSerializer - implements StructuredSerializer { - @override - final Iterable types = const [GRestoreBackupReq, _$GRestoreBackupReq]; - @override - final String wireName = 'GRestoreBackupReq'; - - @override - Iterable serialize(Serializers serializers, GRestoreBackupReq object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'vars', - serializers.serialize(object.vars, - specifiedType: const FullType(_i3.GRestoreBackupVars)), - 'operation', - serializers.serialize(object.operation, - specifiedType: const FullType(_i4.Operation)), - 'executeOnListen', - serializers.serialize(object.executeOnListen, - specifiedType: const FullType(bool)), - ]; - Object? value; - value = object.requestId; - if (value != null) { - result - ..add('requestId') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); - } - value = object.optimisticResponse; - if (value != null) { - result - ..add('optimisticResponse') - ..add(serializers.serialize(value, - specifiedType: const FullType(_i2.GRestoreBackupData))); - } - value = object.updateCacheHandlerKey; - if (value != null) { - result - ..add('updateCacheHandlerKey') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); - } - value = object.updateCacheHandlerContext; - if (value != null) { - result - ..add('updateCacheHandlerContext') - ..add(serializers.serialize(value, - specifiedType: const FullType( - Map, const [const FullType(String), const FullType(dynamic)]))); - } - value = object.fetchPolicy; - if (value != null) { - result - ..add('fetchPolicy') - ..add(serializers.serialize(value, - specifiedType: const FullType(_i1.FetchPolicy))); - } - return result; - } - - @override - GRestoreBackupReq deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GRestoreBackupReqBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'vars': - result.vars.replace(serializers.deserialize(value, - specifiedType: const FullType(_i3.GRestoreBackupVars))! - as _i3.GRestoreBackupVars); - break; - case 'operation': - result.operation = serializers.deserialize(value, - specifiedType: const FullType(_i4.Operation))! as _i4.Operation; - break; - case 'requestId': - result.requestId = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; - break; - case 'optimisticResponse': - result.optimisticResponse.replace(serializers.deserialize(value, - specifiedType: const FullType(_i2.GRestoreBackupData))! - as _i2.GRestoreBackupData); - break; - case 'updateCacheHandlerKey': - result.updateCacheHandlerKey = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; - break; - case 'updateCacheHandlerContext': - result.updateCacheHandlerContext = serializers.deserialize(value, - specifiedType: const FullType(Map, const [ - const FullType(String), - const FullType(dynamic) - ])) as Map?; - break; - case 'fetchPolicy': - result.fetchPolicy = serializers.deserialize(value, - specifiedType: const FullType(_i1.FetchPolicy)) - as _i1.FetchPolicy?; - break; - case 'executeOnListen': - result.executeOnListen = serializers.deserialize(value, - specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - -class _$GUpdateBackupPathReqSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - GUpdateBackupPathReq, - _$GUpdateBackupPathReq - ]; - @override - final String wireName = 'GUpdateBackupPathReq'; - - @override - Iterable serialize( - Serializers serializers, GUpdateBackupPathReq object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'vars', - serializers.serialize(object.vars, - specifiedType: const FullType(_i3.GUpdateBackupPathVars)), - 'operation', - serializers.serialize(object.operation, - specifiedType: const FullType(_i4.Operation)), - 'executeOnListen', - serializers.serialize(object.executeOnListen, - specifiedType: const FullType(bool)), - ]; - Object? value; - value = object.requestId; - if (value != null) { - result - ..add('requestId') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); - } - value = object.optimisticResponse; - if (value != null) { - result - ..add('optimisticResponse') - ..add(serializers.serialize(value, - specifiedType: const FullType(_i2.GUpdateBackupPathData))); - } - value = object.updateCacheHandlerKey; - if (value != null) { - result - ..add('updateCacheHandlerKey') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); - } - value = object.updateCacheHandlerContext; - if (value != null) { - result - ..add('updateCacheHandlerContext') - ..add(serializers.serialize(value, - specifiedType: const FullType( - Map, const [const FullType(String), const FullType(dynamic)]))); - } - value = object.fetchPolicy; - if (value != null) { - result - ..add('fetchPolicy') - ..add(serializers.serialize(value, - specifiedType: const FullType(_i1.FetchPolicy))); - } - return result; - } - - @override - GUpdateBackupPathReq deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GUpdateBackupPathReqBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'vars': - result.vars.replace(serializers.deserialize(value, - specifiedType: const FullType(_i3.GUpdateBackupPathVars))! - as _i3.GUpdateBackupPathVars); - break; - case 'operation': - result.operation = serializers.deserialize(value, - specifiedType: const FullType(_i4.Operation))! as _i4.Operation; - break; - case 'requestId': - result.requestId = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; - break; - case 'optimisticResponse': - result.optimisticResponse.replace(serializers.deserialize(value, - specifiedType: const FullType(_i2.GUpdateBackupPathData))! - as _i2.GUpdateBackupPathData); - break; - case 'updateCacheHandlerKey': - result.updateCacheHandlerKey = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; - break; - case 'updateCacheHandlerContext': - result.updateCacheHandlerContext = serializers.deserialize(value, - specifiedType: const FullType(Map, const [ - const FullType(String), - const FullType(dynamic) - ])) as Map?; - break; - case 'fetchPolicy': - result.fetchPolicy = serializers.deserialize(value, - specifiedType: const FullType(_i1.FetchPolicy)) - as _i1.FetchPolicy?; - break; - case 'executeOnListen': - result.executeOnListen = serializers.deserialize(value, - specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - -class _$GUpdateBackupTimeReqSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - GUpdateBackupTimeReq, - _$GUpdateBackupTimeReq - ]; - @override - final String wireName = 'GUpdateBackupTimeReq'; - - @override - Iterable serialize( - Serializers serializers, GUpdateBackupTimeReq object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'vars', - serializers.serialize(object.vars, - specifiedType: const FullType(_i3.GUpdateBackupTimeVars)), - 'operation', - serializers.serialize(object.operation, - specifiedType: const FullType(_i4.Operation)), - 'executeOnListen', - serializers.serialize(object.executeOnListen, - specifiedType: const FullType(bool)), - ]; - Object? value; - value = object.requestId; - if (value != null) { - result - ..add('requestId') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); - } - value = object.optimisticResponse; - if (value != null) { - result - ..add('optimisticResponse') - ..add(serializers.serialize(value, - specifiedType: const FullType(_i2.GUpdateBackupTimeData))); - } - value = object.updateCacheHandlerKey; - if (value != null) { - result - ..add('updateCacheHandlerKey') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); - } - value = object.updateCacheHandlerContext; - if (value != null) { - result - ..add('updateCacheHandlerContext') - ..add(serializers.serialize(value, - specifiedType: const FullType( - Map, const [const FullType(String), const FullType(dynamic)]))); - } - value = object.fetchPolicy; - if (value != null) { - result - ..add('fetchPolicy') - ..add(serializers.serialize(value, - specifiedType: const FullType(_i1.FetchPolicy))); - } - return result; - } - - @override - GUpdateBackupTimeReq deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GUpdateBackupTimeReqBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'vars': - result.vars.replace(serializers.deserialize(value, - specifiedType: const FullType(_i3.GUpdateBackupTimeVars))! - as _i3.GUpdateBackupTimeVars); - break; - case 'operation': - result.operation = serializers.deserialize(value, - specifiedType: const FullType(_i4.Operation))! as _i4.Operation; - break; - case 'requestId': - result.requestId = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; - break; - case 'optimisticResponse': - result.optimisticResponse.replace(serializers.deserialize(value, - specifiedType: const FullType(_i2.GUpdateBackupTimeData))! - as _i2.GUpdateBackupTimeData); - break; - case 'updateCacheHandlerKey': - result.updateCacheHandlerKey = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; - break; - case 'updateCacheHandlerContext': - result.updateCacheHandlerContext = serializers.deserialize(value, - specifiedType: const FullType(Map, const [ - const FullType(String), - const FullType(dynamic) - ])) as Map?; - break; - case 'fetchPolicy': - result.fetchPolicy = serializers.deserialize(value, - specifiedType: const FullType(_i1.FetchPolicy)) - as _i1.FetchPolicy?; - break; - case 'executeOnListen': - result.executeOnListen = serializers.deserialize(value, - specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - -class _$GUpdateBackupIntervalReqSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - GUpdateBackupIntervalReq, - _$GUpdateBackupIntervalReq - ]; - @override - final String wireName = 'GUpdateBackupIntervalReq'; - - @override - Iterable serialize( - Serializers serializers, GUpdateBackupIntervalReq object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'vars', - serializers.serialize(object.vars, - specifiedType: const FullType(_i3.GUpdateBackupIntervalVars)), - 'operation', - serializers.serialize(object.operation, - specifiedType: const FullType(_i4.Operation)), - 'executeOnListen', - serializers.serialize(object.executeOnListen, - specifiedType: const FullType(bool)), - ]; - Object? value; - value = object.requestId; - if (value != null) { - result - ..add('requestId') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); - } - value = object.optimisticResponse; - if (value != null) { - result - ..add('optimisticResponse') - ..add(serializers.serialize(value, - specifiedType: const FullType(_i2.GUpdateBackupIntervalData))); - } - value = object.updateCacheHandlerKey; - if (value != null) { - result - ..add('updateCacheHandlerKey') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); - } - value = object.updateCacheHandlerContext; - if (value != null) { - result - ..add('updateCacheHandlerContext') - ..add(serializers.serialize(value, - specifiedType: const FullType( - Map, const [const FullType(String), const FullType(dynamic)]))); - } - value = object.fetchPolicy; - if (value != null) { - result - ..add('fetchPolicy') - ..add(serializers.serialize(value, - specifiedType: const FullType(_i1.FetchPolicy))); - } - return result; - } - - @override - GUpdateBackupIntervalReq deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GUpdateBackupIntervalReqBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'vars': - result.vars.replace(serializers.deserialize(value, - specifiedType: const FullType(_i3.GUpdateBackupIntervalVars))! - as _i3.GUpdateBackupIntervalVars); - break; - case 'operation': - result.operation = serializers.deserialize(value, - specifiedType: const FullType(_i4.Operation))! as _i4.Operation; - break; - case 'requestId': - result.requestId = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; - break; - case 'optimisticResponse': - result.optimisticResponse.replace(serializers.deserialize(value, - specifiedType: const FullType(_i2.GUpdateBackupIntervalData))! - as _i2.GUpdateBackupIntervalData); - break; - case 'updateCacheHandlerKey': - result.updateCacheHandlerKey = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; - break; - case 'updateCacheHandlerContext': - result.updateCacheHandlerContext = serializers.deserialize(value, - specifiedType: const FullType(Map, const [ - const FullType(String), - const FullType(dynamic) - ])) as Map?; - break; - case 'fetchPolicy': - result.fetchPolicy = serializers.deserialize(value, - specifiedType: const FullType(_i1.FetchPolicy)) - as _i1.FetchPolicy?; - break; - case 'executeOnListen': - result.executeOnListen = serializers.deserialize(value, - specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - -class _$GUpdateBackupTTLReqSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - GUpdateBackupTTLReq, - _$GUpdateBackupTTLReq - ]; - @override - final String wireName = 'GUpdateBackupTTLReq'; - - @override - Iterable serialize( - Serializers serializers, GUpdateBackupTTLReq object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'vars', - serializers.serialize(object.vars, - specifiedType: const FullType(_i3.GUpdateBackupTTLVars)), - 'operation', - serializers.serialize(object.operation, - specifiedType: const FullType(_i4.Operation)), - 'executeOnListen', - serializers.serialize(object.executeOnListen, - specifiedType: const FullType(bool)), - ]; - Object? value; - value = object.requestId; - if (value != null) { - result - ..add('requestId') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); - } - value = object.optimisticResponse; - if (value != null) { - result - ..add('optimisticResponse') - ..add(serializers.serialize(value, - specifiedType: const FullType(_i2.GUpdateBackupTTLData))); - } - value = object.updateCacheHandlerKey; - if (value != null) { - result - ..add('updateCacheHandlerKey') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); - } - value = object.updateCacheHandlerContext; - if (value != null) { - result - ..add('updateCacheHandlerContext') - ..add(serializers.serialize(value, - specifiedType: const FullType( - Map, const [const FullType(String), const FullType(dynamic)]))); - } - value = object.fetchPolicy; - if (value != null) { - result - ..add('fetchPolicy') - ..add(serializers.serialize(value, - specifiedType: const FullType(_i1.FetchPolicy))); - } - return result; - } - - @override - GUpdateBackupTTLReq deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GUpdateBackupTTLReqBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'vars': - result.vars.replace(serializers.deserialize(value, - specifiedType: const FullType(_i3.GUpdateBackupTTLVars))! - as _i3.GUpdateBackupTTLVars); - break; - case 'operation': - result.operation = serializers.deserialize(value, - specifiedType: const FullType(_i4.Operation))! as _i4.Operation; - break; - case 'requestId': - result.requestId = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; - break; - case 'optimisticResponse': - result.optimisticResponse.replace(serializers.deserialize(value, - specifiedType: const FullType(_i2.GUpdateBackupTTLData))! - as _i2.GUpdateBackupTTLData); - break; - case 'updateCacheHandlerKey': - result.updateCacheHandlerKey = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; - break; - case 'updateCacheHandlerContext': - result.updateCacheHandlerContext = serializers.deserialize(value, - specifiedType: const FullType(Map, const [ - const FullType(String), - const FullType(dynamic) - ])) as Map?; - break; - case 'fetchPolicy': - result.fetchPolicy = serializers.deserialize(value, - specifiedType: const FullType(_i1.FetchPolicy)) - as _i1.FetchPolicy?; - break; - case 'executeOnListen': - result.executeOnListen = serializers.deserialize(value, - specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - -class _$GAutomaticBackupSettingsReq extends GAutomaticBackupSettingsReq { - @override - final _i3.GAutomaticBackupSettingsVars vars; - @override - final _i4.Operation operation; - @override - final String? requestId; - @override - final _i2.GAutomaticBackupSettingsData? Function( - _i2.GAutomaticBackupSettingsData?, _i2.GAutomaticBackupSettingsData?)? - updateResult; - @override - final _i2.GAutomaticBackupSettingsData? optimisticResponse; - @override - final String? updateCacheHandlerKey; - @override - final Map? updateCacheHandlerContext; - @override - final _i1.FetchPolicy? fetchPolicy; - @override - final bool executeOnListen; - @override - final _i4.Context? context; - - factory _$GAutomaticBackupSettingsReq( - [void Function(GAutomaticBackupSettingsReqBuilder)? updates]) => - (new GAutomaticBackupSettingsReqBuilder()..update(updates))._build(); - - _$GAutomaticBackupSettingsReq._( - {required this.vars, - required this.operation, - this.requestId, - this.updateResult, - this.optimisticResponse, - this.updateCacheHandlerKey, - this.updateCacheHandlerContext, - this.fetchPolicy, - required this.executeOnListen, - this.context}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - vars, r'GAutomaticBackupSettingsReq', 'vars'); - BuiltValueNullFieldError.checkNotNull( - operation, r'GAutomaticBackupSettingsReq', 'operation'); - BuiltValueNullFieldError.checkNotNull( - executeOnListen, r'GAutomaticBackupSettingsReq', 'executeOnListen'); - } - - @override - GAutomaticBackupSettingsReq rebuild( - void Function(GAutomaticBackupSettingsReqBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GAutomaticBackupSettingsReqBuilder toBuilder() => - new GAutomaticBackupSettingsReqBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - final dynamic _$dynamicOther = other; - return other is GAutomaticBackupSettingsReq && - vars == other.vars && - operation == other.operation && - requestId == other.requestId && - updateResult == _$dynamicOther.updateResult && - optimisticResponse == other.optimisticResponse && - updateCacheHandlerKey == other.updateCacheHandlerKey && - updateCacheHandlerContext == other.updateCacheHandlerContext && - fetchPolicy == other.fetchPolicy && - executeOnListen == other.executeOnListen && - context == other.context; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, vars.hashCode); - _$hash = $jc(_$hash, operation.hashCode); - _$hash = $jc(_$hash, requestId.hashCode); - _$hash = $jc(_$hash, updateResult.hashCode); - _$hash = $jc(_$hash, optimisticResponse.hashCode); - _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); - _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); - _$hash = $jc(_$hash, fetchPolicy.hashCode); - _$hash = $jc(_$hash, executeOnListen.hashCode); - _$hash = $jc(_$hash, context.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GAutomaticBackupSettingsReq') - ..add('vars', vars) - ..add('operation', operation) - ..add('requestId', requestId) - ..add('updateResult', updateResult) - ..add('optimisticResponse', optimisticResponse) - ..add('updateCacheHandlerKey', updateCacheHandlerKey) - ..add('updateCacheHandlerContext', updateCacheHandlerContext) - ..add('fetchPolicy', fetchPolicy) - ..add('executeOnListen', executeOnListen) - ..add('context', context)) - .toString(); - } -} - -class GAutomaticBackupSettingsReqBuilder - implements - Builder { - _$GAutomaticBackupSettingsReq? _$v; - - _i3.GAutomaticBackupSettingsVarsBuilder? _vars; - _i3.GAutomaticBackupSettingsVarsBuilder get vars => - _$this._vars ??= new _i3.GAutomaticBackupSettingsVarsBuilder(); - set vars(_i3.GAutomaticBackupSettingsVarsBuilder? vars) => - _$this._vars = vars; - - _i4.Operation? _operation; - _i4.Operation? get operation => _$this._operation; - set operation(_i4.Operation? operation) => _$this._operation = operation; - - String? _requestId; - String? get requestId => _$this._requestId; - set requestId(String? requestId) => _$this._requestId = requestId; - - _i2.GAutomaticBackupSettingsData? Function( - _i2.GAutomaticBackupSettingsData?, _i2.GAutomaticBackupSettingsData?)? - _updateResult; - _i2.GAutomaticBackupSettingsData? Function( - _i2.GAutomaticBackupSettingsData?, _i2.GAutomaticBackupSettingsData?)? - get updateResult => _$this._updateResult; - set updateResult( - _i2.GAutomaticBackupSettingsData? Function( - _i2.GAutomaticBackupSettingsData?, - _i2.GAutomaticBackupSettingsData?)? - updateResult) => - _$this._updateResult = updateResult; - - _i2.GAutomaticBackupSettingsDataBuilder? _optimisticResponse; - _i2.GAutomaticBackupSettingsDataBuilder get optimisticResponse => - _$this._optimisticResponse ??= - new _i2.GAutomaticBackupSettingsDataBuilder(); - set optimisticResponse( - _i2.GAutomaticBackupSettingsDataBuilder? optimisticResponse) => - _$this._optimisticResponse = optimisticResponse; - - String? _updateCacheHandlerKey; - String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; - set updateCacheHandlerKey(String? updateCacheHandlerKey) => - _$this._updateCacheHandlerKey = updateCacheHandlerKey; - - Map? _updateCacheHandlerContext; - Map? get updateCacheHandlerContext => - _$this._updateCacheHandlerContext; - set updateCacheHandlerContext( - Map? updateCacheHandlerContext) => - _$this._updateCacheHandlerContext = updateCacheHandlerContext; - - _i1.FetchPolicy? _fetchPolicy; - _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; - set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => - _$this._fetchPolicy = fetchPolicy; - - bool? _executeOnListen; - bool? get executeOnListen => _$this._executeOnListen; - set executeOnListen(bool? executeOnListen) => - _$this._executeOnListen = executeOnListen; - - _i4.Context? _context; - _i4.Context? get context => _$this._context; - set context(_i4.Context? context) => _$this._context = context; - - GAutomaticBackupSettingsReqBuilder() { - GAutomaticBackupSettingsReq._initializeBuilder(this); - } - - GAutomaticBackupSettingsReqBuilder get _$this { - final $v = _$v; - if ($v != null) { - _vars = $v.vars.toBuilder(); - _operation = $v.operation; - _requestId = $v.requestId; - _updateResult = $v.updateResult; - _optimisticResponse = $v.optimisticResponse?.toBuilder(); - _updateCacheHandlerKey = $v.updateCacheHandlerKey; - _updateCacheHandlerContext = $v.updateCacheHandlerContext; - _fetchPolicy = $v.fetchPolicy; - _executeOnListen = $v.executeOnListen; - _context = $v.context; - _$v = null; - } - return this; - } - - @override - void replace(GAutomaticBackupSettingsReq other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GAutomaticBackupSettingsReq; - } - - @override - void update(void Function(GAutomaticBackupSettingsReqBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GAutomaticBackupSettingsReq build() => _build(); - - _$GAutomaticBackupSettingsReq _build() { - _$GAutomaticBackupSettingsReq _$result; - try { - _$result = _$v ?? - new _$GAutomaticBackupSettingsReq._( - vars: vars.build(), - operation: BuiltValueNullFieldError.checkNotNull( - operation, r'GAutomaticBackupSettingsReq', 'operation'), - requestId: requestId, - updateResult: updateResult, - optimisticResponse: _optimisticResponse?.build(), - updateCacheHandlerKey: updateCacheHandlerKey, - updateCacheHandlerContext: updateCacheHandlerContext, - fetchPolicy: fetchPolicy, - executeOnListen: BuiltValueNullFieldError.checkNotNull( - executeOnListen, - r'GAutomaticBackupSettingsReq', - 'executeOnListen'), - context: context); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'vars'; - vars.build(); - - _$failedField = 'optimisticResponse'; - _optimisticResponse?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'GAutomaticBackupSettingsReq', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -class _$GRestoreStatusReq extends GRestoreStatusReq { - @override - final _i3.GRestoreStatusVars vars; - @override - final _i4.Operation operation; - @override - final String? requestId; - @override - final _i2.GRestoreStatusData? Function( - _i2.GRestoreStatusData?, _i2.GRestoreStatusData?)? updateResult; - @override - final _i2.GRestoreStatusData? optimisticResponse; - @override - final String? updateCacheHandlerKey; - @override - final Map? updateCacheHandlerContext; - @override - final _i1.FetchPolicy? fetchPolicy; - @override - final bool executeOnListen; - @override - final _i4.Context? context; - - factory _$GRestoreStatusReq( - [void Function(GRestoreStatusReqBuilder)? updates]) => - (new GRestoreStatusReqBuilder()..update(updates))._build(); - - _$GRestoreStatusReq._( - {required this.vars, - required this.operation, - this.requestId, - this.updateResult, - this.optimisticResponse, - this.updateCacheHandlerKey, - this.updateCacheHandlerContext, - this.fetchPolicy, - required this.executeOnListen, - this.context}) - : super._() { - BuiltValueNullFieldError.checkNotNull(vars, r'GRestoreStatusReq', 'vars'); - BuiltValueNullFieldError.checkNotNull( - operation, r'GRestoreStatusReq', 'operation'); - BuiltValueNullFieldError.checkNotNull( - executeOnListen, r'GRestoreStatusReq', 'executeOnListen'); - } - - @override - GRestoreStatusReq rebuild(void Function(GRestoreStatusReqBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GRestoreStatusReqBuilder toBuilder() => - new GRestoreStatusReqBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - final dynamic _$dynamicOther = other; - return other is GRestoreStatusReq && - vars == other.vars && - operation == other.operation && - requestId == other.requestId && - updateResult == _$dynamicOther.updateResult && - optimisticResponse == other.optimisticResponse && - updateCacheHandlerKey == other.updateCacheHandlerKey && - updateCacheHandlerContext == other.updateCacheHandlerContext && - fetchPolicy == other.fetchPolicy && - executeOnListen == other.executeOnListen && - context == other.context; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, vars.hashCode); - _$hash = $jc(_$hash, operation.hashCode); - _$hash = $jc(_$hash, requestId.hashCode); - _$hash = $jc(_$hash, updateResult.hashCode); - _$hash = $jc(_$hash, optimisticResponse.hashCode); - _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); - _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); - _$hash = $jc(_$hash, fetchPolicy.hashCode); - _$hash = $jc(_$hash, executeOnListen.hashCode); - _$hash = $jc(_$hash, context.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GRestoreStatusReq') - ..add('vars', vars) - ..add('operation', operation) - ..add('requestId', requestId) - ..add('updateResult', updateResult) - ..add('optimisticResponse', optimisticResponse) - ..add('updateCacheHandlerKey', updateCacheHandlerKey) - ..add('updateCacheHandlerContext', updateCacheHandlerContext) - ..add('fetchPolicy', fetchPolicy) - ..add('executeOnListen', executeOnListen) - ..add('context', context)) - .toString(); - } -} - -class GRestoreStatusReqBuilder - implements Builder { - _$GRestoreStatusReq? _$v; - - _i3.GRestoreStatusVarsBuilder? _vars; - _i3.GRestoreStatusVarsBuilder get vars => - _$this._vars ??= new _i3.GRestoreStatusVarsBuilder(); - set vars(_i3.GRestoreStatusVarsBuilder? vars) => _$this._vars = vars; - - _i4.Operation? _operation; - _i4.Operation? get operation => _$this._operation; - set operation(_i4.Operation? operation) => _$this._operation = operation; - - String? _requestId; - String? get requestId => _$this._requestId; - set requestId(String? requestId) => _$this._requestId = requestId; - - _i2.GRestoreStatusData? Function( - _i2.GRestoreStatusData?, _i2.GRestoreStatusData?)? _updateResult; - _i2.GRestoreStatusData? Function( - _i2.GRestoreStatusData?, _i2.GRestoreStatusData?)? - get updateResult => _$this._updateResult; - set updateResult( - _i2.GRestoreStatusData? Function( - _i2.GRestoreStatusData?, _i2.GRestoreStatusData?)? - updateResult) => - _$this._updateResult = updateResult; - - _i2.GRestoreStatusDataBuilder? _optimisticResponse; - _i2.GRestoreStatusDataBuilder get optimisticResponse => - _$this._optimisticResponse ??= new _i2.GRestoreStatusDataBuilder(); - set optimisticResponse(_i2.GRestoreStatusDataBuilder? optimisticResponse) => - _$this._optimisticResponse = optimisticResponse; - - String? _updateCacheHandlerKey; - String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; - set updateCacheHandlerKey(String? updateCacheHandlerKey) => - _$this._updateCacheHandlerKey = updateCacheHandlerKey; - - Map? _updateCacheHandlerContext; - Map? get updateCacheHandlerContext => - _$this._updateCacheHandlerContext; - set updateCacheHandlerContext( - Map? updateCacheHandlerContext) => - _$this._updateCacheHandlerContext = updateCacheHandlerContext; - - _i1.FetchPolicy? _fetchPolicy; - _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; - set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => - _$this._fetchPolicy = fetchPolicy; - - bool? _executeOnListen; - bool? get executeOnListen => _$this._executeOnListen; - set executeOnListen(bool? executeOnListen) => - _$this._executeOnListen = executeOnListen; - - _i4.Context? _context; - _i4.Context? get context => _$this._context; - set context(_i4.Context? context) => _$this._context = context; - - GRestoreStatusReqBuilder() { - GRestoreStatusReq._initializeBuilder(this); - } - - GRestoreStatusReqBuilder get _$this { - final $v = _$v; - if ($v != null) { - _vars = $v.vars.toBuilder(); - _operation = $v.operation; - _requestId = $v.requestId; - _updateResult = $v.updateResult; - _optimisticResponse = $v.optimisticResponse?.toBuilder(); - _updateCacheHandlerKey = $v.updateCacheHandlerKey; - _updateCacheHandlerContext = $v.updateCacheHandlerContext; - _fetchPolicy = $v.fetchPolicy; - _executeOnListen = $v.executeOnListen; - _context = $v.context; - _$v = null; - } - return this; - } - - @override - void replace(GRestoreStatusReq other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GRestoreStatusReq; - } - - @override - void update(void Function(GRestoreStatusReqBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GRestoreStatusReq build() => _build(); - - _$GRestoreStatusReq _build() { - _$GRestoreStatusReq _$result; - try { - _$result = _$v ?? - new _$GRestoreStatusReq._( - vars: vars.build(), - operation: BuiltValueNullFieldError.checkNotNull( - operation, r'GRestoreStatusReq', 'operation'), - requestId: requestId, - updateResult: updateResult, - optimisticResponse: _optimisticResponse?.build(), - updateCacheHandlerKey: updateCacheHandlerKey, - updateCacheHandlerContext: updateCacheHandlerContext, - fetchPolicy: fetchPolicy, - executeOnListen: BuiltValueNullFieldError.checkNotNull( - executeOnListen, r'GRestoreStatusReq', 'executeOnListen'), - context: context); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'vars'; - vars.build(); - - _$failedField = 'optimisticResponse'; - _optimisticResponse?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'GRestoreStatusReq', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -class _$GValidateBackupReq extends GValidateBackupReq { - @override - final _i3.GValidateBackupVars vars; - @override - final _i4.Operation operation; - @override - final String? requestId; - @override - final _i2.GValidateBackupData? Function( - _i2.GValidateBackupData?, _i2.GValidateBackupData?)? updateResult; - @override - final _i2.GValidateBackupData? optimisticResponse; - @override - final String? updateCacheHandlerKey; - @override - final Map? updateCacheHandlerContext; - @override - final _i1.FetchPolicy? fetchPolicy; - @override - final bool executeOnListen; - @override - final _i4.Context? context; - - factory _$GValidateBackupReq( - [void Function(GValidateBackupReqBuilder)? updates]) => - (new GValidateBackupReqBuilder()..update(updates))._build(); - - _$GValidateBackupReq._( - {required this.vars, - required this.operation, - this.requestId, - this.updateResult, - this.optimisticResponse, - this.updateCacheHandlerKey, - this.updateCacheHandlerContext, - this.fetchPolicy, - required this.executeOnListen, - this.context}) - : super._() { - BuiltValueNullFieldError.checkNotNull(vars, r'GValidateBackupReq', 'vars'); - BuiltValueNullFieldError.checkNotNull( - operation, r'GValidateBackupReq', 'operation'); - BuiltValueNullFieldError.checkNotNull( - executeOnListen, r'GValidateBackupReq', 'executeOnListen'); - } - - @override - GValidateBackupReq rebuild( - void Function(GValidateBackupReqBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GValidateBackupReqBuilder toBuilder() => - new GValidateBackupReqBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - final dynamic _$dynamicOther = other; - return other is GValidateBackupReq && - vars == other.vars && - operation == other.operation && - requestId == other.requestId && - updateResult == _$dynamicOther.updateResult && - optimisticResponse == other.optimisticResponse && - updateCacheHandlerKey == other.updateCacheHandlerKey && - updateCacheHandlerContext == other.updateCacheHandlerContext && - fetchPolicy == other.fetchPolicy && - executeOnListen == other.executeOnListen && - context == other.context; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, vars.hashCode); - _$hash = $jc(_$hash, operation.hashCode); - _$hash = $jc(_$hash, requestId.hashCode); - _$hash = $jc(_$hash, updateResult.hashCode); - _$hash = $jc(_$hash, optimisticResponse.hashCode); - _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); - _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); - _$hash = $jc(_$hash, fetchPolicy.hashCode); - _$hash = $jc(_$hash, executeOnListen.hashCode); - _$hash = $jc(_$hash, context.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GValidateBackupReq') - ..add('vars', vars) - ..add('operation', operation) - ..add('requestId', requestId) - ..add('updateResult', updateResult) - ..add('optimisticResponse', optimisticResponse) - ..add('updateCacheHandlerKey', updateCacheHandlerKey) - ..add('updateCacheHandlerContext', updateCacheHandlerContext) - ..add('fetchPolicy', fetchPolicy) - ..add('executeOnListen', executeOnListen) - ..add('context', context)) - .toString(); - } -} - -class GValidateBackupReqBuilder - implements Builder { - _$GValidateBackupReq? _$v; - - _i3.GValidateBackupVarsBuilder? _vars; - _i3.GValidateBackupVarsBuilder get vars => - _$this._vars ??= new _i3.GValidateBackupVarsBuilder(); - set vars(_i3.GValidateBackupVarsBuilder? vars) => _$this._vars = vars; - - _i4.Operation? _operation; - _i4.Operation? get operation => _$this._operation; - set operation(_i4.Operation? operation) => _$this._operation = operation; - - String? _requestId; - String? get requestId => _$this._requestId; - set requestId(String? requestId) => _$this._requestId = requestId; - - _i2.GValidateBackupData? Function( - _i2.GValidateBackupData?, _i2.GValidateBackupData?)? _updateResult; - _i2.GValidateBackupData? Function( - _i2.GValidateBackupData?, _i2.GValidateBackupData?)? - get updateResult => _$this._updateResult; - set updateResult( - _i2.GValidateBackupData? Function( - _i2.GValidateBackupData?, _i2.GValidateBackupData?)? - updateResult) => - _$this._updateResult = updateResult; - - _i2.GValidateBackupDataBuilder? _optimisticResponse; - _i2.GValidateBackupDataBuilder get optimisticResponse => - _$this._optimisticResponse ??= new _i2.GValidateBackupDataBuilder(); - set optimisticResponse(_i2.GValidateBackupDataBuilder? optimisticResponse) => - _$this._optimisticResponse = optimisticResponse; - - String? _updateCacheHandlerKey; - String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; - set updateCacheHandlerKey(String? updateCacheHandlerKey) => - _$this._updateCacheHandlerKey = updateCacheHandlerKey; - - Map? _updateCacheHandlerContext; - Map? get updateCacheHandlerContext => - _$this._updateCacheHandlerContext; - set updateCacheHandlerContext( - Map? updateCacheHandlerContext) => - _$this._updateCacheHandlerContext = updateCacheHandlerContext; - - _i1.FetchPolicy? _fetchPolicy; - _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; - set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => - _$this._fetchPolicy = fetchPolicy; - - bool? _executeOnListen; - bool? get executeOnListen => _$this._executeOnListen; - set executeOnListen(bool? executeOnListen) => - _$this._executeOnListen = executeOnListen; - - _i4.Context? _context; - _i4.Context? get context => _$this._context; - set context(_i4.Context? context) => _$this._context = context; - - GValidateBackupReqBuilder() { - GValidateBackupReq._initializeBuilder(this); - } - - GValidateBackupReqBuilder get _$this { - final $v = _$v; - if ($v != null) { - _vars = $v.vars.toBuilder(); - _operation = $v.operation; - _requestId = $v.requestId; - _updateResult = $v.updateResult; - _optimisticResponse = $v.optimisticResponse?.toBuilder(); - _updateCacheHandlerKey = $v.updateCacheHandlerKey; - _updateCacheHandlerContext = $v.updateCacheHandlerContext; - _fetchPolicy = $v.fetchPolicy; - _executeOnListen = $v.executeOnListen; - _context = $v.context; - _$v = null; - } - return this; - } - - @override - void replace(GValidateBackupReq other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GValidateBackupReq; - } - - @override - void update(void Function(GValidateBackupReqBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GValidateBackupReq build() => _build(); - - _$GValidateBackupReq _build() { - _$GValidateBackupReq _$result; - try { - _$result = _$v ?? - new _$GValidateBackupReq._( - vars: vars.build(), - operation: BuiltValueNullFieldError.checkNotNull( - operation, r'GValidateBackupReq', 'operation'), - requestId: requestId, - updateResult: updateResult, - optimisticResponse: _optimisticResponse?.build(), - updateCacheHandlerKey: updateCacheHandlerKey, - updateCacheHandlerContext: updateCacheHandlerContext, - fetchPolicy: fetchPolicy, - executeOnListen: BuiltValueNullFieldError.checkNotNull( - executeOnListen, r'GValidateBackupReq', 'executeOnListen'), - context: context); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'vars'; - vars.build(); - - _$failedField = 'optimisticResponse'; - _optimisticResponse?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'GValidateBackupReq', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -class _$GCreateBackupReq extends GCreateBackupReq { - @override - final _i3.GCreateBackupVars vars; - @override - final _i4.Operation operation; - @override - final String? requestId; - @override - final _i2.GCreateBackupData? Function( - _i2.GCreateBackupData?, _i2.GCreateBackupData?)? updateResult; - @override - final _i2.GCreateBackupData? optimisticResponse; - @override - final String? updateCacheHandlerKey; - @override - final Map? updateCacheHandlerContext; - @override - final _i1.FetchPolicy? fetchPolicy; - @override - final bool executeOnListen; - @override - final _i4.Context? context; - - factory _$GCreateBackupReq( - [void Function(GCreateBackupReqBuilder)? updates]) => - (new GCreateBackupReqBuilder()..update(updates))._build(); - - _$GCreateBackupReq._( - {required this.vars, - required this.operation, - this.requestId, - this.updateResult, - this.optimisticResponse, - this.updateCacheHandlerKey, - this.updateCacheHandlerContext, - this.fetchPolicy, - required this.executeOnListen, - this.context}) - : super._() { - BuiltValueNullFieldError.checkNotNull(vars, r'GCreateBackupReq', 'vars'); - BuiltValueNullFieldError.checkNotNull( - operation, r'GCreateBackupReq', 'operation'); - BuiltValueNullFieldError.checkNotNull( - executeOnListen, r'GCreateBackupReq', 'executeOnListen'); - } - - @override - GCreateBackupReq rebuild(void Function(GCreateBackupReqBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GCreateBackupReqBuilder toBuilder() => - new GCreateBackupReqBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - final dynamic _$dynamicOther = other; - return other is GCreateBackupReq && - vars == other.vars && - operation == other.operation && - requestId == other.requestId && - updateResult == _$dynamicOther.updateResult && - optimisticResponse == other.optimisticResponse && - updateCacheHandlerKey == other.updateCacheHandlerKey && - updateCacheHandlerContext == other.updateCacheHandlerContext && - fetchPolicy == other.fetchPolicy && - executeOnListen == other.executeOnListen && - context == other.context; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, vars.hashCode); - _$hash = $jc(_$hash, operation.hashCode); - _$hash = $jc(_$hash, requestId.hashCode); - _$hash = $jc(_$hash, updateResult.hashCode); - _$hash = $jc(_$hash, optimisticResponse.hashCode); - _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); - _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); - _$hash = $jc(_$hash, fetchPolicy.hashCode); - _$hash = $jc(_$hash, executeOnListen.hashCode); - _$hash = $jc(_$hash, context.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GCreateBackupReq') - ..add('vars', vars) - ..add('operation', operation) - ..add('requestId', requestId) - ..add('updateResult', updateResult) - ..add('optimisticResponse', optimisticResponse) - ..add('updateCacheHandlerKey', updateCacheHandlerKey) - ..add('updateCacheHandlerContext', updateCacheHandlerContext) - ..add('fetchPolicy', fetchPolicy) - ..add('executeOnListen', executeOnListen) - ..add('context', context)) - .toString(); - } -} - -class GCreateBackupReqBuilder - implements Builder { - _$GCreateBackupReq? _$v; - - _i3.GCreateBackupVarsBuilder? _vars; - _i3.GCreateBackupVarsBuilder get vars => - _$this._vars ??= new _i3.GCreateBackupVarsBuilder(); - set vars(_i3.GCreateBackupVarsBuilder? vars) => _$this._vars = vars; - - _i4.Operation? _operation; - _i4.Operation? get operation => _$this._operation; - set operation(_i4.Operation? operation) => _$this._operation = operation; - - String? _requestId; - String? get requestId => _$this._requestId; - set requestId(String? requestId) => _$this._requestId = requestId; - - _i2.GCreateBackupData? Function( - _i2.GCreateBackupData?, _i2.GCreateBackupData?)? _updateResult; - _i2.GCreateBackupData? Function( - _i2.GCreateBackupData?, _i2.GCreateBackupData?)? - get updateResult => _$this._updateResult; - set updateResult( - _i2.GCreateBackupData? Function( - _i2.GCreateBackupData?, _i2.GCreateBackupData?)? - updateResult) => - _$this._updateResult = updateResult; - - _i2.GCreateBackupDataBuilder? _optimisticResponse; - _i2.GCreateBackupDataBuilder get optimisticResponse => - _$this._optimisticResponse ??= new _i2.GCreateBackupDataBuilder(); - set optimisticResponse(_i2.GCreateBackupDataBuilder? optimisticResponse) => - _$this._optimisticResponse = optimisticResponse; - - String? _updateCacheHandlerKey; - String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; - set updateCacheHandlerKey(String? updateCacheHandlerKey) => - _$this._updateCacheHandlerKey = updateCacheHandlerKey; - - Map? _updateCacheHandlerContext; - Map? get updateCacheHandlerContext => - _$this._updateCacheHandlerContext; - set updateCacheHandlerContext( - Map? updateCacheHandlerContext) => - _$this._updateCacheHandlerContext = updateCacheHandlerContext; - - _i1.FetchPolicy? _fetchPolicy; - _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; - set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => - _$this._fetchPolicy = fetchPolicy; - - bool? _executeOnListen; - bool? get executeOnListen => _$this._executeOnListen; - set executeOnListen(bool? executeOnListen) => - _$this._executeOnListen = executeOnListen; - - _i4.Context? _context; - _i4.Context? get context => _$this._context; - set context(_i4.Context? context) => _$this._context = context; - - GCreateBackupReqBuilder() { - GCreateBackupReq._initializeBuilder(this); - } - - GCreateBackupReqBuilder get _$this { - final $v = _$v; - if ($v != null) { - _vars = $v.vars.toBuilder(); - _operation = $v.operation; - _requestId = $v.requestId; - _updateResult = $v.updateResult; - _optimisticResponse = $v.optimisticResponse?.toBuilder(); - _updateCacheHandlerKey = $v.updateCacheHandlerKey; - _updateCacheHandlerContext = $v.updateCacheHandlerContext; - _fetchPolicy = $v.fetchPolicy; - _executeOnListen = $v.executeOnListen; - _context = $v.context; - _$v = null; - } - return this; - } - - @override - void replace(GCreateBackupReq other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GCreateBackupReq; - } - - @override - void update(void Function(GCreateBackupReqBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GCreateBackupReq build() => _build(); - - _$GCreateBackupReq _build() { - _$GCreateBackupReq _$result; - try { - _$result = _$v ?? - new _$GCreateBackupReq._( - vars: vars.build(), - operation: BuiltValueNullFieldError.checkNotNull( - operation, r'GCreateBackupReq', 'operation'), - requestId: requestId, - updateResult: updateResult, - optimisticResponse: _optimisticResponse?.build(), - updateCacheHandlerKey: updateCacheHandlerKey, - updateCacheHandlerContext: updateCacheHandlerContext, - fetchPolicy: fetchPolicy, - executeOnListen: BuiltValueNullFieldError.checkNotNull( - executeOnListen, r'GCreateBackupReq', 'executeOnListen'), - context: context); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'vars'; - vars.build(); - - _$failedField = 'optimisticResponse'; - _optimisticResponse?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'GCreateBackupReq', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -class _$GRestoreBackupReq extends GRestoreBackupReq { - @override - final _i3.GRestoreBackupVars vars; - @override - final _i4.Operation operation; - @override - final String? requestId; - @override - final _i2.GRestoreBackupData? Function( - _i2.GRestoreBackupData?, _i2.GRestoreBackupData?)? updateResult; - @override - final _i2.GRestoreBackupData? optimisticResponse; - @override - final String? updateCacheHandlerKey; - @override - final Map? updateCacheHandlerContext; - @override - final _i1.FetchPolicy? fetchPolicy; - @override - final bool executeOnListen; - @override - final _i4.Context? context; - - factory _$GRestoreBackupReq( - [void Function(GRestoreBackupReqBuilder)? updates]) => - (new GRestoreBackupReqBuilder()..update(updates))._build(); - - _$GRestoreBackupReq._( - {required this.vars, - required this.operation, - this.requestId, - this.updateResult, - this.optimisticResponse, - this.updateCacheHandlerKey, - this.updateCacheHandlerContext, - this.fetchPolicy, - required this.executeOnListen, - this.context}) - : super._() { - BuiltValueNullFieldError.checkNotNull(vars, r'GRestoreBackupReq', 'vars'); - BuiltValueNullFieldError.checkNotNull( - operation, r'GRestoreBackupReq', 'operation'); - BuiltValueNullFieldError.checkNotNull( - executeOnListen, r'GRestoreBackupReq', 'executeOnListen'); - } - - @override - GRestoreBackupReq rebuild(void Function(GRestoreBackupReqBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GRestoreBackupReqBuilder toBuilder() => - new GRestoreBackupReqBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - final dynamic _$dynamicOther = other; - return other is GRestoreBackupReq && - vars == other.vars && - operation == other.operation && - requestId == other.requestId && - updateResult == _$dynamicOther.updateResult && - optimisticResponse == other.optimisticResponse && - updateCacheHandlerKey == other.updateCacheHandlerKey && - updateCacheHandlerContext == other.updateCacheHandlerContext && - fetchPolicy == other.fetchPolicy && - executeOnListen == other.executeOnListen && - context == other.context; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, vars.hashCode); - _$hash = $jc(_$hash, operation.hashCode); - _$hash = $jc(_$hash, requestId.hashCode); - _$hash = $jc(_$hash, updateResult.hashCode); - _$hash = $jc(_$hash, optimisticResponse.hashCode); - _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); - _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); - _$hash = $jc(_$hash, fetchPolicy.hashCode); - _$hash = $jc(_$hash, executeOnListen.hashCode); - _$hash = $jc(_$hash, context.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GRestoreBackupReq') - ..add('vars', vars) - ..add('operation', operation) - ..add('requestId', requestId) - ..add('updateResult', updateResult) - ..add('optimisticResponse', optimisticResponse) - ..add('updateCacheHandlerKey', updateCacheHandlerKey) - ..add('updateCacheHandlerContext', updateCacheHandlerContext) - ..add('fetchPolicy', fetchPolicy) - ..add('executeOnListen', executeOnListen) - ..add('context', context)) - .toString(); - } -} - -class GRestoreBackupReqBuilder - implements Builder { - _$GRestoreBackupReq? _$v; - - _i3.GRestoreBackupVarsBuilder? _vars; - _i3.GRestoreBackupVarsBuilder get vars => - _$this._vars ??= new _i3.GRestoreBackupVarsBuilder(); - set vars(_i3.GRestoreBackupVarsBuilder? vars) => _$this._vars = vars; - - _i4.Operation? _operation; - _i4.Operation? get operation => _$this._operation; - set operation(_i4.Operation? operation) => _$this._operation = operation; - - String? _requestId; - String? get requestId => _$this._requestId; - set requestId(String? requestId) => _$this._requestId = requestId; - - _i2.GRestoreBackupData? Function( - _i2.GRestoreBackupData?, _i2.GRestoreBackupData?)? _updateResult; - _i2.GRestoreBackupData? Function( - _i2.GRestoreBackupData?, _i2.GRestoreBackupData?)? - get updateResult => _$this._updateResult; - set updateResult( - _i2.GRestoreBackupData? Function( - _i2.GRestoreBackupData?, _i2.GRestoreBackupData?)? - updateResult) => - _$this._updateResult = updateResult; - - _i2.GRestoreBackupDataBuilder? _optimisticResponse; - _i2.GRestoreBackupDataBuilder get optimisticResponse => - _$this._optimisticResponse ??= new _i2.GRestoreBackupDataBuilder(); - set optimisticResponse(_i2.GRestoreBackupDataBuilder? optimisticResponse) => - _$this._optimisticResponse = optimisticResponse; - - String? _updateCacheHandlerKey; - String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; - set updateCacheHandlerKey(String? updateCacheHandlerKey) => - _$this._updateCacheHandlerKey = updateCacheHandlerKey; - - Map? _updateCacheHandlerContext; - Map? get updateCacheHandlerContext => - _$this._updateCacheHandlerContext; - set updateCacheHandlerContext( - Map? updateCacheHandlerContext) => - _$this._updateCacheHandlerContext = updateCacheHandlerContext; - - _i1.FetchPolicy? _fetchPolicy; - _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; - set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => - _$this._fetchPolicy = fetchPolicy; - - bool? _executeOnListen; - bool? get executeOnListen => _$this._executeOnListen; - set executeOnListen(bool? executeOnListen) => - _$this._executeOnListen = executeOnListen; - - _i4.Context? _context; - _i4.Context? get context => _$this._context; - set context(_i4.Context? context) => _$this._context = context; - - GRestoreBackupReqBuilder() { - GRestoreBackupReq._initializeBuilder(this); - } - - GRestoreBackupReqBuilder get _$this { - final $v = _$v; - if ($v != null) { - _vars = $v.vars.toBuilder(); - _operation = $v.operation; - _requestId = $v.requestId; - _updateResult = $v.updateResult; - _optimisticResponse = $v.optimisticResponse?.toBuilder(); - _updateCacheHandlerKey = $v.updateCacheHandlerKey; - _updateCacheHandlerContext = $v.updateCacheHandlerContext; - _fetchPolicy = $v.fetchPolicy; - _executeOnListen = $v.executeOnListen; - _context = $v.context; - _$v = null; - } - return this; - } - - @override - void replace(GRestoreBackupReq other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GRestoreBackupReq; - } - - @override - void update(void Function(GRestoreBackupReqBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GRestoreBackupReq build() => _build(); - - _$GRestoreBackupReq _build() { - _$GRestoreBackupReq _$result; - try { - _$result = _$v ?? - new _$GRestoreBackupReq._( - vars: vars.build(), - operation: BuiltValueNullFieldError.checkNotNull( - operation, r'GRestoreBackupReq', 'operation'), - requestId: requestId, - updateResult: updateResult, - optimisticResponse: _optimisticResponse?.build(), - updateCacheHandlerKey: updateCacheHandlerKey, - updateCacheHandlerContext: updateCacheHandlerContext, - fetchPolicy: fetchPolicy, - executeOnListen: BuiltValueNullFieldError.checkNotNull( - executeOnListen, r'GRestoreBackupReq', 'executeOnListen'), - context: context); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'vars'; - vars.build(); - - _$failedField = 'optimisticResponse'; - _optimisticResponse?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'GRestoreBackupReq', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -class _$GUpdateBackupPathReq extends GUpdateBackupPathReq { - @override - final _i3.GUpdateBackupPathVars vars; - @override - final _i4.Operation operation; - @override - final String? requestId; - @override - final _i2.GUpdateBackupPathData? Function( - _i2.GUpdateBackupPathData?, _i2.GUpdateBackupPathData?)? updateResult; - @override - final _i2.GUpdateBackupPathData? optimisticResponse; - @override - final String? updateCacheHandlerKey; - @override - final Map? updateCacheHandlerContext; - @override - final _i1.FetchPolicy? fetchPolicy; - @override - final bool executeOnListen; - @override - final _i4.Context? context; - - factory _$GUpdateBackupPathReq( - [void Function(GUpdateBackupPathReqBuilder)? updates]) => - (new GUpdateBackupPathReqBuilder()..update(updates))._build(); - - _$GUpdateBackupPathReq._( - {required this.vars, - required this.operation, - this.requestId, - this.updateResult, - this.optimisticResponse, - this.updateCacheHandlerKey, - this.updateCacheHandlerContext, - this.fetchPolicy, - required this.executeOnListen, - this.context}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - vars, r'GUpdateBackupPathReq', 'vars'); - BuiltValueNullFieldError.checkNotNull( - operation, r'GUpdateBackupPathReq', 'operation'); - BuiltValueNullFieldError.checkNotNull( - executeOnListen, r'GUpdateBackupPathReq', 'executeOnListen'); - } - - @override - GUpdateBackupPathReq rebuild( - void Function(GUpdateBackupPathReqBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GUpdateBackupPathReqBuilder toBuilder() => - new GUpdateBackupPathReqBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - final dynamic _$dynamicOther = other; - return other is GUpdateBackupPathReq && - vars == other.vars && - operation == other.operation && - requestId == other.requestId && - updateResult == _$dynamicOther.updateResult && - optimisticResponse == other.optimisticResponse && - updateCacheHandlerKey == other.updateCacheHandlerKey && - updateCacheHandlerContext == other.updateCacheHandlerContext && - fetchPolicy == other.fetchPolicy && - executeOnListen == other.executeOnListen && - context == other.context; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, vars.hashCode); - _$hash = $jc(_$hash, operation.hashCode); - _$hash = $jc(_$hash, requestId.hashCode); - _$hash = $jc(_$hash, updateResult.hashCode); - _$hash = $jc(_$hash, optimisticResponse.hashCode); - _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); - _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); - _$hash = $jc(_$hash, fetchPolicy.hashCode); - _$hash = $jc(_$hash, executeOnListen.hashCode); - _$hash = $jc(_$hash, context.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GUpdateBackupPathReq') - ..add('vars', vars) - ..add('operation', operation) - ..add('requestId', requestId) - ..add('updateResult', updateResult) - ..add('optimisticResponse', optimisticResponse) - ..add('updateCacheHandlerKey', updateCacheHandlerKey) - ..add('updateCacheHandlerContext', updateCacheHandlerContext) - ..add('fetchPolicy', fetchPolicy) - ..add('executeOnListen', executeOnListen) - ..add('context', context)) - .toString(); - } -} - -class GUpdateBackupPathReqBuilder - implements Builder { - _$GUpdateBackupPathReq? _$v; - - _i3.GUpdateBackupPathVarsBuilder? _vars; - _i3.GUpdateBackupPathVarsBuilder get vars => - _$this._vars ??= new _i3.GUpdateBackupPathVarsBuilder(); - set vars(_i3.GUpdateBackupPathVarsBuilder? vars) => _$this._vars = vars; - - _i4.Operation? _operation; - _i4.Operation? get operation => _$this._operation; - set operation(_i4.Operation? operation) => _$this._operation = operation; - - String? _requestId; - String? get requestId => _$this._requestId; - set requestId(String? requestId) => _$this._requestId = requestId; - - _i2.GUpdateBackupPathData? Function( - _i2.GUpdateBackupPathData?, _i2.GUpdateBackupPathData?)? _updateResult; - _i2.GUpdateBackupPathData? Function( - _i2.GUpdateBackupPathData?, _i2.GUpdateBackupPathData?)? - get updateResult => _$this._updateResult; - set updateResult( - _i2.GUpdateBackupPathData? Function( - _i2.GUpdateBackupPathData?, _i2.GUpdateBackupPathData?)? - updateResult) => - _$this._updateResult = updateResult; - - _i2.GUpdateBackupPathDataBuilder? _optimisticResponse; - _i2.GUpdateBackupPathDataBuilder get optimisticResponse => - _$this._optimisticResponse ??= new _i2.GUpdateBackupPathDataBuilder(); - set optimisticResponse( - _i2.GUpdateBackupPathDataBuilder? optimisticResponse) => - _$this._optimisticResponse = optimisticResponse; - - String? _updateCacheHandlerKey; - String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; - set updateCacheHandlerKey(String? updateCacheHandlerKey) => - _$this._updateCacheHandlerKey = updateCacheHandlerKey; - - Map? _updateCacheHandlerContext; - Map? get updateCacheHandlerContext => - _$this._updateCacheHandlerContext; - set updateCacheHandlerContext( - Map? updateCacheHandlerContext) => - _$this._updateCacheHandlerContext = updateCacheHandlerContext; - - _i1.FetchPolicy? _fetchPolicy; - _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; - set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => - _$this._fetchPolicy = fetchPolicy; - - bool? _executeOnListen; - bool? get executeOnListen => _$this._executeOnListen; - set executeOnListen(bool? executeOnListen) => - _$this._executeOnListen = executeOnListen; - - _i4.Context? _context; - _i4.Context? get context => _$this._context; - set context(_i4.Context? context) => _$this._context = context; - - GUpdateBackupPathReqBuilder() { - GUpdateBackupPathReq._initializeBuilder(this); - } - - GUpdateBackupPathReqBuilder get _$this { - final $v = _$v; - if ($v != null) { - _vars = $v.vars.toBuilder(); - _operation = $v.operation; - _requestId = $v.requestId; - _updateResult = $v.updateResult; - _optimisticResponse = $v.optimisticResponse?.toBuilder(); - _updateCacheHandlerKey = $v.updateCacheHandlerKey; - _updateCacheHandlerContext = $v.updateCacheHandlerContext; - _fetchPolicy = $v.fetchPolicy; - _executeOnListen = $v.executeOnListen; - _context = $v.context; - _$v = null; - } - return this; - } - - @override - void replace(GUpdateBackupPathReq other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GUpdateBackupPathReq; - } - - @override - void update(void Function(GUpdateBackupPathReqBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GUpdateBackupPathReq build() => _build(); - - _$GUpdateBackupPathReq _build() { - _$GUpdateBackupPathReq _$result; - try { - _$result = _$v ?? - new _$GUpdateBackupPathReq._( - vars: vars.build(), - operation: BuiltValueNullFieldError.checkNotNull( - operation, r'GUpdateBackupPathReq', 'operation'), - requestId: requestId, - updateResult: updateResult, - optimisticResponse: _optimisticResponse?.build(), - updateCacheHandlerKey: updateCacheHandlerKey, - updateCacheHandlerContext: updateCacheHandlerContext, - fetchPolicy: fetchPolicy, - executeOnListen: BuiltValueNullFieldError.checkNotNull( - executeOnListen, r'GUpdateBackupPathReq', 'executeOnListen'), - context: context); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'vars'; - vars.build(); - - _$failedField = 'optimisticResponse'; - _optimisticResponse?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'GUpdateBackupPathReq', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -class _$GUpdateBackupTimeReq extends GUpdateBackupTimeReq { - @override - final _i3.GUpdateBackupTimeVars vars; - @override - final _i4.Operation operation; - @override - final String? requestId; - @override - final _i2.GUpdateBackupTimeData? Function( - _i2.GUpdateBackupTimeData?, _i2.GUpdateBackupTimeData?)? updateResult; - @override - final _i2.GUpdateBackupTimeData? optimisticResponse; - @override - final String? updateCacheHandlerKey; - @override - final Map? updateCacheHandlerContext; - @override - final _i1.FetchPolicy? fetchPolicy; - @override - final bool executeOnListen; - @override - final _i4.Context? context; - - factory _$GUpdateBackupTimeReq( - [void Function(GUpdateBackupTimeReqBuilder)? updates]) => - (new GUpdateBackupTimeReqBuilder()..update(updates))._build(); - - _$GUpdateBackupTimeReq._( - {required this.vars, - required this.operation, - this.requestId, - this.updateResult, - this.optimisticResponse, - this.updateCacheHandlerKey, - this.updateCacheHandlerContext, - this.fetchPolicy, - required this.executeOnListen, - this.context}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - vars, r'GUpdateBackupTimeReq', 'vars'); - BuiltValueNullFieldError.checkNotNull( - operation, r'GUpdateBackupTimeReq', 'operation'); - BuiltValueNullFieldError.checkNotNull( - executeOnListen, r'GUpdateBackupTimeReq', 'executeOnListen'); - } - - @override - GUpdateBackupTimeReq rebuild( - void Function(GUpdateBackupTimeReqBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GUpdateBackupTimeReqBuilder toBuilder() => - new GUpdateBackupTimeReqBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - final dynamic _$dynamicOther = other; - return other is GUpdateBackupTimeReq && - vars == other.vars && - operation == other.operation && - requestId == other.requestId && - updateResult == _$dynamicOther.updateResult && - optimisticResponse == other.optimisticResponse && - updateCacheHandlerKey == other.updateCacheHandlerKey && - updateCacheHandlerContext == other.updateCacheHandlerContext && - fetchPolicy == other.fetchPolicy && - executeOnListen == other.executeOnListen && - context == other.context; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, vars.hashCode); - _$hash = $jc(_$hash, operation.hashCode); - _$hash = $jc(_$hash, requestId.hashCode); - _$hash = $jc(_$hash, updateResult.hashCode); - _$hash = $jc(_$hash, optimisticResponse.hashCode); - _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); - _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); - _$hash = $jc(_$hash, fetchPolicy.hashCode); - _$hash = $jc(_$hash, executeOnListen.hashCode); - _$hash = $jc(_$hash, context.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GUpdateBackupTimeReq') - ..add('vars', vars) - ..add('operation', operation) - ..add('requestId', requestId) - ..add('updateResult', updateResult) - ..add('optimisticResponse', optimisticResponse) - ..add('updateCacheHandlerKey', updateCacheHandlerKey) - ..add('updateCacheHandlerContext', updateCacheHandlerContext) - ..add('fetchPolicy', fetchPolicy) - ..add('executeOnListen', executeOnListen) - ..add('context', context)) - .toString(); - } -} - -class GUpdateBackupTimeReqBuilder - implements Builder { - _$GUpdateBackupTimeReq? _$v; - - _i3.GUpdateBackupTimeVarsBuilder? _vars; - _i3.GUpdateBackupTimeVarsBuilder get vars => - _$this._vars ??= new _i3.GUpdateBackupTimeVarsBuilder(); - set vars(_i3.GUpdateBackupTimeVarsBuilder? vars) => _$this._vars = vars; - - _i4.Operation? _operation; - _i4.Operation? get operation => _$this._operation; - set operation(_i4.Operation? operation) => _$this._operation = operation; - - String? _requestId; - String? get requestId => _$this._requestId; - set requestId(String? requestId) => _$this._requestId = requestId; - - _i2.GUpdateBackupTimeData? Function( - _i2.GUpdateBackupTimeData?, _i2.GUpdateBackupTimeData?)? _updateResult; - _i2.GUpdateBackupTimeData? Function( - _i2.GUpdateBackupTimeData?, _i2.GUpdateBackupTimeData?)? - get updateResult => _$this._updateResult; - set updateResult( - _i2.GUpdateBackupTimeData? Function( - _i2.GUpdateBackupTimeData?, _i2.GUpdateBackupTimeData?)? - updateResult) => - _$this._updateResult = updateResult; - - _i2.GUpdateBackupTimeDataBuilder? _optimisticResponse; - _i2.GUpdateBackupTimeDataBuilder get optimisticResponse => - _$this._optimisticResponse ??= new _i2.GUpdateBackupTimeDataBuilder(); - set optimisticResponse( - _i2.GUpdateBackupTimeDataBuilder? optimisticResponse) => - _$this._optimisticResponse = optimisticResponse; - - String? _updateCacheHandlerKey; - String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; - set updateCacheHandlerKey(String? updateCacheHandlerKey) => - _$this._updateCacheHandlerKey = updateCacheHandlerKey; - - Map? _updateCacheHandlerContext; - Map? get updateCacheHandlerContext => - _$this._updateCacheHandlerContext; - set updateCacheHandlerContext( - Map? updateCacheHandlerContext) => - _$this._updateCacheHandlerContext = updateCacheHandlerContext; - - _i1.FetchPolicy? _fetchPolicy; - _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; - set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => - _$this._fetchPolicy = fetchPolicy; - - bool? _executeOnListen; - bool? get executeOnListen => _$this._executeOnListen; - set executeOnListen(bool? executeOnListen) => - _$this._executeOnListen = executeOnListen; - - _i4.Context? _context; - _i4.Context? get context => _$this._context; - set context(_i4.Context? context) => _$this._context = context; - - GUpdateBackupTimeReqBuilder() { - GUpdateBackupTimeReq._initializeBuilder(this); + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; } - GUpdateBackupTimeReqBuilder get _$this { - final $v = _$v; - if ($v != null) { - _vars = $v.vars.toBuilder(); - _operation = $v.operation; - _requestId = $v.requestId; - _updateResult = $v.updateResult; - _optimisticResponse = $v.optimisticResponse?.toBuilder(); - _updateCacheHandlerKey = $v.updateCacheHandlerKey; - _updateCacheHandlerContext = $v.updateCacheHandlerContext; - _fetchPolicy = $v.fetchPolicy; - _executeOnListen = $v.executeOnListen; - _context = $v.context; - _$v = null; + @override + GServerSettingsReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GServerSettingsReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GServerSettingsVars))! + as _i3.GServerSettingsVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GServerSettingsData))! + as _i2.GServerSettingsData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } } - return this; + + return result.build(); } +} +class _$GSettingsFragmentReqSerializer + implements StructuredSerializer { @override - void replace(GUpdateBackupTimeReq other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GUpdateBackupTimeReq; - } + final Iterable types = const [ + GSettingsFragmentReq, + _$GSettingsFragmentReq + ]; + @override + final String wireName = 'GSettingsFragmentReq'; @override - void update(void Function(GUpdateBackupTimeReqBuilder)? updates) { - if (updates != null) updates(this); + Iterable serialize( + Serializers serializers, GSettingsFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GSettingsFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i7.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; } @override - GUpdateBackupTimeReq build() => _build(); - - _$GUpdateBackupTimeReq _build() { - _$GUpdateBackupTimeReq _$result; - try { - _$result = _$v ?? - new _$GUpdateBackupTimeReq._( - vars: vars.build(), - operation: BuiltValueNullFieldError.checkNotNull( - operation, r'GUpdateBackupTimeReq', 'operation'), - requestId: requestId, - updateResult: updateResult, - optimisticResponse: _optimisticResponse?.build(), - updateCacheHandlerKey: updateCacheHandlerKey, - updateCacheHandlerContext: updateCacheHandlerContext, - fetchPolicy: fetchPolicy, - executeOnListen: BuiltValueNullFieldError.checkNotNull( - executeOnListen, r'GUpdateBackupTimeReq', 'executeOnListen'), - context: context); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'vars'; - vars.build(); + GSettingsFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSettingsFragmentReqBuilder(); - _$failedField = 'optimisticResponse'; - _optimisticResponse?.build(); - } catch (e) { - throw new BuiltValueNestedFieldError( - r'GUpdateBackupTimeReq', _$failedField, e.toString()); + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GSettingsFragmentVars))! + as _i3.GSettingsFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i7.DocumentNode))! + as _i7.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; } - rethrow; } - replace(_$result); - return _$result; + + return result.build(); } } -class _$GUpdateBackupIntervalReq extends GUpdateBackupIntervalReq { +class _$GServerSettingsReq extends GServerSettingsReq { @override - final _i3.GUpdateBackupIntervalVars vars; + final _i3.GServerSettingsVars vars; @override final _i4.Operation operation; @override final String? requestId; @override - final _i2.GUpdateBackupIntervalData? Function( - _i2.GUpdateBackupIntervalData?, _i2.GUpdateBackupIntervalData?)? - updateResult; + final _i2.GServerSettingsData? Function( + _i2.GServerSettingsData?, _i2.GServerSettingsData?)? updateResult; @override - final _i2.GUpdateBackupIntervalData? optimisticResponse; + final _i2.GServerSettingsData? optimisticResponse; @override final String? updateCacheHandlerKey; @override @@ -2813,11 +230,11 @@ class _$GUpdateBackupIntervalReq extends GUpdateBackupIntervalReq { @override final _i4.Context? context; - factory _$GUpdateBackupIntervalReq( - [void Function(GUpdateBackupIntervalReqBuilder)? updates]) => - (new GUpdateBackupIntervalReqBuilder()..update(updates))._build(); + factory _$GServerSettingsReq( + [void Function(GServerSettingsReqBuilder)? updates]) => + (new GServerSettingsReqBuilder()..update(updates))._build(); - _$GUpdateBackupIntervalReq._( + _$GServerSettingsReq._( {required this.vars, required this.operation, this.requestId, @@ -2829,28 +246,27 @@ class _$GUpdateBackupIntervalReq extends GUpdateBackupIntervalReq { required this.executeOnListen, this.context}) : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GServerSettingsReq', 'vars'); BuiltValueNullFieldError.checkNotNull( - vars, r'GUpdateBackupIntervalReq', 'vars'); - BuiltValueNullFieldError.checkNotNull( - operation, r'GUpdateBackupIntervalReq', 'operation'); + operation, r'GServerSettingsReq', 'operation'); BuiltValueNullFieldError.checkNotNull( - executeOnListen, r'GUpdateBackupIntervalReq', 'executeOnListen'); + executeOnListen, r'GServerSettingsReq', 'executeOnListen'); } @override - GUpdateBackupIntervalReq rebuild( - void Function(GUpdateBackupIntervalReqBuilder) updates) => + GServerSettingsReq rebuild( + void Function(GServerSettingsReqBuilder) updates) => (toBuilder()..update(updates)).build(); @override - GUpdateBackupIntervalReqBuilder toBuilder() => - new GUpdateBackupIntervalReqBuilder()..replace(this); + GServerSettingsReqBuilder toBuilder() => + new GServerSettingsReqBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; final dynamic _$dynamicOther = other; - return other is GUpdateBackupIntervalReq && + return other is GServerSettingsReq && vars == other.vars && operation == other.operation && requestId == other.requestId && @@ -2882,7 +298,7 @@ class _$GUpdateBackupIntervalReq extends GUpdateBackupIntervalReq { @override String toString() { - return (newBuiltValueToStringHelper(r'GUpdateBackupIntervalReq') + return (newBuiltValueToStringHelper(r'GServerSettingsReq') ..add('vars', vars) ..add('operation', operation) ..add('requestId', requestId) @@ -2897,15 +313,14 @@ class _$GUpdateBackupIntervalReq extends GUpdateBackupIntervalReq { } } -class GUpdateBackupIntervalReqBuilder - implements - Builder { - _$GUpdateBackupIntervalReq? _$v; +class GServerSettingsReqBuilder + implements Builder { + _$GServerSettingsReq? _$v; - _i3.GUpdateBackupIntervalVarsBuilder? _vars; - _i3.GUpdateBackupIntervalVarsBuilder get vars => - _$this._vars ??= new _i3.GUpdateBackupIntervalVarsBuilder(); - set vars(_i3.GUpdateBackupIntervalVarsBuilder? vars) => _$this._vars = vars; + _i3.GServerSettingsVarsBuilder? _vars; + _i3.GServerSettingsVarsBuilder get vars => + _$this._vars ??= new _i3.GServerSettingsVarsBuilder(); + set vars(_i3.GServerSettingsVarsBuilder? vars) => _$this._vars = vars; _i4.Operation? _operation; _i4.Operation? get operation => _$this._operation; @@ -2915,24 +330,21 @@ class GUpdateBackupIntervalReqBuilder String? get requestId => _$this._requestId; set requestId(String? requestId) => _$this._requestId = requestId; - _i2.GUpdateBackupIntervalData? Function( - _i2.GUpdateBackupIntervalData?, _i2.GUpdateBackupIntervalData?)? - _updateResult; - _i2.GUpdateBackupIntervalData? Function( - _i2.GUpdateBackupIntervalData?, _i2.GUpdateBackupIntervalData?)? + _i2.GServerSettingsData? Function( + _i2.GServerSettingsData?, _i2.GServerSettingsData?)? _updateResult; + _i2.GServerSettingsData? Function( + _i2.GServerSettingsData?, _i2.GServerSettingsData?)? get updateResult => _$this._updateResult; set updateResult( - _i2.GUpdateBackupIntervalData? Function( - _i2.GUpdateBackupIntervalData?, - _i2.GUpdateBackupIntervalData?)? + _i2.GServerSettingsData? Function( + _i2.GServerSettingsData?, _i2.GServerSettingsData?)? updateResult) => _$this._updateResult = updateResult; - _i2.GUpdateBackupIntervalDataBuilder? _optimisticResponse; - _i2.GUpdateBackupIntervalDataBuilder get optimisticResponse => - _$this._optimisticResponse ??= new _i2.GUpdateBackupIntervalDataBuilder(); - set optimisticResponse( - _i2.GUpdateBackupIntervalDataBuilder? optimisticResponse) => + _i2.GServerSettingsDataBuilder? _optimisticResponse; + _i2.GServerSettingsDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GServerSettingsDataBuilder(); + set optimisticResponse(_i2.GServerSettingsDataBuilder? optimisticResponse) => _$this._optimisticResponse = optimisticResponse; String? _updateCacheHandlerKey; @@ -2961,11 +373,11 @@ class GUpdateBackupIntervalReqBuilder _i4.Context? get context => _$this._context; set context(_i4.Context? context) => _$this._context = context; - GUpdateBackupIntervalReqBuilder() { - GUpdateBackupIntervalReq._initializeBuilder(this); + GServerSettingsReqBuilder() { + GServerSettingsReq._initializeBuilder(this); } - GUpdateBackupIntervalReqBuilder get _$this { + GServerSettingsReqBuilder get _$this { final $v = _$v; if ($v != null) { _vars = $v.vars.toBuilder(); @@ -2984,27 +396,27 @@ class GUpdateBackupIntervalReqBuilder } @override - void replace(GUpdateBackupIntervalReq other) { + void replace(GServerSettingsReq other) { ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GUpdateBackupIntervalReq; + _$v = other as _$GServerSettingsReq; } @override - void update(void Function(GUpdateBackupIntervalReqBuilder)? updates) { + void update(void Function(GServerSettingsReqBuilder)? updates) { if (updates != null) updates(this); } @override - GUpdateBackupIntervalReq build() => _build(); + GServerSettingsReq build() => _build(); - _$GUpdateBackupIntervalReq _build() { - _$GUpdateBackupIntervalReq _$result; + _$GServerSettingsReq _build() { + _$GServerSettingsReq _$result; try { _$result = _$v ?? - new _$GUpdateBackupIntervalReq._( + new _$GServerSettingsReq._( vars: vars.build(), operation: BuiltValueNullFieldError.checkNotNull( - operation, r'GUpdateBackupIntervalReq', 'operation'), + operation, r'GServerSettingsReq', 'operation'), requestId: requestId, updateResult: updateResult, optimisticResponse: _optimisticResponse?.build(), @@ -3012,9 +424,7 @@ class GUpdateBackupIntervalReqBuilder updateCacheHandlerContext: updateCacheHandlerContext, fetchPolicy: fetchPolicy, executeOnListen: BuiltValueNullFieldError.checkNotNull( - executeOnListen, - r'GUpdateBackupIntervalReq', - 'executeOnListen'), + executeOnListen, r'GServerSettingsReq', 'executeOnListen'), context: context); } catch (_) { late String _$failedField; @@ -3026,7 +436,7 @@ class GUpdateBackupIntervalReqBuilder _optimisticResponse?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'GUpdateBackupIntervalReq', _$failedField, e.toString()); + r'GServerSettingsReq', _$failedField, e.toString()); } rethrow; } @@ -3035,236 +445,145 @@ class GUpdateBackupIntervalReqBuilder } } -class _$GUpdateBackupTTLReq extends GUpdateBackupTTLReq { - @override - final _i3.GUpdateBackupTTLVars vars; - @override - final _i4.Operation operation; - @override - final String? requestId; - @override - final _i2.GUpdateBackupTTLData? Function( - _i2.GUpdateBackupTTLData?, _i2.GUpdateBackupTTLData?)? updateResult; +class _$GSettingsFragmentReq extends GSettingsFragmentReq { @override - final _i2.GUpdateBackupTTLData? optimisticResponse; + final _i3.GSettingsFragmentVars vars; @override - final String? updateCacheHandlerKey; - @override - final Map? updateCacheHandlerContext; - @override - final _i1.FetchPolicy? fetchPolicy; + final _i7.DocumentNode document; @override - final bool executeOnListen; + final String? fragmentName; @override - final _i4.Context? context; + final Map idFields; - factory _$GUpdateBackupTTLReq( - [void Function(GUpdateBackupTTLReqBuilder)? updates]) => - (new GUpdateBackupTTLReqBuilder()..update(updates))._build(); + factory _$GSettingsFragmentReq( + [void Function(GSettingsFragmentReqBuilder)? updates]) => + (new GSettingsFragmentReqBuilder()..update(updates))._build(); - _$GUpdateBackupTTLReq._( + _$GSettingsFragmentReq._( {required this.vars, - required this.operation, - this.requestId, - this.updateResult, - this.optimisticResponse, - this.updateCacheHandlerKey, - this.updateCacheHandlerContext, - this.fetchPolicy, - required this.executeOnListen, - this.context}) + required this.document, + this.fragmentName, + required this.idFields}) : super._() { - BuiltValueNullFieldError.checkNotNull(vars, r'GUpdateBackupTTLReq', 'vars'); BuiltValueNullFieldError.checkNotNull( - operation, r'GUpdateBackupTTLReq', 'operation'); + vars, r'GSettingsFragmentReq', 'vars'); BuiltValueNullFieldError.checkNotNull( - executeOnListen, r'GUpdateBackupTTLReq', 'executeOnListen'); + document, r'GSettingsFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GSettingsFragmentReq', 'idFields'); } @override - GUpdateBackupTTLReq rebuild( - void Function(GUpdateBackupTTLReqBuilder) updates) => + GSettingsFragmentReq rebuild( + void Function(GSettingsFragmentReqBuilder) updates) => (toBuilder()..update(updates)).build(); @override - GUpdateBackupTTLReqBuilder toBuilder() => - new GUpdateBackupTTLReqBuilder()..replace(this); + GSettingsFragmentReqBuilder toBuilder() => + new GSettingsFragmentReqBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; - final dynamic _$dynamicOther = other; - return other is GUpdateBackupTTLReq && + return other is GSettingsFragmentReq && vars == other.vars && - operation == other.operation && - requestId == other.requestId && - updateResult == _$dynamicOther.updateResult && - optimisticResponse == other.optimisticResponse && - updateCacheHandlerKey == other.updateCacheHandlerKey && - updateCacheHandlerContext == other.updateCacheHandlerContext && - fetchPolicy == other.fetchPolicy && - executeOnListen == other.executeOnListen && - context == other.context; + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; } @override int get hashCode { var _$hash = 0; _$hash = $jc(_$hash, vars.hashCode); - _$hash = $jc(_$hash, operation.hashCode); - _$hash = $jc(_$hash, requestId.hashCode); - _$hash = $jc(_$hash, updateResult.hashCode); - _$hash = $jc(_$hash, optimisticResponse.hashCode); - _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); - _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); - _$hash = $jc(_$hash, fetchPolicy.hashCode); - _$hash = $jc(_$hash, executeOnListen.hashCode); - _$hash = $jc(_$hash, context.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); _$hash = $jf(_$hash); return _$hash; } @override String toString() { - return (newBuiltValueToStringHelper(r'GUpdateBackupTTLReq') + return (newBuiltValueToStringHelper(r'GSettingsFragmentReq') ..add('vars', vars) - ..add('operation', operation) - ..add('requestId', requestId) - ..add('updateResult', updateResult) - ..add('optimisticResponse', optimisticResponse) - ..add('updateCacheHandlerKey', updateCacheHandlerKey) - ..add('updateCacheHandlerContext', updateCacheHandlerContext) - ..add('fetchPolicy', fetchPolicy) - ..add('executeOnListen', executeOnListen) - ..add('context', context)) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) .toString(); } } -class GUpdateBackupTTLReqBuilder - implements Builder { - _$GUpdateBackupTTLReq? _$v; - - _i3.GUpdateBackupTTLVarsBuilder? _vars; - _i3.GUpdateBackupTTLVarsBuilder get vars => - _$this._vars ??= new _i3.GUpdateBackupTTLVarsBuilder(); - set vars(_i3.GUpdateBackupTTLVarsBuilder? vars) => _$this._vars = vars; - - _i4.Operation? _operation; - _i4.Operation? get operation => _$this._operation; - set operation(_i4.Operation? operation) => _$this._operation = operation; - - String? _requestId; - String? get requestId => _$this._requestId; - set requestId(String? requestId) => _$this._requestId = requestId; - - _i2.GUpdateBackupTTLData? Function( - _i2.GUpdateBackupTTLData?, _i2.GUpdateBackupTTLData?)? _updateResult; - _i2.GUpdateBackupTTLData? Function( - _i2.GUpdateBackupTTLData?, _i2.GUpdateBackupTTLData?)? - get updateResult => _$this._updateResult; - set updateResult( - _i2.GUpdateBackupTTLData? Function( - _i2.GUpdateBackupTTLData?, _i2.GUpdateBackupTTLData?)? - updateResult) => - _$this._updateResult = updateResult; - - _i2.GUpdateBackupTTLDataBuilder? _optimisticResponse; - _i2.GUpdateBackupTTLDataBuilder get optimisticResponse => - _$this._optimisticResponse ??= new _i2.GUpdateBackupTTLDataBuilder(); - set optimisticResponse(_i2.GUpdateBackupTTLDataBuilder? optimisticResponse) => - _$this._optimisticResponse = optimisticResponse; - - String? _updateCacheHandlerKey; - String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; - set updateCacheHandlerKey(String? updateCacheHandlerKey) => - _$this._updateCacheHandlerKey = updateCacheHandlerKey; +class GSettingsFragmentReqBuilder + implements Builder { + _$GSettingsFragmentReq? _$v; - Map? _updateCacheHandlerContext; - Map? get updateCacheHandlerContext => - _$this._updateCacheHandlerContext; - set updateCacheHandlerContext( - Map? updateCacheHandlerContext) => - _$this._updateCacheHandlerContext = updateCacheHandlerContext; + _i3.GSettingsFragmentVarsBuilder? _vars; + _i3.GSettingsFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GSettingsFragmentVarsBuilder(); + set vars(_i3.GSettingsFragmentVarsBuilder? vars) => _$this._vars = vars; - _i1.FetchPolicy? _fetchPolicy; - _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; - set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => - _$this._fetchPolicy = fetchPolicy; + _i7.DocumentNode? _document; + _i7.DocumentNode? get document => _$this._document; + set document(_i7.DocumentNode? document) => _$this._document = document; - bool? _executeOnListen; - bool? get executeOnListen => _$this._executeOnListen; - set executeOnListen(bool? executeOnListen) => - _$this._executeOnListen = executeOnListen; + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; - _i4.Context? _context; - _i4.Context? get context => _$this._context; - set context(_i4.Context? context) => _$this._context = context; + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; - GUpdateBackupTTLReqBuilder() { - GUpdateBackupTTLReq._initializeBuilder(this); + GSettingsFragmentReqBuilder() { + GSettingsFragmentReq._initializeBuilder(this); } - GUpdateBackupTTLReqBuilder get _$this { + GSettingsFragmentReqBuilder get _$this { final $v = _$v; if ($v != null) { _vars = $v.vars.toBuilder(); - _operation = $v.operation; - _requestId = $v.requestId; - _updateResult = $v.updateResult; - _optimisticResponse = $v.optimisticResponse?.toBuilder(); - _updateCacheHandlerKey = $v.updateCacheHandlerKey; - _updateCacheHandlerContext = $v.updateCacheHandlerContext; - _fetchPolicy = $v.fetchPolicy; - _executeOnListen = $v.executeOnListen; - _context = $v.context; + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; _$v = null; } return this; } @override - void replace(GUpdateBackupTTLReq other) { + void replace(GSettingsFragmentReq other) { ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GUpdateBackupTTLReq; + _$v = other as _$GSettingsFragmentReq; } @override - void update(void Function(GUpdateBackupTTLReqBuilder)? updates) { + void update(void Function(GSettingsFragmentReqBuilder)? updates) { if (updates != null) updates(this); } @override - GUpdateBackupTTLReq build() => _build(); + GSettingsFragmentReq build() => _build(); - _$GUpdateBackupTTLReq _build() { - _$GUpdateBackupTTLReq _$result; + _$GSettingsFragmentReq _build() { + _$GSettingsFragmentReq _$result; try { _$result = _$v ?? - new _$GUpdateBackupTTLReq._( + new _$GSettingsFragmentReq._( vars: vars.build(), - operation: BuiltValueNullFieldError.checkNotNull( - operation, r'GUpdateBackupTTLReq', 'operation'), - requestId: requestId, - updateResult: updateResult, - optimisticResponse: _optimisticResponse?.build(), - updateCacheHandlerKey: updateCacheHandlerKey, - updateCacheHandlerContext: updateCacheHandlerContext, - fetchPolicy: fetchPolicy, - executeOnListen: BuiltValueNullFieldError.checkNotNull( - executeOnListen, r'GUpdateBackupTTLReq', 'executeOnListen'), - context: context); + document: BuiltValueNullFieldError.checkNotNull( + document, r'GSettingsFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GSettingsFragmentReq', 'idFields')); } catch (_) { late String _$failedField; try { _$failedField = 'vars'; vars.build(); - - _$failedField = 'optimisticResponse'; - _optimisticResponse?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'GUpdateBackupTTLReq', _$failedField, e.toString()); + r'GSettingsFragmentReq', _$failedField, e.toString()); } rethrow; } diff --git a/lib/src/features/settings/data/graphql/__generated__/settings_query.var.gql.dart b/lib/src/features/settings/data/graphql/__generated__/settings_query.var.gql.dart index 9ea27606..6cc8720c 100644 --- a/lib/src/features/settings/data/graphql/__generated__/settings_query.var.gql.dart +++ b/lib/src/features/settings/data/graphql/__generated__/settings_query.var.gql.dart @@ -4,227 +4,53 @@ // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; -import 'package:http/http.dart' as _i2; import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' as _i1; part 'settings_query.var.gql.g.dart'; -abstract class GAutomaticBackupSettingsVars - implements - Built { - GAutomaticBackupSettingsVars._(); +abstract class GServerSettingsVars + implements Built { + GServerSettingsVars._(); - factory GAutomaticBackupSettingsVars( - [void Function(GAutomaticBackupSettingsVarsBuilder b) updates]) = - _$GAutomaticBackupSettingsVars; + factory GServerSettingsVars( + [void Function(GServerSettingsVarsBuilder b) updates]) = + _$GServerSettingsVars; - static Serializer get serializer => - _$gAutomaticBackupSettingsVarsSerializer; + static Serializer get serializer => + _$gServerSettingsVarsSerializer; Map toJson() => (_i1.serializers.serializeWith( - GAutomaticBackupSettingsVars.serializer, + GServerSettingsVars.serializer, this, ) as Map); - static GAutomaticBackupSettingsVars? fromJson(Map json) => + static GServerSettingsVars? fromJson(Map json) => _i1.serializers.deserializeWith( - GAutomaticBackupSettingsVars.serializer, + GServerSettingsVars.serializer, json, ); } -abstract class GRestoreStatusVars - implements Built { - GRestoreStatusVars._(); +abstract class GSettingsFragmentVars + implements Built { + GSettingsFragmentVars._(); - factory GRestoreStatusVars( - [void Function(GRestoreStatusVarsBuilder b) updates]) = - _$GRestoreStatusVars; + factory GSettingsFragmentVars( + [void Function(GSettingsFragmentVarsBuilder b) updates]) = + _$GSettingsFragmentVars; - String get restoreId; - static Serializer get serializer => - _$gRestoreStatusVarsSerializer; + static Serializer get serializer => + _$gSettingsFragmentVarsSerializer; Map toJson() => (_i1.serializers.serializeWith( - GRestoreStatusVars.serializer, + GSettingsFragmentVars.serializer, this, ) as Map); - static GRestoreStatusVars? fromJson(Map json) => + static GSettingsFragmentVars? fromJson(Map json) => _i1.serializers.deserializeWith( - GRestoreStatusVars.serializer, - json, - ); -} - -abstract class GValidateBackupVars - implements Built { - GValidateBackupVars._(); - - factory GValidateBackupVars( - [void Function(GValidateBackupVarsBuilder b) updates]) = - _$GValidateBackupVars; - - _i2.MultipartFile get backup; - static Serializer get serializer => - _$gValidateBackupVarsSerializer; - - Map toJson() => (_i1.serializers.serializeWith( - GValidateBackupVars.serializer, - this, - ) as Map); - - static GValidateBackupVars? fromJson(Map json) => - _i1.serializers.deserializeWith( - GValidateBackupVars.serializer, - json, - ); -} - -abstract class GCreateBackupVars - implements Built { - GCreateBackupVars._(); - - factory GCreateBackupVars( - [void Function(GCreateBackupVarsBuilder b) updates]) = - _$GCreateBackupVars; - - bool? get includeCategories; - bool? get includeChapters; - static Serializer get serializer => - _$gCreateBackupVarsSerializer; - - Map toJson() => (_i1.serializers.serializeWith( - GCreateBackupVars.serializer, - this, - ) as Map); - - static GCreateBackupVars? fromJson(Map json) => - _i1.serializers.deserializeWith( - GCreateBackupVars.serializer, - json, - ); -} - -abstract class GRestoreBackupVars - implements Built { - GRestoreBackupVars._(); - - factory GRestoreBackupVars( - [void Function(GRestoreBackupVarsBuilder b) updates]) = - _$GRestoreBackupVars; - - _i2.MultipartFile get backup; - static Serializer get serializer => - _$gRestoreBackupVarsSerializer; - - Map toJson() => (_i1.serializers.serializeWith( - GRestoreBackupVars.serializer, - this, - ) as Map); - - static GRestoreBackupVars? fromJson(Map json) => - _i1.serializers.deserializeWith( - GRestoreBackupVars.serializer, - json, - ); -} - -abstract class GUpdateBackupPathVars - implements Built { - GUpdateBackupPathVars._(); - - factory GUpdateBackupPathVars( - [void Function(GUpdateBackupPathVarsBuilder b) updates]) = - _$GUpdateBackupPathVars; - - String? get backupPath; - static Serializer get serializer => - _$gUpdateBackupPathVarsSerializer; - - Map toJson() => (_i1.serializers.serializeWith( - GUpdateBackupPathVars.serializer, - this, - ) as Map); - - static GUpdateBackupPathVars? fromJson(Map json) => - _i1.serializers.deserializeWith( - GUpdateBackupPathVars.serializer, - json, - ); -} - -abstract class GUpdateBackupTimeVars - implements Built { - GUpdateBackupTimeVars._(); - - factory GUpdateBackupTimeVars( - [void Function(GUpdateBackupTimeVarsBuilder b) updates]) = - _$GUpdateBackupTimeVars; - - String? get backupTime; - static Serializer get serializer => - _$gUpdateBackupTimeVarsSerializer; - - Map toJson() => (_i1.serializers.serializeWith( - GUpdateBackupTimeVars.serializer, - this, - ) as Map); - - static GUpdateBackupTimeVars? fromJson(Map json) => - _i1.serializers.deserializeWith( - GUpdateBackupTimeVars.serializer, - json, - ); -} - -abstract class GUpdateBackupIntervalVars - implements - Built { - GUpdateBackupIntervalVars._(); - - factory GUpdateBackupIntervalVars( - [void Function(GUpdateBackupIntervalVarsBuilder b) updates]) = - _$GUpdateBackupIntervalVars; - - int? get backupInterval; - static Serializer get serializer => - _$gUpdateBackupIntervalVarsSerializer; - - Map toJson() => (_i1.serializers.serializeWith( - GUpdateBackupIntervalVars.serializer, - this, - ) as Map); - - static GUpdateBackupIntervalVars? fromJson(Map json) => - _i1.serializers.deserializeWith( - GUpdateBackupIntervalVars.serializer, - json, - ); -} - -abstract class GUpdateBackupTTLVars - implements Built { - GUpdateBackupTTLVars._(); - - factory GUpdateBackupTTLVars( - [void Function(GUpdateBackupTTLVarsBuilder b) updates]) = - _$GUpdateBackupTTLVars; - - int? get backupTTL; - static Serializer get serializer => - _$gUpdateBackupTTLVarsSerializer; - - Map toJson() => (_i1.serializers.serializeWith( - GUpdateBackupTTLVars.serializer, - this, - ) as Map); - - static GUpdateBackupTTLVars? fromJson(Map json) => - _i1.serializers.deserializeWith( - GUpdateBackupTTLVars.serializer, + GSettingsFragmentVars.serializer, json, ); } diff --git a/lib/src/features/settings/data/graphql/__generated__/settings_query.var.gql.g.dart b/lib/src/features/settings/data/graphql/__generated__/settings_query.var.gql.g.dart index 183cd987..46ebdccf 100644 --- a/lib/src/features/settings/data/graphql/__generated__/settings_query.var.gql.g.dart +++ b/lib/src/features/settings/data/graphql/__generated__/settings_query.var.gql.g.dart @@ -6,1181 +6,176 @@ part of 'settings_query.var.gql.dart'; // BuiltValueGenerator // ************************************************************************** -Serializer - _$gAutomaticBackupSettingsVarsSerializer = - new _$GAutomaticBackupSettingsVarsSerializer(); -Serializer _$gRestoreStatusVarsSerializer = - new _$GRestoreStatusVarsSerializer(); -Serializer _$gValidateBackupVarsSerializer = - new _$GValidateBackupVarsSerializer(); -Serializer _$gCreateBackupVarsSerializer = - new _$GCreateBackupVarsSerializer(); -Serializer _$gRestoreBackupVarsSerializer = - new _$GRestoreBackupVarsSerializer(); -Serializer _$gUpdateBackupPathVarsSerializer = - new _$GUpdateBackupPathVarsSerializer(); -Serializer _$gUpdateBackupTimeVarsSerializer = - new _$GUpdateBackupTimeVarsSerializer(); -Serializer _$gUpdateBackupIntervalVarsSerializer = - new _$GUpdateBackupIntervalVarsSerializer(); -Serializer _$gUpdateBackupTTLVarsSerializer = - new _$GUpdateBackupTTLVarsSerializer(); +Serializer _$gServerSettingsVarsSerializer = + new _$GServerSettingsVarsSerializer(); +Serializer _$gSettingsFragmentVarsSerializer = + new _$GSettingsFragmentVarsSerializer(); -class _$GAutomaticBackupSettingsVarsSerializer - implements StructuredSerializer { +class _$GServerSettingsVarsSerializer + implements StructuredSerializer { @override final Iterable types = const [ - GAutomaticBackupSettingsVars, - _$GAutomaticBackupSettingsVars + GServerSettingsVars, + _$GServerSettingsVars ]; @override - final String wireName = 'GAutomaticBackupSettingsVars'; + final String wireName = 'GServerSettingsVars'; @override Iterable serialize( - Serializers serializers, GAutomaticBackupSettingsVars object, + Serializers serializers, GServerSettingsVars object, {FullType specifiedType = FullType.unspecified}) { return []; } @override - GAutomaticBackupSettingsVars deserialize( + GServerSettingsVars deserialize( Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { - return new GAutomaticBackupSettingsVarsBuilder().build(); + return new GServerSettingsVarsBuilder().build(); } } -class _$GRestoreStatusVarsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [GRestoreStatusVars, _$GRestoreStatusVars]; - @override - final String wireName = 'GRestoreStatusVars'; - - @override - Iterable serialize( - Serializers serializers, GRestoreStatusVars object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'restoreId', - serializers.serialize(object.restoreId, - specifiedType: const FullType(String)), - ]; - - return result; - } - - @override - GRestoreStatusVars deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GRestoreStatusVarsBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'restoreId': - result.restoreId = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; - break; - } - } - - return result.build(); - } -} - -class _$GValidateBackupVarsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - GValidateBackupVars, - _$GValidateBackupVars - ]; - @override - final String wireName = 'GValidateBackupVars'; - - @override - Iterable serialize( - Serializers serializers, GValidateBackupVars object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'backup', - serializers.serialize(object.backup, - specifiedType: const FullType(_i2.MultipartFile)), - ]; - - return result; - } - - @override - GValidateBackupVars deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GValidateBackupVarsBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'backup': - result.backup = serializers.deserialize(value, - specifiedType: const FullType(_i2.MultipartFile))! - as _i2.MultipartFile; - break; - } - } - - return result.build(); - } -} - -class _$GCreateBackupVarsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [GCreateBackupVars, _$GCreateBackupVars]; - @override - final String wireName = 'GCreateBackupVars'; - - @override - Iterable serialize(Serializers serializers, GCreateBackupVars object, - {FullType specifiedType = FullType.unspecified}) { - final result = []; - Object? value; - value = object.includeCategories; - if (value != null) { - result - ..add('includeCategories') - ..add( - serializers.serialize(value, specifiedType: const FullType(bool))); - } - value = object.includeChapters; - if (value != null) { - result - ..add('includeChapters') - ..add( - serializers.serialize(value, specifiedType: const FullType(bool))); - } - return result; - } - - @override - GCreateBackupVars deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GCreateBackupVarsBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'includeCategories': - result.includeCategories = serializers.deserialize(value, - specifiedType: const FullType(bool)) as bool?; - break; - case 'includeChapters': - result.includeChapters = serializers.deserialize(value, - specifiedType: const FullType(bool)) as bool?; - break; - } - } - - return result.build(); - } -} - -class _$GRestoreBackupVarsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [GRestoreBackupVars, _$GRestoreBackupVars]; - @override - final String wireName = 'GRestoreBackupVars'; - - @override - Iterable serialize( - Serializers serializers, GRestoreBackupVars object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'backup', - serializers.serialize(object.backup, - specifiedType: const FullType(_i2.MultipartFile)), - ]; - - return result; - } - - @override - GRestoreBackupVars deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GRestoreBackupVarsBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'backup': - result.backup = serializers.deserialize(value, - specifiedType: const FullType(_i2.MultipartFile))! - as _i2.MultipartFile; - break; - } - } - - return result.build(); - } -} - -class _$GUpdateBackupPathVarsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - GUpdateBackupPathVars, - _$GUpdateBackupPathVars - ]; - @override - final String wireName = 'GUpdateBackupPathVars'; - - @override - Iterable serialize( - Serializers serializers, GUpdateBackupPathVars object, - {FullType specifiedType = FullType.unspecified}) { - final result = []; - Object? value; - value = object.backupPath; - if (value != null) { - result - ..add('backupPath') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); - } - return result; - } - - @override - GUpdateBackupPathVars deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GUpdateBackupPathVarsBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'backupPath': - result.backupPath = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; - break; - } - } - - return result.build(); - } -} - -class _$GUpdateBackupTimeVarsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - GUpdateBackupTimeVars, - _$GUpdateBackupTimeVars - ]; - @override - final String wireName = 'GUpdateBackupTimeVars'; - - @override - Iterable serialize( - Serializers serializers, GUpdateBackupTimeVars object, - {FullType specifiedType = FullType.unspecified}) { - final result = []; - Object? value; - value = object.backupTime; - if (value != null) { - result - ..add('backupTime') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); - } - return result; - } - - @override - GUpdateBackupTimeVars deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GUpdateBackupTimeVarsBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'backupTime': - result.backupTime = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; - break; - } - } - - return result.build(); - } -} - -class _$GUpdateBackupIntervalVarsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - GUpdateBackupIntervalVars, - _$GUpdateBackupIntervalVars - ]; - @override - final String wireName = 'GUpdateBackupIntervalVars'; - - @override - Iterable serialize( - Serializers serializers, GUpdateBackupIntervalVars object, - {FullType specifiedType = FullType.unspecified}) { - final result = []; - Object? value; - value = object.backupInterval; - if (value != null) { - result - ..add('backupInterval') - ..add(serializers.serialize(value, specifiedType: const FullType(int))); - } - return result; - } - - @override - GUpdateBackupIntervalVars deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = new GUpdateBackupIntervalVarsBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'backupInterval': - result.backupInterval = serializers.deserialize(value, - specifiedType: const FullType(int)) as int?; - break; - } - } - - return result.build(); - } -} - -class _$GUpdateBackupTTLVarsSerializer - implements StructuredSerializer { +class _$GSettingsFragmentVarsSerializer + implements StructuredSerializer { @override final Iterable types = const [ - GUpdateBackupTTLVars, - _$GUpdateBackupTTLVars + GSettingsFragmentVars, + _$GSettingsFragmentVars ]; @override - final String wireName = 'GUpdateBackupTTLVars'; + final String wireName = 'GSettingsFragmentVars'; @override Iterable serialize( - Serializers serializers, GUpdateBackupTTLVars object, + Serializers serializers, GSettingsFragmentVars object, {FullType specifiedType = FullType.unspecified}) { - final result = []; - Object? value; - value = object.backupTTL; - if (value != null) { - result - ..add('backupTTL') - ..add(serializers.serialize(value, specifiedType: const FullType(int))); - } - return result; + return []; } @override - GUpdateBackupTTLVars deserialize( + GSettingsFragmentVars deserialize( Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { - final result = new GUpdateBackupTTLVarsBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'backupTTL': - result.backupTTL = serializers.deserialize(value, - specifiedType: const FullType(int)) as int?; - break; - } - } - - return result.build(); - } -} - -class _$GAutomaticBackupSettingsVars extends GAutomaticBackupSettingsVars { - factory _$GAutomaticBackupSettingsVars( - [void Function(GAutomaticBackupSettingsVarsBuilder)? updates]) => - (new GAutomaticBackupSettingsVarsBuilder()..update(updates))._build(); - - _$GAutomaticBackupSettingsVars._() : super._(); - - @override - GAutomaticBackupSettingsVars rebuild( - void Function(GAutomaticBackupSettingsVarsBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GAutomaticBackupSettingsVarsBuilder toBuilder() => - new GAutomaticBackupSettingsVarsBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GAutomaticBackupSettingsVars; - } - - @override - int get hashCode { - return 540121813; - } - - @override - String toString() { - return newBuiltValueToStringHelper(r'GAutomaticBackupSettingsVars') - .toString(); - } -} - -class GAutomaticBackupSettingsVarsBuilder - implements - Builder { - _$GAutomaticBackupSettingsVars? _$v; - - GAutomaticBackupSettingsVarsBuilder(); - - @override - void replace(GAutomaticBackupSettingsVars other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GAutomaticBackupSettingsVars; - } - - @override - void update(void Function(GAutomaticBackupSettingsVarsBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GAutomaticBackupSettingsVars build() => _build(); - - _$GAutomaticBackupSettingsVars _build() { - final _$result = _$v ?? new _$GAutomaticBackupSettingsVars._(); - replace(_$result); - return _$result; - } -} - -class _$GRestoreStatusVars extends GRestoreStatusVars { - @override - final String restoreId; - - factory _$GRestoreStatusVars( - [void Function(GRestoreStatusVarsBuilder)? updates]) => - (new GRestoreStatusVarsBuilder()..update(updates))._build(); - - _$GRestoreStatusVars._({required this.restoreId}) : super._() { - BuiltValueNullFieldError.checkNotNull( - restoreId, r'GRestoreStatusVars', 'restoreId'); - } - - @override - GRestoreStatusVars rebuild( - void Function(GRestoreStatusVarsBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GRestoreStatusVarsBuilder toBuilder() => - new GRestoreStatusVarsBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GRestoreStatusVars && restoreId == other.restoreId; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, restoreId.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GRestoreStatusVars') - ..add('restoreId', restoreId)) - .toString(); - } -} - -class GRestoreStatusVarsBuilder - implements Builder { - _$GRestoreStatusVars? _$v; - - String? _restoreId; - String? get restoreId => _$this._restoreId; - set restoreId(String? restoreId) => _$this._restoreId = restoreId; - - GRestoreStatusVarsBuilder(); - - GRestoreStatusVarsBuilder get _$this { - final $v = _$v; - if ($v != null) { - _restoreId = $v.restoreId; - _$v = null; - } - return this; - } - - @override - void replace(GRestoreStatusVars other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GRestoreStatusVars; - } - - @override - void update(void Function(GRestoreStatusVarsBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GRestoreStatusVars build() => _build(); - - _$GRestoreStatusVars _build() { - final _$result = _$v ?? - new _$GRestoreStatusVars._( - restoreId: BuiltValueNullFieldError.checkNotNull( - restoreId, r'GRestoreStatusVars', 'restoreId')); - replace(_$result); - return _$result; - } -} - -class _$GValidateBackupVars extends GValidateBackupVars { - @override - final _i2.MultipartFile backup; - - factory _$GValidateBackupVars( - [void Function(GValidateBackupVarsBuilder)? updates]) => - (new GValidateBackupVarsBuilder()..update(updates))._build(); - - _$GValidateBackupVars._({required this.backup}) : super._() { - BuiltValueNullFieldError.checkNotNull( - backup, r'GValidateBackupVars', 'backup'); - } - - @override - GValidateBackupVars rebuild( - void Function(GValidateBackupVarsBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GValidateBackupVarsBuilder toBuilder() => - new GValidateBackupVarsBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GValidateBackupVars && backup == other.backup; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, backup.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GValidateBackupVars') - ..add('backup', backup)) - .toString(); - } -} - -class GValidateBackupVarsBuilder - implements Builder { - _$GValidateBackupVars? _$v; - - _i2.MultipartFile? _backup; - _i2.MultipartFile? get backup => _$this._backup; - set backup(_i2.MultipartFile? backup) => _$this._backup = backup; - - GValidateBackupVarsBuilder(); - - GValidateBackupVarsBuilder get _$this { - final $v = _$v; - if ($v != null) { - _backup = $v.backup; - _$v = null; - } - return this; - } - - @override - void replace(GValidateBackupVars other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GValidateBackupVars; - } - - @override - void update(void Function(GValidateBackupVarsBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GValidateBackupVars build() => _build(); - - _$GValidateBackupVars _build() { - final _$result = _$v ?? - new _$GValidateBackupVars._( - backup: BuiltValueNullFieldError.checkNotNull( - backup, r'GValidateBackupVars', 'backup')); - replace(_$result); - return _$result; - } -} - -class _$GCreateBackupVars extends GCreateBackupVars { - @override - final bool? includeCategories; - @override - final bool? includeChapters; - - factory _$GCreateBackupVars( - [void Function(GCreateBackupVarsBuilder)? updates]) => - (new GCreateBackupVarsBuilder()..update(updates))._build(); - - _$GCreateBackupVars._({this.includeCategories, this.includeChapters}) - : super._(); - - @override - GCreateBackupVars rebuild(void Function(GCreateBackupVarsBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GCreateBackupVarsBuilder toBuilder() => - new GCreateBackupVarsBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GCreateBackupVars && - includeCategories == other.includeCategories && - includeChapters == other.includeChapters; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, includeCategories.hashCode); - _$hash = $jc(_$hash, includeChapters.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GCreateBackupVars') - ..add('includeCategories', includeCategories) - ..add('includeChapters', includeChapters)) - .toString(); - } -} - -class GCreateBackupVarsBuilder - implements Builder { - _$GCreateBackupVars? _$v; - - bool? _includeCategories; - bool? get includeCategories => _$this._includeCategories; - set includeCategories(bool? includeCategories) => - _$this._includeCategories = includeCategories; - - bool? _includeChapters; - bool? get includeChapters => _$this._includeChapters; - set includeChapters(bool? includeChapters) => - _$this._includeChapters = includeChapters; - - GCreateBackupVarsBuilder(); - - GCreateBackupVarsBuilder get _$this { - final $v = _$v; - if ($v != null) { - _includeCategories = $v.includeCategories; - _includeChapters = $v.includeChapters; - _$v = null; - } - return this; - } - - @override - void replace(GCreateBackupVars other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GCreateBackupVars; - } - - @override - void update(void Function(GCreateBackupVarsBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GCreateBackupVars build() => _build(); - - _$GCreateBackupVars _build() { - final _$result = _$v ?? - new _$GCreateBackupVars._( - includeCategories: includeCategories, - includeChapters: includeChapters); - replace(_$result); - return _$result; - } -} - -class _$GRestoreBackupVars extends GRestoreBackupVars { - @override - final _i2.MultipartFile backup; - - factory _$GRestoreBackupVars( - [void Function(GRestoreBackupVarsBuilder)? updates]) => - (new GRestoreBackupVarsBuilder()..update(updates))._build(); - - _$GRestoreBackupVars._({required this.backup}) : super._() { - BuiltValueNullFieldError.checkNotNull( - backup, r'GRestoreBackupVars', 'backup'); - } - - @override - GRestoreBackupVars rebuild( - void Function(GRestoreBackupVarsBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GRestoreBackupVarsBuilder toBuilder() => - new GRestoreBackupVarsBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GRestoreBackupVars && backup == other.backup; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, backup.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GRestoreBackupVars') - ..add('backup', backup)) - .toString(); - } -} - -class GRestoreBackupVarsBuilder - implements Builder { - _$GRestoreBackupVars? _$v; - - _i2.MultipartFile? _backup; - _i2.MultipartFile? get backup => _$this._backup; - set backup(_i2.MultipartFile? backup) => _$this._backup = backup; - - GRestoreBackupVarsBuilder(); - - GRestoreBackupVarsBuilder get _$this { - final $v = _$v; - if ($v != null) { - _backup = $v.backup; - _$v = null; - } - return this; - } - - @override - void replace(GRestoreBackupVars other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GRestoreBackupVars; - } - - @override - void update(void Function(GRestoreBackupVarsBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GRestoreBackupVars build() => _build(); - - _$GRestoreBackupVars _build() { - final _$result = _$v ?? - new _$GRestoreBackupVars._( - backup: BuiltValueNullFieldError.checkNotNull( - backup, r'GRestoreBackupVars', 'backup')); - replace(_$result); - return _$result; + return new GSettingsFragmentVarsBuilder().build(); } } -class _$GUpdateBackupPathVars extends GUpdateBackupPathVars { - @override - final String? backupPath; - - factory _$GUpdateBackupPathVars( - [void Function(GUpdateBackupPathVarsBuilder)? updates]) => - (new GUpdateBackupPathVarsBuilder()..update(updates))._build(); +class _$GServerSettingsVars extends GServerSettingsVars { + factory _$GServerSettingsVars( + [void Function(GServerSettingsVarsBuilder)? updates]) => + (new GServerSettingsVarsBuilder()..update(updates))._build(); - _$GUpdateBackupPathVars._({this.backupPath}) : super._(); + _$GServerSettingsVars._() : super._(); @override - GUpdateBackupPathVars rebuild( - void Function(GUpdateBackupPathVarsBuilder) updates) => + GServerSettingsVars rebuild( + void Function(GServerSettingsVarsBuilder) updates) => (toBuilder()..update(updates)).build(); @override - GUpdateBackupPathVarsBuilder toBuilder() => - new GUpdateBackupPathVarsBuilder()..replace(this); + GServerSettingsVarsBuilder toBuilder() => + new GServerSettingsVarsBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; - return other is GUpdateBackupPathVars && backupPath == other.backupPath; + return other is GServerSettingsVars; } @override int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, backupPath.hashCode); - _$hash = $jf(_$hash); - return _$hash; + return 10413499; } @override String toString() { - return (newBuiltValueToStringHelper(r'GUpdateBackupPathVars') - ..add('backupPath', backupPath)) - .toString(); + return newBuiltValueToStringHelper(r'GServerSettingsVars').toString(); } } -class GUpdateBackupPathVarsBuilder - implements Builder { - _$GUpdateBackupPathVars? _$v; - - String? _backupPath; - String? get backupPath => _$this._backupPath; - set backupPath(String? backupPath) => _$this._backupPath = backupPath; +class GServerSettingsVarsBuilder + implements Builder { + _$GServerSettingsVars? _$v; - GUpdateBackupPathVarsBuilder(); - - GUpdateBackupPathVarsBuilder get _$this { - final $v = _$v; - if ($v != null) { - _backupPath = $v.backupPath; - _$v = null; - } - return this; - } + GServerSettingsVarsBuilder(); @override - void replace(GUpdateBackupPathVars other) { + void replace(GServerSettingsVars other) { ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GUpdateBackupPathVars; + _$v = other as _$GServerSettingsVars; } @override - void update(void Function(GUpdateBackupPathVarsBuilder)? updates) { + void update(void Function(GServerSettingsVarsBuilder)? updates) { if (updates != null) updates(this); } @override - GUpdateBackupPathVars build() => _build(); + GServerSettingsVars build() => _build(); - _$GUpdateBackupPathVars _build() { - final _$result = - _$v ?? new _$GUpdateBackupPathVars._(backupPath: backupPath); + _$GServerSettingsVars _build() { + final _$result = _$v ?? new _$GServerSettingsVars._(); replace(_$result); return _$result; } } -class _$GUpdateBackupTimeVars extends GUpdateBackupTimeVars { - @override - final String? backupTime; - - factory _$GUpdateBackupTimeVars( - [void Function(GUpdateBackupTimeVarsBuilder)? updates]) => - (new GUpdateBackupTimeVarsBuilder()..update(updates))._build(); +class _$GSettingsFragmentVars extends GSettingsFragmentVars { + factory _$GSettingsFragmentVars( + [void Function(GSettingsFragmentVarsBuilder)? updates]) => + (new GSettingsFragmentVarsBuilder()..update(updates))._build(); - _$GUpdateBackupTimeVars._({this.backupTime}) : super._(); + _$GSettingsFragmentVars._() : super._(); @override - GUpdateBackupTimeVars rebuild( - void Function(GUpdateBackupTimeVarsBuilder) updates) => + GSettingsFragmentVars rebuild( + void Function(GSettingsFragmentVarsBuilder) updates) => (toBuilder()..update(updates)).build(); @override - GUpdateBackupTimeVarsBuilder toBuilder() => - new GUpdateBackupTimeVarsBuilder()..replace(this); + GSettingsFragmentVarsBuilder toBuilder() => + new GSettingsFragmentVarsBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; - return other is GUpdateBackupTimeVars && backupTime == other.backupTime; + return other is GSettingsFragmentVars; } @override int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, backupTime.hashCode); - _$hash = $jf(_$hash); - return _$hash; + return 334809867; } @override String toString() { - return (newBuiltValueToStringHelper(r'GUpdateBackupTimeVars') - ..add('backupTime', backupTime)) - .toString(); + return newBuiltValueToStringHelper(r'GSettingsFragmentVars').toString(); } } -class GUpdateBackupTimeVarsBuilder - implements Builder { - _$GUpdateBackupTimeVars? _$v; - - String? _backupTime; - String? get backupTime => _$this._backupTime; - set backupTime(String? backupTime) => _$this._backupTime = backupTime; - - GUpdateBackupTimeVarsBuilder(); - - GUpdateBackupTimeVarsBuilder get _$this { - final $v = _$v; - if ($v != null) { - _backupTime = $v.backupTime; - _$v = null; - } - return this; - } - - @override - void replace(GUpdateBackupTimeVars other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GUpdateBackupTimeVars; - } +class GSettingsFragmentVarsBuilder + implements Builder { + _$GSettingsFragmentVars? _$v; - @override - void update(void Function(GUpdateBackupTimeVarsBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GUpdateBackupTimeVars build() => _build(); - - _$GUpdateBackupTimeVars _build() { - final _$result = - _$v ?? new _$GUpdateBackupTimeVars._(backupTime: backupTime); - replace(_$result); - return _$result; - } -} - -class _$GUpdateBackupIntervalVars extends GUpdateBackupIntervalVars { - @override - final int? backupInterval; - - factory _$GUpdateBackupIntervalVars( - [void Function(GUpdateBackupIntervalVarsBuilder)? updates]) => - (new GUpdateBackupIntervalVarsBuilder()..update(updates))._build(); - - _$GUpdateBackupIntervalVars._({this.backupInterval}) : super._(); - - @override - GUpdateBackupIntervalVars rebuild( - void Function(GUpdateBackupIntervalVarsBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GUpdateBackupIntervalVarsBuilder toBuilder() => - new GUpdateBackupIntervalVarsBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GUpdateBackupIntervalVars && - backupInterval == other.backupInterval; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, backupInterval.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GUpdateBackupIntervalVars') - ..add('backupInterval', backupInterval)) - .toString(); - } -} - -class GUpdateBackupIntervalVarsBuilder - implements - Builder { - _$GUpdateBackupIntervalVars? _$v; - - int? _backupInterval; - int? get backupInterval => _$this._backupInterval; - set backupInterval(int? backupInterval) => - _$this._backupInterval = backupInterval; - - GUpdateBackupIntervalVarsBuilder(); - - GUpdateBackupIntervalVarsBuilder get _$this { - final $v = _$v; - if ($v != null) { - _backupInterval = $v.backupInterval; - _$v = null; - } - return this; - } - - @override - void replace(GUpdateBackupIntervalVars other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GUpdateBackupIntervalVars; - } - - @override - void update(void Function(GUpdateBackupIntervalVarsBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GUpdateBackupIntervalVars build() => _build(); - - _$GUpdateBackupIntervalVars _build() { - final _$result = _$v ?? - new _$GUpdateBackupIntervalVars._(backupInterval: backupInterval); - replace(_$result); - return _$result; - } -} - -class _$GUpdateBackupTTLVars extends GUpdateBackupTTLVars { - @override - final int? backupTTL; - - factory _$GUpdateBackupTTLVars( - [void Function(GUpdateBackupTTLVarsBuilder)? updates]) => - (new GUpdateBackupTTLVarsBuilder()..update(updates))._build(); - - _$GUpdateBackupTTLVars._({this.backupTTL}) : super._(); - - @override - GUpdateBackupTTLVars rebuild( - void Function(GUpdateBackupTTLVarsBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GUpdateBackupTTLVarsBuilder toBuilder() => - new GUpdateBackupTTLVarsBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GUpdateBackupTTLVars && backupTTL == other.backupTTL; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, backupTTL.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GUpdateBackupTTLVars') - ..add('backupTTL', backupTTL)) - .toString(); - } -} - -class GUpdateBackupTTLVarsBuilder - implements Builder { - _$GUpdateBackupTTLVars? _$v; - - int? _backupTTL; - int? get backupTTL => _$this._backupTTL; - set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; - - GUpdateBackupTTLVarsBuilder(); - - GUpdateBackupTTLVarsBuilder get _$this { - final $v = _$v; - if ($v != null) { - _backupTTL = $v.backupTTL; - _$v = null; - } - return this; - } + GSettingsFragmentVarsBuilder(); @override - void replace(GUpdateBackupTTLVars other) { + void replace(GSettingsFragmentVars other) { ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GUpdateBackupTTLVars; + _$v = other as _$GSettingsFragmentVars; } @override - void update(void Function(GUpdateBackupTTLVarsBuilder)? updates) { + void update(void Function(GSettingsFragmentVarsBuilder)? updates) { if (updates != null) updates(this); } @override - GUpdateBackupTTLVars build() => _build(); + GSettingsFragmentVars build() => _build(); - _$GUpdateBackupTTLVars _build() { - final _$result = _$v ?? new _$GUpdateBackupTTLVars._(backupTTL: backupTTL); + _$GSettingsFragmentVars _build() { + final _$result = _$v ?? new _$GSettingsFragmentVars._(); replace(_$result); return _$result; } diff --git a/lib/src/features/settings/data/graphql/settings_query.dart b/lib/src/features/settings/data/graphql/settings_query.dart index df844bb7..4f633671 100644 --- a/lib/src/features/settings/data/graphql/settings_query.dart +++ b/lib/src/features/settings/data/graphql/settings_query.dart @@ -1,55 +1,5 @@ -import 'package:ferry/ferry.dart'; -import 'package:flutter/material.dart'; -import 'package:http/http.dart'; - -import '../../../../utils/extensions/custom_extensions.dart'; import '__generated__/settings_query.req.gql.dart'; abstract class SettingsQuery { - static GRestoreBackupReq restoreBackup(MultipartFile? file) => - GRestoreBackupReq( - (req) => req - ..vars.backup = file - ..fetchPolicy = FetchPolicy.NoCache, - ); - - static GValidateBackupReq validateBackup(MultipartFile? file) => - GValidateBackupReq( - (req) => req - ..vars.backup = file - ..fetchPolicy = FetchPolicy.NoCache, - ); - - static GRestoreStatusReq restoreStatus(String restoreId) => GRestoreStatusReq( - (req) => req - ..vars.restoreId = restoreId - ..fetchPolicy = FetchPolicy.NoCache, - ); - - static GCreateBackupReq createBackup( - bool includeCategories, bool includeChapters) => - GCreateBackupReq( - (req) => req - ..vars.includeCategories = includeCategories - ..vars.includeChapters = includeChapters - ..fetchPolicy = FetchPolicy.NoCache, - ); - - static GAutomaticBackupSettingsReq automaticBackupSettings() => - GAutomaticBackupSettingsReq(); - - static GUpdateBackupPathReq updateBackupPath(String? backupPath) => - GUpdateBackupPathReq((req) => req..vars.backupPath = backupPath.ifNull()); - - static GUpdateBackupTimeReq updateBackupTime(TimeOfDay timeOfDay) { - final time = "${timeOfDay.hour.padLeft()}:${timeOfDay.minute.padLeft()}"; - return GUpdateBackupTimeReq((req) => req..vars.backupTime = time); - } - - static GUpdateBackupIntervalReq updateBackupInterval(int backupInterval) => - GUpdateBackupIntervalReq( - (req) => req..vars.backupInterval = backupInterval.ifNull(1)); - - static GUpdateBackupTTLReq updateBackupTTL(int backupTTL) => - GUpdateBackupTTLReq((req) => req..vars.backupTTL = backupTTL.ifNull(14)); + static GServerSettingsReq serverSettings() => GServerSettingsReq(); } diff --git a/lib/src/features/settings/data/graphql/settings_query.graphql b/lib/src/features/settings/data/graphql/settings_query.graphql index 20569f54..e769288d 100644 --- a/lib/src/features/settings/data/graphql/settings_query.graphql +++ b/lib/src/features/settings/data/graphql/settings_query.graphql @@ -1,77 +1,21 @@ -query AutomaticBackupSettings { - settings { - backupInterval - backupPath - backupTTL - backupTime - } -} - -query RestoreStatus($restoreId: String!) { - restoreStatus(id: $restoreId) { - mangaProgress - state - totalManga - } -} - -query ValidateBackup($backup: Upload!) { - validateBackup(input: { backup: $backup }) { - missingSources { - name - } - } -} - -mutation CreateBackup($includeCategories: Boolean = true, $includeChapters: Boolean = true) { - createBackup( - input: {includeCategories: $includeCategories, includeChapters: $includeChapters} - ) { - clientMutationId - url - } -} - -mutation RestoreBackup($backup: Upload!) { - restoreBackup(input: { backup: $backup }) { - clientMutationId - id - status { - mangaProgress - state - totalManga - } - } -} - -mutation UpdateBackupPath($backupPath: String = "") { - setSettings(input: {settings: {backupPath: $backupPath}}) { - settings { - backupPath - } - } -} - -mutation UpdateBackupTime($backupTime: String = "12:00") { - setSettings(input: {settings: {backupTime: $backupTime}}) { +# import '/src/features/settings/domain/automatic_backup_settings/graphql/fragment.graphql' +# import '/src/features/settings/domain/server_binding/graphql/fragment.graphql' +# import '/src/features/settings/domain/socks_proxy/graphql/fragment.graphql' +# import '/src/features/settings/domain/cloud_flare/graphql/fragment.graphql' +# import '/src/features/settings/domain/misc_settings/graphql/fragment.graphql' +# import '/src/features/settings/domain/browse/graphql/fragment.graphql' + +query ServerSettings { settings { - backupTime + ...SettingsFragment } - } } -mutation UpdateBackupInterval($backupInterval: Int = 1) { - setSettings(input: {settings: {backupInterval: $backupInterval}}) { - settings { - backupInterval - } - } -} - -mutation UpdateBackupTTL($backupTTL: Int = 14) { - setSettings(input: {settings: {backupTTL: $backupTTL}}) { - settings { - backupTTL - } - } +fragment SettingsFragment on SettingsType { + ...AutomaticBackupSettingsFragment + ...ServerBindingFragment + ...SocksProxyFragment + ...CloudFlareBypassFragment + ...MiscSettingsFragment + ...BrowserSettingsFragment, } diff --git a/lib/src/features/settings/data/settings_repository.dart b/lib/src/features/settings/data/settings_repository.dart index b5992881..ebfe2f7c 100644 --- a/lib/src/features/settings/data/settings_repository.dart +++ b/lib/src/features/settings/data/settings_repository.dart @@ -1,80 +1,24 @@ -// Copyright (c) 2022 Contributors to the Suwayomi project -// -// This Source Code Form is subject to the terms of the Mozilla Public -// License, v. 2.0. If a copy of the MPL was not distributed with this -// file, You can obtain one at http://mozilla.org/MPL/2.0/. - import 'package:ferry/ferry.dart'; -import 'package:flutter/material.dart'; -import 'package:http/http.dart' show MultipartFile; import 'package:riverpod_annotation/riverpod_annotation.dart'; import '../../../global_providers/global_providers.dart'; import '../../../utils/extensions/custom_extensions.dart'; -import '../domain/automatic_backup_settings_dto.dart'; -import '../domain/restore_status.dart'; -import '../enums/restore_state.dart'; +import 'graphql/__generated__/settings_query.data.gql.dart'; import 'graphql/settings_query.dart'; part 'settings_repository.g.dart'; +typedef SettingsDto = GSettingsFragment; + class SettingsRepository { const SettingsRepository(this.ferryClient); final Client ferryClient; - Stream restoreBackup(MultipartFile? file) => ferryClient.fetch( - SettingsQuery.restoreBackup(file), - (data) => data.restoreBackup.id, - ); - - Stream?> validateBackup(MultipartFile? file) => ferryClient.fetch( - SettingsQuery.validateBackup(file), - (data) => data.validateBackup.missingSources - .map((value) => value.name) - .toSet(), - ); - - Stream getRestoreStatus(String restoreId) => - ferryClient.fetch( - SettingsQuery.restoreStatus(restoreId), - (data) => data.restoreStatus != null - ? RestoreStatus( - mangaProgress: data.restoreStatus!.mangaProgress, - state: RestoreState.fromValue(data.restoreStatus!.state.name), - totalManga: data.restoreStatus!.totalManga, - ) - : null); - - Stream createBackup(bool includeCategories, bool includeChapters) => - ferryClient.fetch( - SettingsQuery.createBackup(includeCategories, includeChapters), - (data) => data.createBackup.url, + Stream getServerSettings() => ferryClient.fetch( + SettingsQuery.serverSettings(), + (data) => data.settings, ); - - Stream getAutomaticBackupSettings() => - ferryClient.fetch( - SettingsQuery.automaticBackupSettings(), - (data) => AutomaticBackupSettingsDto( - backupInterval: data.settings.backupInterval, - backupPath: data.settings.backupPath, - backupTTL: data.settings.backupTTL, - backupTime: (data.settings.backupTime).toTimeOfDay, - ), - ); - - Future updateBackupLocation(String? backupPath) => - ferryClient.fetch(SettingsQuery.updateBackupPath(backupPath)).first; - - Future updateBackupTime(TimeOfDay backupTime) => - ferryClient.fetch(SettingsQuery.updateBackupTime(backupTime)).first; - - Future updateBackupInterval(int backupInterval) => ferryClient - .fetch(SettingsQuery.updateBackupInterval(backupInterval)) - .first; - - Future updateBackupTTL(int backupTTL) => - ferryClient.fetch(SettingsQuery.updateBackupTTL(backupTTL)).first; } @riverpod diff --git a/lib/src/features/settings/domain/automatic_backup_settings/automatic_backup_settings_dto.dart b/lib/src/features/settings/domain/automatic_backup_settings/automatic_backup_settings_dto.dart new file mode 100644 index 00000000..6ed1f43d --- /dev/null +++ b/lib/src/features/settings/domain/automatic_backup_settings/automatic_backup_settings_dto.dart @@ -0,0 +1,3 @@ +import 'graphql/__generated__/fragment.data.gql.dart'; + +typedef AutomaticBackupSettingsDto = GAutomaticBackupSettingsFragment; diff --git a/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.ast.gql.dart b/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.ast.gql.dart new file mode 100644 index 00000000..4cb1e762 --- /dev/null +++ b/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.ast.gql.dart @@ -0,0 +1,47 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const AutomaticBackupSettingsFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'AutomaticBackupSettingsFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SettingsType'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'backupInterval'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'backupPath'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'backupTTL'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'backupTime'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), +); +const document = + _i1.DocumentNode(definitions: [AutomaticBackupSettingsFragment]); diff --git a/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.data.gql.dart b/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.data.gql.dart new file mode 100644 index 00000000..b3cd80aa --- /dev/null +++ b/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.data.gql.dart @@ -0,0 +1,62 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragment.data.gql.g.dart'; + +abstract class GAutomaticBackupSettingsFragment { + String get G__typename; + int get backupInterval; + String get backupPath; + int get backupTTL; + String get backupTime; + Map toJson(); +} + +abstract class GAutomaticBackupSettingsFragmentData + implements + Built, + GAutomaticBackupSettingsFragment { + GAutomaticBackupSettingsFragmentData._(); + + factory GAutomaticBackupSettingsFragmentData( + [void Function(GAutomaticBackupSettingsFragmentDataBuilder b) + updates]) = _$GAutomaticBackupSettingsFragmentData; + + static void _initializeBuilder( + GAutomaticBackupSettingsFragmentDataBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + static Serializer get serializer => + _$gAutomaticBackupSettingsFragmentDataSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GAutomaticBackupSettingsFragmentData.serializer, + this, + ) as Map); + + static GAutomaticBackupSettingsFragmentData? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GAutomaticBackupSettingsFragmentData.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.data.gql.g.dart b/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.data.gql.g.dart new file mode 100644 index 00000000..1ef2a730 --- /dev/null +++ b/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.data.gql.g.dart @@ -0,0 +1,248 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gAutomaticBackupSettingsFragmentDataSerializer = + new _$GAutomaticBackupSettingsFragmentDataSerializer(); + +class _$GAutomaticBackupSettingsFragmentDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GAutomaticBackupSettingsFragmentData, + _$GAutomaticBackupSettingsFragmentData + ]; + @override + final String wireName = 'GAutomaticBackupSettingsFragmentData'; + + @override + Iterable serialize( + Serializers serializers, GAutomaticBackupSettingsFragmentData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GAutomaticBackupSettingsFragmentData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAutomaticBackupSettingsFragmentDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GAutomaticBackupSettingsFragmentData + extends GAutomaticBackupSettingsFragmentData { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + + factory _$GAutomaticBackupSettingsFragmentData( + [void Function(GAutomaticBackupSettingsFragmentDataBuilder)? + updates]) => + (new GAutomaticBackupSettingsFragmentDataBuilder()..update(updates)) + ._build(); + + _$GAutomaticBackupSettingsFragmentData._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GAutomaticBackupSettingsFragmentData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GAutomaticBackupSettingsFragmentData', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull( + backupPath, r'GAutomaticBackupSettingsFragmentData', 'backupPath'); + BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GAutomaticBackupSettingsFragmentData', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull( + backupTime, r'GAutomaticBackupSettingsFragmentData', 'backupTime'); + } + + @override + GAutomaticBackupSettingsFragmentData rebuild( + void Function(GAutomaticBackupSettingsFragmentDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAutomaticBackupSettingsFragmentDataBuilder toBuilder() => + new GAutomaticBackupSettingsFragmentDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAutomaticBackupSettingsFragmentData && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GAutomaticBackupSettingsFragmentData') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime)) + .toString(); + } +} + +class GAutomaticBackupSettingsFragmentDataBuilder + implements + Builder { + _$GAutomaticBackupSettingsFragmentData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + GAutomaticBackupSettingsFragmentDataBuilder() { + GAutomaticBackupSettingsFragmentData._initializeBuilder(this); + } + + GAutomaticBackupSettingsFragmentDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _$v = null; + } + return this; + } + + @override + void replace(GAutomaticBackupSettingsFragmentData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAutomaticBackupSettingsFragmentData; + } + + @override + void update( + void Function(GAutomaticBackupSettingsFragmentDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAutomaticBackupSettingsFragmentData build() => _build(); + + _$GAutomaticBackupSettingsFragmentData _build() { + final _$result = _$v ?? + new _$GAutomaticBackupSettingsFragmentData._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GAutomaticBackupSettingsFragmentData', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GAutomaticBackupSettingsFragmentData', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull(backupPath, + r'GAutomaticBackupSettingsFragmentData', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GAutomaticBackupSettingsFragmentData', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull(backupTime, + r'GAutomaticBackupSettingsFragmentData', 'backupTime')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.req.gql.dart b/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.req.gql.dart new file mode 100644 index 00000000..026ffc40 --- /dev/null +++ b/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.req.gql.dart @@ -0,0 +1,73 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql/ast.dart' as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'fragment.req.gql.g.dart'; + +abstract class GAutomaticBackupSettingsFragmentReq + implements + Built, + _i1.FragmentRequest<_i2.GAutomaticBackupSettingsFragmentData, + _i3.GAutomaticBackupSettingsFragmentVars> { + GAutomaticBackupSettingsFragmentReq._(); + + factory GAutomaticBackupSettingsFragmentReq( + [void Function(GAutomaticBackupSettingsFragmentReqBuilder b) + updates]) = _$GAutomaticBackupSettingsFragmentReq; + + static void _initializeBuilder( + GAutomaticBackupSettingsFragmentReqBuilder b) => + b + ..document = _i4.document + ..fragmentName = 'AutomaticBackupSettingsFragment'; + + @override + _i3.GAutomaticBackupSettingsFragmentVars get vars; + @override + _i5.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GAutomaticBackupSettingsFragmentData? parseData( + Map json) => + _i2.GAutomaticBackupSettingsFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson( + _i2.GAutomaticBackupSettingsFragmentData data) => + data.toJson(); + + static Serializer get serializer => + _$gAutomaticBackupSettingsFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GAutomaticBackupSettingsFragmentReq.serializer, + this, + ) as Map); + + static GAutomaticBackupSettingsFragmentReq? fromJson( + Map json) => + _i6.serializers.deserializeWith( + GAutomaticBackupSettingsFragmentReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.req.gql.g.dart b/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.req.gql.g.dart new file mode 100644 index 00000000..2e16bdc8 --- /dev/null +++ b/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.req.gql.g.dart @@ -0,0 +1,248 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gAutomaticBackupSettingsFragmentReqSerializer = + new _$GAutomaticBackupSettingsFragmentReqSerializer(); + +class _$GAutomaticBackupSettingsFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GAutomaticBackupSettingsFragmentReq, + _$GAutomaticBackupSettingsFragmentReq + ]; + @override + final String wireName = 'GAutomaticBackupSettingsFragmentReq'; + + @override + Iterable serialize( + Serializers serializers, GAutomaticBackupSettingsFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: + const FullType(_i3.GAutomaticBackupSettingsFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i5.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GAutomaticBackupSettingsFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAutomaticBackupSettingsFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GAutomaticBackupSettingsFragmentVars))! + as _i3.GAutomaticBackupSettingsFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i5.DocumentNode))! + as _i5.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GAutomaticBackupSettingsFragmentReq + extends GAutomaticBackupSettingsFragmentReq { + @override + final _i3.GAutomaticBackupSettingsFragmentVars vars; + @override + final _i5.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GAutomaticBackupSettingsFragmentReq( + [void Function(GAutomaticBackupSettingsFragmentReqBuilder)? + updates]) => + (new GAutomaticBackupSettingsFragmentReqBuilder()..update(updates)) + ._build(); + + _$GAutomaticBackupSettingsFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GAutomaticBackupSettingsFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GAutomaticBackupSettingsFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GAutomaticBackupSettingsFragmentReq', 'idFields'); + } + + @override + GAutomaticBackupSettingsFragmentReq rebuild( + void Function(GAutomaticBackupSettingsFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAutomaticBackupSettingsFragmentReqBuilder toBuilder() => + new GAutomaticBackupSettingsFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAutomaticBackupSettingsFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GAutomaticBackupSettingsFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GAutomaticBackupSettingsFragmentReqBuilder + implements + Builder { + _$GAutomaticBackupSettingsFragmentReq? _$v; + + _i3.GAutomaticBackupSettingsFragmentVarsBuilder? _vars; + _i3.GAutomaticBackupSettingsFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GAutomaticBackupSettingsFragmentVarsBuilder(); + set vars(_i3.GAutomaticBackupSettingsFragmentVarsBuilder? vars) => + _$this._vars = vars; + + _i5.DocumentNode? _document; + _i5.DocumentNode? get document => _$this._document; + set document(_i5.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GAutomaticBackupSettingsFragmentReqBuilder() { + GAutomaticBackupSettingsFragmentReq._initializeBuilder(this); + } + + GAutomaticBackupSettingsFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GAutomaticBackupSettingsFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAutomaticBackupSettingsFragmentReq; + } + + @override + void update( + void Function(GAutomaticBackupSettingsFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAutomaticBackupSettingsFragmentReq build() => _build(); + + _$GAutomaticBackupSettingsFragmentReq _build() { + _$GAutomaticBackupSettingsFragmentReq _$result; + try { + _$result = _$v ?? + new _$GAutomaticBackupSettingsFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GAutomaticBackupSettingsFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull(idFields, + r'GAutomaticBackupSettingsFragmentReq', 'idFields')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GAutomaticBackupSettingsFragmentReq', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.var.gql.dart b/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.var.gql.dart new file mode 100644 index 00000000..7212d60a --- /dev/null +++ b/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.var.gql.dart @@ -0,0 +1,36 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragment.var.gql.g.dart'; + +abstract class GAutomaticBackupSettingsFragmentVars + implements + Built { + GAutomaticBackupSettingsFragmentVars._(); + + factory GAutomaticBackupSettingsFragmentVars( + [void Function(GAutomaticBackupSettingsFragmentVarsBuilder b) + updates]) = _$GAutomaticBackupSettingsFragmentVars; + + static Serializer get serializer => + _$gAutomaticBackupSettingsFragmentVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GAutomaticBackupSettingsFragmentVars.serializer, + this, + ) as Map); + + static GAutomaticBackupSettingsFragmentVars? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GAutomaticBackupSettingsFragmentVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.var.gql.g.dart b/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.var.gql.g.dart new file mode 100644 index 00000000..ba1d22e0 --- /dev/null +++ b/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.var.gql.g.dart @@ -0,0 +1,105 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gAutomaticBackupSettingsFragmentVarsSerializer = + new _$GAutomaticBackupSettingsFragmentVarsSerializer(); + +class _$GAutomaticBackupSettingsFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GAutomaticBackupSettingsFragmentVars, + _$GAutomaticBackupSettingsFragmentVars + ]; + @override + final String wireName = 'GAutomaticBackupSettingsFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GAutomaticBackupSettingsFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GAutomaticBackupSettingsFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GAutomaticBackupSettingsFragmentVarsBuilder().build(); + } +} + +class _$GAutomaticBackupSettingsFragmentVars + extends GAutomaticBackupSettingsFragmentVars { + factory _$GAutomaticBackupSettingsFragmentVars( + [void Function(GAutomaticBackupSettingsFragmentVarsBuilder)? + updates]) => + (new GAutomaticBackupSettingsFragmentVarsBuilder()..update(updates)) + ._build(); + + _$GAutomaticBackupSettingsFragmentVars._() : super._(); + + @override + GAutomaticBackupSettingsFragmentVars rebuild( + void Function(GAutomaticBackupSettingsFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAutomaticBackupSettingsFragmentVarsBuilder toBuilder() => + new GAutomaticBackupSettingsFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAutomaticBackupSettingsFragmentVars; + } + + @override + int get hashCode { + return 729542752; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GAutomaticBackupSettingsFragmentVars') + .toString(); + } +} + +class GAutomaticBackupSettingsFragmentVarsBuilder + implements + Builder { + _$GAutomaticBackupSettingsFragmentVars? _$v; + + GAutomaticBackupSettingsFragmentVarsBuilder(); + + @override + void replace(GAutomaticBackupSettingsFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAutomaticBackupSettingsFragmentVars; + } + + @override + void update( + void Function(GAutomaticBackupSettingsFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAutomaticBackupSettingsFragmentVars build() => _build(); + + _$GAutomaticBackupSettingsFragmentVars _build() { + final _$result = _$v ?? new _$GAutomaticBackupSettingsFragmentVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/automatic_backup_settings/graphql/fragment.graphql b/lib/src/features/settings/domain/automatic_backup_settings/graphql/fragment.graphql new file mode 100644 index 00000000..88991209 --- /dev/null +++ b/lib/src/features/settings/domain/automatic_backup_settings/graphql/fragment.graphql @@ -0,0 +1,7 @@ + +fragment AutomaticBackupSettingsFragment on SettingsType { + backupInterval + backupPath + backupTTL + backupTime +} diff --git a/lib/src/features/settings/domain/automatic_backup_settings_dto.dart b/lib/src/features/settings/domain/automatic_backup_settings_dto.dart deleted file mode 100644 index e247aa4f..00000000 --- a/lib/src/features/settings/domain/automatic_backup_settings_dto.dart +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:freezed_annotation/freezed_annotation.dart'; - -part 'automatic_backup_settings_dto.freezed.dart'; - -@freezed -class AutomaticBackupSettingsDto with _$AutomaticBackupSettingsDto { - factory AutomaticBackupSettingsDto({ - int? backupInterval, - String? backupPath, - int? backupTTL, - TimeOfDay? backupTime, - }) = _AutomaticBackupSettingsDto; -} diff --git a/lib/src/features/settings/domain/automatic_backup_settings_dto.freezed.dart b/lib/src/features/settings/domain/automatic_backup_settings_dto.freezed.dart deleted file mode 100644 index 21ee2857..00000000 --- a/lib/src/features/settings/domain/automatic_backup_settings_dto.freezed.dart +++ /dev/null @@ -1,205 +0,0 @@ -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// 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 'automatic_backup_settings_dto.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -T _$identity(T value) => value; - -final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); - -/// @nodoc -mixin _$AutomaticBackupSettingsDto { - int? get backupInterval => throw _privateConstructorUsedError; - String? get backupPath => throw _privateConstructorUsedError; - int? get backupTTL => throw _privateConstructorUsedError; - TimeOfDay? get backupTime => throw _privateConstructorUsedError; - - @JsonKey(ignore: true) - $AutomaticBackupSettingsDtoCopyWith - get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $AutomaticBackupSettingsDtoCopyWith<$Res> { - factory $AutomaticBackupSettingsDtoCopyWith(AutomaticBackupSettingsDto value, - $Res Function(AutomaticBackupSettingsDto) then) = - _$AutomaticBackupSettingsDtoCopyWithImpl<$Res, - AutomaticBackupSettingsDto>; - @useResult - $Res call( - {int? backupInterval, - String? backupPath, - int? backupTTL, - TimeOfDay? backupTime}); -} - -/// @nodoc -class _$AutomaticBackupSettingsDtoCopyWithImpl<$Res, - $Val extends AutomaticBackupSettingsDto> - implements $AutomaticBackupSettingsDtoCopyWith<$Res> { - _$AutomaticBackupSettingsDtoCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? backupInterval = freezed, - Object? backupPath = freezed, - Object? backupTTL = freezed, - Object? backupTime = freezed, - }) { - return _then(_value.copyWith( - backupInterval: freezed == backupInterval - ? _value.backupInterval - : backupInterval // ignore: cast_nullable_to_non_nullable - as int?, - backupPath: freezed == backupPath - ? _value.backupPath - : backupPath // ignore: cast_nullable_to_non_nullable - as String?, - backupTTL: freezed == backupTTL - ? _value.backupTTL - : backupTTL // ignore: cast_nullable_to_non_nullable - as int?, - backupTime: freezed == backupTime - ? _value.backupTime - : backupTime // ignore: cast_nullable_to_non_nullable - as TimeOfDay?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$AutomaticBackupSettingsDtoImplCopyWith<$Res> - implements $AutomaticBackupSettingsDtoCopyWith<$Res> { - factory _$$AutomaticBackupSettingsDtoImplCopyWith( - _$AutomaticBackupSettingsDtoImpl value, - $Res Function(_$AutomaticBackupSettingsDtoImpl) then) = - __$$AutomaticBackupSettingsDtoImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int? backupInterval, - String? backupPath, - int? backupTTL, - TimeOfDay? backupTime}); -} - -/// @nodoc -class __$$AutomaticBackupSettingsDtoImplCopyWithImpl<$Res> - extends _$AutomaticBackupSettingsDtoCopyWithImpl<$Res, - _$AutomaticBackupSettingsDtoImpl> - implements _$$AutomaticBackupSettingsDtoImplCopyWith<$Res> { - __$$AutomaticBackupSettingsDtoImplCopyWithImpl( - _$AutomaticBackupSettingsDtoImpl _value, - $Res Function(_$AutomaticBackupSettingsDtoImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? backupInterval = freezed, - Object? backupPath = freezed, - Object? backupTTL = freezed, - Object? backupTime = freezed, - }) { - return _then(_$AutomaticBackupSettingsDtoImpl( - backupInterval: freezed == backupInterval - ? _value.backupInterval - : backupInterval // ignore: cast_nullable_to_non_nullable - as int?, - backupPath: freezed == backupPath - ? _value.backupPath - : backupPath // ignore: cast_nullable_to_non_nullable - as String?, - backupTTL: freezed == backupTTL - ? _value.backupTTL - : backupTTL // ignore: cast_nullable_to_non_nullable - as int?, - backupTime: freezed == backupTime - ? _value.backupTime - : backupTime // ignore: cast_nullable_to_non_nullable - as TimeOfDay?, - )); - } -} - -/// @nodoc - -class _$AutomaticBackupSettingsDtoImpl implements _AutomaticBackupSettingsDto { - _$AutomaticBackupSettingsDtoImpl( - {this.backupInterval, this.backupPath, this.backupTTL, this.backupTime}); - - @override - final int? backupInterval; - @override - final String? backupPath; - @override - final int? backupTTL; - @override - final TimeOfDay? backupTime; - - @override - String toString() { - return 'AutomaticBackupSettingsDto(backupInterval: $backupInterval, backupPath: $backupPath, backupTTL: $backupTTL, backupTime: $backupTime)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$AutomaticBackupSettingsDtoImpl && - (identical(other.backupInterval, backupInterval) || - other.backupInterval == backupInterval) && - (identical(other.backupPath, backupPath) || - other.backupPath == backupPath) && - (identical(other.backupTTL, backupTTL) || - other.backupTTL == backupTTL) && - (identical(other.backupTime, backupTime) || - other.backupTime == backupTime)); - } - - @override - int get hashCode => Object.hash( - runtimeType, backupInterval, backupPath, backupTTL, backupTime); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$AutomaticBackupSettingsDtoImplCopyWith<_$AutomaticBackupSettingsDtoImpl> - get copyWith => __$$AutomaticBackupSettingsDtoImplCopyWithImpl< - _$AutomaticBackupSettingsDtoImpl>(this, _$identity); -} - -abstract class _AutomaticBackupSettingsDto - implements AutomaticBackupSettingsDto { - factory _AutomaticBackupSettingsDto( - {final int? backupInterval, - final String? backupPath, - final int? backupTTL, - final TimeOfDay? backupTime}) = _$AutomaticBackupSettingsDtoImpl; - - @override - int? get backupInterval; - @override - String? get backupPath; - @override - int? get backupTTL; - @override - TimeOfDay? get backupTime; - @override - @JsonKey(ignore: true) - _$$AutomaticBackupSettingsDtoImplCopyWith<_$AutomaticBackupSettingsDtoImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/lib/src/features/settings/domain/browse/browse_settings.dart b/lib/src/features/settings/domain/browse/browse_settings.dart new file mode 100644 index 00000000..bdee7b57 --- /dev/null +++ b/lib/src/features/settings/domain/browse/browse_settings.dart @@ -0,0 +1,3 @@ +import 'graphql/__generated__/fragment.data.gql.dart'; + +typedef BrowseSettingsDto = GBrowserSettingsFragment; diff --git a/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart b/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart new file mode 100644 index 00000000..f3abecc1 --- /dev/null +++ b/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart @@ -0,0 +1,39 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const BrowserSettingsFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'BrowserSettingsFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SettingsType'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'extensionRepos'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'maxSourcesInParallel'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'localSourcePath'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), +); +const document = _i1.DocumentNode(definitions: [BrowserSettingsFragment]); diff --git a/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.data.gql.dart b/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.data.gql.dart new file mode 100644 index 00000000..96fc93a0 --- /dev/null +++ b/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.data.gql.dart @@ -0,0 +1,58 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragment.data.gql.g.dart'; + +abstract class GBrowserSettingsFragment { + String get G__typename; + BuiltList get extensionRepos; + int get maxSourcesInParallel; + String get localSourcePath; + Map toJson(); +} + +abstract class GBrowserSettingsFragmentData + implements + Built, + GBrowserSettingsFragment { + GBrowserSettingsFragmentData._(); + + factory GBrowserSettingsFragmentData( + [void Function(GBrowserSettingsFragmentDataBuilder b) updates]) = + _$GBrowserSettingsFragmentData; + + static void _initializeBuilder(GBrowserSettingsFragmentDataBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + static Serializer get serializer => + _$gBrowserSettingsFragmentDataSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GBrowserSettingsFragmentData.serializer, + this, + ) as Map); + + static GBrowserSettingsFragmentData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GBrowserSettingsFragmentData.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.data.gql.g.dart b/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.data.gql.g.dart new file mode 100644 index 00000000..5c93fa5c --- /dev/null +++ b/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.data.gql.g.dart @@ -0,0 +1,242 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gBrowserSettingsFragmentDataSerializer = + new _$GBrowserSettingsFragmentDataSerializer(); + +class _$GBrowserSettingsFragmentDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GBrowserSettingsFragmentData, + _$GBrowserSettingsFragmentData + ]; + @override + final String wireName = 'GBrowserSettingsFragmentData'; + + @override + Iterable serialize( + Serializers serializers, GBrowserSettingsFragmentData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GBrowserSettingsFragmentData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GBrowserSettingsFragmentDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GBrowserSettingsFragmentData extends GBrowserSettingsFragmentData { + @override + final String G__typename; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + + factory _$GBrowserSettingsFragmentData( + [void Function(GBrowserSettingsFragmentDataBuilder)? updates]) => + (new GBrowserSettingsFragmentDataBuilder()..update(updates))._build(); + + _$GBrowserSettingsFragmentData._( + {required this.G__typename, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GBrowserSettingsFragmentData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + extensionRepos, r'GBrowserSettingsFragmentData', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, + r'GBrowserSettingsFragmentData', 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull( + localSourcePath, r'GBrowserSettingsFragmentData', 'localSourcePath'); + } + + @override + GBrowserSettingsFragmentData rebuild( + void Function(GBrowserSettingsFragmentDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GBrowserSettingsFragmentDataBuilder toBuilder() => + new GBrowserSettingsFragmentDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GBrowserSettingsFragmentData && + G__typename == other.G__typename && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GBrowserSettingsFragmentData') + ..add('G__typename', G__typename) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath)) + .toString(); + } +} + +class GBrowserSettingsFragmentDataBuilder + implements + Builder { + _$GBrowserSettingsFragmentData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + GBrowserSettingsFragmentDataBuilder() { + GBrowserSettingsFragmentData._initializeBuilder(this); + } + + GBrowserSettingsFragmentDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _$v = null; + } + return this; + } + + @override + void replace(GBrowserSettingsFragmentData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GBrowserSettingsFragmentData; + } + + @override + void update(void Function(GBrowserSettingsFragmentDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GBrowserSettingsFragmentData build() => _build(); + + _$GBrowserSettingsFragmentData _build() { + _$GBrowserSettingsFragmentData _$result; + try { + _$result = _$v ?? + new _$GBrowserSettingsFragmentData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GBrowserSettingsFragmentData', 'G__typename'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GBrowserSettingsFragmentData', + 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GBrowserSettingsFragmentData', + 'localSourcePath')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GBrowserSettingsFragmentData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.req.gql.dart b/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.req.gql.dart new file mode 100644 index 00000000..aafa8fec --- /dev/null +++ b/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.req.gql.dart @@ -0,0 +1,67 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql/ast.dart' as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'fragment.req.gql.g.dart'; + +abstract class GBrowserSettingsFragmentReq + implements + Built, + _i1.FragmentRequest<_i2.GBrowserSettingsFragmentData, + _i3.GBrowserSettingsFragmentVars> { + GBrowserSettingsFragmentReq._(); + + factory GBrowserSettingsFragmentReq( + [void Function(GBrowserSettingsFragmentReqBuilder b) updates]) = + _$GBrowserSettingsFragmentReq; + + static void _initializeBuilder(GBrowserSettingsFragmentReqBuilder b) => b + ..document = _i4.document + ..fragmentName = 'BrowserSettingsFragment'; + + @override + _i3.GBrowserSettingsFragmentVars get vars; + @override + _i5.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GBrowserSettingsFragmentData? parseData(Map json) => + _i2.GBrowserSettingsFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GBrowserSettingsFragmentData data) => + data.toJson(); + + static Serializer get serializer => + _$gBrowserSettingsFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GBrowserSettingsFragmentReq.serializer, + this, + ) as Map); + + static GBrowserSettingsFragmentReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GBrowserSettingsFragmentReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.req.gql.g.dart b/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.req.gql.g.dart new file mode 100644 index 00000000..a7a04cd9 --- /dev/null +++ b/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.req.gql.g.dart @@ -0,0 +1,241 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gBrowserSettingsFragmentReqSerializer = + new _$GBrowserSettingsFragmentReqSerializer(); + +class _$GBrowserSettingsFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GBrowserSettingsFragmentReq, + _$GBrowserSettingsFragmentReq + ]; + @override + final String wireName = 'GBrowserSettingsFragmentReq'; + + @override + Iterable serialize( + Serializers serializers, GBrowserSettingsFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GBrowserSettingsFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i5.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GBrowserSettingsFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GBrowserSettingsFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GBrowserSettingsFragmentVars))! + as _i3.GBrowserSettingsFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i5.DocumentNode))! + as _i5.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GBrowserSettingsFragmentReq extends GBrowserSettingsFragmentReq { + @override + final _i3.GBrowserSettingsFragmentVars vars; + @override + final _i5.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GBrowserSettingsFragmentReq( + [void Function(GBrowserSettingsFragmentReqBuilder)? updates]) => + (new GBrowserSettingsFragmentReqBuilder()..update(updates))._build(); + + _$GBrowserSettingsFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GBrowserSettingsFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GBrowserSettingsFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GBrowserSettingsFragmentReq', 'idFields'); + } + + @override + GBrowserSettingsFragmentReq rebuild( + void Function(GBrowserSettingsFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GBrowserSettingsFragmentReqBuilder toBuilder() => + new GBrowserSettingsFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GBrowserSettingsFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GBrowserSettingsFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GBrowserSettingsFragmentReqBuilder + implements + Builder { + _$GBrowserSettingsFragmentReq? _$v; + + _i3.GBrowserSettingsFragmentVarsBuilder? _vars; + _i3.GBrowserSettingsFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GBrowserSettingsFragmentVarsBuilder(); + set vars(_i3.GBrowserSettingsFragmentVarsBuilder? vars) => + _$this._vars = vars; + + _i5.DocumentNode? _document; + _i5.DocumentNode? get document => _$this._document; + set document(_i5.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GBrowserSettingsFragmentReqBuilder() { + GBrowserSettingsFragmentReq._initializeBuilder(this); + } + + GBrowserSettingsFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GBrowserSettingsFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GBrowserSettingsFragmentReq; + } + + @override + void update(void Function(GBrowserSettingsFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GBrowserSettingsFragmentReq build() => _build(); + + _$GBrowserSettingsFragmentReq _build() { + _$GBrowserSettingsFragmentReq _$result; + try { + _$result = _$v ?? + new _$GBrowserSettingsFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GBrowserSettingsFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GBrowserSettingsFragmentReq', 'idFields')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GBrowserSettingsFragmentReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.var.gql.dart b/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.var.gql.dart new file mode 100644 index 00000000..1e7afd7c --- /dev/null +++ b/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.var.gql.dart @@ -0,0 +1,35 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragment.var.gql.g.dart'; + +abstract class GBrowserSettingsFragmentVars + implements + Built { + GBrowserSettingsFragmentVars._(); + + factory GBrowserSettingsFragmentVars( + [void Function(GBrowserSettingsFragmentVarsBuilder b) updates]) = + _$GBrowserSettingsFragmentVars; + + static Serializer get serializer => + _$gBrowserSettingsFragmentVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GBrowserSettingsFragmentVars.serializer, + this, + ) as Map); + + static GBrowserSettingsFragmentVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GBrowserSettingsFragmentVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.var.gql.g.dart b/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.var.gql.g.dart new file mode 100644 index 00000000..dc878e40 --- /dev/null +++ b/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.var.gql.g.dart @@ -0,0 +1,101 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gBrowserSettingsFragmentVarsSerializer = + new _$GBrowserSettingsFragmentVarsSerializer(); + +class _$GBrowserSettingsFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GBrowserSettingsFragmentVars, + _$GBrowserSettingsFragmentVars + ]; + @override + final String wireName = 'GBrowserSettingsFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GBrowserSettingsFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GBrowserSettingsFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GBrowserSettingsFragmentVarsBuilder().build(); + } +} + +class _$GBrowserSettingsFragmentVars extends GBrowserSettingsFragmentVars { + factory _$GBrowserSettingsFragmentVars( + [void Function(GBrowserSettingsFragmentVarsBuilder)? updates]) => + (new GBrowserSettingsFragmentVarsBuilder()..update(updates))._build(); + + _$GBrowserSettingsFragmentVars._() : super._(); + + @override + GBrowserSettingsFragmentVars rebuild( + void Function(GBrowserSettingsFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GBrowserSettingsFragmentVarsBuilder toBuilder() => + new GBrowserSettingsFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GBrowserSettingsFragmentVars; + } + + @override + int get hashCode { + return 761217899; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GBrowserSettingsFragmentVars') + .toString(); + } +} + +class GBrowserSettingsFragmentVarsBuilder + implements + Builder { + _$GBrowserSettingsFragmentVars? _$v; + + GBrowserSettingsFragmentVarsBuilder(); + + @override + void replace(GBrowserSettingsFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GBrowserSettingsFragmentVars; + } + + @override + void update(void Function(GBrowserSettingsFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GBrowserSettingsFragmentVars build() => _build(); + + _$GBrowserSettingsFragmentVars _build() { + final _$result = _$v ?? new _$GBrowserSettingsFragmentVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/browse/graphql/fragment.graphql b/lib/src/features/settings/domain/browse/graphql/fragment.graphql new file mode 100644 index 00000000..91514cb0 --- /dev/null +++ b/lib/src/features/settings/domain/browse/graphql/fragment.graphql @@ -0,0 +1,6 @@ + +fragment BrowserSettingsFragment on SettingsType { + extensionRepos + maxSourcesInParallel + localSourcePath +} diff --git a/lib/src/features/settings/domain/cloud_flare/cloud_flare.dart b/lib/src/features/settings/domain/cloud_flare/cloud_flare.dart new file mode 100644 index 00000000..d11e078d --- /dev/null +++ b/lib/src/features/settings/domain/cloud_flare/cloud_flare.dart @@ -0,0 +1,3 @@ +import 'graphql/__generated__/fragment.data.gql.dart'; + +typedef CloudFlareDto = GCloudFlareBypassFragment; diff --git a/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart b/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart new file mode 100644 index 00000000..18332ba8 --- /dev/null +++ b/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart @@ -0,0 +1,53 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const CloudFlareBypassFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'CloudFlareBypassFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SettingsType'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'flareSolverrEnabled'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'flareSolverrSessionName'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'flareSolverrSessionTtl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'flareSolverrTimeout'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'flareSolverrUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), +); +const document = _i1.DocumentNode(definitions: [CloudFlareBypassFragment]); diff --git a/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.data.gql.dart b/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.data.gql.dart new file mode 100644 index 00000000..ddcd6b26 --- /dev/null +++ b/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.data.gql.dart @@ -0,0 +1,63 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragment.data.gql.g.dart'; + +abstract class GCloudFlareBypassFragment { + String get G__typename; + bool get flareSolverrEnabled; + String get flareSolverrSessionName; + int get flareSolverrSessionTtl; + int get flareSolverrTimeout; + String get flareSolverrUrl; + Map toJson(); +} + +abstract class GCloudFlareBypassFragmentData + implements + Built, + GCloudFlareBypassFragment { + GCloudFlareBypassFragmentData._(); + + factory GCloudFlareBypassFragmentData( + [void Function(GCloudFlareBypassFragmentDataBuilder b) updates]) = + _$GCloudFlareBypassFragmentData; + + static void _initializeBuilder(GCloudFlareBypassFragmentDataBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + static Serializer get serializer => + _$gCloudFlareBypassFragmentDataSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GCloudFlareBypassFragmentData.serializer, + this, + ) as Map); + + static GCloudFlareBypassFragmentData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GCloudFlareBypassFragmentData.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.data.gql.g.dart b/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.data.gql.g.dart new file mode 100644 index 00000000..af7568f6 --- /dev/null +++ b/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.data.gql.g.dart @@ -0,0 +1,272 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gCloudFlareBypassFragmentDataSerializer = + new _$GCloudFlareBypassFragmentDataSerializer(); + +class _$GCloudFlareBypassFragmentDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GCloudFlareBypassFragmentData, + _$GCloudFlareBypassFragmentData + ]; + @override + final String wireName = 'GCloudFlareBypassFragmentData'; + + @override + Iterable serialize( + Serializers serializers, GCloudFlareBypassFragmentData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GCloudFlareBypassFragmentData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GCloudFlareBypassFragmentDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GCloudFlareBypassFragmentData extends GCloudFlareBypassFragmentData { + @override + final String G__typename; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + + factory _$GCloudFlareBypassFragmentData( + [void Function(GCloudFlareBypassFragmentDataBuilder)? updates]) => + (new GCloudFlareBypassFragmentDataBuilder()..update(updates))._build(); + + _$GCloudFlareBypassFragmentData._( + {required this.G__typename, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GCloudFlareBypassFragmentData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, + r'GCloudFlareBypassFragmentData', 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull(flareSolverrSessionName, + r'GCloudFlareBypassFragmentData', 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, + r'GCloudFlareBypassFragmentData', 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, + r'GCloudFlareBypassFragmentData', 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, r'GCloudFlareBypassFragmentData', 'flareSolverrUrl'); + } + + @override + GCloudFlareBypassFragmentData rebuild( + void Function(GCloudFlareBypassFragmentDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCloudFlareBypassFragmentDataBuilder toBuilder() => + new GCloudFlareBypassFragmentDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCloudFlareBypassFragmentData && + G__typename == other.G__typename && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GCloudFlareBypassFragmentData') + ..add('G__typename', G__typename) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl)) + .toString(); + } +} + +class GCloudFlareBypassFragmentDataBuilder + implements + Builder { + _$GCloudFlareBypassFragmentData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + GCloudFlareBypassFragmentDataBuilder() { + GCloudFlareBypassFragmentData._initializeBuilder(this); + } + + GCloudFlareBypassFragmentDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _$v = null; + } + return this; + } + + @override + void replace(GCloudFlareBypassFragmentData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCloudFlareBypassFragmentData; + } + + @override + void update(void Function(GCloudFlareBypassFragmentDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCloudFlareBypassFragmentData build() => _build(); + + _$GCloudFlareBypassFragmentData _build() { + final _$result = _$v ?? + new _$GCloudFlareBypassFragmentData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GCloudFlareBypassFragmentData', 'G__typename'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, r'GCloudFlareBypassFragmentData', 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GCloudFlareBypassFragmentData', + 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GCloudFlareBypassFragmentData', + 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, r'GCloudFlareBypassFragmentData', 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, r'GCloudFlareBypassFragmentData', 'flareSolverrUrl')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.req.gql.dart b/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.req.gql.dart new file mode 100644 index 00000000..39f26157 --- /dev/null +++ b/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.req.gql.dart @@ -0,0 +1,68 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql/ast.dart' as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'fragment.req.gql.g.dart'; + +abstract class GCloudFlareBypassFragmentReq + implements + Built, + _i1.FragmentRequest<_i2.GCloudFlareBypassFragmentData, + _i3.GCloudFlareBypassFragmentVars> { + GCloudFlareBypassFragmentReq._(); + + factory GCloudFlareBypassFragmentReq( + [void Function(GCloudFlareBypassFragmentReqBuilder b) updates]) = + _$GCloudFlareBypassFragmentReq; + + static void _initializeBuilder(GCloudFlareBypassFragmentReqBuilder b) => b + ..document = _i4.document + ..fragmentName = 'CloudFlareBypassFragment'; + + @override + _i3.GCloudFlareBypassFragmentVars get vars; + @override + _i5.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GCloudFlareBypassFragmentData? parseData(Map json) => + _i2.GCloudFlareBypassFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GCloudFlareBypassFragmentData data) => + data.toJson(); + + static Serializer get serializer => + _$gCloudFlareBypassFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GCloudFlareBypassFragmentReq.serializer, + this, + ) as Map); + + static GCloudFlareBypassFragmentReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GCloudFlareBypassFragmentReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.req.gql.g.dart b/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.req.gql.g.dart new file mode 100644 index 00000000..14279316 --- /dev/null +++ b/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.req.gql.g.dart @@ -0,0 +1,241 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gCloudFlareBypassFragmentReqSerializer = + new _$GCloudFlareBypassFragmentReqSerializer(); + +class _$GCloudFlareBypassFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GCloudFlareBypassFragmentReq, + _$GCloudFlareBypassFragmentReq + ]; + @override + final String wireName = 'GCloudFlareBypassFragmentReq'; + + @override + Iterable serialize( + Serializers serializers, GCloudFlareBypassFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GCloudFlareBypassFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i5.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GCloudFlareBypassFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GCloudFlareBypassFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GCloudFlareBypassFragmentVars))! + as _i3.GCloudFlareBypassFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i5.DocumentNode))! + as _i5.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GCloudFlareBypassFragmentReq extends GCloudFlareBypassFragmentReq { + @override + final _i3.GCloudFlareBypassFragmentVars vars; + @override + final _i5.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GCloudFlareBypassFragmentReq( + [void Function(GCloudFlareBypassFragmentReqBuilder)? updates]) => + (new GCloudFlareBypassFragmentReqBuilder()..update(updates))._build(); + + _$GCloudFlareBypassFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GCloudFlareBypassFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GCloudFlareBypassFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GCloudFlareBypassFragmentReq', 'idFields'); + } + + @override + GCloudFlareBypassFragmentReq rebuild( + void Function(GCloudFlareBypassFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCloudFlareBypassFragmentReqBuilder toBuilder() => + new GCloudFlareBypassFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCloudFlareBypassFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GCloudFlareBypassFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GCloudFlareBypassFragmentReqBuilder + implements + Builder { + _$GCloudFlareBypassFragmentReq? _$v; + + _i3.GCloudFlareBypassFragmentVarsBuilder? _vars; + _i3.GCloudFlareBypassFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GCloudFlareBypassFragmentVarsBuilder(); + set vars(_i3.GCloudFlareBypassFragmentVarsBuilder? vars) => + _$this._vars = vars; + + _i5.DocumentNode? _document; + _i5.DocumentNode? get document => _$this._document; + set document(_i5.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GCloudFlareBypassFragmentReqBuilder() { + GCloudFlareBypassFragmentReq._initializeBuilder(this); + } + + GCloudFlareBypassFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GCloudFlareBypassFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCloudFlareBypassFragmentReq; + } + + @override + void update(void Function(GCloudFlareBypassFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCloudFlareBypassFragmentReq build() => _build(); + + _$GCloudFlareBypassFragmentReq _build() { + _$GCloudFlareBypassFragmentReq _$result; + try { + _$result = _$v ?? + new _$GCloudFlareBypassFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GCloudFlareBypassFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GCloudFlareBypassFragmentReq', 'idFields')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GCloudFlareBypassFragmentReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.var.gql.dart b/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.var.gql.dart new file mode 100644 index 00000000..d49e2929 --- /dev/null +++ b/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.var.gql.dart @@ -0,0 +1,35 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragment.var.gql.g.dart'; + +abstract class GCloudFlareBypassFragmentVars + implements + Built { + GCloudFlareBypassFragmentVars._(); + + factory GCloudFlareBypassFragmentVars( + [void Function(GCloudFlareBypassFragmentVarsBuilder b) updates]) = + _$GCloudFlareBypassFragmentVars; + + static Serializer get serializer => + _$gCloudFlareBypassFragmentVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GCloudFlareBypassFragmentVars.serializer, + this, + ) as Map); + + static GCloudFlareBypassFragmentVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GCloudFlareBypassFragmentVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.var.gql.g.dart b/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.var.gql.g.dart new file mode 100644 index 00000000..cb1df0c6 --- /dev/null +++ b/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.var.gql.g.dart @@ -0,0 +1,101 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gCloudFlareBypassFragmentVarsSerializer = + new _$GCloudFlareBypassFragmentVarsSerializer(); + +class _$GCloudFlareBypassFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GCloudFlareBypassFragmentVars, + _$GCloudFlareBypassFragmentVars + ]; + @override + final String wireName = 'GCloudFlareBypassFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GCloudFlareBypassFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GCloudFlareBypassFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GCloudFlareBypassFragmentVarsBuilder().build(); + } +} + +class _$GCloudFlareBypassFragmentVars extends GCloudFlareBypassFragmentVars { + factory _$GCloudFlareBypassFragmentVars( + [void Function(GCloudFlareBypassFragmentVarsBuilder)? updates]) => + (new GCloudFlareBypassFragmentVarsBuilder()..update(updates))._build(); + + _$GCloudFlareBypassFragmentVars._() : super._(); + + @override + GCloudFlareBypassFragmentVars rebuild( + void Function(GCloudFlareBypassFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCloudFlareBypassFragmentVarsBuilder toBuilder() => + new GCloudFlareBypassFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCloudFlareBypassFragmentVars; + } + + @override + int get hashCode { + return 1031671732; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GCloudFlareBypassFragmentVars') + .toString(); + } +} + +class GCloudFlareBypassFragmentVarsBuilder + implements + Builder { + _$GCloudFlareBypassFragmentVars? _$v; + + GCloudFlareBypassFragmentVarsBuilder(); + + @override + void replace(GCloudFlareBypassFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCloudFlareBypassFragmentVars; + } + + @override + void update(void Function(GCloudFlareBypassFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCloudFlareBypassFragmentVars build() => _build(); + + _$GCloudFlareBypassFragmentVars _build() { + final _$result = _$v ?? new _$GCloudFlareBypassFragmentVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/cloud_flare/graphql/fragment.graphql b/lib/src/features/settings/domain/cloud_flare/graphql/fragment.graphql new file mode 100644 index 00000000..9e250c62 --- /dev/null +++ b/lib/src/features/settings/domain/cloud_flare/graphql/fragment.graphql @@ -0,0 +1,8 @@ + +fragment CloudFlareBypassFragment on SettingsType { + flareSolverrEnabled + flareSolverrSessionName + flareSolverrSessionTtl + flareSolverrTimeout + flareSolverrUrl +} diff --git a/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart b/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart new file mode 100644 index 00000000..fdfaf24e --- /dev/null +++ b/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart @@ -0,0 +1,39 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const MiscSettingsFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'MiscSettingsFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SettingsType'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'debugLogsEnabled'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'systemTrayEnabled'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'gqlDebugLogsEnabled'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), +); +const document = _i1.DocumentNode(definitions: [MiscSettingsFragment]); diff --git a/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.data.gql.dart b/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.data.gql.dart new file mode 100644 index 00000000..14c2b532 --- /dev/null +++ b/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.data.gql.dart @@ -0,0 +1,56 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragment.data.gql.g.dart'; + +abstract class GMiscSettingsFragment { + String get G__typename; + bool get debugLogsEnabled; + bool get systemTrayEnabled; + bool get gqlDebugLogsEnabled; + Map toJson(); +} + +abstract class GMiscSettingsFragmentData + implements + Built, + GMiscSettingsFragment { + GMiscSettingsFragmentData._(); + + factory GMiscSettingsFragmentData( + [void Function(GMiscSettingsFragmentDataBuilder b) updates]) = + _$GMiscSettingsFragmentData; + + static void _initializeBuilder(GMiscSettingsFragmentDataBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + static Serializer get serializer => + _$gMiscSettingsFragmentDataSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GMiscSettingsFragmentData.serializer, + this, + ) as Map); + + static GMiscSettingsFragmentData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GMiscSettingsFragmentData.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.data.gql.g.dart b/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.data.gql.g.dart new file mode 100644 index 00000000..3d8c2f8a --- /dev/null +++ b/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.data.gql.g.dart @@ -0,0 +1,226 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gMiscSettingsFragmentDataSerializer = + new _$GMiscSettingsFragmentDataSerializer(); + +class _$GMiscSettingsFragmentDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GMiscSettingsFragmentData, + _$GMiscSettingsFragmentData + ]; + @override + final String wireName = 'GMiscSettingsFragmentData'; + + @override + Iterable serialize( + Serializers serializers, GMiscSettingsFragmentData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GMiscSettingsFragmentData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMiscSettingsFragmentDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GMiscSettingsFragmentData extends GMiscSettingsFragmentData { + @override + final String G__typename; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + + factory _$GMiscSettingsFragmentData( + [void Function(GMiscSettingsFragmentDataBuilder)? updates]) => + (new GMiscSettingsFragmentDataBuilder()..update(updates))._build(); + + _$GMiscSettingsFragmentData._( + {required this.G__typename, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GMiscSettingsFragmentData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, r'GMiscSettingsFragmentData', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, r'GMiscSettingsFragmentData', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, + r'GMiscSettingsFragmentData', 'gqlDebugLogsEnabled'); + } + + @override + GMiscSettingsFragmentData rebuild( + void Function(GMiscSettingsFragmentDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GMiscSettingsFragmentDataBuilder toBuilder() => + new GMiscSettingsFragmentDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMiscSettingsFragmentData && + G__typename == other.G__typename && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GMiscSettingsFragmentData') + ..add('G__typename', G__typename) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled)) + .toString(); + } +} + +class GMiscSettingsFragmentDataBuilder + implements + Builder { + _$GMiscSettingsFragmentData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + GMiscSettingsFragmentDataBuilder() { + GMiscSettingsFragmentData._initializeBuilder(this); + } + + GMiscSettingsFragmentDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _$v = null; + } + return this; + } + + @override + void replace(GMiscSettingsFragmentData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMiscSettingsFragmentData; + } + + @override + void update(void Function(GMiscSettingsFragmentDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMiscSettingsFragmentData build() => _build(); + + _$GMiscSettingsFragmentData _build() { + final _$result = _$v ?? + new _$GMiscSettingsFragmentData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GMiscSettingsFragmentData', 'G__typename'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GMiscSettingsFragmentData', + 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GMiscSettingsFragmentData', + 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GMiscSettingsFragmentData', + 'gqlDebugLogsEnabled')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.req.gql.dart b/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.req.gql.dart new file mode 100644 index 00000000..279d02ae --- /dev/null +++ b/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.req.gql.dart @@ -0,0 +1,67 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql/ast.dart' as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'fragment.req.gql.g.dart'; + +abstract class GMiscSettingsFragmentReq + implements + Built, + _i1.FragmentRequest<_i2.GMiscSettingsFragmentData, + _i3.GMiscSettingsFragmentVars> { + GMiscSettingsFragmentReq._(); + + factory GMiscSettingsFragmentReq( + [void Function(GMiscSettingsFragmentReqBuilder b) updates]) = + _$GMiscSettingsFragmentReq; + + static void _initializeBuilder(GMiscSettingsFragmentReqBuilder b) => b + ..document = _i4.document + ..fragmentName = 'MiscSettingsFragment'; + + @override + _i3.GMiscSettingsFragmentVars get vars; + @override + _i5.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GMiscSettingsFragmentData? parseData(Map json) => + _i2.GMiscSettingsFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GMiscSettingsFragmentData data) => + data.toJson(); + + static Serializer get serializer => + _$gMiscSettingsFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GMiscSettingsFragmentReq.serializer, + this, + ) as Map); + + static GMiscSettingsFragmentReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GMiscSettingsFragmentReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.req.gql.g.dart b/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.req.gql.g.dart new file mode 100644 index 00000000..c7ed76dd --- /dev/null +++ b/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.req.gql.g.dart @@ -0,0 +1,237 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gMiscSettingsFragmentReqSerializer = + new _$GMiscSettingsFragmentReqSerializer(); + +class _$GMiscSettingsFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GMiscSettingsFragmentReq, + _$GMiscSettingsFragmentReq + ]; + @override + final String wireName = 'GMiscSettingsFragmentReq'; + + @override + Iterable serialize( + Serializers serializers, GMiscSettingsFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GMiscSettingsFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i5.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GMiscSettingsFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMiscSettingsFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GMiscSettingsFragmentVars))! + as _i3.GMiscSettingsFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i5.DocumentNode))! + as _i5.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GMiscSettingsFragmentReq extends GMiscSettingsFragmentReq { + @override + final _i3.GMiscSettingsFragmentVars vars; + @override + final _i5.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GMiscSettingsFragmentReq( + [void Function(GMiscSettingsFragmentReqBuilder)? updates]) => + (new GMiscSettingsFragmentReqBuilder()..update(updates))._build(); + + _$GMiscSettingsFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GMiscSettingsFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GMiscSettingsFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GMiscSettingsFragmentReq', 'idFields'); + } + + @override + GMiscSettingsFragmentReq rebuild( + void Function(GMiscSettingsFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GMiscSettingsFragmentReqBuilder toBuilder() => + new GMiscSettingsFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMiscSettingsFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GMiscSettingsFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GMiscSettingsFragmentReqBuilder + implements + Builder { + _$GMiscSettingsFragmentReq? _$v; + + _i3.GMiscSettingsFragmentVarsBuilder? _vars; + _i3.GMiscSettingsFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GMiscSettingsFragmentVarsBuilder(); + set vars(_i3.GMiscSettingsFragmentVarsBuilder? vars) => _$this._vars = vars; + + _i5.DocumentNode? _document; + _i5.DocumentNode? get document => _$this._document; + set document(_i5.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GMiscSettingsFragmentReqBuilder() { + GMiscSettingsFragmentReq._initializeBuilder(this); + } + + GMiscSettingsFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GMiscSettingsFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMiscSettingsFragmentReq; + } + + @override + void update(void Function(GMiscSettingsFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMiscSettingsFragmentReq build() => _build(); + + _$GMiscSettingsFragmentReq _build() { + _$GMiscSettingsFragmentReq _$result; + try { + _$result = _$v ?? + new _$GMiscSettingsFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GMiscSettingsFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GMiscSettingsFragmentReq', 'idFields')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GMiscSettingsFragmentReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.var.gql.dart b/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.var.gql.dart new file mode 100644 index 00000000..f1b8ec33 --- /dev/null +++ b/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.var.gql.dart @@ -0,0 +1,34 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragment.var.gql.g.dart'; + +abstract class GMiscSettingsFragmentVars + implements + Built { + GMiscSettingsFragmentVars._(); + + factory GMiscSettingsFragmentVars( + [void Function(GMiscSettingsFragmentVarsBuilder b) updates]) = + _$GMiscSettingsFragmentVars; + + static Serializer get serializer => + _$gMiscSettingsFragmentVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GMiscSettingsFragmentVars.serializer, + this, + ) as Map); + + static GMiscSettingsFragmentVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GMiscSettingsFragmentVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.var.gql.g.dart b/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.var.gql.g.dart new file mode 100644 index 00000000..af419c83 --- /dev/null +++ b/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.var.gql.g.dart @@ -0,0 +1,98 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gMiscSettingsFragmentVarsSerializer = + new _$GMiscSettingsFragmentVarsSerializer(); + +class _$GMiscSettingsFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GMiscSettingsFragmentVars, + _$GMiscSettingsFragmentVars + ]; + @override + final String wireName = 'GMiscSettingsFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GMiscSettingsFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GMiscSettingsFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GMiscSettingsFragmentVarsBuilder().build(); + } +} + +class _$GMiscSettingsFragmentVars extends GMiscSettingsFragmentVars { + factory _$GMiscSettingsFragmentVars( + [void Function(GMiscSettingsFragmentVarsBuilder)? updates]) => + (new GMiscSettingsFragmentVarsBuilder()..update(updates))._build(); + + _$GMiscSettingsFragmentVars._() : super._(); + + @override + GMiscSettingsFragmentVars rebuild( + void Function(GMiscSettingsFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GMiscSettingsFragmentVarsBuilder toBuilder() => + new GMiscSettingsFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMiscSettingsFragmentVars; + } + + @override + int get hashCode { + return 584133642; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GMiscSettingsFragmentVars').toString(); + } +} + +class GMiscSettingsFragmentVarsBuilder + implements + Builder { + _$GMiscSettingsFragmentVars? _$v; + + GMiscSettingsFragmentVarsBuilder(); + + @override + void replace(GMiscSettingsFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMiscSettingsFragmentVars; + } + + @override + void update(void Function(GMiscSettingsFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMiscSettingsFragmentVars build() => _build(); + + _$GMiscSettingsFragmentVars _build() { + final _$result = _$v ?? new _$GMiscSettingsFragmentVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/misc_settings/graphql/fragment.graphql b/lib/src/features/settings/domain/misc_settings/graphql/fragment.graphql new file mode 100644 index 00000000..c13fe621 --- /dev/null +++ b/lib/src/features/settings/domain/misc_settings/graphql/fragment.graphql @@ -0,0 +1,6 @@ + +fragment MiscSettingsFragment on SettingsType { + debugLogsEnabled + systemTrayEnabled + gqlDebugLogsEnabled +} diff --git a/lib/src/features/settings/domain/misc_settings/misc_settings.dart b/lib/src/features/settings/domain/misc_settings/misc_settings.dart new file mode 100644 index 00000000..da78c59d --- /dev/null +++ b/lib/src/features/settings/domain/misc_settings/misc_settings.dart @@ -0,0 +1,3 @@ +import 'graphql/__generated__/fragment.data.gql.dart'; + +typedef MiscSettingsDto = GMiscSettingsFragment; diff --git a/lib/src/features/settings/domain/restore_status.dart b/lib/src/features/settings/domain/restore_status.dart deleted file mode 100644 index 4b33ab46..00000000 --- a/lib/src/features/settings/domain/restore_status.dart +++ /dev/null @@ -1,18 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../enums/restore_state.dart'; - -part 'restore_status.freezed.dart'; -part 'restore_status.g.dart'; - -@freezed -class RestoreStatus with _$RestoreStatus { - factory RestoreStatus({ - int? mangaProgress, - RestoreState? state, - int? totalManga, - }) = _RestoreStatus; - - factory RestoreStatus.fromJson(Map json) => - _$RestoreStatusFromJson(json); -} diff --git a/lib/src/features/settings/domain/restore_status.freezed.dart b/lib/src/features/settings/domain/restore_status.freezed.dart deleted file mode 100644 index 8359a6ff..00000000 --- a/lib/src/features/settings/domain/restore_status.freezed.dart +++ /dev/null @@ -1,189 +0,0 @@ -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// 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 'restore_status.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -T _$identity(T value) => value; - -final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); - -RestoreStatus _$RestoreStatusFromJson(Map json) { - return _RestoreStatus.fromJson(json); -} - -/// @nodoc -mixin _$RestoreStatus { - int? get mangaProgress => throw _privateConstructorUsedError; - RestoreState? get state => throw _privateConstructorUsedError; - int? get totalManga => throw _privateConstructorUsedError; - - Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) - $RestoreStatusCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $RestoreStatusCopyWith<$Res> { - factory $RestoreStatusCopyWith( - RestoreStatus value, $Res Function(RestoreStatus) then) = - _$RestoreStatusCopyWithImpl<$Res, RestoreStatus>; - @useResult - $Res call({int? mangaProgress, RestoreState? state, int? totalManga}); -} - -/// @nodoc -class _$RestoreStatusCopyWithImpl<$Res, $Val extends RestoreStatus> - implements $RestoreStatusCopyWith<$Res> { - _$RestoreStatusCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? mangaProgress = freezed, - Object? state = freezed, - Object? totalManga = freezed, - }) { - return _then(_value.copyWith( - mangaProgress: freezed == mangaProgress - ? _value.mangaProgress - : mangaProgress // ignore: cast_nullable_to_non_nullable - as int?, - state: freezed == state - ? _value.state - : state // ignore: cast_nullable_to_non_nullable - as RestoreState?, - totalManga: freezed == totalManga - ? _value.totalManga - : totalManga // ignore: cast_nullable_to_non_nullable - as int?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$RestoreStatusImplCopyWith<$Res> - implements $RestoreStatusCopyWith<$Res> { - factory _$$RestoreStatusImplCopyWith( - _$RestoreStatusImpl value, $Res Function(_$RestoreStatusImpl) then) = - __$$RestoreStatusImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int? mangaProgress, RestoreState? state, int? totalManga}); -} - -/// @nodoc -class __$$RestoreStatusImplCopyWithImpl<$Res> - extends _$RestoreStatusCopyWithImpl<$Res, _$RestoreStatusImpl> - implements _$$RestoreStatusImplCopyWith<$Res> { - __$$RestoreStatusImplCopyWithImpl( - _$RestoreStatusImpl _value, $Res Function(_$RestoreStatusImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? mangaProgress = freezed, - Object? state = freezed, - Object? totalManga = freezed, - }) { - return _then(_$RestoreStatusImpl( - mangaProgress: freezed == mangaProgress - ? _value.mangaProgress - : mangaProgress // ignore: cast_nullable_to_non_nullable - as int?, - state: freezed == state - ? _value.state - : state // ignore: cast_nullable_to_non_nullable - as RestoreState?, - totalManga: freezed == totalManga - ? _value.totalManga - : totalManga // ignore: cast_nullable_to_non_nullable - as int?, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$RestoreStatusImpl implements _RestoreStatus { - _$RestoreStatusImpl({this.mangaProgress, this.state, this.totalManga}); - - factory _$RestoreStatusImpl.fromJson(Map json) => - _$$RestoreStatusImplFromJson(json); - - @override - final int? mangaProgress; - @override - final RestoreState? state; - @override - final int? totalManga; - - @override - String toString() { - return 'RestoreStatus(mangaProgress: $mangaProgress, state: $state, totalManga: $totalManga)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$RestoreStatusImpl && - (identical(other.mangaProgress, mangaProgress) || - other.mangaProgress == mangaProgress) && - (identical(other.state, state) || other.state == state) && - (identical(other.totalManga, totalManga) || - other.totalManga == totalManga)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => - Object.hash(runtimeType, mangaProgress, state, totalManga); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$RestoreStatusImplCopyWith<_$RestoreStatusImpl> get copyWith => - __$$RestoreStatusImplCopyWithImpl<_$RestoreStatusImpl>(this, _$identity); - - @override - Map toJson() { - return _$$RestoreStatusImplToJson( - this, - ); - } -} - -abstract class _RestoreStatus implements RestoreStatus { - factory _RestoreStatus( - {final int? mangaProgress, - final RestoreState? state, - final int? totalManga}) = _$RestoreStatusImpl; - - factory _RestoreStatus.fromJson(Map json) = - _$RestoreStatusImpl.fromJson; - - @override - int? get mangaProgress; - @override - RestoreState? get state; - @override - int? get totalManga; - @override - @JsonKey(ignore: true) - _$$RestoreStatusImplCopyWith<_$RestoreStatusImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/features/settings/domain/restore_status.g.dart b/lib/src/features/settings/domain/restore_status.g.dart deleted file mode 100644 index f0aa0811..00000000 --- a/lib/src/features/settings/domain/restore_status.g.dart +++ /dev/null @@ -1,29 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'restore_status.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$RestoreStatusImpl _$$RestoreStatusImplFromJson(Map json) => - _$RestoreStatusImpl( - mangaProgress: json['mangaProgress'] as int?, - state: $enumDecodeNullable(_$RestoreStateEnumMap, json['state']), - totalManga: json['totalManga'] as int?, - ); - -Map _$$RestoreStatusImplToJson(_$RestoreStatusImpl instance) => - { - 'mangaProgress': instance.mangaProgress, - 'state': _$RestoreStateEnumMap[instance.state], - 'totalManga': instance.totalManga, - }; - -const _$RestoreStateEnumMap = { - RestoreState.idle: 'IDLE', - RestoreState.success: 'SUCCESS', - RestoreState.failure: 'FAILURE', - RestoreState.restoringCategories: 'RESTORING_CATEGORIES', - RestoreState.restoringManga: 'RESTORING_MANGA', -}; diff --git a/lib/src/features/settings/domain/restore_status/graphql/__generated__/fragment.ast.gql.dart b/lib/src/features/settings/domain/restore_status/graphql/__generated__/fragment.ast.gql.dart new file mode 100644 index 00000000..fc4787dc --- /dev/null +++ b/lib/src/features/settings/domain/restore_status/graphql/__generated__/fragment.ast.gql.dart @@ -0,0 +1,39 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const RestoreStatusFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'RestoreStatusFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'BackupRestoreStatus'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'mangaProgress'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'state'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'totalManga'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), +); +const document = _i1.DocumentNode(definitions: [RestoreStatusFragment]); diff --git a/lib/src/features/settings/domain/restore_status/graphql/__generated__/fragment.data.gql.dart b/lib/src/features/settings/domain/restore_status/graphql/__generated__/fragment.data.gql.dart new file mode 100644 index 00000000..0217a414 --- /dev/null +++ b/lib/src/features/settings/domain/restore_status/graphql/__generated__/fragment.data.gql.dart @@ -0,0 +1,58 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' + as _i1; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i2; + +part 'fragment.data.gql.g.dart'; + +abstract class GRestoreStatusFragment { + String get G__typename; + int get mangaProgress; + _i1.GBackupRestoreState get state; + int get totalManga; + Map toJson(); +} + +abstract class GRestoreStatusFragmentData + implements + Built, + GRestoreStatusFragment { + GRestoreStatusFragmentData._(); + + factory GRestoreStatusFragmentData( + [void Function(GRestoreStatusFragmentDataBuilder b) updates]) = + _$GRestoreStatusFragmentData; + + static void _initializeBuilder(GRestoreStatusFragmentDataBuilder b) => + b..G__typename = 'BackupRestoreStatus'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get mangaProgress; + @override + _i1.GBackupRestoreState get state; + @override + int get totalManga; + static Serializer get serializer => + _$gRestoreStatusFragmentDataSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GRestoreStatusFragmentData.serializer, + this, + ) as Map); + + static GRestoreStatusFragmentData? fromJson(Map json) => + _i2.serializers.deserializeWith( + GRestoreStatusFragmentData.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/restore_status/graphql/__generated__/fragment.data.gql.g.dart b/lib/src/features/settings/domain/restore_status/graphql/__generated__/fragment.data.gql.g.dart new file mode 100644 index 00000000..0ba3dc9a --- /dev/null +++ b/lib/src/features/settings/domain/restore_status/graphql/__generated__/fragment.data.gql.g.dart @@ -0,0 +1,219 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gRestoreStatusFragmentDataSerializer = + new _$GRestoreStatusFragmentDataSerializer(); + +class _$GRestoreStatusFragmentDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GRestoreStatusFragmentData, + _$GRestoreStatusFragmentData + ]; + @override + final String wireName = 'GRestoreStatusFragmentData'; + + @override + Iterable serialize( + Serializers serializers, GRestoreStatusFragmentData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'mangaProgress', + serializers.serialize(object.mangaProgress, + specifiedType: const FullType(int)), + 'state', + serializers.serialize(object.state, + specifiedType: const FullType(_i1.GBackupRestoreState)), + 'totalManga', + serializers.serialize(object.totalManga, + specifiedType: const FullType(int)), + ]; + + return result; + } + + @override + GRestoreStatusFragmentData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GRestoreStatusFragmentDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'mangaProgress': + result.mangaProgress = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'state': + result.state = serializers.deserialize(value, + specifiedType: const FullType(_i1.GBackupRestoreState))! + as _i1.GBackupRestoreState; + break; + case 'totalManga': + result.totalManga = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GRestoreStatusFragmentData extends GRestoreStatusFragmentData { + @override + final String G__typename; + @override + final int mangaProgress; + @override + final _i1.GBackupRestoreState state; + @override + final int totalManga; + + factory _$GRestoreStatusFragmentData( + [void Function(GRestoreStatusFragmentDataBuilder)? updates]) => + (new GRestoreStatusFragmentDataBuilder()..update(updates))._build(); + + _$GRestoreStatusFragmentData._( + {required this.G__typename, + required this.mangaProgress, + required this.state, + required this.totalManga}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GRestoreStatusFragmentData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + mangaProgress, r'GRestoreStatusFragmentData', 'mangaProgress'); + BuiltValueNullFieldError.checkNotNull( + state, r'GRestoreStatusFragmentData', 'state'); + BuiltValueNullFieldError.checkNotNull( + totalManga, r'GRestoreStatusFragmentData', 'totalManga'); + } + + @override + GRestoreStatusFragmentData rebuild( + void Function(GRestoreStatusFragmentDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GRestoreStatusFragmentDataBuilder toBuilder() => + new GRestoreStatusFragmentDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GRestoreStatusFragmentData && + G__typename == other.G__typename && + mangaProgress == other.mangaProgress && + state == other.state && + totalManga == other.totalManga; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, mangaProgress.hashCode); + _$hash = $jc(_$hash, state.hashCode); + _$hash = $jc(_$hash, totalManga.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GRestoreStatusFragmentData') + ..add('G__typename', G__typename) + ..add('mangaProgress', mangaProgress) + ..add('state', state) + ..add('totalManga', totalManga)) + .toString(); + } +} + +class GRestoreStatusFragmentDataBuilder + implements + Builder { + _$GRestoreStatusFragmentData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _mangaProgress; + int? get mangaProgress => _$this._mangaProgress; + set mangaProgress(int? mangaProgress) => + _$this._mangaProgress = mangaProgress; + + _i1.GBackupRestoreState? _state; + _i1.GBackupRestoreState? get state => _$this._state; + set state(_i1.GBackupRestoreState? state) => _$this._state = state; + + int? _totalManga; + int? get totalManga => _$this._totalManga; + set totalManga(int? totalManga) => _$this._totalManga = totalManga; + + GRestoreStatusFragmentDataBuilder() { + GRestoreStatusFragmentData._initializeBuilder(this); + } + + GRestoreStatusFragmentDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _mangaProgress = $v.mangaProgress; + _state = $v.state; + _totalManga = $v.totalManga; + _$v = null; + } + return this; + } + + @override + void replace(GRestoreStatusFragmentData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GRestoreStatusFragmentData; + } + + @override + void update(void Function(GRestoreStatusFragmentDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GRestoreStatusFragmentData build() => _build(); + + _$GRestoreStatusFragmentData _build() { + final _$result = _$v ?? + new _$GRestoreStatusFragmentData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GRestoreStatusFragmentData', 'G__typename'), + mangaProgress: BuiltValueNullFieldError.checkNotNull( + mangaProgress, r'GRestoreStatusFragmentData', 'mangaProgress'), + state: BuiltValueNullFieldError.checkNotNull( + state, r'GRestoreStatusFragmentData', 'state'), + totalManga: BuiltValueNullFieldError.checkNotNull( + totalManga, r'GRestoreStatusFragmentData', 'totalManga')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/restore_status/graphql/__generated__/fragment.req.gql.dart b/lib/src/features/settings/domain/restore_status/graphql/__generated__/fragment.req.gql.dart new file mode 100644 index 00000000..a5ec00f3 --- /dev/null +++ b/lib/src/features/settings/domain/restore_status/graphql/__generated__/fragment.req.gql.dart @@ -0,0 +1,67 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql/ast.dart' as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/domain/restore_status/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/restore_status/graphql/__generated__/fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/restore_status/graphql/__generated__/fragment.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'fragment.req.gql.g.dart'; + +abstract class GRestoreStatusFragmentReq + implements + Built, + _i1.FragmentRequest<_i2.GRestoreStatusFragmentData, + _i3.GRestoreStatusFragmentVars> { + GRestoreStatusFragmentReq._(); + + factory GRestoreStatusFragmentReq( + [void Function(GRestoreStatusFragmentReqBuilder b) updates]) = + _$GRestoreStatusFragmentReq; + + static void _initializeBuilder(GRestoreStatusFragmentReqBuilder b) => b + ..document = _i4.document + ..fragmentName = 'RestoreStatusFragment'; + + @override + _i3.GRestoreStatusFragmentVars get vars; + @override + _i5.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GRestoreStatusFragmentData? parseData(Map json) => + _i2.GRestoreStatusFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GRestoreStatusFragmentData data) => + data.toJson(); + + static Serializer get serializer => + _$gRestoreStatusFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GRestoreStatusFragmentReq.serializer, + this, + ) as Map); + + static GRestoreStatusFragmentReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GRestoreStatusFragmentReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/restore_status/graphql/__generated__/fragment.req.gql.g.dart b/lib/src/features/settings/domain/restore_status/graphql/__generated__/fragment.req.gql.g.dart new file mode 100644 index 00000000..2d53bf40 --- /dev/null +++ b/lib/src/features/settings/domain/restore_status/graphql/__generated__/fragment.req.gql.g.dart @@ -0,0 +1,238 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gRestoreStatusFragmentReqSerializer = + new _$GRestoreStatusFragmentReqSerializer(); + +class _$GRestoreStatusFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GRestoreStatusFragmentReq, + _$GRestoreStatusFragmentReq + ]; + @override + final String wireName = 'GRestoreStatusFragmentReq'; + + @override + Iterable serialize( + Serializers serializers, GRestoreStatusFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GRestoreStatusFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i5.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GRestoreStatusFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GRestoreStatusFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GRestoreStatusFragmentVars))! + as _i3.GRestoreStatusFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i5.DocumentNode))! + as _i5.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GRestoreStatusFragmentReq extends GRestoreStatusFragmentReq { + @override + final _i3.GRestoreStatusFragmentVars vars; + @override + final _i5.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GRestoreStatusFragmentReq( + [void Function(GRestoreStatusFragmentReqBuilder)? updates]) => + (new GRestoreStatusFragmentReqBuilder()..update(updates))._build(); + + _$GRestoreStatusFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GRestoreStatusFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GRestoreStatusFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GRestoreStatusFragmentReq', 'idFields'); + } + + @override + GRestoreStatusFragmentReq rebuild( + void Function(GRestoreStatusFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GRestoreStatusFragmentReqBuilder toBuilder() => + new GRestoreStatusFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GRestoreStatusFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GRestoreStatusFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GRestoreStatusFragmentReqBuilder + implements + Builder { + _$GRestoreStatusFragmentReq? _$v; + + _i3.GRestoreStatusFragmentVarsBuilder? _vars; + _i3.GRestoreStatusFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GRestoreStatusFragmentVarsBuilder(); + set vars(_i3.GRestoreStatusFragmentVarsBuilder? vars) => _$this._vars = vars; + + _i5.DocumentNode? _document; + _i5.DocumentNode? get document => _$this._document; + set document(_i5.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GRestoreStatusFragmentReqBuilder() { + GRestoreStatusFragmentReq._initializeBuilder(this); + } + + GRestoreStatusFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GRestoreStatusFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GRestoreStatusFragmentReq; + } + + @override + void update(void Function(GRestoreStatusFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GRestoreStatusFragmentReq build() => _build(); + + _$GRestoreStatusFragmentReq _build() { + _$GRestoreStatusFragmentReq _$result; + try { + _$result = _$v ?? + new _$GRestoreStatusFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GRestoreStatusFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GRestoreStatusFragmentReq', 'idFields')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GRestoreStatusFragmentReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/restore_status/graphql/__generated__/fragment.var.gql.dart b/lib/src/features/settings/domain/restore_status/graphql/__generated__/fragment.var.gql.dart new file mode 100644 index 00000000..f286e050 --- /dev/null +++ b/lib/src/features/settings/domain/restore_status/graphql/__generated__/fragment.var.gql.dart @@ -0,0 +1,34 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragment.var.gql.g.dart'; + +abstract class GRestoreStatusFragmentVars + implements + Built { + GRestoreStatusFragmentVars._(); + + factory GRestoreStatusFragmentVars( + [void Function(GRestoreStatusFragmentVarsBuilder b) updates]) = + _$GRestoreStatusFragmentVars; + + static Serializer get serializer => + _$gRestoreStatusFragmentVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GRestoreStatusFragmentVars.serializer, + this, + ) as Map); + + static GRestoreStatusFragmentVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GRestoreStatusFragmentVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/restore_status/graphql/__generated__/fragment.var.gql.g.dart b/lib/src/features/settings/domain/restore_status/graphql/__generated__/fragment.var.gql.g.dart new file mode 100644 index 00000000..f04f0167 --- /dev/null +++ b/lib/src/features/settings/domain/restore_status/graphql/__generated__/fragment.var.gql.g.dart @@ -0,0 +1,99 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gRestoreStatusFragmentVarsSerializer = + new _$GRestoreStatusFragmentVarsSerializer(); + +class _$GRestoreStatusFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GRestoreStatusFragmentVars, + _$GRestoreStatusFragmentVars + ]; + @override + final String wireName = 'GRestoreStatusFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GRestoreStatusFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GRestoreStatusFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GRestoreStatusFragmentVarsBuilder().build(); + } +} + +class _$GRestoreStatusFragmentVars extends GRestoreStatusFragmentVars { + factory _$GRestoreStatusFragmentVars( + [void Function(GRestoreStatusFragmentVarsBuilder)? updates]) => + (new GRestoreStatusFragmentVarsBuilder()..update(updates))._build(); + + _$GRestoreStatusFragmentVars._() : super._(); + + @override + GRestoreStatusFragmentVars rebuild( + void Function(GRestoreStatusFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GRestoreStatusFragmentVarsBuilder toBuilder() => + new GRestoreStatusFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GRestoreStatusFragmentVars; + } + + @override + int get hashCode { + return 295813420; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GRestoreStatusFragmentVars') + .toString(); + } +} + +class GRestoreStatusFragmentVarsBuilder + implements + Builder { + _$GRestoreStatusFragmentVars? _$v; + + GRestoreStatusFragmentVarsBuilder(); + + @override + void replace(GRestoreStatusFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GRestoreStatusFragmentVars; + } + + @override + void update(void Function(GRestoreStatusFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GRestoreStatusFragmentVars build() => _build(); + + _$GRestoreStatusFragmentVars _build() { + final _$result = _$v ?? new _$GRestoreStatusFragmentVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/restore_status/graphql/fragment.graphql b/lib/src/features/settings/domain/restore_status/graphql/fragment.graphql new file mode 100644 index 00000000..e2e2ffe9 --- /dev/null +++ b/lib/src/features/settings/domain/restore_status/graphql/fragment.graphql @@ -0,0 +1,6 @@ + +fragment RestoreStatusFragment on BackupRestoreStatus { + mangaProgress + state + totalManga +} diff --git a/lib/src/features/settings/domain/restore_status/restore_status.dart b/lib/src/features/settings/domain/restore_status/restore_status.dart new file mode 100644 index 00000000..a0ec1737 --- /dev/null +++ b/lib/src/features/settings/domain/restore_status/restore_status.dart @@ -0,0 +1,11 @@ +import '../../../../graphql/__generated__/schema.schema.gql.dart'; +import 'graphql/__generated__/fragment.data.gql.dart'; + +typedef RestoreStatus = GRestoreStatusFragment; + +typedef RestoreState = GBackupRestoreState; + +extension RestoreStateExtension on RestoreState { + bool get isFinalState => + this == RestoreState.SUCCESS || this == RestoreState.FAILURE; +} diff --git a/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart b/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart new file mode 100644 index 00000000..a989893e --- /dev/null +++ b/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart @@ -0,0 +1,32 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const ServerBindingFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'ServerBindingFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SettingsType'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'ip'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'port'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), +); +const document = _i1.DocumentNode(definitions: [ServerBindingFragment]); diff --git a/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.data.gql.dart b/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.data.gql.dart new file mode 100644 index 00000000..76d38dea --- /dev/null +++ b/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.data.gql.dart @@ -0,0 +1,53 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragment.data.gql.g.dart'; + +abstract class GServerBindingFragment { + String get G__typename; + String get ip; + int get port; + Map toJson(); +} + +abstract class GServerBindingFragmentData + implements + Built, + GServerBindingFragment { + GServerBindingFragmentData._(); + + factory GServerBindingFragmentData( + [void Function(GServerBindingFragmentDataBuilder b) updates]) = + _$GServerBindingFragmentData; + + static void _initializeBuilder(GServerBindingFragmentDataBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get ip; + @override + int get port; + static Serializer get serializer => + _$gServerBindingFragmentDataSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GServerBindingFragmentData.serializer, + this, + ) as Map); + + static GServerBindingFragmentData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GServerBindingFragmentData.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.data.gql.g.dart b/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.data.gql.g.dart new file mode 100644 index 00000000..be52afe6 --- /dev/null +++ b/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.data.gql.g.dart @@ -0,0 +1,191 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gServerBindingFragmentDataSerializer = + new _$GServerBindingFragmentDataSerializer(); + +class _$GServerBindingFragmentDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GServerBindingFragmentData, + _$GServerBindingFragmentData + ]; + @override + final String wireName = 'GServerBindingFragmentData'; + + @override + Iterable serialize( + Serializers serializers, GServerBindingFragmentData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + ]; + + return result; + } + + @override + GServerBindingFragmentData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GServerBindingFragmentDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GServerBindingFragmentData extends GServerBindingFragmentData { + @override + final String G__typename; + @override + final String ip; + @override + final int port; + + factory _$GServerBindingFragmentData( + [void Function(GServerBindingFragmentDataBuilder)? updates]) => + (new GServerBindingFragmentDataBuilder()..update(updates))._build(); + + _$GServerBindingFragmentData._( + {required this.G__typename, required this.ip, required this.port}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GServerBindingFragmentData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GServerBindingFragmentData', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GServerBindingFragmentData', 'port'); + } + + @override + GServerBindingFragmentData rebuild( + void Function(GServerBindingFragmentDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GServerBindingFragmentDataBuilder toBuilder() => + new GServerBindingFragmentDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GServerBindingFragmentData && + G__typename == other.G__typename && + ip == other.ip && + port == other.port; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GServerBindingFragmentData') + ..add('G__typename', G__typename) + ..add('ip', ip) + ..add('port', port)) + .toString(); + } +} + +class GServerBindingFragmentDataBuilder + implements + Builder { + _$GServerBindingFragmentData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + GServerBindingFragmentDataBuilder() { + GServerBindingFragmentData._initializeBuilder(this); + } + + GServerBindingFragmentDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _ip = $v.ip; + _port = $v.port; + _$v = null; + } + return this; + } + + @override + void replace(GServerBindingFragmentData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GServerBindingFragmentData; + } + + @override + void update(void Function(GServerBindingFragmentDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GServerBindingFragmentData build() => _build(); + + _$GServerBindingFragmentData _build() { + final _$result = _$v ?? + new _$GServerBindingFragmentData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GServerBindingFragmentData', 'G__typename'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GServerBindingFragmentData', 'ip'), + port: BuiltValueNullFieldError.checkNotNull( + port, r'GServerBindingFragmentData', 'port')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.req.gql.dart b/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.req.gql.dart new file mode 100644 index 00000000..4e18acff --- /dev/null +++ b/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.req.gql.dart @@ -0,0 +1,67 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql/ast.dart' as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'fragment.req.gql.g.dart'; + +abstract class GServerBindingFragmentReq + implements + Built, + _i1.FragmentRequest<_i2.GServerBindingFragmentData, + _i3.GServerBindingFragmentVars> { + GServerBindingFragmentReq._(); + + factory GServerBindingFragmentReq( + [void Function(GServerBindingFragmentReqBuilder b) updates]) = + _$GServerBindingFragmentReq; + + static void _initializeBuilder(GServerBindingFragmentReqBuilder b) => b + ..document = _i4.document + ..fragmentName = 'ServerBindingFragment'; + + @override + _i3.GServerBindingFragmentVars get vars; + @override + _i5.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GServerBindingFragmentData? parseData(Map json) => + _i2.GServerBindingFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GServerBindingFragmentData data) => + data.toJson(); + + static Serializer get serializer => + _$gServerBindingFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GServerBindingFragmentReq.serializer, + this, + ) as Map); + + static GServerBindingFragmentReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GServerBindingFragmentReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.req.gql.g.dart b/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.req.gql.g.dart new file mode 100644 index 00000000..3f26e5c3 --- /dev/null +++ b/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.req.gql.g.dart @@ -0,0 +1,238 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gServerBindingFragmentReqSerializer = + new _$GServerBindingFragmentReqSerializer(); + +class _$GServerBindingFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GServerBindingFragmentReq, + _$GServerBindingFragmentReq + ]; + @override + final String wireName = 'GServerBindingFragmentReq'; + + @override + Iterable serialize( + Serializers serializers, GServerBindingFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GServerBindingFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i5.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GServerBindingFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GServerBindingFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GServerBindingFragmentVars))! + as _i3.GServerBindingFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i5.DocumentNode))! + as _i5.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GServerBindingFragmentReq extends GServerBindingFragmentReq { + @override + final _i3.GServerBindingFragmentVars vars; + @override + final _i5.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GServerBindingFragmentReq( + [void Function(GServerBindingFragmentReqBuilder)? updates]) => + (new GServerBindingFragmentReqBuilder()..update(updates))._build(); + + _$GServerBindingFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GServerBindingFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GServerBindingFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GServerBindingFragmentReq', 'idFields'); + } + + @override + GServerBindingFragmentReq rebuild( + void Function(GServerBindingFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GServerBindingFragmentReqBuilder toBuilder() => + new GServerBindingFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GServerBindingFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GServerBindingFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GServerBindingFragmentReqBuilder + implements + Builder { + _$GServerBindingFragmentReq? _$v; + + _i3.GServerBindingFragmentVarsBuilder? _vars; + _i3.GServerBindingFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GServerBindingFragmentVarsBuilder(); + set vars(_i3.GServerBindingFragmentVarsBuilder? vars) => _$this._vars = vars; + + _i5.DocumentNode? _document; + _i5.DocumentNode? get document => _$this._document; + set document(_i5.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GServerBindingFragmentReqBuilder() { + GServerBindingFragmentReq._initializeBuilder(this); + } + + GServerBindingFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GServerBindingFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GServerBindingFragmentReq; + } + + @override + void update(void Function(GServerBindingFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GServerBindingFragmentReq build() => _build(); + + _$GServerBindingFragmentReq _build() { + _$GServerBindingFragmentReq _$result; + try { + _$result = _$v ?? + new _$GServerBindingFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GServerBindingFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GServerBindingFragmentReq', 'idFields')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GServerBindingFragmentReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.var.gql.dart b/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.var.gql.dart new file mode 100644 index 00000000..c26a4ede --- /dev/null +++ b/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.var.gql.dart @@ -0,0 +1,34 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragment.var.gql.g.dart'; + +abstract class GServerBindingFragmentVars + implements + Built { + GServerBindingFragmentVars._(); + + factory GServerBindingFragmentVars( + [void Function(GServerBindingFragmentVarsBuilder b) updates]) = + _$GServerBindingFragmentVars; + + static Serializer get serializer => + _$gServerBindingFragmentVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GServerBindingFragmentVars.serializer, + this, + ) as Map); + + static GServerBindingFragmentVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GServerBindingFragmentVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.var.gql.g.dart b/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.var.gql.g.dart new file mode 100644 index 00000000..18d5d9f8 --- /dev/null +++ b/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.var.gql.g.dart @@ -0,0 +1,99 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gServerBindingFragmentVarsSerializer = + new _$GServerBindingFragmentVarsSerializer(); + +class _$GServerBindingFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GServerBindingFragmentVars, + _$GServerBindingFragmentVars + ]; + @override + final String wireName = 'GServerBindingFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GServerBindingFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GServerBindingFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GServerBindingFragmentVarsBuilder().build(); + } +} + +class _$GServerBindingFragmentVars extends GServerBindingFragmentVars { + factory _$GServerBindingFragmentVars( + [void Function(GServerBindingFragmentVarsBuilder)? updates]) => + (new GServerBindingFragmentVarsBuilder()..update(updates))._build(); + + _$GServerBindingFragmentVars._() : super._(); + + @override + GServerBindingFragmentVars rebuild( + void Function(GServerBindingFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GServerBindingFragmentVarsBuilder toBuilder() => + new GServerBindingFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GServerBindingFragmentVars; + } + + @override + int get hashCode { + return 50426703; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GServerBindingFragmentVars') + .toString(); + } +} + +class GServerBindingFragmentVarsBuilder + implements + Builder { + _$GServerBindingFragmentVars? _$v; + + GServerBindingFragmentVarsBuilder(); + + @override + void replace(GServerBindingFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GServerBindingFragmentVars; + } + + @override + void update(void Function(GServerBindingFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GServerBindingFragmentVars build() => _build(); + + _$GServerBindingFragmentVars _build() { + final _$result = _$v ?? new _$GServerBindingFragmentVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/server_binding/graphql/fragment.graphql b/lib/src/features/settings/domain/server_binding/graphql/fragment.graphql new file mode 100644 index 00000000..962ac2b4 --- /dev/null +++ b/lib/src/features/settings/domain/server_binding/graphql/fragment.graphql @@ -0,0 +1,4 @@ +fragment ServerBindingFragment on SettingsType { + ip + port +} diff --git a/lib/src/features/settings/domain/server_binding/server_binding.dart b/lib/src/features/settings/domain/server_binding/server_binding.dart new file mode 100644 index 00000000..a9d40b81 --- /dev/null +++ b/lib/src/features/settings/domain/server_binding/server_binding.dart @@ -0,0 +1,3 @@ +import 'graphql/__generated__/fragment.data.gql.dart'; + +typedef ServerBindingDto = GServerBindingFragment; diff --git a/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart b/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart new file mode 100644 index 00000000..1b38cb50 --- /dev/null +++ b/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart @@ -0,0 +1,60 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const SocksProxyFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'SocksProxyFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SettingsType'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'socksProxyEnabled'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'socksProxyHost'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'socksProxyPassword'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'socksProxyPort'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'socksProxyUsername'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'socksProxyVersion'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), +); +const document = _i1.DocumentNode(definitions: [SocksProxyFragment]); diff --git a/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.data.gql.dart b/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.data.gql.dart new file mode 100644 index 00000000..4d70c5e5 --- /dev/null +++ b/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.data.gql.dart @@ -0,0 +1,65 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragment.data.gql.g.dart'; + +abstract class GSocksProxyFragment { + String get G__typename; + bool get socksProxyEnabled; + String get socksProxyHost; + String get socksProxyPassword; + String get socksProxyPort; + String get socksProxyUsername; + int get socksProxyVersion; + Map toJson(); +} + +abstract class GSocksProxyFragmentData + implements + Built, + GSocksProxyFragment { + GSocksProxyFragmentData._(); + + factory GSocksProxyFragmentData( + [void Function(GSocksProxyFragmentDataBuilder b) updates]) = + _$GSocksProxyFragmentData; + + static void _initializeBuilder(GSocksProxyFragmentDataBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + static Serializer get serializer => + _$gSocksProxyFragmentDataSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GSocksProxyFragmentData.serializer, + this, + ) as Map); + + static GSocksProxyFragmentData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSocksProxyFragmentData.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.data.gql.g.dart b/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.data.gql.g.dart new file mode 100644 index 00000000..4494c05c --- /dev/null +++ b/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.data.gql.g.dart @@ -0,0 +1,289 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gSocksProxyFragmentDataSerializer = + new _$GSocksProxyFragmentDataSerializer(); + +class _$GSocksProxyFragmentDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSocksProxyFragmentData, + _$GSocksProxyFragmentData + ]; + @override + final String wireName = 'GSocksProxyFragmentData'; + + @override + Iterable serialize( + Serializers serializers, GSocksProxyFragmentData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + ]; + + return result; + } + + @override + GSocksProxyFragmentData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSocksProxyFragmentDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GSocksProxyFragmentData extends GSocksProxyFragmentData { + @override + final String G__typename; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + + factory _$GSocksProxyFragmentData( + [void Function(GSocksProxyFragmentDataBuilder)? updates]) => + (new GSocksProxyFragmentDataBuilder()..update(updates))._build(); + + _$GSocksProxyFragmentData._( + {required this.G__typename, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSocksProxyFragmentData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, r'GSocksProxyFragmentData', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull( + socksProxyHost, r'GSocksProxyFragmentData', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, r'GSocksProxyFragmentData', 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPort, r'GSocksProxyFragmentData', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, r'GSocksProxyFragmentData', 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, r'GSocksProxyFragmentData', 'socksProxyVersion'); + } + + @override + GSocksProxyFragmentData rebuild( + void Function(GSocksProxyFragmentDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSocksProxyFragmentDataBuilder toBuilder() => + new GSocksProxyFragmentDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSocksProxyFragmentData && + G__typename == other.G__typename && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSocksProxyFragmentData') + ..add('G__typename', G__typename) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion)) + .toString(); + } +} + +class GSocksProxyFragmentDataBuilder + implements + Builder { + _$GSocksProxyFragmentData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + GSocksProxyFragmentDataBuilder() { + GSocksProxyFragmentData._initializeBuilder(this); + } + + GSocksProxyFragmentDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _$v = null; + } + return this; + } + + @override + void replace(GSocksProxyFragmentData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSocksProxyFragmentData; + } + + @override + void update(void Function(GSocksProxyFragmentDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSocksProxyFragmentData build() => _build(); + + _$GSocksProxyFragmentData _build() { + final _$result = _$v ?? + new _$GSocksProxyFragmentData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSocksProxyFragmentData', 'G__typename'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, r'GSocksProxyFragmentData', 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, r'GSocksProxyFragmentData', 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, r'GSocksProxyFragmentData', 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, r'GSocksProxyFragmentData', 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, r'GSocksProxyFragmentData', 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, r'GSocksProxyFragmentData', 'socksProxyVersion')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.req.gql.dart b/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.req.gql.dart new file mode 100644 index 00000000..fb47a777 --- /dev/null +++ b/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.req.gql.dart @@ -0,0 +1,67 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql/ast.dart' as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'fragment.req.gql.g.dart'; + +abstract class GSocksProxyFragmentReq + implements + Built, + _i1.FragmentRequest<_i2.GSocksProxyFragmentData, + _i3.GSocksProxyFragmentVars> { + GSocksProxyFragmentReq._(); + + factory GSocksProxyFragmentReq( + [void Function(GSocksProxyFragmentReqBuilder b) updates]) = + _$GSocksProxyFragmentReq; + + static void _initializeBuilder(GSocksProxyFragmentReqBuilder b) => b + ..document = _i4.document + ..fragmentName = 'SocksProxyFragment'; + + @override + _i3.GSocksProxyFragmentVars get vars; + @override + _i5.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GSocksProxyFragmentData? parseData(Map json) => + _i2.GSocksProxyFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GSocksProxyFragmentData data) => + data.toJson(); + + static Serializer get serializer => + _$gSocksProxyFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GSocksProxyFragmentReq.serializer, + this, + ) as Map); + + static GSocksProxyFragmentReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GSocksProxyFragmentReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.req.gql.g.dart b/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.req.gql.g.dart new file mode 100644 index 00000000..d156f843 --- /dev/null +++ b/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.req.gql.g.dart @@ -0,0 +1,236 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gSocksProxyFragmentReqSerializer = + new _$GSocksProxyFragmentReqSerializer(); + +class _$GSocksProxyFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSocksProxyFragmentReq, + _$GSocksProxyFragmentReq + ]; + @override + final String wireName = 'GSocksProxyFragmentReq'; + + @override + Iterable serialize( + Serializers serializers, GSocksProxyFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GSocksProxyFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i5.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSocksProxyFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSocksProxyFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GSocksProxyFragmentVars))! + as _i3.GSocksProxyFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i5.DocumentNode))! + as _i5.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GSocksProxyFragmentReq extends GSocksProxyFragmentReq { + @override + final _i3.GSocksProxyFragmentVars vars; + @override + final _i5.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GSocksProxyFragmentReq( + [void Function(GSocksProxyFragmentReqBuilder)? updates]) => + (new GSocksProxyFragmentReqBuilder()..update(updates))._build(); + + _$GSocksProxyFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GSocksProxyFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GSocksProxyFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GSocksProxyFragmentReq', 'idFields'); + } + + @override + GSocksProxyFragmentReq rebuild( + void Function(GSocksProxyFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSocksProxyFragmentReqBuilder toBuilder() => + new GSocksProxyFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSocksProxyFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSocksProxyFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GSocksProxyFragmentReqBuilder + implements Builder { + _$GSocksProxyFragmentReq? _$v; + + _i3.GSocksProxyFragmentVarsBuilder? _vars; + _i3.GSocksProxyFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GSocksProxyFragmentVarsBuilder(); + set vars(_i3.GSocksProxyFragmentVarsBuilder? vars) => _$this._vars = vars; + + _i5.DocumentNode? _document; + _i5.DocumentNode? get document => _$this._document; + set document(_i5.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GSocksProxyFragmentReqBuilder() { + GSocksProxyFragmentReq._initializeBuilder(this); + } + + GSocksProxyFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GSocksProxyFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSocksProxyFragmentReq; + } + + @override + void update(void Function(GSocksProxyFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSocksProxyFragmentReq build() => _build(); + + _$GSocksProxyFragmentReq _build() { + _$GSocksProxyFragmentReq _$result; + try { + _$result = _$v ?? + new _$GSocksProxyFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GSocksProxyFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GSocksProxyFragmentReq', 'idFields')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSocksProxyFragmentReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.var.gql.dart b/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.var.gql.dart new file mode 100644 index 00000000..fd3646e2 --- /dev/null +++ b/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.var.gql.dart @@ -0,0 +1,33 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragment.var.gql.g.dart'; + +abstract class GSocksProxyFragmentVars + implements Built { + GSocksProxyFragmentVars._(); + + factory GSocksProxyFragmentVars( + [void Function(GSocksProxyFragmentVarsBuilder b) updates]) = + _$GSocksProxyFragmentVars; + + static Serializer get serializer => + _$gSocksProxyFragmentVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSocksProxyFragmentVars.serializer, + this, + ) as Map); + + static GSocksProxyFragmentVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSocksProxyFragmentVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.var.gql.g.dart b/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.var.gql.g.dart new file mode 100644 index 00000000..bfa75623 --- /dev/null +++ b/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.var.gql.g.dart @@ -0,0 +1,98 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gSocksProxyFragmentVarsSerializer = + new _$GSocksProxyFragmentVarsSerializer(); + +class _$GSocksProxyFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSocksProxyFragmentVars, + _$GSocksProxyFragmentVars + ]; + @override + final String wireName = 'GSocksProxyFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GSocksProxyFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GSocksProxyFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GSocksProxyFragmentVarsBuilder().build(); + } +} + +class _$GSocksProxyFragmentVars extends GSocksProxyFragmentVars { + factory _$GSocksProxyFragmentVars( + [void Function(GSocksProxyFragmentVarsBuilder)? updates]) => + (new GSocksProxyFragmentVarsBuilder()..update(updates))._build(); + + _$GSocksProxyFragmentVars._() : super._(); + + @override + GSocksProxyFragmentVars rebuild( + void Function(GSocksProxyFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSocksProxyFragmentVarsBuilder toBuilder() => + new GSocksProxyFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSocksProxyFragmentVars; + } + + @override + int get hashCode { + return 999918222; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GSocksProxyFragmentVars').toString(); + } +} + +class GSocksProxyFragmentVarsBuilder + implements + Builder { + _$GSocksProxyFragmentVars? _$v; + + GSocksProxyFragmentVarsBuilder(); + + @override + void replace(GSocksProxyFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSocksProxyFragmentVars; + } + + @override + void update(void Function(GSocksProxyFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSocksProxyFragmentVars build() => _build(); + + _$GSocksProxyFragmentVars _build() { + final _$result = _$v ?? new _$GSocksProxyFragmentVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/socks_proxy/graphql/fragment.graphql b/lib/src/features/settings/domain/socks_proxy/graphql/fragment.graphql new file mode 100644 index 00000000..fbd90553 --- /dev/null +++ b/lib/src/features/settings/domain/socks_proxy/graphql/fragment.graphql @@ -0,0 +1,9 @@ + +fragment SocksProxyFragment on SettingsType { + socksProxyEnabled + socksProxyHost + socksProxyPassword + socksProxyPort + socksProxyUsername + socksProxyVersion +} diff --git a/lib/src/features/settings/domain/socks_proxy/socks_proxy.dart b/lib/src/features/settings/domain/socks_proxy/socks_proxy.dart new file mode 100644 index 00000000..4041d2eb --- /dev/null +++ b/lib/src/features/settings/domain/socks_proxy/socks_proxy.dart @@ -0,0 +1,3 @@ +import 'graphql/__generated__/fragment.data.gql.dart'; + +typedef SocksProxyDto = GSocksProxyFragment; diff --git a/lib/src/features/settings/enums/restore_state.dart b/lib/src/features/settings/enums/restore_state.dart deleted file mode 100644 index 9798cb86..00000000 --- a/lib/src/features/settings/enums/restore_state.dart +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../abstracts/value_enum.dart'; - -@JsonEnum(valueField: 'value') -enum RestoreState implements ValueEnum { - idle("IDLE"), - success("SUCCESS"), - failure("FAILURE"), - restoringCategories("RESTORING_CATEGORIES"), - restoringManga("RESTORING_MANGA"), - ; - - const RestoreState(this.value); - static final _valueMap = { - for (RestoreState state in RestoreState.values) state.value: state, - }; - static RestoreState? fromValue(String value) => _valueMap[value]; - - bool get isFinalState => this == success || this == failure; - - @override - final String value; -} diff --git a/lib/src/features/settings/presentation/appearance/appearance_screen.dart b/lib/src/features/settings/presentation/appearance/appearance_screen.dart index 0b77c7b6..a277680d 100644 --- a/lib/src/features/settings/presentation/appearance/appearance_screen.dart +++ b/lib/src/features/settings/presentation/appearance/appearance_screen.dart @@ -10,7 +10,7 @@ import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../utils/extensions/custom_extensions.dart'; import '../../widgets/app_theme_mode_tile/app_theme_mode_tile.dart'; import 'widgets/app_theme_selector/app_theme_selector.dart'; -import 'widgets/grid_cover_min_width.dart'; +import 'widgets/grid_cover_width_slider/grid_cover_width_slider.dart'; import 'widgets/is_true_black/is_true_black_tile.dart'; class AppearanceScreen extends ConsumerWidget { @@ -26,7 +26,7 @@ class AppearanceScreen extends ConsumerWidget { const AppThemeModeTile(), if (themeMode != ThemeMode.light) const IsTrueBlackTile(), const AppThemeSelector(), - const GridCoverMinWidth(), + const GridCoverWidthSlider(), ], ), ); diff --git a/lib/src/features/settings/presentation/appearance/widgets/app_theme_selector/app_theme_selector.dart b/lib/src/features/settings/presentation/appearance/widgets/app_theme_selector/app_theme_selector.dart index 8a1152c9..34f14131 100644 --- a/lib/src/features/settings/presentation/appearance/widgets/app_theme_selector/app_theme_selector.dart +++ b/lib/src/features/settings/presentation/appearance/widgets/app_theme_selector/app_theme_selector.dart @@ -27,41 +27,45 @@ class AppThemeSelector extends HookConsumerWidget { Widget build(context, ref) { final flexSchemaList = useMemoized(() => FlexColor.schemes.keys.toList()); final selectedAppTheme = ref.watch(appSchemeProvider); - + final scrollController = useScrollController(); return Padding( padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 16), child: SizedBox( height: 148, - child: ListView.builder( - scrollDirection: Axis.horizontal, - itemCount: flexSchemaList.length, - itemBuilder: (context, index) { - final flexSchemeColor = FlexColor.schemes[flexSchemaList[index]]; - if (flexSchemeColor == null) return const SizedBox.shrink(); - return Padding( - padding: const EdgeInsets.symmetric(horizontal: 4), - child: Tooltip( - message: flexSchemeColor.name, - child: FlexThemeModeOptionButton( - height: 64, - width: 32, - optionButtonBorderRadius: 16, - flexSchemeColor: flexSchemeColor.dark, - borderRadius: 8, - hoverColor: context.isDarkMode - ? Colors.black.withAlpha(0x2F) - : Colors.white.withAlpha(0x3F), - focusColor: context.isDarkMode - ? Colors.black.withAlpha(0x4F) - : Colors.white.withAlpha(0x5F), - selected: selectedAppTheme == flexSchemaList[index], - onSelect: () => ref - .read(appSchemeProvider.notifier) - .update(flexSchemaList[index]), + child: Scrollbar( + controller: scrollController, + child: ListView.builder( + controller: scrollController, + scrollDirection: Axis.horizontal, + itemCount: flexSchemaList.length, + itemBuilder: (context, index) { + final flexSchemeColor = FlexColor.schemes[flexSchemaList[index]]; + if (flexSchemeColor == null) return const SizedBox.shrink(); + return Padding( + padding: const EdgeInsets.symmetric(horizontal: 4), + child: Tooltip( + message: flexSchemeColor.name, + child: FlexThemeModeOptionButton( + height: 64, + width: 32, + optionButtonBorderRadius: 16, + flexSchemeColor: flexSchemeColor.dark, + borderRadius: 8, + hoverColor: context.isDarkMode + ? Colors.black.withAlpha(0x2F) + : Colors.white.withAlpha(0x3F), + focusColor: context.isDarkMode + ? Colors.black.withAlpha(0x4F) + : Colors.white.withAlpha(0x5F), + selected: selectedAppTheme == flexSchemaList[index], + onSelect: () => ref + .read(appSchemeProvider.notifier) + .update(flexSchemaList[index]), + ), ), - ), - ); - }, + ); + }, + ), ), ), ); diff --git a/lib/src/features/settings/presentation/appearance/widgets/grid_cover_min_width.dart b/lib/src/features/settings/presentation/appearance/widgets/grid_cover_width_slider/grid_cover_width_slider.dart similarity index 73% rename from lib/src/features/settings/presentation/appearance/widgets/grid_cover_min_width.dart rename to lib/src/features/settings/presentation/appearance/widgets/grid_cover_width_slider/grid_cover_width_slider.dart index 68029233..87403715 100644 --- a/lib/src/features/settings/presentation/appearance/widgets/grid_cover_min_width.dart +++ b/lib/src/features/settings/presentation/appearance/widgets/grid_cover_width_slider/grid_cover_width_slider.dart @@ -8,12 +8,12 @@ import 'package:flutter/material.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; -import '../../../../../constants/db_keys.dart'; -import '../../../../../utils/extensions/custom_extensions.dart'; -import '../../../../../utils/mixin/shared_preferences_client_mixin.dart'; -import '../../../widgets/slider_setting_tile/slider_setting_tile.dart'; +import '../../../../../../constants/db_keys.dart'; +import '../../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../../utils/mixin/shared_preferences_client_mixin.dart'; +import '../../../../widgets/slider_setting_tile/slider_setting_tile.dart'; -part 'grid_cover_min_width.g.dart'; +part 'grid_cover_width_slider.g.dart'; @riverpod class GridMinWidth extends _$GridMinWidth @@ -22,8 +22,8 @@ class GridMinWidth extends _$GridMinWidth double? build() => initialize(DBKeys.gridMangaCoverWidth); } -class GridCoverMinWidth extends ConsumerWidget { - const GridCoverMinWidth({super.key}); +class GridCoverWidthSlider extends ConsumerWidget { + const GridCoverWidthSlider({super.key}); @override Widget build(BuildContext context, WidgetRef ref) { diff --git a/lib/src/features/settings/presentation/appearance/widgets/grid_cover_min_width.g.dart b/lib/src/features/settings/presentation/appearance/widgets/grid_cover_width_slider/grid_cover_width_slider.g.dart similarity index 95% rename from lib/src/features/settings/presentation/appearance/widgets/grid_cover_min_width.g.dart rename to lib/src/features/settings/presentation/appearance/widgets/grid_cover_width_slider/grid_cover_width_slider.g.dart index 5d5780a2..4ca4ec79 100644 --- a/lib/src/features/settings/presentation/appearance/widgets/grid_cover_min_width.g.dart +++ b/lib/src/features/settings/presentation/appearance/widgets/grid_cover_width_slider/grid_cover_width_slider.g.dart @@ -1,6 +1,6 @@ // GENERATED CODE - DO NOT MODIFY BY HAND -part of 'grid_cover_min_width.dart'; +part of 'grid_cover_width_slider.dart'; // ************************************************************************** // RiverpodGenerator diff --git a/lib/src/features/settings/presentation/appearance/widgets/is_true_black/is_true_black_tile.dart b/lib/src/features/settings/presentation/appearance/widgets/is_true_black/is_true_black_tile.dart index b8022cef..2e0efd37 100644 --- a/lib/src/features/settings/presentation/appearance/widgets/is_true_black/is_true_black_tile.dart +++ b/lib/src/features/settings/presentation/appearance/widgets/is_true_black/is_true_black_tile.dart @@ -26,7 +26,7 @@ class IsTrueBlackTile extends HookConsumerWidget { Widget build(BuildContext context, WidgetRef ref) { return SwitchListTile( controlAffinity: ListTileControlAffinity.trailing, - secondary: const Icon(Icons.circle, color: Colors.black), + secondary: const Icon(Icons.circle_rounded, color: Colors.black), title: Text(context.l10n.isTrueBlack), onChanged: ref.read(isTrueBlackProvider.notifier).update, value: ref.watch(isTrueBlackProvider).ifNull(), diff --git a/lib/src/features/settings/presentation/backup/automatic_backup/automatic_backup_section.dart b/lib/src/features/settings/presentation/backup/automatic_backup/automatic_backup_section.dart deleted file mode 100644 index 280a180a..00000000 --- a/lib/src/features/settings/presentation/backup/automatic_backup/automatic_backup_section.dart +++ /dev/null @@ -1,118 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:hooks_riverpod/hooks_riverpod.dart'; - -import '../../../../../utils/extensions/custom_extensions.dart'; -import '../../../../../widgets/popup_widgets/slider_popup.dart'; -import '../../../../../widgets/popup_widgets/text_field_popup.dart'; -import '../../../../../widgets/section_title.dart'; -import '../../../controller/settings_controller.dart'; -import '../../../data/settings_repository.dart'; - -class AutomaticBackupSection extends ConsumerWidget { - const AutomaticBackupSection({super.key}); - - @override - Widget build(context, ref) { - final automaticBackupSettings = ref.watch(automaticBackupSettingsProvider); - final repository = ref.watch(settingsRepositoryProvider); - - reload() => ref.refresh(automaticBackupSettingsProvider.future); - - return automaticBackupSettings.showUiWhenData( - context, - (data) { - if (data == null) { - return const SizedBox.shrink(); - } - return Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SectionTitle(title: context.l10n.automaticBackup), - ListTile( - leading: const Icon(Icons.folder_rounded), - title: Text(context.l10n.backupLocation), - subtitle: (data.backupPath).isNotBlank - ? Text(data.backupPath!) - : Text(context.l10n.backupLocationDescription), - onTap: () => showDialog( - context: context, - builder: (context) => TextFieldPopup( - title: context.l10n.backupLocation, - initialValue: data.backupPath, - subtitle: context.l10n.backupLocationDescription, - onChange: (value) async { - await repository.updateBackupLocation(value); - await reload(); - if (context.mounted) Navigator.pop(context); - }, - ), - ), - ), - ListTile( - leading: const Icon(Icons.access_alarm_rounded), - title: Text(context.l10n.backupTime), - subtitle: data.backupTime != null - ? Text(data.backupTime!.format(context)) - : null, - onTap: () async { - final backupTime = await showTimePicker( - initialTime: - data.backupTime ?? const TimeOfDay(hour: 0, minute: 0), - context: context, - ); - if (backupTime != null) { - await repository.updateBackupTime(backupTime); - await reload(); - } - }, - ), - ListTile( - leading: const Icon(Icons.folder_rounded), - title: Text(context.l10n.backupInterval), - subtitle: (data.backupInterval) != null - ? Text(context.l10n - .nDays(data.backupInterval.ifNullOrZero(1).compact()!)) - : null, - onTap: () => showDialog( - context: context, - builder: (context) => SliderPopup( - min: 1, - max: 31, - title: context.l10n.backupInterval, - initialValue: data.backupInterval.ifNull(1), - onChange: (value) async { - await repository.updateBackupInterval(value); - await reload(); - if (context.mounted) Navigator.pop(context); - }, - ), - ), - ), - ListTile( - leading: const Icon(Icons.cleaning_services_rounded), - title: Text(context.l10n.backupCleanup), - subtitle: (data.backupTTL) != null - ? Text(context.l10n.backupCleanupDescription( - data.backupTTL.ifNull(14).compact()!)) - : null, - onTap: () => showDialog( - context: context, - builder: (context) => SliderPopup( - min: 0, - max: 1000, - title: context.l10n.backupCleanup, - initialValue: data.backupTTL.ifNull(1), - onChange: (value) async { - await repository.updateBackupTTL(value); - await reload(); - if (context.mounted) Navigator.pop(context); - }, - ), - ), - ), - ], - ); - }, - ); - } -} diff --git a/lib/src/features/settings/presentation/backup/backup_screen.dart b/lib/src/features/settings/presentation/backup/backup_screen.dart index b5d61506..54dd5ad7 100644 --- a/lib/src/features/settings/presentation/backup/backup_screen.dart +++ b/lib/src/features/settings/presentation/backup/backup_screen.dart @@ -8,9 +8,9 @@ import 'package:flutter/material.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../utils/extensions/custom_extensions.dart'; -import '../../controller/settings_controller.dart'; -import 'automatic_backup/automatic_backup_section.dart'; -import 'backup_and_restore/backup_and_restore_section.dart'; +import '../../controller/server_controller.dart'; +import 'widgets/automatic_backup/automatic_backup_section.dart'; +import 'widgets/backup_and_restore/backup_and_restore_section.dart'; class BackupScreen extends ConsumerWidget { const BackupScreen({super.key}); @@ -20,7 +20,7 @@ class BackupScreen extends ConsumerWidget { return Scaffold( appBar: AppBar(title: Text(context.l10n.backup)), body: RefreshIndicator( - onRefresh: () => ref.refresh(automaticBackupSettingsProvider.future), + onRefresh: () => ref.refresh(settingsProvider.future), child: ListView( children: const [ BackupAndRestoreSection(), diff --git a/lib/src/features/settings/presentation/backup/controllers/backup_controller.dart b/lib/src/features/settings/presentation/backup/controllers/backup_controller.dart new file mode 100644 index 00000000..2ce0a5dd --- /dev/null +++ b/lib/src/features/settings/presentation/backup/controllers/backup_controller.dart @@ -0,0 +1,10 @@ +import 'package:riverpod_annotation/riverpod_annotation.dart'; + +import '../../../domain/restore_status/restore_status.dart'; +import '../data/backup_settings_repository.dart'; + +part 'backup_controller.g.dart'; + +@riverpod +Stream restoreStatus(RestoreStatusRef ref, String restoreId) => + ref.watch(backupSettingsRepositoryProvider).getRestoreStatus(restoreId); diff --git a/lib/src/features/settings/controller/settings_controller.g.dart b/lib/src/features/settings/presentation/backup/controllers/backup_controller.g.dart similarity index 85% rename from lib/src/features/settings/controller/settings_controller.g.dart rename to lib/src/features/settings/presentation/backup/controllers/backup_controller.g.dart index eeb221fa..8328590f 100644 --- a/lib/src/features/settings/controller/settings_controller.g.dart +++ b/lib/src/features/settings/presentation/backup/controllers/backup_controller.g.dart @@ -1,12 +1,12 @@ // GENERATED CODE - DO NOT MODIFY BY HAND -part of 'settings_controller.dart'; +part of 'backup_controller.dart'; // ************************************************************************** // RiverpodGenerator // ************************************************************************** -String _$restoreStatusHash() => r'b70ecd1babf4571614aac6d917627ac647d1b3e3'; +String _$restoreStatusHash() => r'029d9cd9d80cd51bc5ab53974f166ba9913c1649'; /// Copied from Dart SDK class _SystemHash { @@ -155,24 +155,5 @@ class _RestoreStatusProviderElement @override String get restoreId => (origin as RestoreStatusProvider).restoreId; } - -String _$automaticBackupSettingsHash() => - r'51be9c48a2309ba44fb4335deda56d2e4dd26b91'; - -/// See also [automaticBackupSettings]. -@ProviderFor(automaticBackupSettings) -final automaticBackupSettingsProvider = - AutoDisposeStreamProvider.internal( - automaticBackupSettings, - name: r'automaticBackupSettingsProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$automaticBackupSettingsHash, - dependencies: null, - allTransitiveDependencies: null, -); - -typedef AutomaticBackupSettingsRef - = AutoDisposeStreamProviderRef; // ignore_for_file: type=lint // ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member diff --git a/lib/src/features/settings/presentation/backup/data/backup_settings_repository.dart b/lib/src/features/settings/presentation/backup/data/backup_settings_repository.dart new file mode 100644 index 00000000..3a5e6afd --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/backup_settings_repository.dart @@ -0,0 +1,79 @@ +// Copyright (c) 2022 Contributors to the Suwayomi project +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + +import 'package:ferry/ferry.dart'; +import 'package:flutter/material.dart'; +import 'package:http/http.dart' show MultipartFile; +import 'package:riverpod_annotation/riverpod_annotation.dart'; + +import '../../../../../global_providers/global_providers.dart'; +import '../../../../../utils/extensions/custom_extensions.dart'; +import '../../../data/settings_repository.dart'; +import '../../../domain/restore_status/restore_status.dart'; +import 'graphql/backup_settings_query.dart'; + +part 'backup_settings_repository.g.dart'; + +class BackupSettingsRepository { + const BackupSettingsRepository(this.ferryClient); + + final Client ferryClient; + + Stream restoreBackup(MultipartFile? file) => ferryClient.fetch( + BackupSettingsQuery.restoreBackup(file), + (data) => data.restoreBackup.id, + ); + + Stream?> validateBackup(MultipartFile? file) => ferryClient.fetch( + BackupSettingsQuery.validateBackup(file), + (data) => data.validateBackup.missingSources + .map((value) => value.name) + .toSet(), + ); + + Stream getRestoreStatus(String restoreId) => + ferryClient.fetch(BackupSettingsQuery.restoreStatus(restoreId), + (data) => data.restoreStatus); + + Stream createBackup(bool includeCategories, bool includeChapters) => + ferryClient.fetch( + BackupSettingsQuery.createBackup(includeCategories, includeChapters), + (data) => data.createBackup.url, + ); + + Future updateBackupLocation(String? backupPath) => ferryClient + .fetch( + BackupSettingsQuery.updateBackupPath(backupPath), + (data) => data.setSettings.settings, + ) + .first; + + Future updateBackupTime(TimeOfDay backupTime) => ferryClient + .fetch( + BackupSettingsQuery.updateBackupTime(backupTime), + (data) => data.setSettings.settings, + ) + .first; + + Future updateBackupInterval(int backupInterval) => ferryClient + .fetch( + BackupSettingsQuery.updateBackupInterval(backupInterval), + (data) => data.setSettings.settings, + ) + .first; + + Future updateBackupTTL(int backupTTL) => ferryClient + .fetch( + BackupSettingsQuery.updateBackupTTL(backupTTL), + (data) => data.setSettings.settings, + ) + .first; +} + +@riverpod +BackupSettingsRepository backupSettingsRepository( + BackupSettingsRepositoryRef ref) => + BackupSettingsRepository(ref.watch(ferryClientProvider)); diff --git a/lib/src/features/settings/presentation/backup/data/backup_settings_repository.g.dart b/lib/src/features/settings/presentation/backup/data/backup_settings_repository.g.dart new file mode 100644 index 00000000..1a005728 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/backup_settings_repository.g.dart @@ -0,0 +1,28 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'backup_settings_repository.dart'; + +// ************************************************************************** +// RiverpodGenerator +// ************************************************************************** + +String _$backupSettingsRepositoryHash() => + r'2425493c8347414de84a5589d21b6dcf2e69989a'; + +/// See also [backupSettingsRepository]. +@ProviderFor(backupSettingsRepository) +final backupSettingsRepositoryProvider = + AutoDisposeProvider.internal( + backupSettingsRepository, + name: r'backupSettingsRepositoryProvider', + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') + ? null + : _$backupSettingsRepositoryHash, + dependencies: null, + allTransitiveDependencies: null, +); + +typedef BackupSettingsRepositoryRef + = AutoDisposeProviderRef; +// ignore_for_file: type=lint +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member diff --git a/lib/src/features/settings/presentation/backup/data/graphql/__generated__/backup_settings_query.ast.gql.dart b/lib/src/features/settings/presentation/backup/data/graphql/__generated__/backup_settings_query.ast.gql.dart new file mode 100644 index 00000000..78375b29 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/__generated__/backup_settings_query.ast.gql.dart @@ -0,0 +1,481 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/data/graphql/__generated__/settings_query.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i9; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/restore_status/graphql/__generated__/fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i6; + +const RestoreStatus = _i1.OperationDefinitionNode( + type: _i1.OperationType.query, + name: _i1.NameNode(value: 'RestoreStatus'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'restoreId')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'restoreStatus'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'id'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'restoreId')), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'RestoreStatusFragment'), + directives: [], + ) + ]), + ) + ]), +); +const ValidateBackup = _i1.OperationDefinitionNode( + type: _i1.OperationType.query, + name: _i1.NameNode(value: 'ValidateBackup'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'backup')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Upload'), + isNonNull: true, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'validateBackup'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'backup'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'backup')), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'missingSources'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ) + ]), + ) + ]), + ) + ]), +); +const CreateBackup = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'CreateBackup'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: + _i1.VariableNode(name: _i1.NameNode(value: 'includeCategories')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: + _i1.DefaultValueNode(value: _i1.BooleanValueNode(value: true)), + directives: [], + ), + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'includeChapters')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: + _i1.DefaultValueNode(value: _i1.BooleanValueNode(value: true)), + directives: [], + ), + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'createBackup'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'includeCategories'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'includeCategories')), + ), + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'includeChapters'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'includeChapters')), + ), + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'clientMutationId'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'url'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ) + ]), +); +const RestoreBackup = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'RestoreBackup'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'backup')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Upload'), + isNonNull: true, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'restoreBackup'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'backup'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'backup')), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'clientMutationId'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'id'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'status'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'RestoreStatusFragment'), + directives: [], + ) + ]), + ), + ]), + ) + ]), +); +const UpdateBackupPath = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateBackupPath'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'backupPath')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode( + value: _i1.StringValueNode( + value: '', + isBlock: false, + )), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'backupPath'), + value: + _i1.VariableNode(name: _i1.NameNode(value: 'backupPath')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const UpdateBackupTime = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateBackupTime'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'backupTime')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode( + value: _i1.StringValueNode( + value: '12:00', + isBlock: false, + )), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'backupTime'), + value: + _i1.VariableNode(name: _i1.NameNode(value: 'backupTime')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const UpdateBackupInterval = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateBackupInterval'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'backupInterval')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode(value: _i1.IntValueNode(value: '1')), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'backupInterval'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'backupInterval')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const UpdateBackupTTL = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateBackupTTL'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'backupTTL')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode(value: _i1.IntValueNode(value: '14')), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'backupTTL'), + value: + _i1.VariableNode(name: _i1.NameNode(value: 'backupTTL')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + RestoreStatus, + ValidateBackup, + CreateBackup, + RestoreBackup, + UpdateBackupPath, + UpdateBackupTime, + UpdateBackupInterval, + UpdateBackupTTL, + _i2.RestoreStatusFragment, + _i3.AutomaticBackupSettingsFragment, + _i4.ServerSettings, + _i4.SettingsFragment, + _i5.ServerBindingFragment, + _i6.SocksProxyFragment, + _i7.CloudFlareBypassFragment, + _i8.MiscSettingsFragment, + _i9.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/presentation/backup/data/graphql/__generated__/backup_settings_query.data.gql.dart b/lib/src/features/settings/presentation/backup/data/graphql/__generated__/backup_settings_query.data.gql.dart new file mode 100644 index 00000000..676fee18 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/__generated__/backup_settings_query.data.gql.dart @@ -0,0 +1,918 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/data/graphql/__generated__/settings_query.data.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/restore_status/graphql/__generated__/fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'backup_settings_query.data.gql.g.dart'; + +abstract class GRestoreStatusData + implements Built { + GRestoreStatusData._(); + + factory GRestoreStatusData( + [void Function(GRestoreStatusDataBuilder b) updates]) = + _$GRestoreStatusData; + + static void _initializeBuilder(GRestoreStatusDataBuilder b) => + b..G__typename = 'Query'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GRestoreStatusData_restoreStatus? get restoreStatus; + static Serializer get serializer => + _$gRestoreStatusDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GRestoreStatusData.serializer, + this, + ) as Map); + + static GRestoreStatusData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GRestoreStatusData.serializer, + json, + ); +} + +abstract class GRestoreStatusData_restoreStatus + implements + Built, + _i2.GRestoreStatusFragment { + GRestoreStatusData_restoreStatus._(); + + factory GRestoreStatusData_restoreStatus( + [void Function(GRestoreStatusData_restoreStatusBuilder b) updates]) = + _$GRestoreStatusData_restoreStatus; + + static void _initializeBuilder(GRestoreStatusData_restoreStatusBuilder b) => + b..G__typename = 'BackupRestoreStatus'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get mangaProgress; + @override + _i3.GBackupRestoreState get state; + @override + int get totalManga; + static Serializer get serializer => + _$gRestoreStatusDataRestoreStatusSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GRestoreStatusData_restoreStatus.serializer, + this, + ) as Map); + + static GRestoreStatusData_restoreStatus? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GRestoreStatusData_restoreStatus.serializer, + json, + ); +} + +abstract class GValidateBackupData + implements Built { + GValidateBackupData._(); + + factory GValidateBackupData( + [void Function(GValidateBackupDataBuilder b) updates]) = + _$GValidateBackupData; + + static void _initializeBuilder(GValidateBackupDataBuilder b) => + b..G__typename = 'Query'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GValidateBackupData_validateBackup get validateBackup; + static Serializer get serializer => + _$gValidateBackupDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GValidateBackupData.serializer, + this, + ) as Map); + + static GValidateBackupData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GValidateBackupData.serializer, + json, + ); +} + +abstract class GValidateBackupData_validateBackup + implements + Built { + GValidateBackupData_validateBackup._(); + + factory GValidateBackupData_validateBackup( + [void Function(GValidateBackupData_validateBackupBuilder b) + updates]) = _$GValidateBackupData_validateBackup; + + static void _initializeBuilder(GValidateBackupData_validateBackupBuilder b) => + b..G__typename = 'ValidateBackupResult'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + BuiltList + get missingSources; + static Serializer get serializer => + _$gValidateBackupDataValidateBackupSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GValidateBackupData_validateBackup.serializer, + this, + ) as Map); + + static GValidateBackupData_validateBackup? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GValidateBackupData_validateBackup.serializer, + json, + ); +} + +abstract class GValidateBackupData_validateBackup_missingSources + implements + Built { + GValidateBackupData_validateBackup_missingSources._(); + + factory GValidateBackupData_validateBackup_missingSources( + [void Function(GValidateBackupData_validateBackup_missingSourcesBuilder b) + updates]) = _$GValidateBackupData_validateBackup_missingSources; + + static void _initializeBuilder( + GValidateBackupData_validateBackup_missingSourcesBuilder b) => + b..G__typename = 'ValidateBackupSource'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + String get name; + static Serializer + get serializer => + _$gValidateBackupDataValidateBackupMissingSourcesSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GValidateBackupData_validateBackup_missingSources.serializer, + this, + ) as Map); + + static GValidateBackupData_validateBackup_missingSources? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GValidateBackupData_validateBackup_missingSources.serializer, + json, + ); +} + +abstract class GCreateBackupData + implements Built { + GCreateBackupData._(); + + factory GCreateBackupData( + [void Function(GCreateBackupDataBuilder b) updates]) = + _$GCreateBackupData; + + static void _initializeBuilder(GCreateBackupDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GCreateBackupData_createBackup get createBackup; + static Serializer get serializer => + _$gCreateBackupDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GCreateBackupData.serializer, + this, + ) as Map); + + static GCreateBackupData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GCreateBackupData.serializer, + json, + ); +} + +abstract class GCreateBackupData_createBackup + implements + Built { + GCreateBackupData_createBackup._(); + + factory GCreateBackupData_createBackup( + [void Function(GCreateBackupData_createBackupBuilder b) updates]) = + _$GCreateBackupData_createBackup; + + static void _initializeBuilder(GCreateBackupData_createBackupBuilder b) => + b..G__typename = 'CreateBackupPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + String? get clientMutationId; + String get url; + static Serializer get serializer => + _$gCreateBackupDataCreateBackupSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GCreateBackupData_createBackup.serializer, + this, + ) as Map); + + static GCreateBackupData_createBackup? fromJson(Map json) => + _i1.serializers.deserializeWith( + GCreateBackupData_createBackup.serializer, + json, + ); +} + +abstract class GRestoreBackupData + implements Built { + GRestoreBackupData._(); + + factory GRestoreBackupData( + [void Function(GRestoreBackupDataBuilder b) updates]) = + _$GRestoreBackupData; + + static void _initializeBuilder(GRestoreBackupDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GRestoreBackupData_restoreBackup get restoreBackup; + static Serializer get serializer => + _$gRestoreBackupDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GRestoreBackupData.serializer, + this, + ) as Map); + + static GRestoreBackupData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GRestoreBackupData.serializer, + json, + ); +} + +abstract class GRestoreBackupData_restoreBackup + implements + Built { + GRestoreBackupData_restoreBackup._(); + + factory GRestoreBackupData_restoreBackup( + [void Function(GRestoreBackupData_restoreBackupBuilder b) updates]) = + _$GRestoreBackupData_restoreBackup; + + static void _initializeBuilder(GRestoreBackupData_restoreBackupBuilder b) => + b..G__typename = 'RestoreBackupPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + String? get clientMutationId; + String get id; + GRestoreBackupData_restoreBackup_status? get status; + static Serializer get serializer => + _$gRestoreBackupDataRestoreBackupSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GRestoreBackupData_restoreBackup.serializer, + this, + ) as Map); + + static GRestoreBackupData_restoreBackup? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GRestoreBackupData_restoreBackup.serializer, + json, + ); +} + +abstract class GRestoreBackupData_restoreBackup_status + implements + Built, + _i2.GRestoreStatusFragment { + GRestoreBackupData_restoreBackup_status._(); + + factory GRestoreBackupData_restoreBackup_status( + [void Function(GRestoreBackupData_restoreBackup_statusBuilder b) + updates]) = _$GRestoreBackupData_restoreBackup_status; + + static void _initializeBuilder( + GRestoreBackupData_restoreBackup_statusBuilder b) => + b..G__typename = 'BackupRestoreStatus'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get mangaProgress; + @override + _i3.GBackupRestoreState get state; + @override + int get totalManga; + static Serializer get serializer => + _$gRestoreBackupDataRestoreBackupStatusSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GRestoreBackupData_restoreBackup_status.serializer, + this, + ) as Map); + + static GRestoreBackupData_restoreBackup_status? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GRestoreBackupData_restoreBackup_status.serializer, + json, + ); +} + +abstract class GUpdateBackupPathData + implements Built { + GUpdateBackupPathData._(); + + factory GUpdateBackupPathData( + [void Function(GUpdateBackupPathDataBuilder b) updates]) = + _$GUpdateBackupPathData; + + static void _initializeBuilder(GUpdateBackupPathDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateBackupPathData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateBackupPathDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupPathData.serializer, + this, + ) as Map); + + static GUpdateBackupPathData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupPathData.serializer, + json, + ); +} + +abstract class GUpdateBackupPathData_setSettings + implements + Built { + GUpdateBackupPathData_setSettings._(); + + factory GUpdateBackupPathData_setSettings( + [void Function(GUpdateBackupPathData_setSettingsBuilder b) updates]) = + _$GUpdateBackupPathData_setSettings; + + static void _initializeBuilder(GUpdateBackupPathData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateBackupPathData_setSettings_settings get settings; + static Serializer get serializer => + _$gUpdateBackupPathDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupPathData_setSettings.serializer, + this, + ) as Map); + + static GUpdateBackupPathData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupPathData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateBackupPathData_setSettings_settings + implements + Built, + _i4.GSettingsFragment { + GUpdateBackupPathData_setSettings_settings._(); + + factory GUpdateBackupPathData_setSettings_settings( + [void Function(GUpdateBackupPathData_setSettings_settingsBuilder b) + updates]) = _$GUpdateBackupPathData_setSettings_settings; + + static void _initializeBuilder( + GUpdateBackupPathData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + static Serializer + get serializer => _$gUpdateBackupPathDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupPathData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateBackupPathData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupPathData_setSettings_settings.serializer, + json, + ); +} + +abstract class GUpdateBackupTimeData + implements Built { + GUpdateBackupTimeData._(); + + factory GUpdateBackupTimeData( + [void Function(GUpdateBackupTimeDataBuilder b) updates]) = + _$GUpdateBackupTimeData; + + static void _initializeBuilder(GUpdateBackupTimeDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateBackupTimeData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateBackupTimeDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupTimeData.serializer, + this, + ) as Map); + + static GUpdateBackupTimeData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupTimeData.serializer, + json, + ); +} + +abstract class GUpdateBackupTimeData_setSettings + implements + Built { + GUpdateBackupTimeData_setSettings._(); + + factory GUpdateBackupTimeData_setSettings( + [void Function(GUpdateBackupTimeData_setSettingsBuilder b) updates]) = + _$GUpdateBackupTimeData_setSettings; + + static void _initializeBuilder(GUpdateBackupTimeData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateBackupTimeData_setSettings_settings get settings; + static Serializer get serializer => + _$gUpdateBackupTimeDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupTimeData_setSettings.serializer, + this, + ) as Map); + + static GUpdateBackupTimeData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupTimeData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateBackupTimeData_setSettings_settings + implements + Built, + _i4.GSettingsFragment { + GUpdateBackupTimeData_setSettings_settings._(); + + factory GUpdateBackupTimeData_setSettings_settings( + [void Function(GUpdateBackupTimeData_setSettings_settingsBuilder b) + updates]) = _$GUpdateBackupTimeData_setSettings_settings; + + static void _initializeBuilder( + GUpdateBackupTimeData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + static Serializer + get serializer => _$gUpdateBackupTimeDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupTimeData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateBackupTimeData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupTimeData_setSettings_settings.serializer, + json, + ); +} + +abstract class GUpdateBackupIntervalData + implements + Built { + GUpdateBackupIntervalData._(); + + factory GUpdateBackupIntervalData( + [void Function(GUpdateBackupIntervalDataBuilder b) updates]) = + _$GUpdateBackupIntervalData; + + static void _initializeBuilder(GUpdateBackupIntervalDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateBackupIntervalData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateBackupIntervalDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupIntervalData.serializer, + this, + ) as Map); + + static GUpdateBackupIntervalData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupIntervalData.serializer, + json, + ); +} + +abstract class GUpdateBackupIntervalData_setSettings + implements + Built { + GUpdateBackupIntervalData_setSettings._(); + + factory GUpdateBackupIntervalData_setSettings( + [void Function(GUpdateBackupIntervalData_setSettingsBuilder b) + updates]) = _$GUpdateBackupIntervalData_setSettings; + + static void _initializeBuilder( + GUpdateBackupIntervalData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateBackupIntervalData_setSettings_settings get settings; + static Serializer get serializer => + _$gUpdateBackupIntervalDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupIntervalData_setSettings.serializer, + this, + ) as Map); + + static GUpdateBackupIntervalData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupIntervalData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateBackupIntervalData_setSettings_settings + implements + Built, + _i4.GSettingsFragment { + GUpdateBackupIntervalData_setSettings_settings._(); + + factory GUpdateBackupIntervalData_setSettings_settings( + [void Function(GUpdateBackupIntervalData_setSettings_settingsBuilder b) + updates]) = _$GUpdateBackupIntervalData_setSettings_settings; + + static void _initializeBuilder( + GUpdateBackupIntervalData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + static Serializer + get serializer => + _$gUpdateBackupIntervalDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupIntervalData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateBackupIntervalData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupIntervalData_setSettings_settings.serializer, + json, + ); +} + +abstract class GUpdateBackupTTLData + implements Built { + GUpdateBackupTTLData._(); + + factory GUpdateBackupTTLData( + [void Function(GUpdateBackupTTLDataBuilder b) updates]) = + _$GUpdateBackupTTLData; + + static void _initializeBuilder(GUpdateBackupTTLDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateBackupTTLData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateBackupTTLDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupTTLData.serializer, + this, + ) as Map); + + static GUpdateBackupTTLData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupTTLData.serializer, + json, + ); +} + +abstract class GUpdateBackupTTLData_setSettings + implements + Built { + GUpdateBackupTTLData_setSettings._(); + + factory GUpdateBackupTTLData_setSettings( + [void Function(GUpdateBackupTTLData_setSettingsBuilder b) updates]) = + _$GUpdateBackupTTLData_setSettings; + + static void _initializeBuilder(GUpdateBackupTTLData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateBackupTTLData_setSettings_settings get settings; + static Serializer get serializer => + _$gUpdateBackupTTLDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupTTLData_setSettings.serializer, + this, + ) as Map); + + static GUpdateBackupTTLData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupTTLData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateBackupTTLData_setSettings_settings + implements + Built, + _i4.GSettingsFragment { + GUpdateBackupTTLData_setSettings_settings._(); + + factory GUpdateBackupTTLData_setSettings_settings( + [void Function(GUpdateBackupTTLData_setSettings_settingsBuilder b) + updates]) = _$GUpdateBackupTTLData_setSettings_settings; + + static void _initializeBuilder( + GUpdateBackupTTLData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + static Serializer get serializer => + _$gUpdateBackupTTLDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupTTLData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateBackupTTLData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupTTLData_setSettings_settings.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/backup/data/graphql/__generated__/backup_settings_query.data.gql.g.dart b/lib/src/features/settings/presentation/backup/data/graphql/__generated__/backup_settings_query.data.gql.g.dart new file mode 100644 index 00000000..9bd2f0c2 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/__generated__/backup_settings_query.data.gql.g.dart @@ -0,0 +1,6110 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'backup_settings_query.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gRestoreStatusDataSerializer = + new _$GRestoreStatusDataSerializer(); +Serializer + _$gRestoreStatusDataRestoreStatusSerializer = + new _$GRestoreStatusData_restoreStatusSerializer(); +Serializer _$gValidateBackupDataSerializer = + new _$GValidateBackupDataSerializer(); +Serializer + _$gValidateBackupDataValidateBackupSerializer = + new _$GValidateBackupData_validateBackupSerializer(); +Serializer + _$gValidateBackupDataValidateBackupMissingSourcesSerializer = + new _$GValidateBackupData_validateBackup_missingSourcesSerializer(); +Serializer _$gCreateBackupDataSerializer = + new _$GCreateBackupDataSerializer(); +Serializer + _$gCreateBackupDataCreateBackupSerializer = + new _$GCreateBackupData_createBackupSerializer(); +Serializer _$gRestoreBackupDataSerializer = + new _$GRestoreBackupDataSerializer(); +Serializer + _$gRestoreBackupDataRestoreBackupSerializer = + new _$GRestoreBackupData_restoreBackupSerializer(); +Serializer + _$gRestoreBackupDataRestoreBackupStatusSerializer = + new _$GRestoreBackupData_restoreBackup_statusSerializer(); +Serializer _$gUpdateBackupPathDataSerializer = + new _$GUpdateBackupPathDataSerializer(); +Serializer + _$gUpdateBackupPathDataSetSettingsSerializer = + new _$GUpdateBackupPathData_setSettingsSerializer(); +Serializer + _$gUpdateBackupPathDataSetSettingsSettingsSerializer = + new _$GUpdateBackupPathData_setSettings_settingsSerializer(); +Serializer _$gUpdateBackupTimeDataSerializer = + new _$GUpdateBackupTimeDataSerializer(); +Serializer + _$gUpdateBackupTimeDataSetSettingsSerializer = + new _$GUpdateBackupTimeData_setSettingsSerializer(); +Serializer + _$gUpdateBackupTimeDataSetSettingsSettingsSerializer = + new _$GUpdateBackupTimeData_setSettings_settingsSerializer(); +Serializer _$gUpdateBackupIntervalDataSerializer = + new _$GUpdateBackupIntervalDataSerializer(); +Serializer + _$gUpdateBackupIntervalDataSetSettingsSerializer = + new _$GUpdateBackupIntervalData_setSettingsSerializer(); +Serializer + _$gUpdateBackupIntervalDataSetSettingsSettingsSerializer = + new _$GUpdateBackupIntervalData_setSettings_settingsSerializer(); +Serializer _$gUpdateBackupTTLDataSerializer = + new _$GUpdateBackupTTLDataSerializer(); +Serializer + _$gUpdateBackupTTLDataSetSettingsSerializer = + new _$GUpdateBackupTTLData_setSettingsSerializer(); +Serializer + _$gUpdateBackupTTLDataSetSettingsSettingsSerializer = + new _$GUpdateBackupTTLData_setSettings_settingsSerializer(); + +class _$GRestoreStatusDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GRestoreStatusData, _$GRestoreStatusData]; + @override + final String wireName = 'GRestoreStatusData'; + + @override + Iterable serialize( + Serializers serializers, GRestoreStatusData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + ]; + Object? value; + value = object.restoreStatus; + if (value != null) { + result + ..add('restoreStatus') + ..add(serializers.serialize(value, + specifiedType: const FullType(GRestoreStatusData_restoreStatus))); + } + return result; + } + + @override + GRestoreStatusData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GRestoreStatusDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'restoreStatus': + result.restoreStatus.replace(serializers.deserialize(value, + specifiedType: + const FullType(GRestoreStatusData_restoreStatus))! + as GRestoreStatusData_restoreStatus); + break; + } + } + + return result.build(); + } +} + +class _$GRestoreStatusData_restoreStatusSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GRestoreStatusData_restoreStatus, + _$GRestoreStatusData_restoreStatus + ]; + @override + final String wireName = 'GRestoreStatusData_restoreStatus'; + + @override + Iterable serialize( + Serializers serializers, GRestoreStatusData_restoreStatus object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'mangaProgress', + serializers.serialize(object.mangaProgress, + specifiedType: const FullType(int)), + 'state', + serializers.serialize(object.state, + specifiedType: const FullType(_i3.GBackupRestoreState)), + 'totalManga', + serializers.serialize(object.totalManga, + specifiedType: const FullType(int)), + ]; + + return result; + } + + @override + GRestoreStatusData_restoreStatus deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GRestoreStatusData_restoreStatusBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'mangaProgress': + result.mangaProgress = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'state': + result.state = serializers.deserialize(value, + specifiedType: const FullType(_i3.GBackupRestoreState))! + as _i3.GBackupRestoreState; + break; + case 'totalManga': + result.totalManga = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GValidateBackupDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GValidateBackupData, + _$GValidateBackupData + ]; + @override + final String wireName = 'GValidateBackupData'; + + @override + Iterable serialize( + Serializers serializers, GValidateBackupData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'validateBackup', + serializers.serialize(object.validateBackup, + specifiedType: const FullType(GValidateBackupData_validateBackup)), + ]; + + return result; + } + + @override + GValidateBackupData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GValidateBackupDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'validateBackup': + result.validateBackup.replace(serializers.deserialize(value, + specifiedType: + const FullType(GValidateBackupData_validateBackup))! + as GValidateBackupData_validateBackup); + break; + } + } + + return result.build(); + } +} + +class _$GValidateBackupData_validateBackupSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GValidateBackupData_validateBackup, + _$GValidateBackupData_validateBackup + ]; + @override + final String wireName = 'GValidateBackupData_validateBackup'; + + @override + Iterable serialize( + Serializers serializers, GValidateBackupData_validateBackup object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'missingSources', + serializers.serialize(object.missingSources, + specifiedType: const FullType(BuiltList, const [ + const FullType(GValidateBackupData_validateBackup_missingSources) + ])), + ]; + + return result; + } + + @override + GValidateBackupData_validateBackup deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GValidateBackupData_validateBackupBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'missingSources': + result.missingSources.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType( + GValidateBackupData_validateBackup_missingSources) + ]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GValidateBackupData_validateBackup_missingSourcesSerializer + implements + StructuredSerializer< + GValidateBackupData_validateBackup_missingSources> { + @override + final Iterable types = const [ + GValidateBackupData_validateBackup_missingSources, + _$GValidateBackupData_validateBackup_missingSources + ]; + @override + final String wireName = 'GValidateBackupData_validateBackup_missingSources'; + + @override + Iterable serialize(Serializers serializers, + GValidateBackupData_validateBackup_missingSources object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GValidateBackupData_validateBackup_missingSources deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GValidateBackupData_validateBackup_missingSourcesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GCreateBackupDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GCreateBackupData, _$GCreateBackupData]; + @override + final String wireName = 'GCreateBackupData'; + + @override + Iterable serialize(Serializers serializers, GCreateBackupData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'createBackup', + serializers.serialize(object.createBackup, + specifiedType: const FullType(GCreateBackupData_createBackup)), + ]; + + return result; + } + + @override + GCreateBackupData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GCreateBackupDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'createBackup': + result.createBackup.replace(serializers.deserialize(value, + specifiedType: + const FullType(GCreateBackupData_createBackup))! + as GCreateBackupData_createBackup); + break; + } + } + + return result.build(); + } +} + +class _$GCreateBackupData_createBackupSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GCreateBackupData_createBackup, + _$GCreateBackupData_createBackup + ]; + @override + final String wireName = 'GCreateBackupData_createBackup'; + + @override + Iterable serialize( + Serializers serializers, GCreateBackupData_createBackup object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'url', + serializers.serialize(object.url, specifiedType: const FullType(String)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GCreateBackupData_createBackup deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GCreateBackupData_createBackupBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'url': + result.url = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GRestoreBackupDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GRestoreBackupData, _$GRestoreBackupData]; + @override + final String wireName = 'GRestoreBackupData'; + + @override + Iterable serialize( + Serializers serializers, GRestoreBackupData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'restoreBackup', + serializers.serialize(object.restoreBackup, + specifiedType: const FullType(GRestoreBackupData_restoreBackup)), + ]; + + return result; + } + + @override + GRestoreBackupData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GRestoreBackupDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'restoreBackup': + result.restoreBackup.replace(serializers.deserialize(value, + specifiedType: + const FullType(GRestoreBackupData_restoreBackup))! + as GRestoreBackupData_restoreBackup); + break; + } + } + + return result.build(); + } +} + +class _$GRestoreBackupData_restoreBackupSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GRestoreBackupData_restoreBackup, + _$GRestoreBackupData_restoreBackup + ]; + @override + final String wireName = 'GRestoreBackupData_restoreBackup'; + + @override + Iterable serialize( + Serializers serializers, GRestoreBackupData_restoreBackup object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'id', + serializers.serialize(object.id, specifiedType: const FullType(String)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.status; + if (value != null) { + result + ..add('status') + ..add(serializers.serialize(value, + specifiedType: + const FullType(GRestoreBackupData_restoreBackup_status))); + } + return result; + } + + @override + GRestoreBackupData_restoreBackup deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GRestoreBackupData_restoreBackupBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'status': + result.status.replace(serializers.deserialize(value, + specifiedType: + const FullType(GRestoreBackupData_restoreBackup_status))! + as GRestoreBackupData_restoreBackup_status); + break; + } + } + + return result.build(); + } +} + +class _$GRestoreBackupData_restoreBackup_statusSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GRestoreBackupData_restoreBackup_status, + _$GRestoreBackupData_restoreBackup_status + ]; + @override + final String wireName = 'GRestoreBackupData_restoreBackup_status'; + + @override + Iterable serialize( + Serializers serializers, GRestoreBackupData_restoreBackup_status object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'mangaProgress', + serializers.serialize(object.mangaProgress, + specifiedType: const FullType(int)), + 'state', + serializers.serialize(object.state, + specifiedType: const FullType(_i3.GBackupRestoreState)), + 'totalManga', + serializers.serialize(object.totalManga, + specifiedType: const FullType(int)), + ]; + + return result; + } + + @override + GRestoreBackupData_restoreBackup_status deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GRestoreBackupData_restoreBackup_statusBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'mangaProgress': + result.mangaProgress = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'state': + result.state = serializers.deserialize(value, + specifiedType: const FullType(_i3.GBackupRestoreState))! + as _i3.GBackupRestoreState; + break; + case 'totalManga': + result.totalManga = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupPathDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupPathData, + _$GUpdateBackupPathData + ]; + @override + final String wireName = 'GUpdateBackupPathData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupPathData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GUpdateBackupPathData_setSettings)), + ]; + + return result; + } + + @override + GUpdateBackupPathData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupPathDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateBackupPathData_setSettings))! + as GUpdateBackupPathData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupPathData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupPathData_setSettings, + _$GUpdateBackupPathData_setSettings + ]; + @override + final String wireName = 'GUpdateBackupPathData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupPathData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GUpdateBackupPathData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateBackupPathData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupPathData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateBackupPathData_setSettings_settings))! + as GUpdateBackupPathData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupPathData_setSettings_settingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupPathData_setSettings_settings, + _$GUpdateBackupPathData_setSettings_settings + ]; + @override + final String wireName = 'GUpdateBackupPathData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateBackupPathData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GUpdateBackupPathData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupPathData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupTimeDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupTimeData, + _$GUpdateBackupTimeData + ]; + @override + final String wireName = 'GUpdateBackupTimeData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupTimeData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GUpdateBackupTimeData_setSettings)), + ]; + + return result; + } + + @override + GUpdateBackupTimeData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupTimeDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateBackupTimeData_setSettings))! + as GUpdateBackupTimeData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupTimeData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupTimeData_setSettings, + _$GUpdateBackupTimeData_setSettings + ]; + @override + final String wireName = 'GUpdateBackupTimeData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupTimeData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GUpdateBackupTimeData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateBackupTimeData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupTimeData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateBackupTimeData_setSettings_settings))! + as GUpdateBackupTimeData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupTimeData_setSettings_settingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupTimeData_setSettings_settings, + _$GUpdateBackupTimeData_setSettings_settings + ]; + @override + final String wireName = 'GUpdateBackupTimeData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateBackupTimeData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GUpdateBackupTimeData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupTimeData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupIntervalDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupIntervalData, + _$GUpdateBackupIntervalData + ]; + @override + final String wireName = 'GUpdateBackupIntervalData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupIntervalData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GUpdateBackupIntervalData_setSettings)), + ]; + + return result; + } + + @override + GUpdateBackupIntervalData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupIntervalDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateBackupIntervalData_setSettings))! + as GUpdateBackupIntervalData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupIntervalData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupIntervalData_setSettings, + _$GUpdateBackupIntervalData_setSettings + ]; + @override + final String wireName = 'GUpdateBackupIntervalData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupIntervalData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GUpdateBackupIntervalData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateBackupIntervalData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupIntervalData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateBackupIntervalData_setSettings_settings))! + as GUpdateBackupIntervalData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupIntervalData_setSettings_settingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupIntervalData_setSettings_settings, + _$GUpdateBackupIntervalData_setSettings_settings + ]; + @override + final String wireName = 'GUpdateBackupIntervalData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateBackupIntervalData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GUpdateBackupIntervalData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupIntervalData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupTTLDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupTTLData, + _$GUpdateBackupTTLData + ]; + @override + final String wireName = 'GUpdateBackupTTLData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupTTLData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GUpdateBackupTTLData_setSettings)), + ]; + + return result; + } + + @override + GUpdateBackupTTLData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupTTLDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateBackupTTLData_setSettings))! + as GUpdateBackupTTLData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupTTLData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupTTLData_setSettings, + _$GUpdateBackupTTLData_setSettings + ]; + @override + final String wireName = 'GUpdateBackupTTLData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupTTLData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GUpdateBackupTTLData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateBackupTTLData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupTTLData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateBackupTTLData_setSettings_settings))! + as GUpdateBackupTTLData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupTTLData_setSettings_settingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupTTLData_setSettings_settings, + _$GUpdateBackupTTLData_setSettings_settings + ]; + @override + final String wireName = 'GUpdateBackupTTLData_setSettings_settings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupTTLData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GUpdateBackupTTLData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupTTLData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GRestoreStatusData extends GRestoreStatusData { + @override + final String G__typename; + @override + final GRestoreStatusData_restoreStatus? restoreStatus; + + factory _$GRestoreStatusData( + [void Function(GRestoreStatusDataBuilder)? updates]) => + (new GRestoreStatusDataBuilder()..update(updates))._build(); + + _$GRestoreStatusData._({required this.G__typename, this.restoreStatus}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GRestoreStatusData', 'G__typename'); + } + + @override + GRestoreStatusData rebuild( + void Function(GRestoreStatusDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GRestoreStatusDataBuilder toBuilder() => + new GRestoreStatusDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GRestoreStatusData && + G__typename == other.G__typename && + restoreStatus == other.restoreStatus; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, restoreStatus.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GRestoreStatusData') + ..add('G__typename', G__typename) + ..add('restoreStatus', restoreStatus)) + .toString(); + } +} + +class GRestoreStatusDataBuilder + implements Builder { + _$GRestoreStatusData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GRestoreStatusData_restoreStatusBuilder? _restoreStatus; + GRestoreStatusData_restoreStatusBuilder get restoreStatus => + _$this._restoreStatus ??= new GRestoreStatusData_restoreStatusBuilder(); + set restoreStatus(GRestoreStatusData_restoreStatusBuilder? restoreStatus) => + _$this._restoreStatus = restoreStatus; + + GRestoreStatusDataBuilder() { + GRestoreStatusData._initializeBuilder(this); + } + + GRestoreStatusDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _restoreStatus = $v.restoreStatus?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GRestoreStatusData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GRestoreStatusData; + } + + @override + void update(void Function(GRestoreStatusDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GRestoreStatusData build() => _build(); + + _$GRestoreStatusData _build() { + _$GRestoreStatusData _$result; + try { + _$result = _$v ?? + new _$GRestoreStatusData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GRestoreStatusData', 'G__typename'), + restoreStatus: _restoreStatus?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'restoreStatus'; + _restoreStatus?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GRestoreStatusData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GRestoreStatusData_restoreStatus + extends GRestoreStatusData_restoreStatus { + @override + final String G__typename; + @override + final int mangaProgress; + @override + final _i3.GBackupRestoreState state; + @override + final int totalManga; + + factory _$GRestoreStatusData_restoreStatus( + [void Function(GRestoreStatusData_restoreStatusBuilder)? updates]) => + (new GRestoreStatusData_restoreStatusBuilder()..update(updates))._build(); + + _$GRestoreStatusData_restoreStatus._( + {required this.G__typename, + required this.mangaProgress, + required this.state, + required this.totalManga}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GRestoreStatusData_restoreStatus', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + mangaProgress, r'GRestoreStatusData_restoreStatus', 'mangaProgress'); + BuiltValueNullFieldError.checkNotNull( + state, r'GRestoreStatusData_restoreStatus', 'state'); + BuiltValueNullFieldError.checkNotNull( + totalManga, r'GRestoreStatusData_restoreStatus', 'totalManga'); + } + + @override + GRestoreStatusData_restoreStatus rebuild( + void Function(GRestoreStatusData_restoreStatusBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GRestoreStatusData_restoreStatusBuilder toBuilder() => + new GRestoreStatusData_restoreStatusBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GRestoreStatusData_restoreStatus && + G__typename == other.G__typename && + mangaProgress == other.mangaProgress && + state == other.state && + totalManga == other.totalManga; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, mangaProgress.hashCode); + _$hash = $jc(_$hash, state.hashCode); + _$hash = $jc(_$hash, totalManga.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GRestoreStatusData_restoreStatus') + ..add('G__typename', G__typename) + ..add('mangaProgress', mangaProgress) + ..add('state', state) + ..add('totalManga', totalManga)) + .toString(); + } +} + +class GRestoreStatusData_restoreStatusBuilder + implements + Builder { + _$GRestoreStatusData_restoreStatus? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _mangaProgress; + int? get mangaProgress => _$this._mangaProgress; + set mangaProgress(int? mangaProgress) => + _$this._mangaProgress = mangaProgress; + + _i3.GBackupRestoreState? _state; + _i3.GBackupRestoreState? get state => _$this._state; + set state(_i3.GBackupRestoreState? state) => _$this._state = state; + + int? _totalManga; + int? get totalManga => _$this._totalManga; + set totalManga(int? totalManga) => _$this._totalManga = totalManga; + + GRestoreStatusData_restoreStatusBuilder() { + GRestoreStatusData_restoreStatus._initializeBuilder(this); + } + + GRestoreStatusData_restoreStatusBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _mangaProgress = $v.mangaProgress; + _state = $v.state; + _totalManga = $v.totalManga; + _$v = null; + } + return this; + } + + @override + void replace(GRestoreStatusData_restoreStatus other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GRestoreStatusData_restoreStatus; + } + + @override + void update(void Function(GRestoreStatusData_restoreStatusBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GRestoreStatusData_restoreStatus build() => _build(); + + _$GRestoreStatusData_restoreStatus _build() { + final _$result = _$v ?? + new _$GRestoreStatusData_restoreStatus._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GRestoreStatusData_restoreStatus', 'G__typename'), + mangaProgress: BuiltValueNullFieldError.checkNotNull(mangaProgress, + r'GRestoreStatusData_restoreStatus', 'mangaProgress'), + state: BuiltValueNullFieldError.checkNotNull( + state, r'GRestoreStatusData_restoreStatus', 'state'), + totalManga: BuiltValueNullFieldError.checkNotNull( + totalManga, r'GRestoreStatusData_restoreStatus', 'totalManga')); + replace(_$result); + return _$result; + } +} + +class _$GValidateBackupData extends GValidateBackupData { + @override + final String G__typename; + @override + final GValidateBackupData_validateBackup validateBackup; + + factory _$GValidateBackupData( + [void Function(GValidateBackupDataBuilder)? updates]) => + (new GValidateBackupDataBuilder()..update(updates))._build(); + + _$GValidateBackupData._( + {required this.G__typename, required this.validateBackup}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GValidateBackupData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + validateBackup, r'GValidateBackupData', 'validateBackup'); + } + + @override + GValidateBackupData rebuild( + void Function(GValidateBackupDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GValidateBackupDataBuilder toBuilder() => + new GValidateBackupDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GValidateBackupData && + G__typename == other.G__typename && + validateBackup == other.validateBackup; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, validateBackup.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GValidateBackupData') + ..add('G__typename', G__typename) + ..add('validateBackup', validateBackup)) + .toString(); + } +} + +class GValidateBackupDataBuilder + implements Builder { + _$GValidateBackupData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GValidateBackupData_validateBackupBuilder? _validateBackup; + GValidateBackupData_validateBackupBuilder get validateBackup => + _$this._validateBackup ??= + new GValidateBackupData_validateBackupBuilder(); + set validateBackup( + GValidateBackupData_validateBackupBuilder? validateBackup) => + _$this._validateBackup = validateBackup; + + GValidateBackupDataBuilder() { + GValidateBackupData._initializeBuilder(this); + } + + GValidateBackupDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _validateBackup = $v.validateBackup.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GValidateBackupData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GValidateBackupData; + } + + @override + void update(void Function(GValidateBackupDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GValidateBackupData build() => _build(); + + _$GValidateBackupData _build() { + _$GValidateBackupData _$result; + try { + _$result = _$v ?? + new _$GValidateBackupData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GValidateBackupData', 'G__typename'), + validateBackup: validateBackup.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'validateBackup'; + validateBackup.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GValidateBackupData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GValidateBackupData_validateBackup + extends GValidateBackupData_validateBackup { + @override + final String G__typename; + @override + final BuiltList + missingSources; + + factory _$GValidateBackupData_validateBackup( + [void Function(GValidateBackupData_validateBackupBuilder)? + updates]) => + (new GValidateBackupData_validateBackupBuilder()..update(updates)) + ._build(); + + _$GValidateBackupData_validateBackup._( + {required this.G__typename, required this.missingSources}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GValidateBackupData_validateBackup', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(missingSources, + r'GValidateBackupData_validateBackup', 'missingSources'); + } + + @override + GValidateBackupData_validateBackup rebuild( + void Function(GValidateBackupData_validateBackupBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GValidateBackupData_validateBackupBuilder toBuilder() => + new GValidateBackupData_validateBackupBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GValidateBackupData_validateBackup && + G__typename == other.G__typename && + missingSources == other.missingSources; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, missingSources.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GValidateBackupData_validateBackup') + ..add('G__typename', G__typename) + ..add('missingSources', missingSources)) + .toString(); + } +} + +class GValidateBackupData_validateBackupBuilder + implements + Builder { + _$GValidateBackupData_validateBackup? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + ListBuilder? + _missingSources; + ListBuilder + get missingSources => _$this._missingSources ??= + new ListBuilder(); + set missingSources( + ListBuilder? + missingSources) => + _$this._missingSources = missingSources; + + GValidateBackupData_validateBackupBuilder() { + GValidateBackupData_validateBackup._initializeBuilder(this); + } + + GValidateBackupData_validateBackupBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _missingSources = $v.missingSources.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GValidateBackupData_validateBackup other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GValidateBackupData_validateBackup; + } + + @override + void update( + void Function(GValidateBackupData_validateBackupBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GValidateBackupData_validateBackup build() => _build(); + + _$GValidateBackupData_validateBackup _build() { + _$GValidateBackupData_validateBackup _$result; + try { + _$result = _$v ?? + new _$GValidateBackupData_validateBackup._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GValidateBackupData_validateBackup', 'G__typename'), + missingSources: missingSources.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'missingSources'; + missingSources.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GValidateBackupData_validateBackup', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GValidateBackupData_validateBackup_missingSources + extends GValidateBackupData_validateBackup_missingSources { + @override + final String G__typename; + @override + final String name; + + factory _$GValidateBackupData_validateBackup_missingSources( + [void Function( + GValidateBackupData_validateBackup_missingSourcesBuilder)? + updates]) => + (new GValidateBackupData_validateBackup_missingSourcesBuilder() + ..update(updates)) + ._build(); + + _$GValidateBackupData_validateBackup_missingSources._( + {required this.G__typename, required this.name}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GValidateBackupData_validateBackup_missingSources', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + name, r'GValidateBackupData_validateBackup_missingSources', 'name'); + } + + @override + GValidateBackupData_validateBackup_missingSources rebuild( + void Function( + GValidateBackupData_validateBackup_missingSourcesBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GValidateBackupData_validateBackup_missingSourcesBuilder toBuilder() => + new GValidateBackupData_validateBackup_missingSourcesBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GValidateBackupData_validateBackup_missingSources && + G__typename == other.G__typename && + name == other.name; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GValidateBackupData_validateBackup_missingSources') + ..add('G__typename', G__typename) + ..add('name', name)) + .toString(); + } +} + +class GValidateBackupData_validateBackup_missingSourcesBuilder + implements + Builder { + _$GValidateBackupData_validateBackup_missingSources? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + GValidateBackupData_validateBackup_missingSourcesBuilder() { + GValidateBackupData_validateBackup_missingSources._initializeBuilder(this); + } + + GValidateBackupData_validateBackup_missingSourcesBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _name = $v.name; + _$v = null; + } + return this; + } + + @override + void replace(GValidateBackupData_validateBackup_missingSources other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GValidateBackupData_validateBackup_missingSources; + } + + @override + void update( + void Function(GValidateBackupData_validateBackup_missingSourcesBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GValidateBackupData_validateBackup_missingSources build() => _build(); + + _$GValidateBackupData_validateBackup_missingSources _build() { + final _$result = _$v ?? + new _$GValidateBackupData_validateBackup_missingSources._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GValidateBackupData_validateBackup_missingSources', + 'G__typename'), + name: BuiltValueNullFieldError.checkNotNull(name, + r'GValidateBackupData_validateBackup_missingSources', 'name')); + replace(_$result); + return _$result; + } +} + +class _$GCreateBackupData extends GCreateBackupData { + @override + final String G__typename; + @override + final GCreateBackupData_createBackup createBackup; + + factory _$GCreateBackupData( + [void Function(GCreateBackupDataBuilder)? updates]) => + (new GCreateBackupDataBuilder()..update(updates))._build(); + + _$GCreateBackupData._({required this.G__typename, required this.createBackup}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GCreateBackupData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + createBackup, r'GCreateBackupData', 'createBackup'); + } + + @override + GCreateBackupData rebuild(void Function(GCreateBackupDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCreateBackupDataBuilder toBuilder() => + new GCreateBackupDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCreateBackupData && + G__typename == other.G__typename && + createBackup == other.createBackup; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, createBackup.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GCreateBackupData') + ..add('G__typename', G__typename) + ..add('createBackup', createBackup)) + .toString(); + } +} + +class GCreateBackupDataBuilder + implements Builder { + _$GCreateBackupData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GCreateBackupData_createBackupBuilder? _createBackup; + GCreateBackupData_createBackupBuilder get createBackup => + _$this._createBackup ??= new GCreateBackupData_createBackupBuilder(); + set createBackup(GCreateBackupData_createBackupBuilder? createBackup) => + _$this._createBackup = createBackup; + + GCreateBackupDataBuilder() { + GCreateBackupData._initializeBuilder(this); + } + + GCreateBackupDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _createBackup = $v.createBackup.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GCreateBackupData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCreateBackupData; + } + + @override + void update(void Function(GCreateBackupDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCreateBackupData build() => _build(); + + _$GCreateBackupData _build() { + _$GCreateBackupData _$result; + try { + _$result = _$v ?? + new _$GCreateBackupData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GCreateBackupData', 'G__typename'), + createBackup: createBackup.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'createBackup'; + createBackup.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GCreateBackupData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GCreateBackupData_createBackup extends GCreateBackupData_createBackup { + @override + final String G__typename; + @override + final String? clientMutationId; + @override + final String url; + + factory _$GCreateBackupData_createBackup( + [void Function(GCreateBackupData_createBackupBuilder)? updates]) => + (new GCreateBackupData_createBackupBuilder()..update(updates))._build(); + + _$GCreateBackupData_createBackup._( + {required this.G__typename, this.clientMutationId, required this.url}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GCreateBackupData_createBackup', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + url, r'GCreateBackupData_createBackup', 'url'); + } + + @override + GCreateBackupData_createBackup rebuild( + void Function(GCreateBackupData_createBackupBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCreateBackupData_createBackupBuilder toBuilder() => + new GCreateBackupData_createBackupBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCreateBackupData_createBackup && + G__typename == other.G__typename && + clientMutationId == other.clientMutationId && + url == other.url; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GCreateBackupData_createBackup') + ..add('G__typename', G__typename) + ..add('clientMutationId', clientMutationId) + ..add('url', url)) + .toString(); + } +} + +class GCreateBackupData_createBackupBuilder + implements + Builder { + _$GCreateBackupData_createBackup? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + GCreateBackupData_createBackupBuilder() { + GCreateBackupData_createBackup._initializeBuilder(this); + } + + GCreateBackupData_createBackupBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _clientMutationId = $v.clientMutationId; + _url = $v.url; + _$v = null; + } + return this; + } + + @override + void replace(GCreateBackupData_createBackup other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCreateBackupData_createBackup; + } + + @override + void update(void Function(GCreateBackupData_createBackupBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCreateBackupData_createBackup build() => _build(); + + _$GCreateBackupData_createBackup _build() { + final _$result = _$v ?? + new _$GCreateBackupData_createBackup._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GCreateBackupData_createBackup', 'G__typename'), + clientMutationId: clientMutationId, + url: BuiltValueNullFieldError.checkNotNull( + url, r'GCreateBackupData_createBackup', 'url')); + replace(_$result); + return _$result; + } +} + +class _$GRestoreBackupData extends GRestoreBackupData { + @override + final String G__typename; + @override + final GRestoreBackupData_restoreBackup restoreBackup; + + factory _$GRestoreBackupData( + [void Function(GRestoreBackupDataBuilder)? updates]) => + (new GRestoreBackupDataBuilder()..update(updates))._build(); + + _$GRestoreBackupData._( + {required this.G__typename, required this.restoreBackup}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GRestoreBackupData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + restoreBackup, r'GRestoreBackupData', 'restoreBackup'); + } + + @override + GRestoreBackupData rebuild( + void Function(GRestoreBackupDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GRestoreBackupDataBuilder toBuilder() => + new GRestoreBackupDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GRestoreBackupData && + G__typename == other.G__typename && + restoreBackup == other.restoreBackup; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, restoreBackup.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GRestoreBackupData') + ..add('G__typename', G__typename) + ..add('restoreBackup', restoreBackup)) + .toString(); + } +} + +class GRestoreBackupDataBuilder + implements Builder { + _$GRestoreBackupData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GRestoreBackupData_restoreBackupBuilder? _restoreBackup; + GRestoreBackupData_restoreBackupBuilder get restoreBackup => + _$this._restoreBackup ??= new GRestoreBackupData_restoreBackupBuilder(); + set restoreBackup(GRestoreBackupData_restoreBackupBuilder? restoreBackup) => + _$this._restoreBackup = restoreBackup; + + GRestoreBackupDataBuilder() { + GRestoreBackupData._initializeBuilder(this); + } + + GRestoreBackupDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _restoreBackup = $v.restoreBackup.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GRestoreBackupData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GRestoreBackupData; + } + + @override + void update(void Function(GRestoreBackupDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GRestoreBackupData build() => _build(); + + _$GRestoreBackupData _build() { + _$GRestoreBackupData _$result; + try { + _$result = _$v ?? + new _$GRestoreBackupData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GRestoreBackupData', 'G__typename'), + restoreBackup: restoreBackup.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'restoreBackup'; + restoreBackup.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GRestoreBackupData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GRestoreBackupData_restoreBackup + extends GRestoreBackupData_restoreBackup { + @override + final String G__typename; + @override + final String? clientMutationId; + @override + final String id; + @override + final GRestoreBackupData_restoreBackup_status? status; + + factory _$GRestoreBackupData_restoreBackup( + [void Function(GRestoreBackupData_restoreBackupBuilder)? updates]) => + (new GRestoreBackupData_restoreBackupBuilder()..update(updates))._build(); + + _$GRestoreBackupData_restoreBackup._( + {required this.G__typename, + this.clientMutationId, + required this.id, + this.status}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GRestoreBackupData_restoreBackup', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + id, r'GRestoreBackupData_restoreBackup', 'id'); + } + + @override + GRestoreBackupData_restoreBackup rebuild( + void Function(GRestoreBackupData_restoreBackupBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GRestoreBackupData_restoreBackupBuilder toBuilder() => + new GRestoreBackupData_restoreBackupBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GRestoreBackupData_restoreBackup && + G__typename == other.G__typename && + clientMutationId == other.clientMutationId && + id == other.id && + status == other.status; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GRestoreBackupData_restoreBackup') + ..add('G__typename', G__typename) + ..add('clientMutationId', clientMutationId) + ..add('id', id) + ..add('status', status)) + .toString(); + } +} + +class GRestoreBackupData_restoreBackupBuilder + implements + Builder { + _$GRestoreBackupData_restoreBackup? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + GRestoreBackupData_restoreBackup_statusBuilder? _status; + GRestoreBackupData_restoreBackup_statusBuilder get status => + _$this._status ??= new GRestoreBackupData_restoreBackup_statusBuilder(); + set status(GRestoreBackupData_restoreBackup_statusBuilder? status) => + _$this._status = status; + + GRestoreBackupData_restoreBackupBuilder() { + GRestoreBackupData_restoreBackup._initializeBuilder(this); + } + + GRestoreBackupData_restoreBackupBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _clientMutationId = $v.clientMutationId; + _id = $v.id; + _status = $v.status?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GRestoreBackupData_restoreBackup other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GRestoreBackupData_restoreBackup; + } + + @override + void update(void Function(GRestoreBackupData_restoreBackupBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GRestoreBackupData_restoreBackup build() => _build(); + + _$GRestoreBackupData_restoreBackup _build() { + _$GRestoreBackupData_restoreBackup _$result; + try { + _$result = _$v ?? + new _$GRestoreBackupData_restoreBackup._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GRestoreBackupData_restoreBackup', 'G__typename'), + clientMutationId: clientMutationId, + id: BuiltValueNullFieldError.checkNotNull( + id, r'GRestoreBackupData_restoreBackup', 'id'), + status: _status?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'status'; + _status?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GRestoreBackupData_restoreBackup', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GRestoreBackupData_restoreBackup_status + extends GRestoreBackupData_restoreBackup_status { + @override + final String G__typename; + @override + final int mangaProgress; + @override + final _i3.GBackupRestoreState state; + @override + final int totalManga; + + factory _$GRestoreBackupData_restoreBackup_status( + [void Function(GRestoreBackupData_restoreBackup_statusBuilder)? + updates]) => + (new GRestoreBackupData_restoreBackup_statusBuilder()..update(updates)) + ._build(); + + _$GRestoreBackupData_restoreBackup_status._( + {required this.G__typename, + required this.mangaProgress, + required this.state, + required this.totalManga}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GRestoreBackupData_restoreBackup_status', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(mangaProgress, + r'GRestoreBackupData_restoreBackup_status', 'mangaProgress'); + BuiltValueNullFieldError.checkNotNull( + state, r'GRestoreBackupData_restoreBackup_status', 'state'); + BuiltValueNullFieldError.checkNotNull( + totalManga, r'GRestoreBackupData_restoreBackup_status', 'totalManga'); + } + + @override + GRestoreBackupData_restoreBackup_status rebuild( + void Function(GRestoreBackupData_restoreBackup_statusBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GRestoreBackupData_restoreBackup_statusBuilder toBuilder() => + new GRestoreBackupData_restoreBackup_statusBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GRestoreBackupData_restoreBackup_status && + G__typename == other.G__typename && + mangaProgress == other.mangaProgress && + state == other.state && + totalManga == other.totalManga; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, mangaProgress.hashCode); + _$hash = $jc(_$hash, state.hashCode); + _$hash = $jc(_$hash, totalManga.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GRestoreBackupData_restoreBackup_status') + ..add('G__typename', G__typename) + ..add('mangaProgress', mangaProgress) + ..add('state', state) + ..add('totalManga', totalManga)) + .toString(); + } +} + +class GRestoreBackupData_restoreBackup_statusBuilder + implements + Builder { + _$GRestoreBackupData_restoreBackup_status? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _mangaProgress; + int? get mangaProgress => _$this._mangaProgress; + set mangaProgress(int? mangaProgress) => + _$this._mangaProgress = mangaProgress; + + _i3.GBackupRestoreState? _state; + _i3.GBackupRestoreState? get state => _$this._state; + set state(_i3.GBackupRestoreState? state) => _$this._state = state; + + int? _totalManga; + int? get totalManga => _$this._totalManga; + set totalManga(int? totalManga) => _$this._totalManga = totalManga; + + GRestoreBackupData_restoreBackup_statusBuilder() { + GRestoreBackupData_restoreBackup_status._initializeBuilder(this); + } + + GRestoreBackupData_restoreBackup_statusBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _mangaProgress = $v.mangaProgress; + _state = $v.state; + _totalManga = $v.totalManga; + _$v = null; + } + return this; + } + + @override + void replace(GRestoreBackupData_restoreBackup_status other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GRestoreBackupData_restoreBackup_status; + } + + @override + void update( + void Function(GRestoreBackupData_restoreBackup_statusBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GRestoreBackupData_restoreBackup_status build() => _build(); + + _$GRestoreBackupData_restoreBackup_status _build() { + final _$result = _$v ?? + new _$GRestoreBackupData_restoreBackup_status._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GRestoreBackupData_restoreBackup_status', 'G__typename'), + mangaProgress: BuiltValueNullFieldError.checkNotNull(mangaProgress, + r'GRestoreBackupData_restoreBackup_status', 'mangaProgress'), + state: BuiltValueNullFieldError.checkNotNull( + state, r'GRestoreBackupData_restoreBackup_status', 'state'), + totalManga: BuiltValueNullFieldError.checkNotNull(totalManga, + r'GRestoreBackupData_restoreBackup_status', 'totalManga')); + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupPathData extends GUpdateBackupPathData { + @override + final String G__typename; + @override + final GUpdateBackupPathData_setSettings setSettings; + + factory _$GUpdateBackupPathData( + [void Function(GUpdateBackupPathDataBuilder)? updates]) => + (new GUpdateBackupPathDataBuilder()..update(updates))._build(); + + _$GUpdateBackupPathData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupPathData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateBackupPathData', 'setSettings'); + } + + @override + GUpdateBackupPathData rebuild( + void Function(GUpdateBackupPathDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupPathDataBuilder toBuilder() => + new GUpdateBackupPathDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupPathData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupPathData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateBackupPathDataBuilder + implements Builder { + _$GUpdateBackupPathData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateBackupPathData_setSettingsBuilder? _setSettings; + GUpdateBackupPathData_setSettingsBuilder get setSettings => + _$this._setSettings ??= new GUpdateBackupPathData_setSettingsBuilder(); + set setSettings(GUpdateBackupPathData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateBackupPathDataBuilder() { + GUpdateBackupPathData._initializeBuilder(this); + } + + GUpdateBackupPathDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupPathData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupPathData; + } + + @override + void update(void Function(GUpdateBackupPathDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupPathData build() => _build(); + + _$GUpdateBackupPathData _build() { + _$GUpdateBackupPathData _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupPathData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupPathData', 'G__typename'), + setSettings: setSettings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupPathData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupPathData_setSettings + extends GUpdateBackupPathData_setSettings { + @override + final String G__typename; + @override + final GUpdateBackupPathData_setSettings_settings settings; + + factory _$GUpdateBackupPathData_setSettings( + [void Function(GUpdateBackupPathData_setSettingsBuilder)? updates]) => + (new GUpdateBackupPathData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GUpdateBackupPathData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupPathData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateBackupPathData_setSettings', 'settings'); + } + + @override + GUpdateBackupPathData_setSettings rebuild( + void Function(GUpdateBackupPathData_setSettingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupPathData_setSettingsBuilder toBuilder() => + new GUpdateBackupPathData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupPathData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupPathData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateBackupPathData_setSettingsBuilder + implements + Builder { + _$GUpdateBackupPathData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateBackupPathData_setSettings_settingsBuilder? _settings; + GUpdateBackupPathData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateBackupPathData_setSettings_settingsBuilder(); + set settings(GUpdateBackupPathData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GUpdateBackupPathData_setSettingsBuilder() { + GUpdateBackupPathData_setSettings._initializeBuilder(this); + } + + GUpdateBackupPathData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupPathData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupPathData_setSettings; + } + + @override + void update( + void Function(GUpdateBackupPathData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupPathData_setSettings build() => _build(); + + _$GUpdateBackupPathData_setSettings _build() { + _$GUpdateBackupPathData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupPathData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateBackupPathData_setSettings', 'G__typename'), + settings: settings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupPathData_setSettings', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupPathData_setSettings_settings + extends GUpdateBackupPathData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + + factory _$GUpdateBackupPathData_setSettings_settings( + [void Function(GUpdateBackupPathData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateBackupPathData_setSettings_settingsBuilder()..update(updates)) + ._build(); + + _$GUpdateBackupPathData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateBackupPathData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GUpdateBackupPathData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateBackupPathData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GUpdateBackupPathData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateBackupPathData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateBackupPathData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateBackupPathData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, + r'GUpdateBackupPathData_setSettings_settings', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GUpdateBackupPathData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull(socksProxyPassword, + r'GUpdateBackupPathData_setSettings_settings', 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GUpdateBackupPathData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull(socksProxyUsername, + r'GUpdateBackupPathData_setSettings_settings', 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull(socksProxyVersion, + r'GUpdateBackupPathData_setSettings_settings', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, + r'GUpdateBackupPathData_setSettings_settings', 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateBackupPathData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateBackupPathData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, + r'GUpdateBackupPathData_setSettings_settings', 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GUpdateBackupPathData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GUpdateBackupPathData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, + r'GUpdateBackupPathData_setSettings_settings', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, + r'GUpdateBackupPathData_setSettings_settings', 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GUpdateBackupPathData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, + r'GUpdateBackupPathData_setSettings_settings', 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GUpdateBackupPathData_setSettings_settings', 'localSourcePath'); + } + + @override + GUpdateBackupPathData_setSettings_settings rebuild( + void Function(GUpdateBackupPathData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupPathData_setSettings_settingsBuilder toBuilder() => + new GUpdateBackupPathData_setSettings_settingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupPathData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateBackupPathData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath)) + .toString(); + } +} + +class GUpdateBackupPathData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateBackupPathData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + GUpdateBackupPathData_setSettings_settingsBuilder() { + GUpdateBackupPathData_setSettings_settings._initializeBuilder(this); + } + + GUpdateBackupPathData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupPathData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupPathData_setSettings_settings; + } + + @override + void update( + void Function(GUpdateBackupPathData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupPathData_setSettings_settings build() => _build(); + + _$GUpdateBackupPathData_setSettings_settings _build() { + _$GUpdateBackupPathData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupPathData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupPathData_setSettings_settings', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateBackupPathData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, r'GUpdateBackupPathData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GUpdateBackupPathData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, r'GUpdateBackupPathData_setSettings_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateBackupPathData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull(port, r'GUpdateBackupPathData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, r'GUpdateBackupPathData_setSettings_settings', 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull(socksProxyHost, r'GUpdateBackupPathData_setSettings_settings', 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull(socksProxyPassword, r'GUpdateBackupPathData_setSettings_settings', 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull(socksProxyPort, r'GUpdateBackupPathData_setSettings_settings', 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull(socksProxyUsername, r'GUpdateBackupPathData_setSettings_settings', 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull(socksProxyVersion, r'GUpdateBackupPathData_setSettings_settings', 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, r'GUpdateBackupPathData_setSettings_settings', 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionName, r'GUpdateBackupPathData_setSettings_settings', 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, r'GUpdateBackupPathData_setSettings_settings', 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, r'GUpdateBackupPathData_setSettings_settings', 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, r'GUpdateBackupPathData_setSettings_settings', 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, r'GUpdateBackupPathData_setSettings_settings', 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, r'GUpdateBackupPathData_setSettings_settings', 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, r'GUpdateBackupPathData_setSettings_settings', 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, r'GUpdateBackupPathData_setSettings_settings', 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull(localSourcePath, r'GUpdateBackupPathData_setSettings_settings', 'localSourcePath')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupPathData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupTimeData extends GUpdateBackupTimeData { + @override + final String G__typename; + @override + final GUpdateBackupTimeData_setSettings setSettings; + + factory _$GUpdateBackupTimeData( + [void Function(GUpdateBackupTimeDataBuilder)? updates]) => + (new GUpdateBackupTimeDataBuilder()..update(updates))._build(); + + _$GUpdateBackupTimeData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupTimeData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateBackupTimeData', 'setSettings'); + } + + @override + GUpdateBackupTimeData rebuild( + void Function(GUpdateBackupTimeDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupTimeDataBuilder toBuilder() => + new GUpdateBackupTimeDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupTimeData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupTimeData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateBackupTimeDataBuilder + implements Builder { + _$GUpdateBackupTimeData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateBackupTimeData_setSettingsBuilder? _setSettings; + GUpdateBackupTimeData_setSettingsBuilder get setSettings => + _$this._setSettings ??= new GUpdateBackupTimeData_setSettingsBuilder(); + set setSettings(GUpdateBackupTimeData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateBackupTimeDataBuilder() { + GUpdateBackupTimeData._initializeBuilder(this); + } + + GUpdateBackupTimeDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupTimeData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupTimeData; + } + + @override + void update(void Function(GUpdateBackupTimeDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupTimeData build() => _build(); + + _$GUpdateBackupTimeData _build() { + _$GUpdateBackupTimeData _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupTimeData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupTimeData', 'G__typename'), + setSettings: setSettings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupTimeData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupTimeData_setSettings + extends GUpdateBackupTimeData_setSettings { + @override + final String G__typename; + @override + final GUpdateBackupTimeData_setSettings_settings settings; + + factory _$GUpdateBackupTimeData_setSettings( + [void Function(GUpdateBackupTimeData_setSettingsBuilder)? updates]) => + (new GUpdateBackupTimeData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GUpdateBackupTimeData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupTimeData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateBackupTimeData_setSettings', 'settings'); + } + + @override + GUpdateBackupTimeData_setSettings rebuild( + void Function(GUpdateBackupTimeData_setSettingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupTimeData_setSettingsBuilder toBuilder() => + new GUpdateBackupTimeData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupTimeData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupTimeData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateBackupTimeData_setSettingsBuilder + implements + Builder { + _$GUpdateBackupTimeData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateBackupTimeData_setSettings_settingsBuilder? _settings; + GUpdateBackupTimeData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateBackupTimeData_setSettings_settingsBuilder(); + set settings(GUpdateBackupTimeData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GUpdateBackupTimeData_setSettingsBuilder() { + GUpdateBackupTimeData_setSettings._initializeBuilder(this); + } + + GUpdateBackupTimeData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupTimeData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupTimeData_setSettings; + } + + @override + void update( + void Function(GUpdateBackupTimeData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupTimeData_setSettings build() => _build(); + + _$GUpdateBackupTimeData_setSettings _build() { + _$GUpdateBackupTimeData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupTimeData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateBackupTimeData_setSettings', 'G__typename'), + settings: settings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupTimeData_setSettings', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupTimeData_setSettings_settings + extends GUpdateBackupTimeData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + + factory _$GUpdateBackupTimeData_setSettings_settings( + [void Function(GUpdateBackupTimeData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateBackupTimeData_setSettings_settingsBuilder()..update(updates)) + ._build(); + + _$GUpdateBackupTimeData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateBackupTimeData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GUpdateBackupTimeData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateBackupTimeData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GUpdateBackupTimeData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateBackupTimeData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateBackupTimeData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateBackupTimeData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, + r'GUpdateBackupTimeData_setSettings_settings', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GUpdateBackupTimeData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull(socksProxyPassword, + r'GUpdateBackupTimeData_setSettings_settings', 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GUpdateBackupTimeData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull(socksProxyUsername, + r'GUpdateBackupTimeData_setSettings_settings', 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull(socksProxyVersion, + r'GUpdateBackupTimeData_setSettings_settings', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, + r'GUpdateBackupTimeData_setSettings_settings', 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateBackupTimeData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateBackupTimeData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, + r'GUpdateBackupTimeData_setSettings_settings', 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GUpdateBackupTimeData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GUpdateBackupTimeData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, + r'GUpdateBackupTimeData_setSettings_settings', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, + r'GUpdateBackupTimeData_setSettings_settings', 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GUpdateBackupTimeData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, + r'GUpdateBackupTimeData_setSettings_settings', 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GUpdateBackupTimeData_setSettings_settings', 'localSourcePath'); + } + + @override + GUpdateBackupTimeData_setSettings_settings rebuild( + void Function(GUpdateBackupTimeData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupTimeData_setSettings_settingsBuilder toBuilder() => + new GUpdateBackupTimeData_setSettings_settingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupTimeData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateBackupTimeData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath)) + .toString(); + } +} + +class GUpdateBackupTimeData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateBackupTimeData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + GUpdateBackupTimeData_setSettings_settingsBuilder() { + GUpdateBackupTimeData_setSettings_settings._initializeBuilder(this); + } + + GUpdateBackupTimeData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupTimeData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupTimeData_setSettings_settings; + } + + @override + void update( + void Function(GUpdateBackupTimeData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupTimeData_setSettings_settings build() => _build(); + + _$GUpdateBackupTimeData_setSettings_settings _build() { + _$GUpdateBackupTimeData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupTimeData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupTimeData_setSettings_settings', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateBackupTimeData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, r'GUpdateBackupTimeData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GUpdateBackupTimeData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, r'GUpdateBackupTimeData_setSettings_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateBackupTimeData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull(port, r'GUpdateBackupTimeData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, r'GUpdateBackupTimeData_setSettings_settings', 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull(socksProxyHost, r'GUpdateBackupTimeData_setSettings_settings', 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull(socksProxyPassword, r'GUpdateBackupTimeData_setSettings_settings', 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull(socksProxyPort, r'GUpdateBackupTimeData_setSettings_settings', 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull(socksProxyUsername, r'GUpdateBackupTimeData_setSettings_settings', 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull(socksProxyVersion, r'GUpdateBackupTimeData_setSettings_settings', 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, r'GUpdateBackupTimeData_setSettings_settings', 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionName, r'GUpdateBackupTimeData_setSettings_settings', 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, r'GUpdateBackupTimeData_setSettings_settings', 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, r'GUpdateBackupTimeData_setSettings_settings', 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, r'GUpdateBackupTimeData_setSettings_settings', 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, r'GUpdateBackupTimeData_setSettings_settings', 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, r'GUpdateBackupTimeData_setSettings_settings', 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, r'GUpdateBackupTimeData_setSettings_settings', 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, r'GUpdateBackupTimeData_setSettings_settings', 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull(localSourcePath, r'GUpdateBackupTimeData_setSettings_settings', 'localSourcePath')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupTimeData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupIntervalData extends GUpdateBackupIntervalData { + @override + final String G__typename; + @override + final GUpdateBackupIntervalData_setSettings setSettings; + + factory _$GUpdateBackupIntervalData( + [void Function(GUpdateBackupIntervalDataBuilder)? updates]) => + (new GUpdateBackupIntervalDataBuilder()..update(updates))._build(); + + _$GUpdateBackupIntervalData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupIntervalData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateBackupIntervalData', 'setSettings'); + } + + @override + GUpdateBackupIntervalData rebuild( + void Function(GUpdateBackupIntervalDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupIntervalDataBuilder toBuilder() => + new GUpdateBackupIntervalDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupIntervalData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupIntervalData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateBackupIntervalDataBuilder + implements + Builder { + _$GUpdateBackupIntervalData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateBackupIntervalData_setSettingsBuilder? _setSettings; + GUpdateBackupIntervalData_setSettingsBuilder get setSettings => + _$this._setSettings ??= + new GUpdateBackupIntervalData_setSettingsBuilder(); + set setSettings(GUpdateBackupIntervalData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateBackupIntervalDataBuilder() { + GUpdateBackupIntervalData._initializeBuilder(this); + } + + GUpdateBackupIntervalDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupIntervalData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupIntervalData; + } + + @override + void update(void Function(GUpdateBackupIntervalDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupIntervalData build() => _build(); + + _$GUpdateBackupIntervalData _build() { + _$GUpdateBackupIntervalData _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupIntervalData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupIntervalData', 'G__typename'), + setSettings: setSettings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupIntervalData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupIntervalData_setSettings + extends GUpdateBackupIntervalData_setSettings { + @override + final String G__typename; + @override + final GUpdateBackupIntervalData_setSettings_settings settings; + + factory _$GUpdateBackupIntervalData_setSettings( + [void Function(GUpdateBackupIntervalData_setSettingsBuilder)? + updates]) => + (new GUpdateBackupIntervalData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GUpdateBackupIntervalData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupIntervalData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateBackupIntervalData_setSettings', 'settings'); + } + + @override + GUpdateBackupIntervalData_setSettings rebuild( + void Function(GUpdateBackupIntervalData_setSettingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupIntervalData_setSettingsBuilder toBuilder() => + new GUpdateBackupIntervalData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupIntervalData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateBackupIntervalData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateBackupIntervalData_setSettingsBuilder + implements + Builder { + _$GUpdateBackupIntervalData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateBackupIntervalData_setSettings_settingsBuilder? _settings; + GUpdateBackupIntervalData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateBackupIntervalData_setSettings_settingsBuilder(); + set settings( + GUpdateBackupIntervalData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GUpdateBackupIntervalData_setSettingsBuilder() { + GUpdateBackupIntervalData_setSettings._initializeBuilder(this); + } + + GUpdateBackupIntervalData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupIntervalData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupIntervalData_setSettings; + } + + @override + void update( + void Function(GUpdateBackupIntervalData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupIntervalData_setSettings build() => _build(); + + _$GUpdateBackupIntervalData_setSettings _build() { + _$GUpdateBackupIntervalData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupIntervalData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateBackupIntervalData_setSettings', 'G__typename'), + settings: settings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupIntervalData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupIntervalData_setSettings_settings + extends GUpdateBackupIntervalData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + + factory _$GUpdateBackupIntervalData_setSettings_settings( + [void Function(GUpdateBackupIntervalData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateBackupIntervalData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GUpdateBackupIntervalData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateBackupIntervalData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GUpdateBackupIntervalData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateBackupIntervalData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateBackupIntervalData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateBackupIntervalData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateBackupIntervalData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateBackupIntervalData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, + r'GUpdateBackupIntervalData_setSettings_settings', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GUpdateBackupIntervalData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateBackupIntervalData_setSettings_settings', + 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GUpdateBackupIntervalData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateBackupIntervalData_setSettings_settings', + 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull(socksProxyVersion, + r'GUpdateBackupIntervalData_setSettings_settings', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateBackupIntervalData_setSettings_settings', + 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateBackupIntervalData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateBackupIntervalData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateBackupIntervalData_setSettings_settings', + 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GUpdateBackupIntervalData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GUpdateBackupIntervalData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, + r'GUpdateBackupIntervalData_setSettings_settings', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateBackupIntervalData_setSettings_settings', + 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GUpdateBackupIntervalData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateBackupIntervalData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GUpdateBackupIntervalData_setSettings_settings', 'localSourcePath'); + } + + @override + GUpdateBackupIntervalData_setSettings_settings rebuild( + void Function(GUpdateBackupIntervalData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupIntervalData_setSettings_settingsBuilder toBuilder() => + new GUpdateBackupIntervalData_setSettings_settingsBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupIntervalData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateBackupIntervalData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath)) + .toString(); + } +} + +class GUpdateBackupIntervalData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateBackupIntervalData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + GUpdateBackupIntervalData_setSettings_settingsBuilder() { + GUpdateBackupIntervalData_setSettings_settings._initializeBuilder(this); + } + + GUpdateBackupIntervalData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupIntervalData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupIntervalData_setSettings_settings; + } + + @override + void update( + void Function(GUpdateBackupIntervalData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupIntervalData_setSettings_settings build() => _build(); + + _$GUpdateBackupIntervalData_setSettings_settings _build() { + _$GUpdateBackupIntervalData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupIntervalData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupIntervalData_setSettings_settings', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateBackupIntervalData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, r'GUpdateBackupIntervalData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GUpdateBackupIntervalData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, r'GUpdateBackupIntervalData_setSettings_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateBackupIntervalData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull(port, r'GUpdateBackupIntervalData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, r'GUpdateBackupIntervalData_setSettings_settings', 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull(socksProxyHost, r'GUpdateBackupIntervalData_setSettings_settings', 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull(socksProxyPassword, r'GUpdateBackupIntervalData_setSettings_settings', 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull(socksProxyPort, r'GUpdateBackupIntervalData_setSettings_settings', 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull(socksProxyUsername, r'GUpdateBackupIntervalData_setSettings_settings', 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull(socksProxyVersion, r'GUpdateBackupIntervalData_setSettings_settings', 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, r'GUpdateBackupIntervalData_setSettings_settings', 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionName, r'GUpdateBackupIntervalData_setSettings_settings', 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, r'GUpdateBackupIntervalData_setSettings_settings', 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, r'GUpdateBackupIntervalData_setSettings_settings', 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, r'GUpdateBackupIntervalData_setSettings_settings', 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, r'GUpdateBackupIntervalData_setSettings_settings', 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, r'GUpdateBackupIntervalData_setSettings_settings', 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, r'GUpdateBackupIntervalData_setSettings_settings', 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, r'GUpdateBackupIntervalData_setSettings_settings', 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull(localSourcePath, r'GUpdateBackupIntervalData_setSettings_settings', 'localSourcePath')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupIntervalData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupTTLData extends GUpdateBackupTTLData { + @override + final String G__typename; + @override + final GUpdateBackupTTLData_setSettings setSettings; + + factory _$GUpdateBackupTTLData( + [void Function(GUpdateBackupTTLDataBuilder)? updates]) => + (new GUpdateBackupTTLDataBuilder()..update(updates))._build(); + + _$GUpdateBackupTTLData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupTTLData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateBackupTTLData', 'setSettings'); + } + + @override + GUpdateBackupTTLData rebuild( + void Function(GUpdateBackupTTLDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupTTLDataBuilder toBuilder() => + new GUpdateBackupTTLDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupTTLData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupTTLData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateBackupTTLDataBuilder + implements Builder { + _$GUpdateBackupTTLData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateBackupTTLData_setSettingsBuilder? _setSettings; + GUpdateBackupTTLData_setSettingsBuilder get setSettings => + _$this._setSettings ??= new GUpdateBackupTTLData_setSettingsBuilder(); + set setSettings(GUpdateBackupTTLData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateBackupTTLDataBuilder() { + GUpdateBackupTTLData._initializeBuilder(this); + } + + GUpdateBackupTTLDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupTTLData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupTTLData; + } + + @override + void update(void Function(GUpdateBackupTTLDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupTTLData build() => _build(); + + _$GUpdateBackupTTLData _build() { + _$GUpdateBackupTTLData _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupTTLData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupTTLData', 'G__typename'), + setSettings: setSettings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupTTLData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupTTLData_setSettings + extends GUpdateBackupTTLData_setSettings { + @override + final String G__typename; + @override + final GUpdateBackupTTLData_setSettings_settings settings; + + factory _$GUpdateBackupTTLData_setSettings( + [void Function(GUpdateBackupTTLData_setSettingsBuilder)? updates]) => + (new GUpdateBackupTTLData_setSettingsBuilder()..update(updates))._build(); + + _$GUpdateBackupTTLData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupTTLData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateBackupTTLData_setSettings', 'settings'); + } + + @override + GUpdateBackupTTLData_setSettings rebuild( + void Function(GUpdateBackupTTLData_setSettingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupTTLData_setSettingsBuilder toBuilder() => + new GUpdateBackupTTLData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupTTLData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupTTLData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateBackupTTLData_setSettingsBuilder + implements + Builder { + _$GUpdateBackupTTLData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateBackupTTLData_setSettings_settingsBuilder? _settings; + GUpdateBackupTTLData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateBackupTTLData_setSettings_settingsBuilder(); + set settings(GUpdateBackupTTLData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GUpdateBackupTTLData_setSettingsBuilder() { + GUpdateBackupTTLData_setSettings._initializeBuilder(this); + } + + GUpdateBackupTTLData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupTTLData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupTTLData_setSettings; + } + + @override + void update(void Function(GUpdateBackupTTLData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupTTLData_setSettings build() => _build(); + + _$GUpdateBackupTTLData_setSettings _build() { + _$GUpdateBackupTTLData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupTTLData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateBackupTTLData_setSettings', 'G__typename'), + settings: settings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupTTLData_setSettings', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupTTLData_setSettings_settings + extends GUpdateBackupTTLData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + + factory _$GUpdateBackupTTLData_setSettings_settings( + [void Function(GUpdateBackupTTLData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateBackupTTLData_setSettings_settingsBuilder()..update(updates)) + ._build(); + + _$GUpdateBackupTTLData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateBackupTTLData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GUpdateBackupTTLData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull( + backupPath, r'GUpdateBackupTTLData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GUpdateBackupTTLData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull( + backupTime, r'GUpdateBackupTTLData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateBackupTTLData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateBackupTTLData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, + r'GUpdateBackupTTLData_setSettings_settings', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GUpdateBackupTTLData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull(socksProxyPassword, + r'GUpdateBackupTTLData_setSettings_settings', 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GUpdateBackupTTLData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull(socksProxyUsername, + r'GUpdateBackupTTLData_setSettings_settings', 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull(socksProxyVersion, + r'GUpdateBackupTTLData_setSettings_settings', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, + r'GUpdateBackupTTLData_setSettings_settings', 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateBackupTTLData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, + r'GUpdateBackupTTLData_setSettings_settings', 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, + r'GUpdateBackupTTLData_setSettings_settings', 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GUpdateBackupTTLData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GUpdateBackupTTLData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, + r'GUpdateBackupTTLData_setSettings_settings', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, + r'GUpdateBackupTTLData_setSettings_settings', 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GUpdateBackupTTLData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, + r'GUpdateBackupTTLData_setSettings_settings', 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GUpdateBackupTTLData_setSettings_settings', 'localSourcePath'); + } + + @override + GUpdateBackupTTLData_setSettings_settings rebuild( + void Function(GUpdateBackupTTLData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupTTLData_setSettings_settingsBuilder toBuilder() => + new GUpdateBackupTTLData_setSettings_settingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupTTLData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateBackupTTLData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath)) + .toString(); + } +} + +class GUpdateBackupTTLData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateBackupTTLData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + GUpdateBackupTTLData_setSettings_settingsBuilder() { + GUpdateBackupTTLData_setSettings_settings._initializeBuilder(this); + } + + GUpdateBackupTTLData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupTTLData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupTTLData_setSettings_settings; + } + + @override + void update( + void Function(GUpdateBackupTTLData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupTTLData_setSettings_settings build() => _build(); + + _$GUpdateBackupTTLData_setSettings_settings _build() { + _$GUpdateBackupTTLData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupTTLData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupTTLData_setSettings_settings', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateBackupTTLData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, r'GUpdateBackupTTLData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GUpdateBackupTTLData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, r'GUpdateBackupTTLData_setSettings_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateBackupTTLData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull(port, r'GUpdateBackupTTLData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, r'GUpdateBackupTTLData_setSettings_settings', 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull(socksProxyHost, r'GUpdateBackupTTLData_setSettings_settings', 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull(socksProxyPassword, r'GUpdateBackupTTLData_setSettings_settings', 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull(socksProxyPort, r'GUpdateBackupTTLData_setSettings_settings', 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull(socksProxyUsername, r'GUpdateBackupTTLData_setSettings_settings', 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull(socksProxyVersion, r'GUpdateBackupTTLData_setSettings_settings', 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, r'GUpdateBackupTTLData_setSettings_settings', 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionName, r'GUpdateBackupTTLData_setSettings_settings', 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, r'GUpdateBackupTTLData_setSettings_settings', 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, r'GUpdateBackupTTLData_setSettings_settings', 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, r'GUpdateBackupTTLData_setSettings_settings', 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, r'GUpdateBackupTTLData_setSettings_settings', 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, r'GUpdateBackupTTLData_setSettings_settings', 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, r'GUpdateBackupTTLData_setSettings_settings', 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, r'GUpdateBackupTTLData_setSettings_settings', 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull(localSourcePath, r'GUpdateBackupTTLData_setSettings_settings', 'localSourcePath')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupTTLData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/backup/data/graphql/__generated__/backup_settings_query.req.gql.dart b/lib/src/features/settings/presentation/backup/data/graphql/__generated__/backup_settings_query.req.gql.dart new file mode 100644 index 00000000..38fa07cc --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/__generated__/backup_settings_query.req.gql.dart @@ -0,0 +1,659 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/__generated__/backup_settings_query.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/__generated__/backup_settings_query.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/__generated__/backup_settings_query.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'backup_settings_query.req.gql.g.dart'; + +abstract class GRestoreStatusReq + implements + Built, + _i1.OperationRequest<_i2.GRestoreStatusData, _i3.GRestoreStatusVars> { + GRestoreStatusReq._(); + + factory GRestoreStatusReq( + [void Function(GRestoreStatusReqBuilder b) updates]) = + _$GRestoreStatusReq; + + static void _initializeBuilder(GRestoreStatusReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'RestoreStatus', + ) + ..executeOnListen = true; + + @override + _i3.GRestoreStatusVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GRestoreStatusData? Function( + _i2.GRestoreStatusData?, + _i2.GRestoreStatusData?, + )? get updateResult; + @override + _i2.GRestoreStatusData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GRestoreStatusData? parseData(Map json) => + _i2.GRestoreStatusData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GRestoreStatusData data) => data.toJson(); + + @override + _i1.OperationRequest<_i2.GRestoreStatusData, _i3.GRestoreStatusVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gRestoreStatusReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GRestoreStatusReq.serializer, + this, + ) as Map); + + static GRestoreStatusReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GRestoreStatusReq.serializer, + json, + ); +} + +abstract class GValidateBackupReq + implements + Built, + _i1.OperationRequest<_i2.GValidateBackupData, _i3.GValidateBackupVars> { + GValidateBackupReq._(); + + factory GValidateBackupReq( + [void Function(GValidateBackupReqBuilder b) updates]) = + _$GValidateBackupReq; + + static void _initializeBuilder(GValidateBackupReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'ValidateBackup', + ) + ..executeOnListen = true; + + @override + _i3.GValidateBackupVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GValidateBackupData? Function( + _i2.GValidateBackupData?, + _i2.GValidateBackupData?, + )? get updateResult; + @override + _i2.GValidateBackupData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GValidateBackupData? parseData(Map json) => + _i2.GValidateBackupData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GValidateBackupData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GValidateBackupData, _i3.GValidateBackupVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gValidateBackupReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GValidateBackupReq.serializer, + this, + ) as Map); + + static GValidateBackupReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GValidateBackupReq.serializer, + json, + ); +} + +abstract class GCreateBackupReq + implements + Built, + _i1.OperationRequest<_i2.GCreateBackupData, _i3.GCreateBackupVars> { + GCreateBackupReq._(); + + factory GCreateBackupReq([void Function(GCreateBackupReqBuilder b) updates]) = + _$GCreateBackupReq; + + static void _initializeBuilder(GCreateBackupReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'CreateBackup', + ) + ..executeOnListen = true; + + @override + _i3.GCreateBackupVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GCreateBackupData? Function( + _i2.GCreateBackupData?, + _i2.GCreateBackupData?, + )? get updateResult; + @override + _i2.GCreateBackupData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GCreateBackupData? parseData(Map json) => + _i2.GCreateBackupData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GCreateBackupData data) => data.toJson(); + + @override + _i1.OperationRequest<_i2.GCreateBackupData, _i3.GCreateBackupVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gCreateBackupReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GCreateBackupReq.serializer, + this, + ) as Map); + + static GCreateBackupReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GCreateBackupReq.serializer, + json, + ); +} + +abstract class GRestoreBackupReq + implements + Built, + _i1.OperationRequest<_i2.GRestoreBackupData, _i3.GRestoreBackupVars> { + GRestoreBackupReq._(); + + factory GRestoreBackupReq( + [void Function(GRestoreBackupReqBuilder b) updates]) = + _$GRestoreBackupReq; + + static void _initializeBuilder(GRestoreBackupReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'RestoreBackup', + ) + ..executeOnListen = true; + + @override + _i3.GRestoreBackupVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GRestoreBackupData? Function( + _i2.GRestoreBackupData?, + _i2.GRestoreBackupData?, + )? get updateResult; + @override + _i2.GRestoreBackupData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GRestoreBackupData? parseData(Map json) => + _i2.GRestoreBackupData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GRestoreBackupData data) => data.toJson(); + + @override + _i1.OperationRequest<_i2.GRestoreBackupData, _i3.GRestoreBackupVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gRestoreBackupReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GRestoreBackupReq.serializer, + this, + ) as Map); + + static GRestoreBackupReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GRestoreBackupReq.serializer, + json, + ); +} + +abstract class GUpdateBackupPathReq + implements + Built, + _i1.OperationRequest<_i2.GUpdateBackupPathData, + _i3.GUpdateBackupPathVars> { + GUpdateBackupPathReq._(); + + factory GUpdateBackupPathReq( + [void Function(GUpdateBackupPathReqBuilder b) updates]) = + _$GUpdateBackupPathReq; + + static void _initializeBuilder(GUpdateBackupPathReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateBackupPath', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateBackupPathVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateBackupPathData? Function( + _i2.GUpdateBackupPathData?, + _i2.GUpdateBackupPathData?, + )? get updateResult; + @override + _i2.GUpdateBackupPathData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateBackupPathData? parseData(Map json) => + _i2.GUpdateBackupPathData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateBackupPathData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateBackupPathData, _i3.GUpdateBackupPathVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateBackupPathReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateBackupPathReq.serializer, + this, + ) as Map); + + static GUpdateBackupPathReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateBackupPathReq.serializer, + json, + ); +} + +abstract class GUpdateBackupTimeReq + implements + Built, + _i1.OperationRequest<_i2.GUpdateBackupTimeData, + _i3.GUpdateBackupTimeVars> { + GUpdateBackupTimeReq._(); + + factory GUpdateBackupTimeReq( + [void Function(GUpdateBackupTimeReqBuilder b) updates]) = + _$GUpdateBackupTimeReq; + + static void _initializeBuilder(GUpdateBackupTimeReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateBackupTime', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateBackupTimeVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateBackupTimeData? Function( + _i2.GUpdateBackupTimeData?, + _i2.GUpdateBackupTimeData?, + )? get updateResult; + @override + _i2.GUpdateBackupTimeData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateBackupTimeData? parseData(Map json) => + _i2.GUpdateBackupTimeData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateBackupTimeData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateBackupTimeData, _i3.GUpdateBackupTimeVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateBackupTimeReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateBackupTimeReq.serializer, + this, + ) as Map); + + static GUpdateBackupTimeReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateBackupTimeReq.serializer, + json, + ); +} + +abstract class GUpdateBackupIntervalReq + implements + Built, + _i1.OperationRequest<_i2.GUpdateBackupIntervalData, + _i3.GUpdateBackupIntervalVars> { + GUpdateBackupIntervalReq._(); + + factory GUpdateBackupIntervalReq( + [void Function(GUpdateBackupIntervalReqBuilder b) updates]) = + _$GUpdateBackupIntervalReq; + + static void _initializeBuilder(GUpdateBackupIntervalReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateBackupInterval', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateBackupIntervalVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateBackupIntervalData? Function( + _i2.GUpdateBackupIntervalData?, + _i2.GUpdateBackupIntervalData?, + )? get updateResult; + @override + _i2.GUpdateBackupIntervalData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateBackupIntervalData? parseData(Map json) => + _i2.GUpdateBackupIntervalData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateBackupIntervalData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateBackupIntervalData, + _i3.GUpdateBackupIntervalVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateBackupIntervalReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateBackupIntervalReq.serializer, + this, + ) as Map); + + static GUpdateBackupIntervalReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateBackupIntervalReq.serializer, + json, + ); +} + +abstract class GUpdateBackupTTLReq + implements + Built, + _i1 + .OperationRequest<_i2.GUpdateBackupTTLData, _i3.GUpdateBackupTTLVars> { + GUpdateBackupTTLReq._(); + + factory GUpdateBackupTTLReq( + [void Function(GUpdateBackupTTLReqBuilder b) updates]) = + _$GUpdateBackupTTLReq; + + static void _initializeBuilder(GUpdateBackupTTLReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateBackupTTL', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateBackupTTLVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateBackupTTLData? Function( + _i2.GUpdateBackupTTLData?, + _i2.GUpdateBackupTTLData?, + )? get updateResult; + @override + _i2.GUpdateBackupTTLData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateBackupTTLData? parseData(Map json) => + _i2.GUpdateBackupTTLData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateBackupTTLData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateBackupTTLData, _i3.GUpdateBackupTTLVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateBackupTTLReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateBackupTTLReq.serializer, + this, + ) as Map); + + static GUpdateBackupTTLReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateBackupTTLReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/backup/data/graphql/__generated__/backup_settings_query.req.gql.g.dart b/lib/src/features/settings/presentation/backup/data/graphql/__generated__/backup_settings_query.req.gql.g.dart new file mode 100644 index 00000000..8d6cd738 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/__generated__/backup_settings_query.req.gql.g.dart @@ -0,0 +1,2900 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'backup_settings_query.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gRestoreStatusReqSerializer = + new _$GRestoreStatusReqSerializer(); +Serializer _$gValidateBackupReqSerializer = + new _$GValidateBackupReqSerializer(); +Serializer _$gCreateBackupReqSerializer = + new _$GCreateBackupReqSerializer(); +Serializer _$gRestoreBackupReqSerializer = + new _$GRestoreBackupReqSerializer(); +Serializer _$gUpdateBackupPathReqSerializer = + new _$GUpdateBackupPathReqSerializer(); +Serializer _$gUpdateBackupTimeReqSerializer = + new _$GUpdateBackupTimeReqSerializer(); +Serializer _$gUpdateBackupIntervalReqSerializer = + new _$GUpdateBackupIntervalReqSerializer(); +Serializer _$gUpdateBackupTTLReqSerializer = + new _$GUpdateBackupTTLReqSerializer(); + +class _$GRestoreStatusReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GRestoreStatusReq, _$GRestoreStatusReq]; + @override + final String wireName = 'GRestoreStatusReq'; + + @override + Iterable serialize(Serializers serializers, GRestoreStatusReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GRestoreStatusVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GRestoreStatusData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GRestoreStatusReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GRestoreStatusReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GRestoreStatusVars))! + as _i3.GRestoreStatusVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GRestoreStatusData))! + as _i2.GRestoreStatusData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GValidateBackupReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GValidateBackupReq, _$GValidateBackupReq]; + @override + final String wireName = 'GValidateBackupReq'; + + @override + Iterable serialize( + Serializers serializers, GValidateBackupReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GValidateBackupVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GValidateBackupData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GValidateBackupReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GValidateBackupReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GValidateBackupVars))! + as _i3.GValidateBackupVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GValidateBackupData))! + as _i2.GValidateBackupData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GCreateBackupReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GCreateBackupReq, _$GCreateBackupReq]; + @override + final String wireName = 'GCreateBackupReq'; + + @override + Iterable serialize(Serializers serializers, GCreateBackupReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GCreateBackupVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GCreateBackupData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GCreateBackupReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GCreateBackupReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GCreateBackupVars))! + as _i3.GCreateBackupVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GCreateBackupData))! + as _i2.GCreateBackupData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GRestoreBackupReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GRestoreBackupReq, _$GRestoreBackupReq]; + @override + final String wireName = 'GRestoreBackupReq'; + + @override + Iterable serialize(Serializers serializers, GRestoreBackupReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GRestoreBackupVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GRestoreBackupData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GRestoreBackupReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GRestoreBackupReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GRestoreBackupVars))! + as _i3.GRestoreBackupVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GRestoreBackupData))! + as _i2.GRestoreBackupData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupPathReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupPathReq, + _$GUpdateBackupPathReq + ]; + @override + final String wireName = 'GUpdateBackupPathReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupPathReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateBackupPathVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateBackupPathData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateBackupPathReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupPathReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GUpdateBackupPathVars))! + as _i3.GUpdateBackupPathVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GUpdateBackupPathData))! + as _i2.GUpdateBackupPathData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupTimeReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupTimeReq, + _$GUpdateBackupTimeReq + ]; + @override + final String wireName = 'GUpdateBackupTimeReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupTimeReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateBackupTimeVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateBackupTimeData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateBackupTimeReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupTimeReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GUpdateBackupTimeVars))! + as _i3.GUpdateBackupTimeVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GUpdateBackupTimeData))! + as _i2.GUpdateBackupTimeData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupIntervalReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupIntervalReq, + _$GUpdateBackupIntervalReq + ]; + @override + final String wireName = 'GUpdateBackupIntervalReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupIntervalReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateBackupIntervalVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateBackupIntervalData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateBackupIntervalReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupIntervalReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GUpdateBackupIntervalVars))! + as _i3.GUpdateBackupIntervalVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GUpdateBackupIntervalData))! + as _i2.GUpdateBackupIntervalData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupTTLReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupTTLReq, + _$GUpdateBackupTTLReq + ]; + @override + final String wireName = 'GUpdateBackupTTLReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupTTLReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateBackupTTLVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateBackupTTLData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateBackupTTLReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupTTLReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GUpdateBackupTTLVars))! + as _i3.GUpdateBackupTTLVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GUpdateBackupTTLData))! + as _i2.GUpdateBackupTTLData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GRestoreStatusReq extends GRestoreStatusReq { + @override + final _i3.GRestoreStatusVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GRestoreStatusData? Function( + _i2.GRestoreStatusData?, _i2.GRestoreStatusData?)? updateResult; + @override + final _i2.GRestoreStatusData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GRestoreStatusReq( + [void Function(GRestoreStatusReqBuilder)? updates]) => + (new GRestoreStatusReqBuilder()..update(updates))._build(); + + _$GRestoreStatusReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GRestoreStatusReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GRestoreStatusReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GRestoreStatusReq', 'executeOnListen'); + } + + @override + GRestoreStatusReq rebuild(void Function(GRestoreStatusReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GRestoreStatusReqBuilder toBuilder() => + new GRestoreStatusReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GRestoreStatusReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GRestoreStatusReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GRestoreStatusReqBuilder + implements Builder { + _$GRestoreStatusReq? _$v; + + _i3.GRestoreStatusVarsBuilder? _vars; + _i3.GRestoreStatusVarsBuilder get vars => + _$this._vars ??= new _i3.GRestoreStatusVarsBuilder(); + set vars(_i3.GRestoreStatusVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GRestoreStatusData? Function( + _i2.GRestoreStatusData?, _i2.GRestoreStatusData?)? _updateResult; + _i2.GRestoreStatusData? Function( + _i2.GRestoreStatusData?, _i2.GRestoreStatusData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GRestoreStatusData? Function( + _i2.GRestoreStatusData?, _i2.GRestoreStatusData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GRestoreStatusDataBuilder? _optimisticResponse; + _i2.GRestoreStatusDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GRestoreStatusDataBuilder(); + set optimisticResponse(_i2.GRestoreStatusDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GRestoreStatusReqBuilder() { + GRestoreStatusReq._initializeBuilder(this); + } + + GRestoreStatusReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GRestoreStatusReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GRestoreStatusReq; + } + + @override + void update(void Function(GRestoreStatusReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GRestoreStatusReq build() => _build(); + + _$GRestoreStatusReq _build() { + _$GRestoreStatusReq _$result; + try { + _$result = _$v ?? + new _$GRestoreStatusReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GRestoreStatusReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GRestoreStatusReq', 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GRestoreStatusReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GValidateBackupReq extends GValidateBackupReq { + @override + final _i3.GValidateBackupVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GValidateBackupData? Function( + _i2.GValidateBackupData?, _i2.GValidateBackupData?)? updateResult; + @override + final _i2.GValidateBackupData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GValidateBackupReq( + [void Function(GValidateBackupReqBuilder)? updates]) => + (new GValidateBackupReqBuilder()..update(updates))._build(); + + _$GValidateBackupReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GValidateBackupReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GValidateBackupReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GValidateBackupReq', 'executeOnListen'); + } + + @override + GValidateBackupReq rebuild( + void Function(GValidateBackupReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GValidateBackupReqBuilder toBuilder() => + new GValidateBackupReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GValidateBackupReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GValidateBackupReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GValidateBackupReqBuilder + implements Builder { + _$GValidateBackupReq? _$v; + + _i3.GValidateBackupVarsBuilder? _vars; + _i3.GValidateBackupVarsBuilder get vars => + _$this._vars ??= new _i3.GValidateBackupVarsBuilder(); + set vars(_i3.GValidateBackupVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GValidateBackupData? Function( + _i2.GValidateBackupData?, _i2.GValidateBackupData?)? _updateResult; + _i2.GValidateBackupData? Function( + _i2.GValidateBackupData?, _i2.GValidateBackupData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GValidateBackupData? Function( + _i2.GValidateBackupData?, _i2.GValidateBackupData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GValidateBackupDataBuilder? _optimisticResponse; + _i2.GValidateBackupDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GValidateBackupDataBuilder(); + set optimisticResponse(_i2.GValidateBackupDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GValidateBackupReqBuilder() { + GValidateBackupReq._initializeBuilder(this); + } + + GValidateBackupReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GValidateBackupReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GValidateBackupReq; + } + + @override + void update(void Function(GValidateBackupReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GValidateBackupReq build() => _build(); + + _$GValidateBackupReq _build() { + _$GValidateBackupReq _$result; + try { + _$result = _$v ?? + new _$GValidateBackupReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GValidateBackupReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GValidateBackupReq', 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GValidateBackupReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GCreateBackupReq extends GCreateBackupReq { + @override + final _i3.GCreateBackupVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GCreateBackupData? Function( + _i2.GCreateBackupData?, _i2.GCreateBackupData?)? updateResult; + @override + final _i2.GCreateBackupData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GCreateBackupReq( + [void Function(GCreateBackupReqBuilder)? updates]) => + (new GCreateBackupReqBuilder()..update(updates))._build(); + + _$GCreateBackupReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GCreateBackupReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GCreateBackupReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GCreateBackupReq', 'executeOnListen'); + } + + @override + GCreateBackupReq rebuild(void Function(GCreateBackupReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCreateBackupReqBuilder toBuilder() => + new GCreateBackupReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GCreateBackupReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GCreateBackupReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GCreateBackupReqBuilder + implements Builder { + _$GCreateBackupReq? _$v; + + _i3.GCreateBackupVarsBuilder? _vars; + _i3.GCreateBackupVarsBuilder get vars => + _$this._vars ??= new _i3.GCreateBackupVarsBuilder(); + set vars(_i3.GCreateBackupVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GCreateBackupData? Function( + _i2.GCreateBackupData?, _i2.GCreateBackupData?)? _updateResult; + _i2.GCreateBackupData? Function( + _i2.GCreateBackupData?, _i2.GCreateBackupData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GCreateBackupData? Function( + _i2.GCreateBackupData?, _i2.GCreateBackupData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GCreateBackupDataBuilder? _optimisticResponse; + _i2.GCreateBackupDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GCreateBackupDataBuilder(); + set optimisticResponse(_i2.GCreateBackupDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GCreateBackupReqBuilder() { + GCreateBackupReq._initializeBuilder(this); + } + + GCreateBackupReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GCreateBackupReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCreateBackupReq; + } + + @override + void update(void Function(GCreateBackupReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCreateBackupReq build() => _build(); + + _$GCreateBackupReq _build() { + _$GCreateBackupReq _$result; + try { + _$result = _$v ?? + new _$GCreateBackupReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GCreateBackupReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GCreateBackupReq', 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GCreateBackupReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GRestoreBackupReq extends GRestoreBackupReq { + @override + final _i3.GRestoreBackupVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GRestoreBackupData? Function( + _i2.GRestoreBackupData?, _i2.GRestoreBackupData?)? updateResult; + @override + final _i2.GRestoreBackupData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GRestoreBackupReq( + [void Function(GRestoreBackupReqBuilder)? updates]) => + (new GRestoreBackupReqBuilder()..update(updates))._build(); + + _$GRestoreBackupReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GRestoreBackupReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GRestoreBackupReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GRestoreBackupReq', 'executeOnListen'); + } + + @override + GRestoreBackupReq rebuild(void Function(GRestoreBackupReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GRestoreBackupReqBuilder toBuilder() => + new GRestoreBackupReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GRestoreBackupReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GRestoreBackupReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GRestoreBackupReqBuilder + implements Builder { + _$GRestoreBackupReq? _$v; + + _i3.GRestoreBackupVarsBuilder? _vars; + _i3.GRestoreBackupVarsBuilder get vars => + _$this._vars ??= new _i3.GRestoreBackupVarsBuilder(); + set vars(_i3.GRestoreBackupVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GRestoreBackupData? Function( + _i2.GRestoreBackupData?, _i2.GRestoreBackupData?)? _updateResult; + _i2.GRestoreBackupData? Function( + _i2.GRestoreBackupData?, _i2.GRestoreBackupData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GRestoreBackupData? Function( + _i2.GRestoreBackupData?, _i2.GRestoreBackupData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GRestoreBackupDataBuilder? _optimisticResponse; + _i2.GRestoreBackupDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GRestoreBackupDataBuilder(); + set optimisticResponse(_i2.GRestoreBackupDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GRestoreBackupReqBuilder() { + GRestoreBackupReq._initializeBuilder(this); + } + + GRestoreBackupReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GRestoreBackupReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GRestoreBackupReq; + } + + @override + void update(void Function(GRestoreBackupReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GRestoreBackupReq build() => _build(); + + _$GRestoreBackupReq _build() { + _$GRestoreBackupReq _$result; + try { + _$result = _$v ?? + new _$GRestoreBackupReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GRestoreBackupReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GRestoreBackupReq', 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GRestoreBackupReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupPathReq extends GUpdateBackupPathReq { + @override + final _i3.GUpdateBackupPathVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateBackupPathData? Function( + _i2.GUpdateBackupPathData?, _i2.GUpdateBackupPathData?)? updateResult; + @override + final _i2.GUpdateBackupPathData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateBackupPathReq( + [void Function(GUpdateBackupPathReqBuilder)? updates]) => + (new GUpdateBackupPathReqBuilder()..update(updates))._build(); + + _$GUpdateBackupPathReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GUpdateBackupPathReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateBackupPathReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateBackupPathReq', 'executeOnListen'); + } + + @override + GUpdateBackupPathReq rebuild( + void Function(GUpdateBackupPathReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupPathReqBuilder toBuilder() => + new GUpdateBackupPathReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateBackupPathReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupPathReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateBackupPathReqBuilder + implements Builder { + _$GUpdateBackupPathReq? _$v; + + _i3.GUpdateBackupPathVarsBuilder? _vars; + _i3.GUpdateBackupPathVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateBackupPathVarsBuilder(); + set vars(_i3.GUpdateBackupPathVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateBackupPathData? Function( + _i2.GUpdateBackupPathData?, _i2.GUpdateBackupPathData?)? _updateResult; + _i2.GUpdateBackupPathData? Function( + _i2.GUpdateBackupPathData?, _i2.GUpdateBackupPathData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateBackupPathData? Function( + _i2.GUpdateBackupPathData?, _i2.GUpdateBackupPathData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateBackupPathDataBuilder? _optimisticResponse; + _i2.GUpdateBackupPathDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GUpdateBackupPathDataBuilder(); + set optimisticResponse( + _i2.GUpdateBackupPathDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateBackupPathReqBuilder() { + GUpdateBackupPathReq._initializeBuilder(this); + } + + GUpdateBackupPathReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupPathReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupPathReq; + } + + @override + void update(void Function(GUpdateBackupPathReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupPathReq build() => _build(); + + _$GUpdateBackupPathReq _build() { + _$GUpdateBackupPathReq _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupPathReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateBackupPathReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateBackupPathReq', 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupPathReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupTimeReq extends GUpdateBackupTimeReq { + @override + final _i3.GUpdateBackupTimeVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateBackupTimeData? Function( + _i2.GUpdateBackupTimeData?, _i2.GUpdateBackupTimeData?)? updateResult; + @override + final _i2.GUpdateBackupTimeData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateBackupTimeReq( + [void Function(GUpdateBackupTimeReqBuilder)? updates]) => + (new GUpdateBackupTimeReqBuilder()..update(updates))._build(); + + _$GUpdateBackupTimeReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GUpdateBackupTimeReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateBackupTimeReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateBackupTimeReq', 'executeOnListen'); + } + + @override + GUpdateBackupTimeReq rebuild( + void Function(GUpdateBackupTimeReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupTimeReqBuilder toBuilder() => + new GUpdateBackupTimeReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateBackupTimeReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupTimeReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateBackupTimeReqBuilder + implements Builder { + _$GUpdateBackupTimeReq? _$v; + + _i3.GUpdateBackupTimeVarsBuilder? _vars; + _i3.GUpdateBackupTimeVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateBackupTimeVarsBuilder(); + set vars(_i3.GUpdateBackupTimeVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateBackupTimeData? Function( + _i2.GUpdateBackupTimeData?, _i2.GUpdateBackupTimeData?)? _updateResult; + _i2.GUpdateBackupTimeData? Function( + _i2.GUpdateBackupTimeData?, _i2.GUpdateBackupTimeData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateBackupTimeData? Function( + _i2.GUpdateBackupTimeData?, _i2.GUpdateBackupTimeData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateBackupTimeDataBuilder? _optimisticResponse; + _i2.GUpdateBackupTimeDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GUpdateBackupTimeDataBuilder(); + set optimisticResponse( + _i2.GUpdateBackupTimeDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateBackupTimeReqBuilder() { + GUpdateBackupTimeReq._initializeBuilder(this); + } + + GUpdateBackupTimeReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupTimeReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupTimeReq; + } + + @override + void update(void Function(GUpdateBackupTimeReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupTimeReq build() => _build(); + + _$GUpdateBackupTimeReq _build() { + _$GUpdateBackupTimeReq _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupTimeReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateBackupTimeReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateBackupTimeReq', 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupTimeReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupIntervalReq extends GUpdateBackupIntervalReq { + @override + final _i3.GUpdateBackupIntervalVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateBackupIntervalData? Function( + _i2.GUpdateBackupIntervalData?, _i2.GUpdateBackupIntervalData?)? + updateResult; + @override + final _i2.GUpdateBackupIntervalData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateBackupIntervalReq( + [void Function(GUpdateBackupIntervalReqBuilder)? updates]) => + (new GUpdateBackupIntervalReqBuilder()..update(updates))._build(); + + _$GUpdateBackupIntervalReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GUpdateBackupIntervalReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateBackupIntervalReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateBackupIntervalReq', 'executeOnListen'); + } + + @override + GUpdateBackupIntervalReq rebuild( + void Function(GUpdateBackupIntervalReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupIntervalReqBuilder toBuilder() => + new GUpdateBackupIntervalReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateBackupIntervalReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupIntervalReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateBackupIntervalReqBuilder + implements + Builder { + _$GUpdateBackupIntervalReq? _$v; + + _i3.GUpdateBackupIntervalVarsBuilder? _vars; + _i3.GUpdateBackupIntervalVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateBackupIntervalVarsBuilder(); + set vars(_i3.GUpdateBackupIntervalVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateBackupIntervalData? Function( + _i2.GUpdateBackupIntervalData?, _i2.GUpdateBackupIntervalData?)? + _updateResult; + _i2.GUpdateBackupIntervalData? Function( + _i2.GUpdateBackupIntervalData?, _i2.GUpdateBackupIntervalData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateBackupIntervalData? Function( + _i2.GUpdateBackupIntervalData?, + _i2.GUpdateBackupIntervalData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateBackupIntervalDataBuilder? _optimisticResponse; + _i2.GUpdateBackupIntervalDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GUpdateBackupIntervalDataBuilder(); + set optimisticResponse( + _i2.GUpdateBackupIntervalDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateBackupIntervalReqBuilder() { + GUpdateBackupIntervalReq._initializeBuilder(this); + } + + GUpdateBackupIntervalReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupIntervalReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupIntervalReq; + } + + @override + void update(void Function(GUpdateBackupIntervalReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupIntervalReq build() => _build(); + + _$GUpdateBackupIntervalReq _build() { + _$GUpdateBackupIntervalReq _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupIntervalReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateBackupIntervalReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GUpdateBackupIntervalReq', + 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupIntervalReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupTTLReq extends GUpdateBackupTTLReq { + @override + final _i3.GUpdateBackupTTLVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateBackupTTLData? Function( + _i2.GUpdateBackupTTLData?, _i2.GUpdateBackupTTLData?)? updateResult; + @override + final _i2.GUpdateBackupTTLData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateBackupTTLReq( + [void Function(GUpdateBackupTTLReqBuilder)? updates]) => + (new GUpdateBackupTTLReqBuilder()..update(updates))._build(); + + _$GUpdateBackupTTLReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GUpdateBackupTTLReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateBackupTTLReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateBackupTTLReq', 'executeOnListen'); + } + + @override + GUpdateBackupTTLReq rebuild( + void Function(GUpdateBackupTTLReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupTTLReqBuilder toBuilder() => + new GUpdateBackupTTLReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateBackupTTLReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupTTLReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateBackupTTLReqBuilder + implements Builder { + _$GUpdateBackupTTLReq? _$v; + + _i3.GUpdateBackupTTLVarsBuilder? _vars; + _i3.GUpdateBackupTTLVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateBackupTTLVarsBuilder(); + set vars(_i3.GUpdateBackupTTLVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateBackupTTLData? Function( + _i2.GUpdateBackupTTLData?, _i2.GUpdateBackupTTLData?)? _updateResult; + _i2.GUpdateBackupTTLData? Function( + _i2.GUpdateBackupTTLData?, _i2.GUpdateBackupTTLData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateBackupTTLData? Function( + _i2.GUpdateBackupTTLData?, _i2.GUpdateBackupTTLData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateBackupTTLDataBuilder? _optimisticResponse; + _i2.GUpdateBackupTTLDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GUpdateBackupTTLDataBuilder(); + set optimisticResponse(_i2.GUpdateBackupTTLDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateBackupTTLReqBuilder() { + GUpdateBackupTTLReq._initializeBuilder(this); + } + + GUpdateBackupTTLReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupTTLReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupTTLReq; + } + + @override + void update(void Function(GUpdateBackupTTLReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupTTLReq build() => _build(); + + _$GUpdateBackupTTLReq _build() { + _$GUpdateBackupTTLReq _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupTTLReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateBackupTTLReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateBackupTTLReq', 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupTTLReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/backup/data/graphql/__generated__/backup_settings_query.var.gql.dart b/lib/src/features/settings/presentation/backup/data/graphql/__generated__/backup_settings_query.var.gql.dart new file mode 100644 index 00000000..45d7d711 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/__generated__/backup_settings_query.var.gql.dart @@ -0,0 +1,205 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:http/http.dart' as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'backup_settings_query.var.gql.g.dart'; + +abstract class GRestoreStatusVars + implements Built { + GRestoreStatusVars._(); + + factory GRestoreStatusVars( + [void Function(GRestoreStatusVarsBuilder b) updates]) = + _$GRestoreStatusVars; + + String get restoreId; + static Serializer get serializer => + _$gRestoreStatusVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GRestoreStatusVars.serializer, + this, + ) as Map); + + static GRestoreStatusVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GRestoreStatusVars.serializer, + json, + ); +} + +abstract class GValidateBackupVars + implements Built { + GValidateBackupVars._(); + + factory GValidateBackupVars( + [void Function(GValidateBackupVarsBuilder b) updates]) = + _$GValidateBackupVars; + + _i2.MultipartFile get backup; + static Serializer get serializer => + _$gValidateBackupVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GValidateBackupVars.serializer, + this, + ) as Map); + + static GValidateBackupVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GValidateBackupVars.serializer, + json, + ); +} + +abstract class GCreateBackupVars + implements Built { + GCreateBackupVars._(); + + factory GCreateBackupVars( + [void Function(GCreateBackupVarsBuilder b) updates]) = + _$GCreateBackupVars; + + bool? get includeCategories; + bool? get includeChapters; + static Serializer get serializer => + _$gCreateBackupVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GCreateBackupVars.serializer, + this, + ) as Map); + + static GCreateBackupVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GCreateBackupVars.serializer, + json, + ); +} + +abstract class GRestoreBackupVars + implements Built { + GRestoreBackupVars._(); + + factory GRestoreBackupVars( + [void Function(GRestoreBackupVarsBuilder b) updates]) = + _$GRestoreBackupVars; + + _i2.MultipartFile get backup; + static Serializer get serializer => + _$gRestoreBackupVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GRestoreBackupVars.serializer, + this, + ) as Map); + + static GRestoreBackupVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GRestoreBackupVars.serializer, + json, + ); +} + +abstract class GUpdateBackupPathVars + implements Built { + GUpdateBackupPathVars._(); + + factory GUpdateBackupPathVars( + [void Function(GUpdateBackupPathVarsBuilder b) updates]) = + _$GUpdateBackupPathVars; + + String? get backupPath; + static Serializer get serializer => + _$gUpdateBackupPathVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupPathVars.serializer, + this, + ) as Map); + + static GUpdateBackupPathVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupPathVars.serializer, + json, + ); +} + +abstract class GUpdateBackupTimeVars + implements Built { + GUpdateBackupTimeVars._(); + + factory GUpdateBackupTimeVars( + [void Function(GUpdateBackupTimeVarsBuilder b) updates]) = + _$GUpdateBackupTimeVars; + + String? get backupTime; + static Serializer get serializer => + _$gUpdateBackupTimeVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupTimeVars.serializer, + this, + ) as Map); + + static GUpdateBackupTimeVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupTimeVars.serializer, + json, + ); +} + +abstract class GUpdateBackupIntervalVars + implements + Built { + GUpdateBackupIntervalVars._(); + + factory GUpdateBackupIntervalVars( + [void Function(GUpdateBackupIntervalVarsBuilder b) updates]) = + _$GUpdateBackupIntervalVars; + + int? get backupInterval; + static Serializer get serializer => + _$gUpdateBackupIntervalVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupIntervalVars.serializer, + this, + ) as Map); + + static GUpdateBackupIntervalVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupIntervalVars.serializer, + json, + ); +} + +abstract class GUpdateBackupTTLVars + implements Built { + GUpdateBackupTTLVars._(); + + factory GUpdateBackupTTLVars( + [void Function(GUpdateBackupTTLVarsBuilder b) updates]) = + _$GUpdateBackupTTLVars; + + int? get backupTTL; + static Serializer get serializer => + _$gUpdateBackupTTLVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupTTLVars.serializer, + this, + ) as Map); + + static GUpdateBackupTTLVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupTTLVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/backup/data/graphql/__generated__/backup_settings_query.var.gql.g.dart b/lib/src/features/settings/presentation/backup/data/graphql/__generated__/backup_settings_query.var.gql.g.dart new file mode 100644 index 00000000..fc092fdd --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/__generated__/backup_settings_query.var.gql.g.dart @@ -0,0 +1,1098 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'backup_settings_query.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gRestoreStatusVarsSerializer = + new _$GRestoreStatusVarsSerializer(); +Serializer _$gValidateBackupVarsSerializer = + new _$GValidateBackupVarsSerializer(); +Serializer _$gCreateBackupVarsSerializer = + new _$GCreateBackupVarsSerializer(); +Serializer _$gRestoreBackupVarsSerializer = + new _$GRestoreBackupVarsSerializer(); +Serializer _$gUpdateBackupPathVarsSerializer = + new _$GUpdateBackupPathVarsSerializer(); +Serializer _$gUpdateBackupTimeVarsSerializer = + new _$GUpdateBackupTimeVarsSerializer(); +Serializer _$gUpdateBackupIntervalVarsSerializer = + new _$GUpdateBackupIntervalVarsSerializer(); +Serializer _$gUpdateBackupTTLVarsSerializer = + new _$GUpdateBackupTTLVarsSerializer(); + +class _$GRestoreStatusVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GRestoreStatusVars, _$GRestoreStatusVars]; + @override + final String wireName = 'GRestoreStatusVars'; + + @override + Iterable serialize( + Serializers serializers, GRestoreStatusVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'restoreId', + serializers.serialize(object.restoreId, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GRestoreStatusVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GRestoreStatusVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'restoreId': + result.restoreId = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GValidateBackupVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GValidateBackupVars, + _$GValidateBackupVars + ]; + @override + final String wireName = 'GValidateBackupVars'; + + @override + Iterable serialize( + Serializers serializers, GValidateBackupVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'backup', + serializers.serialize(object.backup, + specifiedType: const FullType(_i2.MultipartFile)), + ]; + + return result; + } + + @override + GValidateBackupVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GValidateBackupVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'backup': + result.backup = serializers.deserialize(value, + specifiedType: const FullType(_i2.MultipartFile))! + as _i2.MultipartFile; + break; + } + } + + return result.build(); + } +} + +class _$GCreateBackupVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GCreateBackupVars, _$GCreateBackupVars]; + @override + final String wireName = 'GCreateBackupVars'; + + @override + Iterable serialize(Serializers serializers, GCreateBackupVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.includeCategories; + if (value != null) { + result + ..add('includeCategories') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.includeChapters; + if (value != null) { + result + ..add('includeChapters') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + GCreateBackupVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GCreateBackupVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'includeCategories': + result.includeCategories = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'includeChapters': + result.includeChapters = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$GRestoreBackupVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GRestoreBackupVars, _$GRestoreBackupVars]; + @override + final String wireName = 'GRestoreBackupVars'; + + @override + Iterable serialize( + Serializers serializers, GRestoreBackupVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'backup', + serializers.serialize(object.backup, + specifiedType: const FullType(_i2.MultipartFile)), + ]; + + return result; + } + + @override + GRestoreBackupVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GRestoreBackupVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'backup': + result.backup = serializers.deserialize(value, + specifiedType: const FullType(_i2.MultipartFile))! + as _i2.MultipartFile; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupPathVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupPathVars, + _$GUpdateBackupPathVars + ]; + @override + final String wireName = 'GUpdateBackupPathVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupPathVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.backupPath; + if (value != null) { + result + ..add('backupPath') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateBackupPathVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupPathVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupTimeVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupTimeVars, + _$GUpdateBackupTimeVars + ]; + @override + final String wireName = 'GUpdateBackupTimeVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupTimeVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.backupTime; + if (value != null) { + result + ..add('backupTime') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateBackupTimeVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupTimeVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupIntervalVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupIntervalVars, + _$GUpdateBackupIntervalVars + ]; + @override + final String wireName = 'GUpdateBackupIntervalVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupIntervalVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.backupInterval; + if (value != null) { + result + ..add('backupInterval') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + return result; + } + + @override + GUpdateBackupIntervalVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupIntervalVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupTTLVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupTTLVars, + _$GUpdateBackupTTLVars + ]; + @override + final String wireName = 'GUpdateBackupTTLVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupTTLVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.backupTTL; + if (value != null) { + result + ..add('backupTTL') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + return result; + } + + @override + GUpdateBackupTTLVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupTTLVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + } + } + + return result.build(); + } +} + +class _$GRestoreStatusVars extends GRestoreStatusVars { + @override + final String restoreId; + + factory _$GRestoreStatusVars( + [void Function(GRestoreStatusVarsBuilder)? updates]) => + (new GRestoreStatusVarsBuilder()..update(updates))._build(); + + _$GRestoreStatusVars._({required this.restoreId}) : super._() { + BuiltValueNullFieldError.checkNotNull( + restoreId, r'GRestoreStatusVars', 'restoreId'); + } + + @override + GRestoreStatusVars rebuild( + void Function(GRestoreStatusVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GRestoreStatusVarsBuilder toBuilder() => + new GRestoreStatusVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GRestoreStatusVars && restoreId == other.restoreId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, restoreId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GRestoreStatusVars') + ..add('restoreId', restoreId)) + .toString(); + } +} + +class GRestoreStatusVarsBuilder + implements Builder { + _$GRestoreStatusVars? _$v; + + String? _restoreId; + String? get restoreId => _$this._restoreId; + set restoreId(String? restoreId) => _$this._restoreId = restoreId; + + GRestoreStatusVarsBuilder(); + + GRestoreStatusVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _restoreId = $v.restoreId; + _$v = null; + } + return this; + } + + @override + void replace(GRestoreStatusVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GRestoreStatusVars; + } + + @override + void update(void Function(GRestoreStatusVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GRestoreStatusVars build() => _build(); + + _$GRestoreStatusVars _build() { + final _$result = _$v ?? + new _$GRestoreStatusVars._( + restoreId: BuiltValueNullFieldError.checkNotNull( + restoreId, r'GRestoreStatusVars', 'restoreId')); + replace(_$result); + return _$result; + } +} + +class _$GValidateBackupVars extends GValidateBackupVars { + @override + final _i2.MultipartFile backup; + + factory _$GValidateBackupVars( + [void Function(GValidateBackupVarsBuilder)? updates]) => + (new GValidateBackupVarsBuilder()..update(updates))._build(); + + _$GValidateBackupVars._({required this.backup}) : super._() { + BuiltValueNullFieldError.checkNotNull( + backup, r'GValidateBackupVars', 'backup'); + } + + @override + GValidateBackupVars rebuild( + void Function(GValidateBackupVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GValidateBackupVarsBuilder toBuilder() => + new GValidateBackupVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GValidateBackupVars && backup == other.backup; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, backup.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GValidateBackupVars') + ..add('backup', backup)) + .toString(); + } +} + +class GValidateBackupVarsBuilder + implements Builder { + _$GValidateBackupVars? _$v; + + _i2.MultipartFile? _backup; + _i2.MultipartFile? get backup => _$this._backup; + set backup(_i2.MultipartFile? backup) => _$this._backup = backup; + + GValidateBackupVarsBuilder(); + + GValidateBackupVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _backup = $v.backup; + _$v = null; + } + return this; + } + + @override + void replace(GValidateBackupVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GValidateBackupVars; + } + + @override + void update(void Function(GValidateBackupVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GValidateBackupVars build() => _build(); + + _$GValidateBackupVars _build() { + final _$result = _$v ?? + new _$GValidateBackupVars._( + backup: BuiltValueNullFieldError.checkNotNull( + backup, r'GValidateBackupVars', 'backup')); + replace(_$result); + return _$result; + } +} + +class _$GCreateBackupVars extends GCreateBackupVars { + @override + final bool? includeCategories; + @override + final bool? includeChapters; + + factory _$GCreateBackupVars( + [void Function(GCreateBackupVarsBuilder)? updates]) => + (new GCreateBackupVarsBuilder()..update(updates))._build(); + + _$GCreateBackupVars._({this.includeCategories, this.includeChapters}) + : super._(); + + @override + GCreateBackupVars rebuild(void Function(GCreateBackupVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCreateBackupVarsBuilder toBuilder() => + new GCreateBackupVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCreateBackupVars && + includeCategories == other.includeCategories && + includeChapters == other.includeChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, includeCategories.hashCode); + _$hash = $jc(_$hash, includeChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GCreateBackupVars') + ..add('includeCategories', includeCategories) + ..add('includeChapters', includeChapters)) + .toString(); + } +} + +class GCreateBackupVarsBuilder + implements Builder { + _$GCreateBackupVars? _$v; + + bool? _includeCategories; + bool? get includeCategories => _$this._includeCategories; + set includeCategories(bool? includeCategories) => + _$this._includeCategories = includeCategories; + + bool? _includeChapters; + bool? get includeChapters => _$this._includeChapters; + set includeChapters(bool? includeChapters) => + _$this._includeChapters = includeChapters; + + GCreateBackupVarsBuilder(); + + GCreateBackupVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _includeCategories = $v.includeCategories; + _includeChapters = $v.includeChapters; + _$v = null; + } + return this; + } + + @override + void replace(GCreateBackupVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCreateBackupVars; + } + + @override + void update(void Function(GCreateBackupVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCreateBackupVars build() => _build(); + + _$GCreateBackupVars _build() { + final _$result = _$v ?? + new _$GCreateBackupVars._( + includeCategories: includeCategories, + includeChapters: includeChapters); + replace(_$result); + return _$result; + } +} + +class _$GRestoreBackupVars extends GRestoreBackupVars { + @override + final _i2.MultipartFile backup; + + factory _$GRestoreBackupVars( + [void Function(GRestoreBackupVarsBuilder)? updates]) => + (new GRestoreBackupVarsBuilder()..update(updates))._build(); + + _$GRestoreBackupVars._({required this.backup}) : super._() { + BuiltValueNullFieldError.checkNotNull( + backup, r'GRestoreBackupVars', 'backup'); + } + + @override + GRestoreBackupVars rebuild( + void Function(GRestoreBackupVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GRestoreBackupVarsBuilder toBuilder() => + new GRestoreBackupVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GRestoreBackupVars && backup == other.backup; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, backup.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GRestoreBackupVars') + ..add('backup', backup)) + .toString(); + } +} + +class GRestoreBackupVarsBuilder + implements Builder { + _$GRestoreBackupVars? _$v; + + _i2.MultipartFile? _backup; + _i2.MultipartFile? get backup => _$this._backup; + set backup(_i2.MultipartFile? backup) => _$this._backup = backup; + + GRestoreBackupVarsBuilder(); + + GRestoreBackupVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _backup = $v.backup; + _$v = null; + } + return this; + } + + @override + void replace(GRestoreBackupVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GRestoreBackupVars; + } + + @override + void update(void Function(GRestoreBackupVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GRestoreBackupVars build() => _build(); + + _$GRestoreBackupVars _build() { + final _$result = _$v ?? + new _$GRestoreBackupVars._( + backup: BuiltValueNullFieldError.checkNotNull( + backup, r'GRestoreBackupVars', 'backup')); + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupPathVars extends GUpdateBackupPathVars { + @override + final String? backupPath; + + factory _$GUpdateBackupPathVars( + [void Function(GUpdateBackupPathVarsBuilder)? updates]) => + (new GUpdateBackupPathVarsBuilder()..update(updates))._build(); + + _$GUpdateBackupPathVars._({this.backupPath}) : super._(); + + @override + GUpdateBackupPathVars rebuild( + void Function(GUpdateBackupPathVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupPathVarsBuilder toBuilder() => + new GUpdateBackupPathVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupPathVars && backupPath == other.backupPath; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupPathVars') + ..add('backupPath', backupPath)) + .toString(); + } +} + +class GUpdateBackupPathVarsBuilder + implements Builder { + _$GUpdateBackupPathVars? _$v; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + GUpdateBackupPathVarsBuilder(); + + GUpdateBackupPathVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _backupPath = $v.backupPath; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupPathVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupPathVars; + } + + @override + void update(void Function(GUpdateBackupPathVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupPathVars build() => _build(); + + _$GUpdateBackupPathVars _build() { + final _$result = + _$v ?? new _$GUpdateBackupPathVars._(backupPath: backupPath); + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupTimeVars extends GUpdateBackupTimeVars { + @override + final String? backupTime; + + factory _$GUpdateBackupTimeVars( + [void Function(GUpdateBackupTimeVarsBuilder)? updates]) => + (new GUpdateBackupTimeVarsBuilder()..update(updates))._build(); + + _$GUpdateBackupTimeVars._({this.backupTime}) : super._(); + + @override + GUpdateBackupTimeVars rebuild( + void Function(GUpdateBackupTimeVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupTimeVarsBuilder toBuilder() => + new GUpdateBackupTimeVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupTimeVars && backupTime == other.backupTime; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupTimeVars') + ..add('backupTime', backupTime)) + .toString(); + } +} + +class GUpdateBackupTimeVarsBuilder + implements Builder { + _$GUpdateBackupTimeVars? _$v; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + GUpdateBackupTimeVarsBuilder(); + + GUpdateBackupTimeVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _backupTime = $v.backupTime; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupTimeVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupTimeVars; + } + + @override + void update(void Function(GUpdateBackupTimeVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupTimeVars build() => _build(); + + _$GUpdateBackupTimeVars _build() { + final _$result = + _$v ?? new _$GUpdateBackupTimeVars._(backupTime: backupTime); + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupIntervalVars extends GUpdateBackupIntervalVars { + @override + final int? backupInterval; + + factory _$GUpdateBackupIntervalVars( + [void Function(GUpdateBackupIntervalVarsBuilder)? updates]) => + (new GUpdateBackupIntervalVarsBuilder()..update(updates))._build(); + + _$GUpdateBackupIntervalVars._({this.backupInterval}) : super._(); + + @override + GUpdateBackupIntervalVars rebuild( + void Function(GUpdateBackupIntervalVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupIntervalVarsBuilder toBuilder() => + new GUpdateBackupIntervalVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupIntervalVars && + backupInterval == other.backupInterval; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupIntervalVars') + ..add('backupInterval', backupInterval)) + .toString(); + } +} + +class GUpdateBackupIntervalVarsBuilder + implements + Builder { + _$GUpdateBackupIntervalVars? _$v; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + GUpdateBackupIntervalVarsBuilder(); + + GUpdateBackupIntervalVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _backupInterval = $v.backupInterval; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupIntervalVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupIntervalVars; + } + + @override + void update(void Function(GUpdateBackupIntervalVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupIntervalVars build() => _build(); + + _$GUpdateBackupIntervalVars _build() { + final _$result = _$v ?? + new _$GUpdateBackupIntervalVars._(backupInterval: backupInterval); + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupTTLVars extends GUpdateBackupTTLVars { + @override + final int? backupTTL; + + factory _$GUpdateBackupTTLVars( + [void Function(GUpdateBackupTTLVarsBuilder)? updates]) => + (new GUpdateBackupTTLVarsBuilder()..update(updates))._build(); + + _$GUpdateBackupTTLVars._({this.backupTTL}) : super._(); + + @override + GUpdateBackupTTLVars rebuild( + void Function(GUpdateBackupTTLVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupTTLVarsBuilder toBuilder() => + new GUpdateBackupTTLVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupTTLVars && backupTTL == other.backupTTL; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupTTLVars') + ..add('backupTTL', backupTTL)) + .toString(); + } +} + +class GUpdateBackupTTLVarsBuilder + implements Builder { + _$GUpdateBackupTTLVars? _$v; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + GUpdateBackupTTLVarsBuilder(); + + GUpdateBackupTTLVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _backupTTL = $v.backupTTL; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupTTLVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupTTLVars; + } + + @override + void update(void Function(GUpdateBackupTTLVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupTTLVars build() => _build(); + + _$GUpdateBackupTTLVars _build() { + final _$result = _$v ?? new _$GUpdateBackupTTLVars._(backupTTL: backupTTL); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/backup/data/graphql/backup_settings_query.dart b/lib/src/features/settings/presentation/backup/data/graphql/backup_settings_query.dart new file mode 100644 index 00000000..28ba08e3 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/backup_settings_query.dart @@ -0,0 +1,52 @@ +import 'package:ferry/ferry.dart'; +import 'package:flutter/material.dart'; +import 'package:http/http.dart'; + +import '../../../../../../utils/extensions/custom_extensions.dart'; +import '__generated__/backup_settings_query.req.gql.dart'; + +abstract class BackupSettingsQuery { + static GRestoreBackupReq restoreBackup(MultipartFile? file) => + GRestoreBackupReq( + (req) => req + ..vars.backup = file + ..fetchPolicy = FetchPolicy.NoCache, + ); + + static GValidateBackupReq validateBackup(MultipartFile? file) => + GValidateBackupReq( + (req) => req + ..vars.backup = file + ..fetchPolicy = FetchPolicy.NoCache, + ); + + static GRestoreStatusReq restoreStatus(String restoreId) => GRestoreStatusReq( + (req) => req + ..vars.restoreId = restoreId + ..fetchPolicy = FetchPolicy.NoCache, + ); + + static GCreateBackupReq createBackup( + bool includeCategories, bool includeChapters) => + GCreateBackupReq( + (req) => req + ..vars.includeCategories = includeCategories + ..vars.includeChapters = includeChapters + ..fetchPolicy = FetchPolicy.NoCache, + ); + + static GUpdateBackupPathReq updateBackupPath(String? backupPath) => + GUpdateBackupPathReq((req) => req..vars.backupPath = backupPath.ifNull()); + + static GUpdateBackupTimeReq updateBackupTime(TimeOfDay timeOfDay) { + final time = "${timeOfDay.hour.padLeft()}:${timeOfDay.minute.padLeft()}"; + return GUpdateBackupTimeReq((req) => req..vars.backupTime = time); + } + + static GUpdateBackupIntervalReq updateBackupInterval(int backupInterval) => + GUpdateBackupIntervalReq( + (req) => req..vars.backupInterval = backupInterval.ifNull(1)); + + static GUpdateBackupTTLReq updateBackupTTL(int backupTTL) => + GUpdateBackupTTLReq((req) => req..vars.backupTTL = backupTTL.ifNull(14)); +} diff --git a/lib/src/features/settings/presentation/backup/data/graphql/backup_settings_query.graphql b/lib/src/features/settings/presentation/backup/data/graphql/backup_settings_query.graphql new file mode 100644 index 00000000..0c13ba1f --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/backup_settings_query.graphql @@ -0,0 +1,68 @@ +# import '/src/features/settings/domain/restore_status/graphql/fragment.graphql' +# import '/src/features/settings/domain/automatic_backup_settings/graphql/fragment.graphql' +# import '/src/features/settings/data/graphql/settings_query.graphql' + +query RestoreStatus($restoreId: String!) { + restoreStatus(id: $restoreId) { + ...RestoreStatusFragment + } +} + +query ValidateBackup($backup: Upload!) { + validateBackup(input: { backup: $backup }) { + missingSources { + name + } + } +} + +mutation CreateBackup($includeCategories: Boolean = true, $includeChapters: Boolean = true) { + createBackup( + input: {includeCategories: $includeCategories, includeChapters: $includeChapters} + ) { + clientMutationId + url + } +} + +mutation RestoreBackup($backup: Upload!) { + restoreBackup(input: { backup: $backup }) { + clientMutationId + id + status { + ...RestoreStatusFragment + } + } +} + +mutation UpdateBackupPath($backupPath: String = "") { + setSettings(input: {settings: {backupPath: $backupPath}}) { + settings { + ...SettingsFragment + } + } +} + +mutation UpdateBackupTime($backupTime: String = "12:00") { + setSettings(input: {settings: {backupTime: $backupTime}}) { + settings { + ...SettingsFragment + } + } +} + +mutation UpdateBackupInterval($backupInterval: Int = 1) { + setSettings(input: {settings: {backupInterval: $backupInterval}}) { + settings { + ...SettingsFragment + } + } +} + +mutation UpdateBackupTTL($backupTTL: Int = 14) { + setSettings(input: {settings: {backupTTL: $backupTTL}}) { + settings { + ...SettingsFragment + } + } +} diff --git a/lib/src/features/settings/presentation/backup/widgets/automatic_backup/automatic_backup_section.dart b/lib/src/features/settings/presentation/backup/widgets/automatic_backup/automatic_backup_section.dart new file mode 100644 index 00000000..1db0b1e3 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/widgets/automatic_backup/automatic_backup_section.dart @@ -0,0 +1,129 @@ +import 'package:flutter/material.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; + +import '../../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../../utils/misc/app_utils.dart'; +import '../../../../../../utils/misc/toast/toast.dart'; +import '../../../../../../widgets/emoticons.dart'; +import '../../../../../../widgets/input_popup/domain/input_popup_type.dart'; +import '../../../../../../widgets/input_popup/input_popup.dart'; +import '../../../../../../widgets/section_title.dart'; +import '../../../../controller/server_controller.dart'; +import '../../../../domain/automatic_backup_settings/automatic_backup_settings_dto.dart'; +import '../../data/backup_settings_repository.dart'; + +class AutomaticBackupSection extends ConsumerWidget { + const AutomaticBackupSection({super.key}); + + @override + Widget build(context, ref) { + final AsyncValue automaticBackupSettings = + ref.watch(settingsProvider); + final repository = ref.watch(backupSettingsRepositoryProvider); + + return automaticBackupSettings.showUiWhenData( + context, + (data) { + if (data == null) { + return Emoticons(title: context.l10n.errorSomethingWentWrong); + } + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + SectionTitle(title: context.l10n.automaticBackup), + InputPopup( + title: context.l10n.socksHost, + leading: const Icon(Icons.folder_rounded), + type: InputPopupType.textField( + hintText: context.l10n.enterProp(context.l10n.backupLocation), + ), + subtitle: (data.backupPath).isNotBlank + ? data.backupPath + : context.l10n.backupLocationDescription, + value: data.backupPath, + onChange: (newValue) async { + final result = await AppUtils.guard( + () => repository.updateBackupLocation(newValue), + ref.read(toastProvider)); + if (result != null) { + ref.watch(settingsProvider.notifier).updateState(result); + } + }, + ), + ListTile( + leading: const Icon(Icons.access_alarm_rounded), + title: Text(context.l10n.backupTime), + subtitle: data.backupTime.toTimeOfDay != null + ? Text(data.backupTime.toTimeOfDay!.format(context)) + : null, + onTap: () async { + final backupTime = await showTimePicker( + initialTime: data.backupTime.toTimeOfDay ?? + const TimeOfDay(hour: 0, minute: 0), + context: context, + ); + if (backupTime != null) { + final result = await AppUtils.guard( + () => repository.updateBackupTime(backupTime), + ref.read(toastProvider)); + if (result != null) { + ref.watch(settingsProvider.notifier).updateState(result); + } + } else { + if (context.mounted) { + ref.read(toastProvider)?.showError( + context.l10n.invalidProp(context.l10n.backupTime)); + } + } + }, + ), + InputPopup( + leading: const Icon(Icons.folder_rounded), + title: context.l10n.backupInterval, + value: data.backupInterval.toString(), + subtitle: context.l10n + .nDays(data.backupInterval.ifNullOrZero(1).compact()!), + onChange: (value) async { + final newValue = int.tryParse(value); + if (newValue != null) { + final result = await AppUtils.guard( + () => repository.updateBackupInterval(newValue), + ref.read(toastProvider)); + if (result != null) { + ref.watch(settingsProvider.notifier).updateState(result); + } + } else { + ref.read(toastProvider)?.showError( + context.l10n.invalidProp(context.l10n.backupInterval)); + } + }, + type: const InputPopupType.numberSlider(min: 1, max: 31), + ), + InputPopup( + leading: const Icon(Icons.cleaning_services_rounded), + title: context.l10n.backupCleanup, + value: data.backupTTL.toString(), + subtitle: context.l10n.backupCleanupDescription( + data.backupTTL.ifNull(14).compact()!), + onChange: (value) async { + final newValue = int.tryParse(value); + if (newValue != null) { + final result = await AppUtils.guard( + () => repository.updateBackupTTL(newValue), + ref.read(toastProvider)); + if (result != null) { + ref.watch(settingsProvider.notifier).updateState(result); + } + } else { + ref.read(toastProvider)?.showError( + context.l10n.invalidProp(context.l10n.backupCleanup)); + } + }, + type: const InputPopupType.numberSlider(min: 0, max: 1000), + ), + ], + ); + }, + ); + } +} diff --git a/lib/src/features/settings/presentation/backup/backup_and_restore/backup_and_restore_section.dart b/lib/src/features/settings/presentation/backup/widgets/backup_and_restore/backup_and_restore_section.dart similarity index 78% rename from lib/src/features/settings/presentation/backup/backup_and_restore/backup_and_restore_section.dart rename to lib/src/features/settings/presentation/backup/widgets/backup_and_restore/backup_and_restore_section.dart index 2c1ce32c..853222fe 100644 --- a/lib/src/features/settings/presentation/backup/backup_and_restore/backup_and_restore_section.dart +++ b/lib/src/features/settings/presentation/backup/widgets/backup_and_restore/backup_and_restore_section.dart @@ -4,12 +4,12 @@ import 'package:flutter_hooks/flutter_hooks.dart'; import 'package:gap/gap.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; -import '../../../../../utils/extensions/custom_extensions.dart'; -import '../../../../../utils/misc/file_picker_utils.dart'; -import '../../../../../utils/misc/toast/toast.dart'; -import '../../../../../widgets/section_title.dart'; -import '../../../data/settings_repository.dart'; -import '../../../enums/restore_state.dart'; +import '../../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../../utils/misc/file_picker_utils.dart'; +import '../../../../../../utils/misc/toast/toast.dart'; +import '../../../../../../widgets/section_title.dart'; +import '../../../../domain/restore_status/restore_status.dart'; +import '../../data/backup_settings_repository.dart'; import 'widgets/backup_missing_dialog.dart'; import 'widgets/create_backup_dialog.dart'; import 'widgets/restore_status_progress.dart'; @@ -17,7 +17,8 @@ import 'widgets/restore_status_progress.dart'; class BackupAndRestoreSection extends HookConsumerWidget { const BackupAndRestoreSection({super.key}); - Future getBackupFile(BuildContext context, Toast toast) async { + Future getBackupFile( + BuildContext context, Toast? toast) async { final asyncPickedFile = await AsyncValue.guard(() => FilePickerUtils.pickFile( context: context, @@ -27,7 +28,7 @@ class BackupAndRestoreSection extends HookConsumerWidget { return null; } if (asyncPickedFile.hasError || asyncPickedFile.value == null) { - toast.showError( + toast?.showError( asyncPickedFile.error?.toString() ?? context.l10n.errorFilePick, ); return null; @@ -36,7 +37,7 @@ class BackupAndRestoreSection extends HookConsumerWidget { } Future backupFilePicker(WidgetRef ref, BuildContext context) async { - Toast toast = ref.read(toastProvider(context)); + Toast? toast = ref.read(toastProvider); final pickedFile = await getBackupFile(context, toast); if (pickedFile == null) return null; @@ -50,10 +51,12 @@ class BackupAndRestoreSection extends HookConsumerWidget { } final backupFile = asyncBackupFile.value; - if (context.mounted) toast.show(context.l10n.validating); + if (context.mounted) toast?.show(context.l10n.validating); - final validateResult = await AsyncValue.guard(() => - ref.read(settingsRepositoryProvider).validateBackup(backupFile).first); + final validateResult = await AsyncValue.guard(() => ref + .read(backupSettingsRepositoryProvider) + .validateBackup(backupFile) + .first); if (context.mounted && validateResult.hasError) { validateResult.showToastOnError(toast); @@ -80,18 +83,18 @@ class BackupAndRestoreSection extends HookConsumerWidget { return null; } final backupResponse = (await AsyncValue.guard(() => ref - .read(settingsRepositoryProvider) + .read(backupSettingsRepositoryProvider) .restoreBackup(asyncBackupFile.value) .first)); if (backupResponse.hasError) { - toast.showError(backupResponse.error.toString()); + toast?.showError(backupResponse.error.toString()); } else { if (backupResponse.hasValue) { backupId = backupResponse.value; } if (context.mounted) { - toast.show(context.l10n.restoring, instantShow: true); + toast?.show(context.l10n.restoring, instantShow: true); } } } @@ -101,7 +104,7 @@ class BackupAndRestoreSection extends HookConsumerWidget { @override Widget build(context, ref) { final restoreId = useState(null); - final toast = ref.watch(toastProvider(context)); + final toast = ref.watch(toastProvider); return Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ @@ -125,11 +128,11 @@ class BackupAndRestoreSection extends HookConsumerWidget { ? RestoreStatusProgress( restoreRequestId: restoreId.value!, onCompleted: (state) { - if (state == RestoreState.failure) { - toast.showError(context.l10n.errorBackupRestore, + if (state == RestoreState.FAILURE) { + toast?.showError(context.l10n.errorBackupRestore, withMicrotask: true); } else { - toast.show( + toast?.show( context.l10n.restored, withMicrotask: true, instantShow: true, diff --git a/lib/src/features/settings/presentation/backup/backup_and_restore/widgets/backup_missing_dialog.dart b/lib/src/features/settings/presentation/backup/widgets/backup_and_restore/widgets/backup_missing_dialog.dart similarity index 90% rename from lib/src/features/settings/presentation/backup/backup_and_restore/widgets/backup_missing_dialog.dart rename to lib/src/features/settings/presentation/backup/widgets/backup_and_restore/widgets/backup_missing_dialog.dart index adcf54cf..e08c339f 100644 --- a/lib/src/features/settings/presentation/backup/backup_and_restore/widgets/backup_missing_dialog.dart +++ b/lib/src/features/settings/presentation/backup/widgets/backup_and_restore/widgets/backup_missing_dialog.dart @@ -6,8 +6,8 @@ import 'package:flutter/material.dart'; -import '../../../../../../utils/extensions/custom_extensions.dart'; -import '../../../../../../widgets/popup_widgets/pop_button.dart'; +import '../../../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../../../widgets/popup_widgets/pop_button.dart'; class BackupMissingDialog extends StatelessWidget { const BackupMissingDialog({ diff --git a/lib/src/features/settings/presentation/backup/backup_and_restore/widgets/create_backup_dialog.dart b/lib/src/features/settings/presentation/backup/widgets/backup_and_restore/widgets/create_backup_dialog.dart similarity index 74% rename from lib/src/features/settings/presentation/backup/backup_and_restore/widgets/create_backup_dialog.dart rename to lib/src/features/settings/presentation/backup/widgets/backup_and_restore/widgets/create_backup_dialog.dart index 217ae422..ed215ee5 100644 --- a/lib/src/features/settings/presentation/backup/backup_and_restore/widgets/create_backup_dialog.dart +++ b/lib/src/features/settings/presentation/backup/widgets/backup_and_restore/widgets/create_backup_dialog.dart @@ -2,15 +2,15 @@ import 'package:flutter/material.dart'; import 'package:flutter_hooks/flutter_hooks.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; -import '../../../../../../constants/endpoints.dart'; -import '../../../../../../utils/extensions/custom_extensions.dart'; -import '../../../../../../utils/launch_url_in_web.dart'; -import '../../../../../../utils/misc/toast/toast.dart'; -import '../../../../../../widgets/async_buttons/async_elevated_button.dart'; -import '../../../../../../widgets/popup_widgets/pop_button.dart'; -import '../../../../data/settings_repository.dart'; -import '../../../../widgets/server_port_tile/server_port_tile.dart'; -import '../../../../widgets/server_url_tile/server_url_tile.dart'; +import '../../../../../../../constants/endpoints.dart'; +import '../../../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../../../utils/launch_url_in_web.dart'; +import '../../../../../../../utils/misc/toast/toast.dart'; +import '../../../../../../../widgets/async_buttons/async_elevated_button.dart'; +import '../../../../../../../widgets/popup_widgets/pop_button.dart'; +import '../../../../server/widget/client/server_port_tile/server_port_tile.dart'; +import '../../../../server/widget/client/server_url_tile/server_url_tile.dart'; +import '../../../data/backup_settings_repository.dart'; class CreateBackupDialog extends HookConsumerWidget { const CreateBackupDialog({super.key}); @@ -43,15 +43,15 @@ class CreateBackupDialog extends HookConsumerWidget { PopButton(popText: context.l10n.cancel), AsyncElevatedButton( onPressed: () async { - final toast = ref.read(toastProvider(context)); + final toast = ref.read(toastProvider); final backupUrl = await AsyncValue.guard(() => ref - .read(settingsRepositoryProvider) + .read(backupSettingsRepositoryProvider) .createBackup(includeCategory.value, includeChapters.value) .first); if (!context.mounted) return; if (backupUrl.hasError || backupUrl.valueOrNull.isBlank) { { - toast.showError( + toast?.showError( backupUrl.error?.toString() ?? context.l10n.errorBackupCreate, ); } diff --git a/lib/src/features/settings/presentation/backup/backup_and_restore/widgets/restore_status_progress.dart b/lib/src/features/settings/presentation/backup/widgets/backup_and_restore/widgets/restore_status_progress.dart similarity index 82% rename from lib/src/features/settings/presentation/backup/backup_and_restore/widgets/restore_status_progress.dart rename to lib/src/features/settings/presentation/backup/widgets/backup_and_restore/widgets/restore_status_progress.dart index 26f41201..8b88c282 100644 --- a/lib/src/features/settings/presentation/backup/backup_and_restore/widgets/restore_status_progress.dart +++ b/lib/src/features/settings/presentation/backup/widgets/backup_and_restore/widgets/restore_status_progress.dart @@ -2,10 +2,10 @@ import 'package:flutter/material.dart'; import 'package:flutter_hooks/flutter_hooks.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; -import '../../../../../../utils/extensions/custom_extensions.dart'; -import '../../../../../../utils/hooks/polling_hook.dart'; -import '../../../../controller/settings_controller.dart'; -import '../../../../enums/restore_state.dart'; +import '../../../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../../../utils/hooks/polling_hook.dart'; +import '../../../../../domain/restore_status/restore_status.dart'; +import '../../../controllers/backup_controller.dart'; class RestoreStatusProgress extends HookConsumerWidget { const RestoreStatusProgress({ @@ -33,8 +33,8 @@ class RestoreStatusProgress extends HookConsumerWidget { useEffect(() { if (restoreStatus != null) { - if ((restoreStatus.state?.isFinalState).ifNull()) { - Future.microtask(() => onCompleted(restoreStatus.state!)); + if ((restoreStatus.state.isFinalState).ifNull()) { + Future.microtask(() => onCompleted(restoreStatus.state)); } } return null; diff --git a/lib/src/features/settings/presentation/browse/browse_settings_screen.dart b/lib/src/features/settings/presentation/browse/browse_settings_screen.dart index c18335bb..4de42e02 100644 --- a/lib/src/features/settings/presentation/browse/browse_settings_screen.dart +++ b/lib/src/features/settings/presentation/browse/browse_settings_screen.dart @@ -5,27 +5,116 @@ // file, You can obtain one at http://mozilla.org/MPL/2.0/. import 'package:flutter/material.dart'; +import 'package:gap/gap.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; +import '../../../../routes/router_config.dart'; import '../../../../utils/extensions/custom_extensions.dart'; +import '../../../../utils/misc/app_utils.dart'; +import '../../../../utils/misc/toast/toast.dart'; +import '../../../../widgets/input_popup/domain/input_popup_type.dart'; +import '../../../../widgets/input_popup/input_popup.dart'; +import '../../controller/server_controller.dart'; +import '../../domain/browse/browse_settings.dart'; +import 'data/browse_settings_repository.dart'; import 'widgets/show_nsfw_switch/show_nsfw_switch.dart'; -class BrowseSettingsScreen extends StatelessWidget { +class BrowseSettingsScreen extends ConsumerWidget { const BrowseSettingsScreen({super.key}); @override - Widget build(BuildContext context) { + Widget build(context, ref) { + final repository = ref.watch(browseSettingsRepositoryProvider); + final serverSettings = ref.watch(settingsProvider); + final BrowseSettingsDto? browseSettings = serverSettings.valueOrNull; + onRefresh() => ref.refresh(settingsProvider.future); return Scaffold( appBar: AppBar(title: Text(context.l10n.browse)), - body: ListView( - children: [ - const ShowNSFWTile(), - ListTile( - subtitle: Text(context.l10n.nsfwInfo), - leading: const Icon(Icons.info_rounded), - dense: true, + body: RefreshIndicator( + onRefresh: onRefresh, + child: ListTileTheme( + data: const ListTileThemeData( + subtitleTextStyle: TextStyle(color: Colors.grey), ), - const Divider(), - ], + child: ListView( + children: [ + const ShowNSFWTile(), + Row( + children: [ + const Gap(16), + const Icon(Icons.info_outline_rounded, + color: Colors.grey, size: 18), + const Gap(10), + Expanded( + child: Text( + context.l10n.nsfwInfo, + style: context.textTheme.bodySmall + ?.copyWith(color: Colors.grey), + ), + ), + const Gap(10), + ], + ), + const Divider(), + if (serverSettings.valueOrNull != null) ...[ + InputPopup( + leading: const Icon(Icons.swap_vert_rounded), + title: context.l10n.parallelSourceRequest, + value: browseSettings?.maxSourcesInParallel.toString(), + subtitle: context.l10n.nSources( + (browseSettings?.maxSourcesInParallel).ifNull()), + onChange: (value) async { + final newValue = int.tryParse(value); + if (newValue != null) { + final result = await AppUtils.guard( + () => repository.updateSourceInParallel(newValue), + ref.read(toastProvider)); + if (result != null) { + ref + .watch(settingsProvider.notifier) + .updateState(result); + } + } else { + ref.read(toastProvider)?.show(context.l10n + .invalidProp(context.l10n.parallelSourceRequest)); + } + }, + type: const InputPopupType.numberSlider(min: 1, max: 20), + ), + InputPopup( + leading: const Icon(Icons.folder_rounded), + title: context.l10n.localSourceLocation, + type: InputPopupType.textField( + hintText: context.l10n + .enterProp(context.l10n.localSourceLocation)), + subtitle: (browseSettings?.localSourcePath).isBlank + ? context.l10n.localSourceLocationDescription + : browseSettings!.localSourcePath, + value: browseSettings?.localSourcePath, + onChange: (newValue) async { + final result = await AppUtils.guard( + () => repository.updateLocalSourcePath(newValue), + ref.read(toastProvider)); + if (result != null) { + ref.watch(settingsProvider.notifier).updateState(result); + } + }, + ), + ListTile( + leading: const Icon(Icons.extension_rounded), + title: Text(context.l10n.extensionRepository), + subtitle: Text( + (browseSettings?.extensionRepos).isBlank + ? context.l10n.extensionRepositoryDescription + : context.l10n.nRepo( + (browseSettings?.extensionRepos.length).ifNull(0)), + ), + onTap: () => const ExtensionRepositoryRoute().go(context), + ), + ], + ], + ), + ), ), ); } diff --git a/lib/src/features/settings/presentation/browse/data/browse_settings_repository.dart b/lib/src/features/settings/presentation/browse/data/browse_settings_repository.dart new file mode 100644 index 00000000..9e73eed0 --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/browse_settings_repository.dart @@ -0,0 +1,41 @@ +import 'package:ferry/ferry.dart'; +import 'package:riverpod_annotation/riverpod_annotation.dart'; + +import '../../../../../global_providers/global_providers.dart'; +import '../../../../../utils/extensions/custom_extensions.dart'; +import '../../../data/settings_repository.dart'; +import 'graphql/browse_settings_query.dart'; + +part 'browse_settings_repository.g.dart'; + +class BrowseSettingsRepository { + const BrowseSettingsRepository(this.ferryClient); + + final Client ferryClient; + + Future updateSourceInParallel(int value) => ferryClient + .fetch( + BrowseSettingsQuery.updateSourceInParallel(value), + (data) => data.setSettings.settings, + ) + .first; + + Future updateExtensionRepos(Set value) => ferryClient + .fetch( + BrowseSettingsQuery.updateExtensionRepos(value), + (data) => data.setSettings.settings, + ) + .first; + + Future updateLocalSourcePath(String value) => ferryClient + .fetch( + BrowseSettingsQuery.updateLocalSourcePath(value), + (data) => data.setSettings.settings, + ) + .first; +} + +@riverpod +BrowseSettingsRepository browseSettingsRepository( + BrowseSettingsRepositoryRef ref) => + BrowseSettingsRepository(ref.watch(ferryClientProvider)); diff --git a/lib/src/features/settings/presentation/browse/data/browse_settings_repository.g.dart b/lib/src/features/settings/presentation/browse/data/browse_settings_repository.g.dart new file mode 100644 index 00000000..ca18f3de --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/browse_settings_repository.g.dart @@ -0,0 +1,28 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'browse_settings_repository.dart'; + +// ************************************************************************** +// RiverpodGenerator +// ************************************************************************** + +String _$browseSettingsRepositoryHash() => + r'6d70cff5b4f879915d756eb63a7669660dcd012e'; + +/// See also [browseSettingsRepository]. +@ProviderFor(browseSettingsRepository) +final browseSettingsRepositoryProvider = + AutoDisposeProvider.internal( + browseSettingsRepository, + name: r'browseSettingsRepositoryProvider', + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') + ? null + : _$browseSettingsRepositoryHash, + dependencies: null, + allTransitiveDependencies: null, +); + +typedef BrowseSettingsRepositoryRef + = AutoDisposeProviderRef; +// ignore_for_file: type=lint +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member diff --git a/lib/src/features/settings/presentation/browse/data/graphql/__generated__/browse_settings_query.ast.gql.dart b/lib/src/features/settings/presentation/browse/data/graphql/__generated__/browse_settings_query.ast.gql.dart new file mode 100644 index 00000000..716e334c --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/graphql/__generated__/browse_settings_query.ast.gql.dart @@ -0,0 +1,207 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/data/graphql/__generated__/settings_query.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i5; + +const UpdateSourceInParallel = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateSourceInParallel'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: + _i1.VariableNode(name: _i1.NameNode(value: 'maxSourcesInParallel')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode(value: _i1.IntValueNode(value: '6')), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'maxSourcesInParallel'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'maxSourcesInParallel')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const UpdateExtensionRepos = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateExtensionRepos'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'extensionRepos')), + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode( + value: _i1.StringValueNode( + value: '', + isBlock: false, + )), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'extensionRepos'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'extensionRepos')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const UpdateLocalSourcePath = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateLocalSourcePath'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'localSourcePath')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode( + value: _i1.StringValueNode( + value: '', + isBlock: false, + )), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'localSourcePath'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'localSourcePath')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + UpdateSourceInParallel, + UpdateExtensionRepos, + UpdateLocalSourcePath, + _i2.ServerSettings, + _i2.SettingsFragment, + _i3.AutomaticBackupSettingsFragment, + _i4.ServerBindingFragment, + _i5.SocksProxyFragment, + _i6.CloudFlareBypassFragment, + _i7.MiscSettingsFragment, + _i8.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/presentation/browse/data/graphql/__generated__/browse_settings_query.data.gql.dart b/lib/src/features/settings/presentation/browse/data/graphql/__generated__/browse_settings_query.data.gql.dart new file mode 100644 index 00000000..8f4f97b8 --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/graphql/__generated__/browse_settings_query.data.gql.dart @@ -0,0 +1,448 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/data/graphql/__generated__/settings_query.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'browse_settings_query.data.gql.g.dart'; + +abstract class GUpdateSourceInParallelData + implements + Built { + GUpdateSourceInParallelData._(); + + factory GUpdateSourceInParallelData( + [void Function(GUpdateSourceInParallelDataBuilder b) updates]) = + _$GUpdateSourceInParallelData; + + static void _initializeBuilder(GUpdateSourceInParallelDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateSourceInParallelData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateSourceInParallelDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSourceInParallelData.serializer, + this, + ) as Map); + + static GUpdateSourceInParallelData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateSourceInParallelData.serializer, + json, + ); +} + +abstract class GUpdateSourceInParallelData_setSettings + implements + Built { + GUpdateSourceInParallelData_setSettings._(); + + factory GUpdateSourceInParallelData_setSettings( + [void Function(GUpdateSourceInParallelData_setSettingsBuilder b) + updates]) = _$GUpdateSourceInParallelData_setSettings; + + static void _initializeBuilder( + GUpdateSourceInParallelData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateSourceInParallelData_setSettings_settings get settings; + static Serializer get serializer => + _$gUpdateSourceInParallelDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSourceInParallelData_setSettings.serializer, + this, + ) as Map); + + static GUpdateSourceInParallelData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateSourceInParallelData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateSourceInParallelData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GUpdateSourceInParallelData_setSettings_settings._(); + + factory GUpdateSourceInParallelData_setSettings_settings( + [void Function(GUpdateSourceInParallelData_setSettings_settingsBuilder b) + updates]) = _$GUpdateSourceInParallelData_setSettings_settings; + + static void _initializeBuilder( + GUpdateSourceInParallelData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + static Serializer + get serializer => + _$gUpdateSourceInParallelDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSourceInParallelData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateSourceInParallelData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateSourceInParallelData_setSettings_settings.serializer, + json, + ); +} + +abstract class GUpdateExtensionReposData + implements + Built { + GUpdateExtensionReposData._(); + + factory GUpdateExtensionReposData( + [void Function(GUpdateExtensionReposDataBuilder b) updates]) = + _$GUpdateExtensionReposData; + + static void _initializeBuilder(GUpdateExtensionReposDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateExtensionReposData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateExtensionReposDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateExtensionReposData.serializer, + this, + ) as Map); + + static GUpdateExtensionReposData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateExtensionReposData.serializer, + json, + ); +} + +abstract class GUpdateExtensionReposData_setSettings + implements + Built { + GUpdateExtensionReposData_setSettings._(); + + factory GUpdateExtensionReposData_setSettings( + [void Function(GUpdateExtensionReposData_setSettingsBuilder b) + updates]) = _$GUpdateExtensionReposData_setSettings; + + static void _initializeBuilder( + GUpdateExtensionReposData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateExtensionReposData_setSettings_settings get settings; + static Serializer get serializer => + _$gUpdateExtensionReposDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateExtensionReposData_setSettings.serializer, + this, + ) as Map); + + static GUpdateExtensionReposData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateExtensionReposData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateExtensionReposData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GUpdateExtensionReposData_setSettings_settings._(); + + factory GUpdateExtensionReposData_setSettings_settings( + [void Function(GUpdateExtensionReposData_setSettings_settingsBuilder b) + updates]) = _$GUpdateExtensionReposData_setSettings_settings; + + static void _initializeBuilder( + GUpdateExtensionReposData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + static Serializer + get serializer => + _$gUpdateExtensionReposDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateExtensionReposData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateExtensionReposData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateExtensionReposData_setSettings_settings.serializer, + json, + ); +} + +abstract class GUpdateLocalSourcePathData + implements + Built { + GUpdateLocalSourcePathData._(); + + factory GUpdateLocalSourcePathData( + [void Function(GUpdateLocalSourcePathDataBuilder b) updates]) = + _$GUpdateLocalSourcePathData; + + static void _initializeBuilder(GUpdateLocalSourcePathDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateLocalSourcePathData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateLocalSourcePathDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateLocalSourcePathData.serializer, + this, + ) as Map); + + static GUpdateLocalSourcePathData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateLocalSourcePathData.serializer, + json, + ); +} + +abstract class GUpdateLocalSourcePathData_setSettings + implements + Built { + GUpdateLocalSourcePathData_setSettings._(); + + factory GUpdateLocalSourcePathData_setSettings( + [void Function(GUpdateLocalSourcePathData_setSettingsBuilder b) + updates]) = _$GUpdateLocalSourcePathData_setSettings; + + static void _initializeBuilder( + GUpdateLocalSourcePathData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateLocalSourcePathData_setSettings_settings get settings; + static Serializer get serializer => + _$gUpdateLocalSourcePathDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateLocalSourcePathData_setSettings.serializer, + this, + ) as Map); + + static GUpdateLocalSourcePathData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateLocalSourcePathData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateLocalSourcePathData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GUpdateLocalSourcePathData_setSettings_settings._(); + + factory GUpdateLocalSourcePathData_setSettings_settings( + [void Function(GUpdateLocalSourcePathData_setSettings_settingsBuilder b) + updates]) = _$GUpdateLocalSourcePathData_setSettings_settings; + + static void _initializeBuilder( + GUpdateLocalSourcePathData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + static Serializer + get serializer => + _$gUpdateLocalSourcePathDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateLocalSourcePathData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateLocalSourcePathData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateLocalSourcePathData_setSettings_settings.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/browse/data/graphql/__generated__/browse_settings_query.data.gql.g.dart b/lib/src/features/settings/presentation/browse/data/graphql/__generated__/browse_settings_query.data.gql.g.dart new file mode 100644 index 00000000..c450803b --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/graphql/__generated__/browse_settings_query.data.gql.g.dart @@ -0,0 +1,3224 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'browse_settings_query.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gUpdateSourceInParallelDataSerializer = + new _$GUpdateSourceInParallelDataSerializer(); +Serializer + _$gUpdateSourceInParallelDataSetSettingsSerializer = + new _$GUpdateSourceInParallelData_setSettingsSerializer(); +Serializer + _$gUpdateSourceInParallelDataSetSettingsSettingsSerializer = + new _$GUpdateSourceInParallelData_setSettings_settingsSerializer(); +Serializer _$gUpdateExtensionReposDataSerializer = + new _$GUpdateExtensionReposDataSerializer(); +Serializer + _$gUpdateExtensionReposDataSetSettingsSerializer = + new _$GUpdateExtensionReposData_setSettingsSerializer(); +Serializer + _$gUpdateExtensionReposDataSetSettingsSettingsSerializer = + new _$GUpdateExtensionReposData_setSettings_settingsSerializer(); +Serializer _$gUpdateLocalSourcePathDataSerializer = + new _$GUpdateLocalSourcePathDataSerializer(); +Serializer + _$gUpdateLocalSourcePathDataSetSettingsSerializer = + new _$GUpdateLocalSourcePathData_setSettingsSerializer(); +Serializer + _$gUpdateLocalSourcePathDataSetSettingsSettingsSerializer = + new _$GUpdateLocalSourcePathData_setSettings_settingsSerializer(); + +class _$GUpdateSourceInParallelDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSourceInParallelData, + _$GUpdateSourceInParallelData + ]; + @override + final String wireName = 'GUpdateSourceInParallelData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSourceInParallelData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: + const FullType(GUpdateSourceInParallelData_setSettings)), + ]; + + return result; + } + + @override + GUpdateSourceInParallelData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSourceInParallelDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateSourceInParallelData_setSettings))! + as GUpdateSourceInParallelData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSourceInParallelData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSourceInParallelData_setSettings, + _$GUpdateSourceInParallelData_setSettings + ]; + @override + final String wireName = 'GUpdateSourceInParallelData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSourceInParallelData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GUpdateSourceInParallelData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateSourceInParallelData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSourceInParallelData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateSourceInParallelData_setSettings_settings))! + as GUpdateSourceInParallelData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSourceInParallelData_setSettings_settingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSourceInParallelData_setSettings_settings, + _$GUpdateSourceInParallelData_setSettings_settings + ]; + @override + final String wireName = 'GUpdateSourceInParallelData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateSourceInParallelData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GUpdateSourceInParallelData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GUpdateSourceInParallelData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateExtensionReposDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateExtensionReposData, + _$GUpdateExtensionReposData + ]; + @override + final String wireName = 'GUpdateExtensionReposData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateExtensionReposData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GUpdateExtensionReposData_setSettings)), + ]; + + return result; + } + + @override + GUpdateExtensionReposData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateExtensionReposDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateExtensionReposData_setSettings))! + as GUpdateExtensionReposData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateExtensionReposData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateExtensionReposData_setSettings, + _$GUpdateExtensionReposData_setSettings + ]; + @override + final String wireName = 'GUpdateExtensionReposData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateExtensionReposData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GUpdateExtensionReposData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateExtensionReposData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateExtensionReposData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateExtensionReposData_setSettings_settings))! + as GUpdateExtensionReposData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateExtensionReposData_setSettings_settingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GUpdateExtensionReposData_setSettings_settings, + _$GUpdateExtensionReposData_setSettings_settings + ]; + @override + final String wireName = 'GUpdateExtensionReposData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateExtensionReposData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GUpdateExtensionReposData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateExtensionReposData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateLocalSourcePathDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateLocalSourcePathData, + _$GUpdateLocalSourcePathData + ]; + @override + final String wireName = 'GUpdateLocalSourcePathData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateLocalSourcePathData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: + const FullType(GUpdateLocalSourcePathData_setSettings)), + ]; + + return result; + } + + @override + GUpdateLocalSourcePathData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateLocalSourcePathDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateLocalSourcePathData_setSettings))! + as GUpdateLocalSourcePathData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateLocalSourcePathData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateLocalSourcePathData_setSettings, + _$GUpdateLocalSourcePathData_setSettings + ]; + @override + final String wireName = 'GUpdateLocalSourcePathData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateLocalSourcePathData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GUpdateLocalSourcePathData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateLocalSourcePathData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateLocalSourcePathData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateLocalSourcePathData_setSettings_settings))! + as GUpdateLocalSourcePathData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateLocalSourcePathData_setSettings_settingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GUpdateLocalSourcePathData_setSettings_settings, + _$GUpdateLocalSourcePathData_setSettings_settings + ]; + @override + final String wireName = 'GUpdateLocalSourcePathData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateLocalSourcePathData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GUpdateLocalSourcePathData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateLocalSourcePathData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSourceInParallelData extends GUpdateSourceInParallelData { + @override + final String G__typename; + @override + final GUpdateSourceInParallelData_setSettings setSettings; + + factory _$GUpdateSourceInParallelData( + [void Function(GUpdateSourceInParallelDataBuilder)? updates]) => + (new GUpdateSourceInParallelDataBuilder()..update(updates))._build(); + + _$GUpdateSourceInParallelData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSourceInParallelData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateSourceInParallelData', 'setSettings'); + } + + @override + GUpdateSourceInParallelData rebuild( + void Function(GUpdateSourceInParallelDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSourceInParallelDataBuilder toBuilder() => + new GUpdateSourceInParallelDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSourceInParallelData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSourceInParallelData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateSourceInParallelDataBuilder + implements + Builder { + _$GUpdateSourceInParallelData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateSourceInParallelData_setSettingsBuilder? _setSettings; + GUpdateSourceInParallelData_setSettingsBuilder get setSettings => + _$this._setSettings ??= + new GUpdateSourceInParallelData_setSettingsBuilder(); + set setSettings( + GUpdateSourceInParallelData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateSourceInParallelDataBuilder() { + GUpdateSourceInParallelData._initializeBuilder(this); + } + + GUpdateSourceInParallelDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSourceInParallelData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSourceInParallelData; + } + + @override + void update(void Function(GUpdateSourceInParallelDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSourceInParallelData build() => _build(); + + _$GUpdateSourceInParallelData _build() { + _$GUpdateSourceInParallelData _$result; + try { + _$result = _$v ?? + new _$GUpdateSourceInParallelData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSourceInParallelData', 'G__typename'), + setSettings: setSettings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSourceInParallelData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSourceInParallelData_setSettings + extends GUpdateSourceInParallelData_setSettings { + @override + final String G__typename; + @override + final GUpdateSourceInParallelData_setSettings_settings settings; + + factory _$GUpdateSourceInParallelData_setSettings( + [void Function(GUpdateSourceInParallelData_setSettingsBuilder)? + updates]) => + (new GUpdateSourceInParallelData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GUpdateSourceInParallelData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSourceInParallelData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateSourceInParallelData_setSettings', 'settings'); + } + + @override + GUpdateSourceInParallelData_setSettings rebuild( + void Function(GUpdateSourceInParallelData_setSettingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSourceInParallelData_setSettingsBuilder toBuilder() => + new GUpdateSourceInParallelData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSourceInParallelData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateSourceInParallelData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateSourceInParallelData_setSettingsBuilder + implements + Builder { + _$GUpdateSourceInParallelData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateSourceInParallelData_setSettings_settingsBuilder? _settings; + GUpdateSourceInParallelData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateSourceInParallelData_setSettings_settingsBuilder(); + set settings( + GUpdateSourceInParallelData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GUpdateSourceInParallelData_setSettingsBuilder() { + GUpdateSourceInParallelData_setSettings._initializeBuilder(this); + } + + GUpdateSourceInParallelData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSourceInParallelData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSourceInParallelData_setSettings; + } + + @override + void update( + void Function(GUpdateSourceInParallelData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSourceInParallelData_setSettings build() => _build(); + + _$GUpdateSourceInParallelData_setSettings _build() { + _$GUpdateSourceInParallelData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateSourceInParallelData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateSourceInParallelData_setSettings', 'G__typename'), + settings: settings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSourceInParallelData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSourceInParallelData_setSettings_settings + extends GUpdateSourceInParallelData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + + factory _$GUpdateSourceInParallelData_setSettings_settings( + [void Function( + GUpdateSourceInParallelData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateSourceInParallelData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GUpdateSourceInParallelData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateSourceInParallelData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GUpdateSourceInParallelData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateSourceInParallelData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateSourceInParallelData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateSourceInParallelData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateSourceInParallelData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateSourceInParallelData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdateSourceInParallelData_setSettings_settings', + 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GUpdateSourceInParallelData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateSourceInParallelData_setSettings_settings', + 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GUpdateSourceInParallelData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateSourceInParallelData_setSettings_settings', + 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdateSourceInParallelData_setSettings_settings', + 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateSourceInParallelData_setSettings_settings', + 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateSourceInParallelData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateSourceInParallelData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateSourceInParallelData_setSettings_settings', + 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GUpdateSourceInParallelData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GUpdateSourceInParallelData_setSettings_settings', + 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdateSourceInParallelData_setSettings_settings', + 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateSourceInParallelData_setSettings_settings', + 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GUpdateSourceInParallelData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateSourceInParallelData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GUpdateSourceInParallelData_setSettings_settings', 'localSourcePath'); + } + + @override + GUpdateSourceInParallelData_setSettings_settings rebuild( + void Function(GUpdateSourceInParallelData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSourceInParallelData_setSettings_settingsBuilder toBuilder() => + new GUpdateSourceInParallelData_setSettings_settingsBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSourceInParallelData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateSourceInParallelData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath)) + .toString(); + } +} + +class GUpdateSourceInParallelData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateSourceInParallelData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + GUpdateSourceInParallelData_setSettings_settingsBuilder() { + GUpdateSourceInParallelData_setSettings_settings._initializeBuilder(this); + } + + GUpdateSourceInParallelData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSourceInParallelData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSourceInParallelData_setSettings_settings; + } + + @override + void update( + void Function(GUpdateSourceInParallelData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSourceInParallelData_setSettings_settings build() => _build(); + + _$GUpdateSourceInParallelData_setSettings_settings _build() { + _$GUpdateSourceInParallelData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateSourceInParallelData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSourceInParallelData_setSettings_settings', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateSourceInParallelData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, r'GUpdateSourceInParallelData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GUpdateSourceInParallelData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, r'GUpdateSourceInParallelData_setSettings_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateSourceInParallelData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull(port, r'GUpdateSourceInParallelData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, r'GUpdateSourceInParallelData_setSettings_settings', 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull(socksProxyHost, r'GUpdateSourceInParallelData_setSettings_settings', 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull(socksProxyPassword, r'GUpdateSourceInParallelData_setSettings_settings', 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull(socksProxyPort, r'GUpdateSourceInParallelData_setSettings_settings', 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull(socksProxyUsername, r'GUpdateSourceInParallelData_setSettings_settings', 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull(socksProxyVersion, r'GUpdateSourceInParallelData_setSettings_settings', 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, r'GUpdateSourceInParallelData_setSettings_settings', 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionName, r'GUpdateSourceInParallelData_setSettings_settings', 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, r'GUpdateSourceInParallelData_setSettings_settings', 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, r'GUpdateSourceInParallelData_setSettings_settings', 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, r'GUpdateSourceInParallelData_setSettings_settings', 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, r'GUpdateSourceInParallelData_setSettings_settings', 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, r'GUpdateSourceInParallelData_setSettings_settings', 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, r'GUpdateSourceInParallelData_setSettings_settings', 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, r'GUpdateSourceInParallelData_setSettings_settings', 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull(localSourcePath, r'GUpdateSourceInParallelData_setSettings_settings', 'localSourcePath')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSourceInParallelData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateExtensionReposData extends GUpdateExtensionReposData { + @override + final String G__typename; + @override + final GUpdateExtensionReposData_setSettings setSettings; + + factory _$GUpdateExtensionReposData( + [void Function(GUpdateExtensionReposDataBuilder)? updates]) => + (new GUpdateExtensionReposDataBuilder()..update(updates))._build(); + + _$GUpdateExtensionReposData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateExtensionReposData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateExtensionReposData', 'setSettings'); + } + + @override + GUpdateExtensionReposData rebuild( + void Function(GUpdateExtensionReposDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateExtensionReposDataBuilder toBuilder() => + new GUpdateExtensionReposDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateExtensionReposData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateExtensionReposData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateExtensionReposDataBuilder + implements + Builder { + _$GUpdateExtensionReposData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateExtensionReposData_setSettingsBuilder? _setSettings; + GUpdateExtensionReposData_setSettingsBuilder get setSettings => + _$this._setSettings ??= + new GUpdateExtensionReposData_setSettingsBuilder(); + set setSettings(GUpdateExtensionReposData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateExtensionReposDataBuilder() { + GUpdateExtensionReposData._initializeBuilder(this); + } + + GUpdateExtensionReposDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateExtensionReposData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateExtensionReposData; + } + + @override + void update(void Function(GUpdateExtensionReposDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateExtensionReposData build() => _build(); + + _$GUpdateExtensionReposData _build() { + _$GUpdateExtensionReposData _$result; + try { + _$result = _$v ?? + new _$GUpdateExtensionReposData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateExtensionReposData', 'G__typename'), + setSettings: setSettings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateExtensionReposData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateExtensionReposData_setSettings + extends GUpdateExtensionReposData_setSettings { + @override + final String G__typename; + @override + final GUpdateExtensionReposData_setSettings_settings settings; + + factory _$GUpdateExtensionReposData_setSettings( + [void Function(GUpdateExtensionReposData_setSettingsBuilder)? + updates]) => + (new GUpdateExtensionReposData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GUpdateExtensionReposData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateExtensionReposData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateExtensionReposData_setSettings', 'settings'); + } + + @override + GUpdateExtensionReposData_setSettings rebuild( + void Function(GUpdateExtensionReposData_setSettingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateExtensionReposData_setSettingsBuilder toBuilder() => + new GUpdateExtensionReposData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateExtensionReposData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateExtensionReposData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateExtensionReposData_setSettingsBuilder + implements + Builder { + _$GUpdateExtensionReposData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateExtensionReposData_setSettings_settingsBuilder? _settings; + GUpdateExtensionReposData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateExtensionReposData_setSettings_settingsBuilder(); + set settings( + GUpdateExtensionReposData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GUpdateExtensionReposData_setSettingsBuilder() { + GUpdateExtensionReposData_setSettings._initializeBuilder(this); + } + + GUpdateExtensionReposData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateExtensionReposData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateExtensionReposData_setSettings; + } + + @override + void update( + void Function(GUpdateExtensionReposData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateExtensionReposData_setSettings build() => _build(); + + _$GUpdateExtensionReposData_setSettings _build() { + _$GUpdateExtensionReposData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateExtensionReposData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateExtensionReposData_setSettings', 'G__typename'), + settings: settings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateExtensionReposData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateExtensionReposData_setSettings_settings + extends GUpdateExtensionReposData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + + factory _$GUpdateExtensionReposData_setSettings_settings( + [void Function(GUpdateExtensionReposData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateExtensionReposData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GUpdateExtensionReposData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateExtensionReposData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GUpdateExtensionReposData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateExtensionReposData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateExtensionReposData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateExtensionReposData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateExtensionReposData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateExtensionReposData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, + r'GUpdateExtensionReposData_setSettings_settings', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GUpdateExtensionReposData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateExtensionReposData_setSettings_settings', + 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GUpdateExtensionReposData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateExtensionReposData_setSettings_settings', + 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull(socksProxyVersion, + r'GUpdateExtensionReposData_setSettings_settings', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateExtensionReposData_setSettings_settings', + 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateExtensionReposData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateExtensionReposData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateExtensionReposData_setSettings_settings', + 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GUpdateExtensionReposData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GUpdateExtensionReposData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, + r'GUpdateExtensionReposData_setSettings_settings', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateExtensionReposData_setSettings_settings', + 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GUpdateExtensionReposData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateExtensionReposData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GUpdateExtensionReposData_setSettings_settings', 'localSourcePath'); + } + + @override + GUpdateExtensionReposData_setSettings_settings rebuild( + void Function(GUpdateExtensionReposData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateExtensionReposData_setSettings_settingsBuilder toBuilder() => + new GUpdateExtensionReposData_setSettings_settingsBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateExtensionReposData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateExtensionReposData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath)) + .toString(); + } +} + +class GUpdateExtensionReposData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateExtensionReposData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + GUpdateExtensionReposData_setSettings_settingsBuilder() { + GUpdateExtensionReposData_setSettings_settings._initializeBuilder(this); + } + + GUpdateExtensionReposData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateExtensionReposData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateExtensionReposData_setSettings_settings; + } + + @override + void update( + void Function(GUpdateExtensionReposData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateExtensionReposData_setSettings_settings build() => _build(); + + _$GUpdateExtensionReposData_setSettings_settings _build() { + _$GUpdateExtensionReposData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateExtensionReposData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateExtensionReposData_setSettings_settings', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateExtensionReposData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, r'GUpdateExtensionReposData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GUpdateExtensionReposData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, r'GUpdateExtensionReposData_setSettings_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateExtensionReposData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull(port, r'GUpdateExtensionReposData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, r'GUpdateExtensionReposData_setSettings_settings', 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull(socksProxyHost, r'GUpdateExtensionReposData_setSettings_settings', 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull(socksProxyPassword, r'GUpdateExtensionReposData_setSettings_settings', 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull(socksProxyPort, r'GUpdateExtensionReposData_setSettings_settings', 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull(socksProxyUsername, r'GUpdateExtensionReposData_setSettings_settings', 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull(socksProxyVersion, r'GUpdateExtensionReposData_setSettings_settings', 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, r'GUpdateExtensionReposData_setSettings_settings', 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionName, r'GUpdateExtensionReposData_setSettings_settings', 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, r'GUpdateExtensionReposData_setSettings_settings', 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, r'GUpdateExtensionReposData_setSettings_settings', 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, r'GUpdateExtensionReposData_setSettings_settings', 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, r'GUpdateExtensionReposData_setSettings_settings', 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, r'GUpdateExtensionReposData_setSettings_settings', 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, r'GUpdateExtensionReposData_setSettings_settings', 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, r'GUpdateExtensionReposData_setSettings_settings', 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull(localSourcePath, r'GUpdateExtensionReposData_setSettings_settings', 'localSourcePath')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateExtensionReposData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateLocalSourcePathData extends GUpdateLocalSourcePathData { + @override + final String G__typename; + @override + final GUpdateLocalSourcePathData_setSettings setSettings; + + factory _$GUpdateLocalSourcePathData( + [void Function(GUpdateLocalSourcePathDataBuilder)? updates]) => + (new GUpdateLocalSourcePathDataBuilder()..update(updates))._build(); + + _$GUpdateLocalSourcePathData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateLocalSourcePathData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateLocalSourcePathData', 'setSettings'); + } + + @override + GUpdateLocalSourcePathData rebuild( + void Function(GUpdateLocalSourcePathDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateLocalSourcePathDataBuilder toBuilder() => + new GUpdateLocalSourcePathDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateLocalSourcePathData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateLocalSourcePathData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateLocalSourcePathDataBuilder + implements + Builder { + _$GUpdateLocalSourcePathData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateLocalSourcePathData_setSettingsBuilder? _setSettings; + GUpdateLocalSourcePathData_setSettingsBuilder get setSettings => + _$this._setSettings ??= + new GUpdateLocalSourcePathData_setSettingsBuilder(); + set setSettings(GUpdateLocalSourcePathData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateLocalSourcePathDataBuilder() { + GUpdateLocalSourcePathData._initializeBuilder(this); + } + + GUpdateLocalSourcePathDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateLocalSourcePathData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateLocalSourcePathData; + } + + @override + void update(void Function(GUpdateLocalSourcePathDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateLocalSourcePathData build() => _build(); + + _$GUpdateLocalSourcePathData _build() { + _$GUpdateLocalSourcePathData _$result; + try { + _$result = _$v ?? + new _$GUpdateLocalSourcePathData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateLocalSourcePathData', 'G__typename'), + setSettings: setSettings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateLocalSourcePathData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateLocalSourcePathData_setSettings + extends GUpdateLocalSourcePathData_setSettings { + @override + final String G__typename; + @override + final GUpdateLocalSourcePathData_setSettings_settings settings; + + factory _$GUpdateLocalSourcePathData_setSettings( + [void Function(GUpdateLocalSourcePathData_setSettingsBuilder)? + updates]) => + (new GUpdateLocalSourcePathData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GUpdateLocalSourcePathData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateLocalSourcePathData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateLocalSourcePathData_setSettings', 'settings'); + } + + @override + GUpdateLocalSourcePathData_setSettings rebuild( + void Function(GUpdateLocalSourcePathData_setSettingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateLocalSourcePathData_setSettingsBuilder toBuilder() => + new GUpdateLocalSourcePathData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateLocalSourcePathData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateLocalSourcePathData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateLocalSourcePathData_setSettingsBuilder + implements + Builder { + _$GUpdateLocalSourcePathData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateLocalSourcePathData_setSettings_settingsBuilder? _settings; + GUpdateLocalSourcePathData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateLocalSourcePathData_setSettings_settingsBuilder(); + set settings( + GUpdateLocalSourcePathData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GUpdateLocalSourcePathData_setSettingsBuilder() { + GUpdateLocalSourcePathData_setSettings._initializeBuilder(this); + } + + GUpdateLocalSourcePathData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateLocalSourcePathData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateLocalSourcePathData_setSettings; + } + + @override + void update( + void Function(GUpdateLocalSourcePathData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateLocalSourcePathData_setSettings build() => _build(); + + _$GUpdateLocalSourcePathData_setSettings _build() { + _$GUpdateLocalSourcePathData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateLocalSourcePathData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateLocalSourcePathData_setSettings', 'G__typename'), + settings: settings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateLocalSourcePathData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateLocalSourcePathData_setSettings_settings + extends GUpdateLocalSourcePathData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + + factory _$GUpdateLocalSourcePathData_setSettings_settings( + [void Function( + GUpdateLocalSourcePathData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateLocalSourcePathData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GUpdateLocalSourcePathData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateLocalSourcePathData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GUpdateLocalSourcePathData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateLocalSourcePathData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateLocalSourcePathData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateLocalSourcePathData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateLocalSourcePathData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateLocalSourcePathData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GUpdateLocalSourcePathData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GUpdateLocalSourcePathData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GUpdateLocalSourcePathData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GUpdateLocalSourcePathData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GUpdateLocalSourcePathData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GUpdateLocalSourcePathData_setSettings_settings', 'localSourcePath'); + } + + @override + GUpdateLocalSourcePathData_setSettings_settings rebuild( + void Function(GUpdateLocalSourcePathData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateLocalSourcePathData_setSettings_settingsBuilder toBuilder() => + new GUpdateLocalSourcePathData_setSettings_settingsBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateLocalSourcePathData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateLocalSourcePathData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath)) + .toString(); + } +} + +class GUpdateLocalSourcePathData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateLocalSourcePathData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + GUpdateLocalSourcePathData_setSettings_settingsBuilder() { + GUpdateLocalSourcePathData_setSettings_settings._initializeBuilder(this); + } + + GUpdateLocalSourcePathData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateLocalSourcePathData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateLocalSourcePathData_setSettings_settings; + } + + @override + void update( + void Function(GUpdateLocalSourcePathData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateLocalSourcePathData_setSettings_settings build() => _build(); + + _$GUpdateLocalSourcePathData_setSettings_settings _build() { + _$GUpdateLocalSourcePathData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateLocalSourcePathData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateLocalSourcePathData_setSettings_settings', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, r'GUpdateLocalSourcePathData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GUpdateLocalSourcePathData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, r'GUpdateLocalSourcePathData_setSettings_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateLocalSourcePathData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull(port, r'GUpdateLocalSourcePathData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, r'GUpdateLocalSourcePathData_setSettings_settings', 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull(socksProxyHost, r'GUpdateLocalSourcePathData_setSettings_settings', 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull(socksProxyPassword, r'GUpdateLocalSourcePathData_setSettings_settings', 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull(socksProxyPort, r'GUpdateLocalSourcePathData_setSettings_settings', 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull(socksProxyUsername, r'GUpdateLocalSourcePathData_setSettings_settings', 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull(socksProxyVersion, r'GUpdateLocalSourcePathData_setSettings_settings', 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, r'GUpdateLocalSourcePathData_setSettings_settings', 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionName, r'GUpdateLocalSourcePathData_setSettings_settings', 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, r'GUpdateLocalSourcePathData_setSettings_settings', 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, r'GUpdateLocalSourcePathData_setSettings_settings', 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, r'GUpdateLocalSourcePathData_setSettings_settings', 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, r'GUpdateLocalSourcePathData_setSettings_settings', 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, r'GUpdateLocalSourcePathData_setSettings_settings', 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, r'GUpdateLocalSourcePathData_setSettings_settings', 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, r'GUpdateLocalSourcePathData_setSettings_settings', 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull(localSourcePath, r'GUpdateLocalSourcePathData_setSettings_settings', 'localSourcePath')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateLocalSourcePathData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/browse/data/graphql/__generated__/browse_settings_query.req.gql.dart b/lib/src/features/settings/presentation/browse/data/graphql/__generated__/browse_settings_query.req.gql.dart new file mode 100644 index 00000000..2af9b7d6 --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/graphql/__generated__/browse_settings_query.req.gql.dart @@ -0,0 +1,264 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/browse/data/graphql/__generated__/browse_settings_query.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/browse/data/graphql/__generated__/browse_settings_query.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/browse/data/graphql/__generated__/browse_settings_query.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'browse_settings_query.req.gql.g.dart'; + +abstract class GUpdateSourceInParallelReq + implements + Built, + _i1.OperationRequest<_i2.GUpdateSourceInParallelData, + _i3.GUpdateSourceInParallelVars> { + GUpdateSourceInParallelReq._(); + + factory GUpdateSourceInParallelReq( + [void Function(GUpdateSourceInParallelReqBuilder b) updates]) = + _$GUpdateSourceInParallelReq; + + static void _initializeBuilder(GUpdateSourceInParallelReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateSourceInParallel', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateSourceInParallelVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateSourceInParallelData? Function( + _i2.GUpdateSourceInParallelData?, + _i2.GUpdateSourceInParallelData?, + )? get updateResult; + @override + _i2.GUpdateSourceInParallelData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateSourceInParallelData? parseData(Map json) => + _i2.GUpdateSourceInParallelData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateSourceInParallelData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateSourceInParallelData, + _i3.GUpdateSourceInParallelVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateSourceInParallelReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateSourceInParallelReq.serializer, + this, + ) as Map); + + static GUpdateSourceInParallelReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateSourceInParallelReq.serializer, + json, + ); +} + +abstract class GUpdateExtensionReposReq + implements + Built, + _i1.OperationRequest<_i2.GUpdateExtensionReposData, + _i3.GUpdateExtensionReposVars> { + GUpdateExtensionReposReq._(); + + factory GUpdateExtensionReposReq( + [void Function(GUpdateExtensionReposReqBuilder b) updates]) = + _$GUpdateExtensionReposReq; + + static void _initializeBuilder(GUpdateExtensionReposReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateExtensionRepos', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateExtensionReposVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateExtensionReposData? Function( + _i2.GUpdateExtensionReposData?, + _i2.GUpdateExtensionReposData?, + )? get updateResult; + @override + _i2.GUpdateExtensionReposData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateExtensionReposData? parseData(Map json) => + _i2.GUpdateExtensionReposData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateExtensionReposData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateExtensionReposData, + _i3.GUpdateExtensionReposVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateExtensionReposReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateExtensionReposReq.serializer, + this, + ) as Map); + + static GUpdateExtensionReposReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateExtensionReposReq.serializer, + json, + ); +} + +abstract class GUpdateLocalSourcePathReq + implements + Built, + _i1.OperationRequest<_i2.GUpdateLocalSourcePathData, + _i3.GUpdateLocalSourcePathVars> { + GUpdateLocalSourcePathReq._(); + + factory GUpdateLocalSourcePathReq( + [void Function(GUpdateLocalSourcePathReqBuilder b) updates]) = + _$GUpdateLocalSourcePathReq; + + static void _initializeBuilder(GUpdateLocalSourcePathReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateLocalSourcePath', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateLocalSourcePathVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateLocalSourcePathData? Function( + _i2.GUpdateLocalSourcePathData?, + _i2.GUpdateLocalSourcePathData?, + )? get updateResult; + @override + _i2.GUpdateLocalSourcePathData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateLocalSourcePathData? parseData(Map json) => + _i2.GUpdateLocalSourcePathData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateLocalSourcePathData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateLocalSourcePathData, + _i3.GUpdateLocalSourcePathVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateLocalSourcePathReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateLocalSourcePathReq.serializer, + this, + ) as Map); + + static GUpdateLocalSourcePathReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateLocalSourcePathReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/browse/data/graphql/__generated__/browse_settings_query.req.gql.g.dart b/lib/src/features/settings/presentation/browse/data/graphql/__generated__/browse_settings_query.req.gql.g.dart new file mode 100644 index 00000000..6e002e87 --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/graphql/__generated__/browse_settings_query.req.gql.g.dart @@ -0,0 +1,1126 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'browse_settings_query.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateSourceInParallelReqSerializer = + new _$GUpdateSourceInParallelReqSerializer(); +Serializer _$gUpdateExtensionReposReqSerializer = + new _$GUpdateExtensionReposReqSerializer(); +Serializer _$gUpdateLocalSourcePathReqSerializer = + new _$GUpdateLocalSourcePathReqSerializer(); + +class _$GUpdateSourceInParallelReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSourceInParallelReq, + _$GUpdateSourceInParallelReq + ]; + @override + final String wireName = 'GUpdateSourceInParallelReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSourceInParallelReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateSourceInParallelVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateSourceInParallelData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateSourceInParallelReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSourceInParallelReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GUpdateSourceInParallelVars))! + as _i3.GUpdateSourceInParallelVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i2.GUpdateSourceInParallelData))! + as _i2.GUpdateSourceInParallelData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateExtensionReposReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateExtensionReposReq, + _$GUpdateExtensionReposReq + ]; + @override + final String wireName = 'GUpdateExtensionReposReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateExtensionReposReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateExtensionReposVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateExtensionReposData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateExtensionReposReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateExtensionReposReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GUpdateExtensionReposVars))! + as _i3.GUpdateExtensionReposVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GUpdateExtensionReposData))! + as _i2.GUpdateExtensionReposData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateLocalSourcePathReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateLocalSourcePathReq, + _$GUpdateLocalSourcePathReq + ]; + @override + final String wireName = 'GUpdateLocalSourcePathReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateLocalSourcePathReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateLocalSourcePathVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateLocalSourcePathData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateLocalSourcePathReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateLocalSourcePathReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GUpdateLocalSourcePathVars))! + as _i3.GUpdateLocalSourcePathVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i2.GUpdateLocalSourcePathData))! + as _i2.GUpdateLocalSourcePathData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSourceInParallelReq extends GUpdateSourceInParallelReq { + @override + final _i3.GUpdateSourceInParallelVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateSourceInParallelData? Function( + _i2.GUpdateSourceInParallelData?, _i2.GUpdateSourceInParallelData?)? + updateResult; + @override + final _i2.GUpdateSourceInParallelData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateSourceInParallelReq( + [void Function(GUpdateSourceInParallelReqBuilder)? updates]) => + (new GUpdateSourceInParallelReqBuilder()..update(updates))._build(); + + _$GUpdateSourceInParallelReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GUpdateSourceInParallelReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateSourceInParallelReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateSourceInParallelReq', 'executeOnListen'); + } + + @override + GUpdateSourceInParallelReq rebuild( + void Function(GUpdateSourceInParallelReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSourceInParallelReqBuilder toBuilder() => + new GUpdateSourceInParallelReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateSourceInParallelReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSourceInParallelReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateSourceInParallelReqBuilder + implements + Builder { + _$GUpdateSourceInParallelReq? _$v; + + _i3.GUpdateSourceInParallelVarsBuilder? _vars; + _i3.GUpdateSourceInParallelVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateSourceInParallelVarsBuilder(); + set vars(_i3.GUpdateSourceInParallelVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateSourceInParallelData? Function( + _i2.GUpdateSourceInParallelData?, _i2.GUpdateSourceInParallelData?)? + _updateResult; + _i2.GUpdateSourceInParallelData? Function( + _i2.GUpdateSourceInParallelData?, _i2.GUpdateSourceInParallelData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateSourceInParallelData? Function( + _i2.GUpdateSourceInParallelData?, + _i2.GUpdateSourceInParallelData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateSourceInParallelDataBuilder? _optimisticResponse; + _i2.GUpdateSourceInParallelDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= + new _i2.GUpdateSourceInParallelDataBuilder(); + set optimisticResponse( + _i2.GUpdateSourceInParallelDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateSourceInParallelReqBuilder() { + GUpdateSourceInParallelReq._initializeBuilder(this); + } + + GUpdateSourceInParallelReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSourceInParallelReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSourceInParallelReq; + } + + @override + void update(void Function(GUpdateSourceInParallelReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSourceInParallelReq build() => _build(); + + _$GUpdateSourceInParallelReq _build() { + _$GUpdateSourceInParallelReq _$result; + try { + _$result = _$v ?? + new _$GUpdateSourceInParallelReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateSourceInParallelReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GUpdateSourceInParallelReq', + 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSourceInParallelReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateExtensionReposReq extends GUpdateExtensionReposReq { + @override + final _i3.GUpdateExtensionReposVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateExtensionReposData? Function( + _i2.GUpdateExtensionReposData?, _i2.GUpdateExtensionReposData?)? + updateResult; + @override + final _i2.GUpdateExtensionReposData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateExtensionReposReq( + [void Function(GUpdateExtensionReposReqBuilder)? updates]) => + (new GUpdateExtensionReposReqBuilder()..update(updates))._build(); + + _$GUpdateExtensionReposReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GUpdateExtensionReposReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateExtensionReposReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateExtensionReposReq', 'executeOnListen'); + } + + @override + GUpdateExtensionReposReq rebuild( + void Function(GUpdateExtensionReposReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateExtensionReposReqBuilder toBuilder() => + new GUpdateExtensionReposReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateExtensionReposReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateExtensionReposReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateExtensionReposReqBuilder + implements + Builder { + _$GUpdateExtensionReposReq? _$v; + + _i3.GUpdateExtensionReposVarsBuilder? _vars; + _i3.GUpdateExtensionReposVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateExtensionReposVarsBuilder(); + set vars(_i3.GUpdateExtensionReposVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateExtensionReposData? Function( + _i2.GUpdateExtensionReposData?, _i2.GUpdateExtensionReposData?)? + _updateResult; + _i2.GUpdateExtensionReposData? Function( + _i2.GUpdateExtensionReposData?, _i2.GUpdateExtensionReposData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateExtensionReposData? Function( + _i2.GUpdateExtensionReposData?, + _i2.GUpdateExtensionReposData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateExtensionReposDataBuilder? _optimisticResponse; + _i2.GUpdateExtensionReposDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GUpdateExtensionReposDataBuilder(); + set optimisticResponse( + _i2.GUpdateExtensionReposDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateExtensionReposReqBuilder() { + GUpdateExtensionReposReq._initializeBuilder(this); + } + + GUpdateExtensionReposReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateExtensionReposReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateExtensionReposReq; + } + + @override + void update(void Function(GUpdateExtensionReposReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateExtensionReposReq build() => _build(); + + _$GUpdateExtensionReposReq _build() { + _$GUpdateExtensionReposReq _$result; + try { + _$result = _$v ?? + new _$GUpdateExtensionReposReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateExtensionReposReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GUpdateExtensionReposReq', + 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateExtensionReposReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateLocalSourcePathReq extends GUpdateLocalSourcePathReq { + @override + final _i3.GUpdateLocalSourcePathVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateLocalSourcePathData? Function( + _i2.GUpdateLocalSourcePathData?, _i2.GUpdateLocalSourcePathData?)? + updateResult; + @override + final _i2.GUpdateLocalSourcePathData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateLocalSourcePathReq( + [void Function(GUpdateLocalSourcePathReqBuilder)? updates]) => + (new GUpdateLocalSourcePathReqBuilder()..update(updates))._build(); + + _$GUpdateLocalSourcePathReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GUpdateLocalSourcePathReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateLocalSourcePathReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateLocalSourcePathReq', 'executeOnListen'); + } + + @override + GUpdateLocalSourcePathReq rebuild( + void Function(GUpdateLocalSourcePathReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateLocalSourcePathReqBuilder toBuilder() => + new GUpdateLocalSourcePathReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateLocalSourcePathReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateLocalSourcePathReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateLocalSourcePathReqBuilder + implements + Builder { + _$GUpdateLocalSourcePathReq? _$v; + + _i3.GUpdateLocalSourcePathVarsBuilder? _vars; + _i3.GUpdateLocalSourcePathVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateLocalSourcePathVarsBuilder(); + set vars(_i3.GUpdateLocalSourcePathVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateLocalSourcePathData? Function( + _i2.GUpdateLocalSourcePathData?, _i2.GUpdateLocalSourcePathData?)? + _updateResult; + _i2.GUpdateLocalSourcePathData? Function( + _i2.GUpdateLocalSourcePathData?, _i2.GUpdateLocalSourcePathData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateLocalSourcePathData? Function( + _i2.GUpdateLocalSourcePathData?, + _i2.GUpdateLocalSourcePathData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateLocalSourcePathDataBuilder? _optimisticResponse; + _i2.GUpdateLocalSourcePathDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= + new _i2.GUpdateLocalSourcePathDataBuilder(); + set optimisticResponse( + _i2.GUpdateLocalSourcePathDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateLocalSourcePathReqBuilder() { + GUpdateLocalSourcePathReq._initializeBuilder(this); + } + + GUpdateLocalSourcePathReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateLocalSourcePathReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateLocalSourcePathReq; + } + + @override + void update(void Function(GUpdateLocalSourcePathReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateLocalSourcePathReq build() => _build(); + + _$GUpdateLocalSourcePathReq _build() { + _$GUpdateLocalSourcePathReq _$result; + try { + _$result = _$v ?? + new _$GUpdateLocalSourcePathReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateLocalSourcePathReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GUpdateLocalSourcePathReq', + 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateLocalSourcePathReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/browse/data/graphql/__generated__/browse_settings_query.var.gql.dart b/lib/src/features/settings/presentation/browse/data/graphql/__generated__/browse_settings_query.var.gql.dart new file mode 100644 index 00000000..dd27e329 --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/graphql/__generated__/browse_settings_query.var.gql.dart @@ -0,0 +1,86 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'browse_settings_query.var.gql.g.dart'; + +abstract class GUpdateSourceInParallelVars + implements + Built { + GUpdateSourceInParallelVars._(); + + factory GUpdateSourceInParallelVars( + [void Function(GUpdateSourceInParallelVarsBuilder b) updates]) = + _$GUpdateSourceInParallelVars; + + int? get maxSourcesInParallel; + static Serializer get serializer => + _$gUpdateSourceInParallelVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSourceInParallelVars.serializer, + this, + ) as Map); + + static GUpdateSourceInParallelVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateSourceInParallelVars.serializer, + json, + ); +} + +abstract class GUpdateExtensionReposVars + implements + Built { + GUpdateExtensionReposVars._(); + + factory GUpdateExtensionReposVars( + [void Function(GUpdateExtensionReposVarsBuilder b) updates]) = + _$GUpdateExtensionReposVars; + + BuiltList? get extensionRepos; + static Serializer get serializer => + _$gUpdateExtensionReposVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateExtensionReposVars.serializer, + this, + ) as Map); + + static GUpdateExtensionReposVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateExtensionReposVars.serializer, + json, + ); +} + +abstract class GUpdateLocalSourcePathVars + implements + Built { + GUpdateLocalSourcePathVars._(); + + factory GUpdateLocalSourcePathVars( + [void Function(GUpdateLocalSourcePathVarsBuilder b) updates]) = + _$GUpdateLocalSourcePathVars; + + String? get localSourcePath; + static Serializer get serializer => + _$gUpdateLocalSourcePathVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateLocalSourcePathVars.serializer, + this, + ) as Map); + + static GUpdateLocalSourcePathVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateLocalSourcePathVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/browse/data/graphql/__generated__/browse_settings_query.var.gql.g.dart b/lib/src/features/settings/presentation/browse/data/graphql/__generated__/browse_settings_query.var.gql.g.dart new file mode 100644 index 00000000..d83e91da --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/graphql/__generated__/browse_settings_query.var.gql.g.dart @@ -0,0 +1,438 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'browse_settings_query.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gUpdateSourceInParallelVarsSerializer = + new _$GUpdateSourceInParallelVarsSerializer(); +Serializer _$gUpdateExtensionReposVarsSerializer = + new _$GUpdateExtensionReposVarsSerializer(); +Serializer _$gUpdateLocalSourcePathVarsSerializer = + new _$GUpdateLocalSourcePathVarsSerializer(); + +class _$GUpdateSourceInParallelVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSourceInParallelVars, + _$GUpdateSourceInParallelVars + ]; + @override + final String wireName = 'GUpdateSourceInParallelVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSourceInParallelVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.maxSourcesInParallel; + if (value != null) { + result + ..add('maxSourcesInParallel') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + return result; + } + + @override + GUpdateSourceInParallelVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSourceInParallelVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateExtensionReposVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateExtensionReposVars, + _$GUpdateExtensionReposVars + ]; + @override + final String wireName = 'GUpdateExtensionReposVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateExtensionReposVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.extensionRepos; + if (value != null) { + result + ..add('extensionRepos') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + return result; + } + + @override + GUpdateExtensionReposVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateExtensionReposVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateLocalSourcePathVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateLocalSourcePathVars, + _$GUpdateLocalSourcePathVars + ]; + @override + final String wireName = 'GUpdateLocalSourcePathVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateLocalSourcePathVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.localSourcePath; + if (value != null) { + result + ..add('localSourcePath') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateLocalSourcePathVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateLocalSourcePathVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSourceInParallelVars extends GUpdateSourceInParallelVars { + @override + final int? maxSourcesInParallel; + + factory _$GUpdateSourceInParallelVars( + [void Function(GUpdateSourceInParallelVarsBuilder)? updates]) => + (new GUpdateSourceInParallelVarsBuilder()..update(updates))._build(); + + _$GUpdateSourceInParallelVars._({this.maxSourcesInParallel}) : super._(); + + @override + GUpdateSourceInParallelVars rebuild( + void Function(GUpdateSourceInParallelVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSourceInParallelVarsBuilder toBuilder() => + new GUpdateSourceInParallelVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSourceInParallelVars && + maxSourcesInParallel == other.maxSourcesInParallel; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSourceInParallelVars') + ..add('maxSourcesInParallel', maxSourcesInParallel)) + .toString(); + } +} + +class GUpdateSourceInParallelVarsBuilder + implements + Builder { + _$GUpdateSourceInParallelVars? _$v; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + GUpdateSourceInParallelVarsBuilder(); + + GUpdateSourceInParallelVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _maxSourcesInParallel = $v.maxSourcesInParallel; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSourceInParallelVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSourceInParallelVars; + } + + @override + void update(void Function(GUpdateSourceInParallelVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSourceInParallelVars build() => _build(); + + _$GUpdateSourceInParallelVars _build() { + final _$result = _$v ?? + new _$GUpdateSourceInParallelVars._( + maxSourcesInParallel: maxSourcesInParallel); + replace(_$result); + return _$result; + } +} + +class _$GUpdateExtensionReposVars extends GUpdateExtensionReposVars { + @override + final BuiltList? extensionRepos; + + factory _$GUpdateExtensionReposVars( + [void Function(GUpdateExtensionReposVarsBuilder)? updates]) => + (new GUpdateExtensionReposVarsBuilder()..update(updates))._build(); + + _$GUpdateExtensionReposVars._({this.extensionRepos}) : super._(); + + @override + GUpdateExtensionReposVars rebuild( + void Function(GUpdateExtensionReposVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateExtensionReposVarsBuilder toBuilder() => + new GUpdateExtensionReposVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateExtensionReposVars && + extensionRepos == other.extensionRepos; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateExtensionReposVars') + ..add('extensionRepos', extensionRepos)) + .toString(); + } +} + +class GUpdateExtensionReposVarsBuilder + implements + Builder { + _$GUpdateExtensionReposVars? _$v; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + GUpdateExtensionReposVarsBuilder(); + + GUpdateExtensionReposVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _extensionRepos = $v.extensionRepos?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateExtensionReposVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateExtensionReposVars; + } + + @override + void update(void Function(GUpdateExtensionReposVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateExtensionReposVars build() => _build(); + + _$GUpdateExtensionReposVars _build() { + _$GUpdateExtensionReposVars _$result; + try { + _$result = _$v ?? + new _$GUpdateExtensionReposVars._( + extensionRepos: _extensionRepos?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + _extensionRepos?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateExtensionReposVars', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateLocalSourcePathVars extends GUpdateLocalSourcePathVars { + @override + final String? localSourcePath; + + factory _$GUpdateLocalSourcePathVars( + [void Function(GUpdateLocalSourcePathVarsBuilder)? updates]) => + (new GUpdateLocalSourcePathVarsBuilder()..update(updates))._build(); + + _$GUpdateLocalSourcePathVars._({this.localSourcePath}) : super._(); + + @override + GUpdateLocalSourcePathVars rebuild( + void Function(GUpdateLocalSourcePathVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateLocalSourcePathVarsBuilder toBuilder() => + new GUpdateLocalSourcePathVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateLocalSourcePathVars && + localSourcePath == other.localSourcePath; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateLocalSourcePathVars') + ..add('localSourcePath', localSourcePath)) + .toString(); + } +} + +class GUpdateLocalSourcePathVarsBuilder + implements + Builder { + _$GUpdateLocalSourcePathVars? _$v; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + GUpdateLocalSourcePathVarsBuilder(); + + GUpdateLocalSourcePathVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _localSourcePath = $v.localSourcePath; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateLocalSourcePathVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateLocalSourcePathVars; + } + + @override + void update(void Function(GUpdateLocalSourcePathVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateLocalSourcePathVars build() => _build(); + + _$GUpdateLocalSourcePathVars _build() { + final _$result = _$v ?? + new _$GUpdateLocalSourcePathVars._(localSourcePath: localSourcePath); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/browse/data/graphql/browse_settings_query.dart b/lib/src/features/settings/presentation/browse/data/graphql/browse_settings_query.dart new file mode 100644 index 00000000..4d1eed8f --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/graphql/browse_settings_query.dart @@ -0,0 +1,16 @@ +import 'package:built_collection/built_collection.dart'; + +import '__generated__/browse_settings_query.req.gql.dart'; + +abstract class BrowseSettingsQuery { + static GUpdateSourceInParallelReq updateSourceInParallel(int value) => + GUpdateSourceInParallelReq( + (req) => req..vars.maxSourcesInParallel = value); + + static GUpdateExtensionReposReq updateExtensionRepos(Set value) => + GUpdateExtensionReposReq( + (req) => req..vars.extensionRepos = ListBuilder(value)); + + static GUpdateLocalSourcePathReq updateLocalSourcePath(String value) => + GUpdateLocalSourcePathReq((req) => req..vars.localSourcePath = value); +} diff --git a/lib/src/features/settings/presentation/browse/data/graphql/browse_settings_query.graphql b/lib/src/features/settings/presentation/browse/data/graphql/browse_settings_query.graphql new file mode 100644 index 00000000..65050b84 --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/graphql/browse_settings_query.graphql @@ -0,0 +1,25 @@ +# import '/src/features/settings/data/graphql/settings_query.graphql' + +mutation UpdateSourceInParallel($maxSourcesInParallel: Int = 6) { + setSettings(input: {settings: {maxSourcesInParallel: $maxSourcesInParallel}}) { + settings { + ...SettingsFragment + } + } +} + +mutation UpdateExtensionRepos($extensionRepos: [String!] = "") { + setSettings(input: {settings: {extensionRepos: $extensionRepos}}) { + settings { + ...SettingsFragment + } + } +} + +mutation UpdateLocalSourcePath($localSourcePath: String = "") { + setSettings(input: {settings: {localSourcePath: $localSourcePath}}) { + settings { + ...SettingsFragment + } + } +} diff --git a/lib/src/features/settings/presentation/browse/widgets/extension_repository/extension_repository_screen.dart b/lib/src/features/settings/presentation/browse/widgets/extension_repository/extension_repository_screen.dart new file mode 100644 index 00000000..6ba33ec1 --- /dev/null +++ b/lib/src/features/settings/presentation/browse/widgets/extension_repository/extension_repository_screen.dart @@ -0,0 +1,124 @@ +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; + +import '../../../../../../constants/app_sizes.dart'; +import '../../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../../utils/misc/app_utils.dart'; +import '../../../../../../utils/misc/toast/toast.dart'; +import '../../../../../../widgets/emoticons.dart'; +import '../../../../../../widgets/input_popup/domain/input_popup_type.dart'; +import '../../../../../../widgets/input_popup/input_popup.dart'; +import '../../../../controller/server_controller.dart'; +import '../../data/browse_settings_repository.dart'; + +class ExtensionRepositoryScreen extends ConsumerWidget { + const ExtensionRepositoryScreen({super.key}); + @override + Widget build(context, ref) { + final repository = ref.watch(browseSettingsRepositoryProvider); + final serverSettings = ref.watch(settingsProvider); + final List repoList = [ + ...?serverSettings.valueOrNull?.extensionRepos + ]; + onRefresh() => ref.refresh(settingsProvider.future); + return Scaffold( + appBar: AppBar(title: Text(context.l10n.extensionRepository)), + floatingActionButton: FloatingActionButton( + onPressed: () async { + String? newUrl; + bool hasChanged = false; + await showDialog( + context: context, + builder: (context) => InputDialog( + title: context.l10n.extensionRepository, + onChange: (value) { + newUrl = value; + hasChanged = true; + }, + type: InputPopupType.textField( + hintText: + context.l10n.enterProp(context.l10n.extensionRepository), + ), + ), + ); + if (newUrl.isNotBlank && newUrl.isUrl) { + final result = await AppUtils.guard( + () => repository.updateExtensionRepos({...repoList, newUrl!}), + ref.read(toastProvider), + ); + if (result != null) { + ref.watch(settingsProvider.notifier).updateState(result); + } + } else if (context.mounted && hasChanged) { + ref.read(toastProvider)?.showError( + context.l10n.invalidProp(context.l10n.extensionRepository)); + } + }, + child: const Icon(Icons.add_rounded), + ), + body: RefreshIndicator( + onRefresh: onRefresh, + child: repoList.isNotBlank + ? ListView.builder( + itemCount: (repoList.length).ifNull(), + itemBuilder: (context, index) { + final repo = repoList[index]; + if (repo.isBlank) return const SizedBox.shrink(); + return Card( + margin: KEdgeInsets.a8.size, + child: ListTile( + title: Text( + repo, + maxLines: 2, + overflow: TextOverflow.ellipsis, + ), + trailing: Row( + mainAxisSize: MainAxisSize.min, + children: [ + IconButton( + icon: const Icon(Icons.copy_rounded), + onPressed: () async { + await Clipboard.setData( + ClipboardData(text: repo)); + if (context.mounted) { + ref + .read(toastProvider) + ?.show(context.l10n.copied); + } + }, + ), + IconButton( + icon: const Icon(Icons.delete_rounded), + onPressed: () async { + final newList = {...repoList}..remove(repo); + final result = await AppUtils.guard( + () => + repository.updateExtensionRepos(newList), + ref.read(toastProvider)); + if (result != null) { + ref + .watch(settingsProvider.notifier) + .updateState(result); + } + }, + ), + ], + ), + ), + ); + }, + ) + : Emoticons( + title: + context.l10n.noPropFound(context.l10n.extensionRepository), + subTitle: context.l10n.extensionRepositoryDescription, + button: TextButton( + onPressed: onRefresh, + child: Text(context.l10n.refresh), + ), + ), + ), + ); + } +} diff --git a/lib/src/features/settings/presentation/browse/widgets/show_nsfw_switch/show_nsfw_switch.dart b/lib/src/features/settings/presentation/browse/widgets/show_nsfw_switch/show_nsfw_switch.dart index 8a510ab2..4783421b 100644 --- a/lib/src/features/settings/presentation/browse/widgets/show_nsfw_switch/show_nsfw_switch.dart +++ b/lib/src/features/settings/presentation/browse/widgets/show_nsfw_switch/show_nsfw_switch.dart @@ -27,9 +27,7 @@ class ShowNSFWTile extends ConsumerWidget { return SwitchListTile( controlAffinity: ListTileControlAffinity.trailing, secondary: const Icon(Icons.eighteen_up_rating_rounded), - title: Text( - context.l10n.nsfw, - ), + title: Text(context.l10n.nsfw), onChanged: ref.read(showNSFWProvider.notifier).update, value: ref.watch(showNSFWProvider).ifNull(), ); diff --git a/lib/src/features/settings/presentation/extension_repository/extension_repository_screen.dart b/lib/src/features/settings/presentation/extension_repository/extension_repository_screen.dart new file mode 100644 index 00000000..e519f5be --- /dev/null +++ b/lib/src/features/settings/presentation/extension_repository/extension_repository_screen.dart @@ -0,0 +1,14 @@ +import 'package:flutter/material.dart'; + +import '../../../../utils/extensions/custom_extensions.dart'; + +class ExtensionRepositoryScreen extends StatelessWidget { + const ExtensionRepositoryScreen({super.key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar(title: Text(context.l10n.extensionRepository)), + ); + } +} diff --git a/lib/src/features/settings/presentation/general/general_screen.dart b/lib/src/features/settings/presentation/general/general_screen.dart index 690ba555..5841fe62 100644 --- a/lib/src/features/settings/presentation/general/general_screen.dart +++ b/lib/src/features/settings/presentation/general/general_screen.dart @@ -51,9 +51,7 @@ class GeneralScreen extends ConsumerWidget { await ref.watch(hiveCacheStoreProvider).clean(); DefaultCacheManager().emptyCache(); if (context.mounted) { - ref - .read(toastProvider(context)) - .show(context.l10n.cacheCleared); + ref.read(toastProvider)?.show(context.l10n.cacheCleared); } }, ), diff --git a/lib/src/features/settings/presentation/library/library_settings_screen.dart b/lib/src/features/settings/presentation/library/library_settings_screen.dart index 9a0aee2c..aa609543 100644 --- a/lib/src/features/settings/presentation/library/library_settings_screen.dart +++ b/lib/src/features/settings/presentation/library/library_settings_screen.dart @@ -23,7 +23,7 @@ class LibrarySettingsScreen extends StatelessWidget { ListTile( title: Text(context.l10n.categories), leading: const Icon(Icons.label_rounded), - onTap: () => const EditCategoriesRoute().push(context), + onTap: () => const EditCategoriesRoute().go(context), ), ], ), diff --git a/lib/src/features/settings/presentation/more/more_screen.dart b/lib/src/features/settings/presentation/more/more_screen.dart index ff389a68..d0e119e5 100644 --- a/lib/src/features/settings/presentation/more/more_screen.dart +++ b/lib/src/features/settings/presentation/more/more_screen.dart @@ -14,7 +14,7 @@ import '../../../../utils/extensions/custom_extensions.dart'; import '../../../../utils/launch_url_in_web.dart'; import '../../../../utils/misc/toast/toast.dart'; import '../../widgets/app_theme_mode_tile/app_theme_mode_tile.dart'; -import '../../widgets/server_url_tile/server_url_tile.dart'; +import '../server/widget/client/server_url_tile/server_url_tile.dart'; class MoreScreen extends ConsumerWidget { const MoreScreen({super.key}); @@ -48,12 +48,12 @@ class MoreScreen extends ConsumerWidget { ListTile( title: Text(context.l10n.settings), leading: const Icon(Icons.settings_rounded), - onTap: () => const SettingsRoute().push(context), + onTap: () => const SettingsRoute().go(context), ), ListTile( title: Text(context.l10n.about), leading: const Icon(Icons.info_rounded), - onTap: () => const AboutRoute().push(context), + onTap: () => const AboutRoute().go(context), ), ListTile( title: Text(context.l10n.help), @@ -61,7 +61,7 @@ class MoreScreen extends ConsumerWidget { onTap: () => launchUrlInWeb( context, AppUrls.tachideskHelp.url, - ref.read(toastProvider(context)), + ref.read(toastProvider), ), ), ], diff --git a/lib/src/features/settings/presentation/reader/widgets/reader_magnifier_size_slider/reader_magnifier_size_slider.dart b/lib/src/features/settings/presentation/reader/widgets/reader_magnifier_size_slider/reader_magnifier_size_slider.dart index 1f2c7334..05177727 100644 --- a/lib/src/features/settings/presentation/reader/widgets/reader_magnifier_size_slider/reader_magnifier_size_slider.dart +++ b/lib/src/features/settings/presentation/reader/widgets/reader_magnifier_size_slider/reader_magnifier_size_slider.dart @@ -35,7 +35,7 @@ class ReaderMagnifierSizeSlider extends ConsumerWidget { ref.watch(readerMagnifierSizeKeyProvider) ?? DBKeys.readerMagnifierSize.initial; return SliderSettingTile( - icon: Icons.search, + icon: Icons.search_rounded, title: context.l10n.readerMagnifierSize, value: readerMagnifierSize, getSliderLabel: (val) => val.toStringAsFixed(2), @@ -77,7 +77,7 @@ class AsyncReaderMagnifierSizeSlider extends HookConsumerWidget { [], ); return SliderSettingTile( - icon: Icons.search, + icon: Icons.search_rounded, title: context.l10n.readerMagnifierSize, value: readerMagnifierSize.value, getSliderLabel: (val) => val.toStringAsFixed(2), diff --git a/lib/src/features/settings/presentation/server/data/graphql/__generated__/server_settings_query.ast.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/__generated__/server_settings_query.ast.gql.dart new file mode 100644 index 00000000..52b7548c --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/__generated__/server_settings_query.ast.gql.dart @@ -0,0 +1,948 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/data/graphql/__generated__/settings_query.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i5; + +const UpdateServerIp = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateServerIp'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'ip')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'ip'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'ip')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const UpdatePort = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdatePort'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'port')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: + _i1.DefaultValueNode(value: _i1.IntValueNode(value: '4567')), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'port'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'port')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const ToggleSocksProxy = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'ToggleSocksProxy'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: + _i1.VariableNode(name: _i1.NameNode(value: 'socksProxyEnabled')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: + _i1.DefaultValueNode(value: _i1.BooleanValueNode(value: false)), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'socksProxyEnabled'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'socksProxyEnabled')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const UpdateSocksVersion = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateSocksVersion'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: + _i1.VariableNode(name: _i1.NameNode(value: 'socksProxyVersion')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode(value: _i1.IntValueNode(value: '10')), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'socksProxyVersion'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'socksProxyVersion')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const UpdateSocksHost = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateSocksHost'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'socksProxyHost')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode( + value: _i1.StringValueNode( + value: '', + isBlock: false, + )), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'socksProxyHost'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'socksProxyHost')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const UpdateSocksUserName = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateSocksUserName'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: + _i1.VariableNode(name: _i1.NameNode(value: 'socksProxyUsername')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode( + value: _i1.StringValueNode( + value: '', + isBlock: false, + )), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'socksProxyUsername'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'socksProxyUsername')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const UpdateSocksPassword = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateSocksPassword'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: + _i1.VariableNode(name: _i1.NameNode(value: 'socksProxyPassword')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode( + value: _i1.StringValueNode( + value: '', + isBlock: false, + )), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'socksProxyPassword'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'socksProxyPassword')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const UpdateSocksPort = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateSocksPort'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'socksProxyPort')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode( + value: _i1.StringValueNode( + value: '', + isBlock: false, + )), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'socksProxyPort'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'socksProxyPort')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const ToggleFlareSolverr = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'ToggleFlareSolverr'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: + _i1.VariableNode(name: _i1.NameNode(value: 'flareSolverrEnabled')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: + _i1.DefaultValueNode(value: _i1.BooleanValueNode(value: false)), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'flareSolverrEnabled'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'flareSolverrEnabled')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const UpdateFlareSolverrSessionName = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateFlareSolverrSessionName'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode( + name: _i1.NameNode(value: 'flareSolverrSessionName')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode( + value: _i1.StringValueNode( + value: '', + isBlock: false, + )), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'flareSolverrSessionName'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'flareSolverrSessionName')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const UpdateFlareSolverrSessionTtl = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateFlareSolverrSessionTtl'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: + _i1.VariableNode(name: _i1.NameNode(value: 'flareSolverrSessionTtl')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode(value: _i1.IntValueNode(value: '10')), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'flareSolverrSessionTtl'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'flareSolverrSessionTtl')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const UpdateFlareSolverrTimeout = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateFlareSolverrTimeout'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: + _i1.VariableNode(name: _i1.NameNode(value: 'flareSolverrTimeout')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode(value: _i1.IntValueNode(value: '10')), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'flareSolverrTimeout'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'flareSolverrTimeout')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const UpdateFlareSolverrUrl = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateFlareSolverrUrl'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'flareSolverrUrl')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode( + value: _i1.StringValueNode( + value: '', + isBlock: false, + )), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'flareSolverrUrl'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'flareSolverrUrl')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const ToggleDebugLogs = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'ToggleDebugLogs'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'debugLogsEnabled')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: + _i1.DefaultValueNode(value: _i1.BooleanValueNode(value: false)), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'debugLogsEnabled'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'debugLogsEnabled')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const ToggleGqlDebugLogs = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'ToggleGqlDebugLogs'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: + _i1.VariableNode(name: _i1.NameNode(value: 'gqlDebugLogsEnabled')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: + _i1.DefaultValueNode(value: _i1.BooleanValueNode(value: false)), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'gqlDebugLogsEnabled'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'gqlDebugLogsEnabled')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const ToggleSystemTrayEnabled = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'ToggleSystemTrayEnabled'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: + _i1.VariableNode(name: _i1.NameNode(value: 'systemTrayEnabled')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: + _i1.DefaultValueNode(value: _i1.BooleanValueNode(value: false)), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'systemTrayEnabled'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'systemTrayEnabled')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + UpdateServerIp, + UpdatePort, + ToggleSocksProxy, + UpdateSocksVersion, + UpdateSocksHost, + UpdateSocksUserName, + UpdateSocksPassword, + UpdateSocksPort, + ToggleFlareSolverr, + UpdateFlareSolverrSessionName, + UpdateFlareSolverrSessionTtl, + UpdateFlareSolverrTimeout, + UpdateFlareSolverrUrl, + ToggleDebugLogs, + ToggleGqlDebugLogs, + ToggleSystemTrayEnabled, + _i2.ServerSettings, + _i2.SettingsFragment, + _i3.AutomaticBackupSettingsFragment, + _i4.ServerBindingFragment, + _i5.SocksProxyFragment, + _i6.CloudFlareBypassFragment, + _i7.MiscSettingsFragment, + _i8.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/presentation/server/data/graphql/__generated__/server_settings_query.data.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/__generated__/server_settings_query.data.gql.dart new file mode 100644 index 00000000..a47210bf --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/__generated__/server_settings_query.data.gql.dart @@ -0,0 +1,2314 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/data/graphql/__generated__/settings_query.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'server_settings_query.data.gql.g.dart'; + +abstract class GUpdateServerIpData + implements Built { + GUpdateServerIpData._(); + + factory GUpdateServerIpData( + [void Function(GUpdateServerIpDataBuilder b) updates]) = + _$GUpdateServerIpData; + + static void _initializeBuilder(GUpdateServerIpDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateServerIpData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateServerIpDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateServerIpData.serializer, + this, + ) as Map); + + static GUpdateServerIpData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateServerIpData.serializer, + json, + ); +} + +abstract class GUpdateServerIpData_setSettings + implements + Built { + GUpdateServerIpData_setSettings._(); + + factory GUpdateServerIpData_setSettings( + [void Function(GUpdateServerIpData_setSettingsBuilder b) updates]) = + _$GUpdateServerIpData_setSettings; + + static void _initializeBuilder(GUpdateServerIpData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateServerIpData_setSettings_settings get settings; + static Serializer get serializer => + _$gUpdateServerIpDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateServerIpData_setSettings.serializer, + this, + ) as Map); + + static GUpdateServerIpData_setSettings? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateServerIpData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateServerIpData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GUpdateServerIpData_setSettings_settings._(); + + factory GUpdateServerIpData_setSettings_settings( + [void Function(GUpdateServerIpData_setSettings_settingsBuilder b) + updates]) = _$GUpdateServerIpData_setSettings_settings; + + static void _initializeBuilder( + GUpdateServerIpData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + static Serializer get serializer => + _$gUpdateServerIpDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateServerIpData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateServerIpData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateServerIpData_setSettings_settings.serializer, + json, + ); +} + +abstract class GUpdatePortData + implements Built { + GUpdatePortData._(); + + factory GUpdatePortData([void Function(GUpdatePortDataBuilder b) updates]) = + _$GUpdatePortData; + + static void _initializeBuilder(GUpdatePortDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdatePortData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdatePortDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdatePortData.serializer, + this, + ) as Map); + + static GUpdatePortData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdatePortData.serializer, + json, + ); +} + +abstract class GUpdatePortData_setSettings + implements + Built { + GUpdatePortData_setSettings._(); + + factory GUpdatePortData_setSettings( + [void Function(GUpdatePortData_setSettingsBuilder b) updates]) = + _$GUpdatePortData_setSettings; + + static void _initializeBuilder(GUpdatePortData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdatePortData_setSettings_settings get settings; + static Serializer get serializer => + _$gUpdatePortDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdatePortData_setSettings.serializer, + this, + ) as Map); + + static GUpdatePortData_setSettings? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdatePortData_setSettings.serializer, + json, + ); +} + +abstract class GUpdatePortData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GUpdatePortData_setSettings_settings._(); + + factory GUpdatePortData_setSettings_settings( + [void Function(GUpdatePortData_setSettings_settingsBuilder b) + updates]) = _$GUpdatePortData_setSettings_settings; + + static void _initializeBuilder( + GUpdatePortData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + static Serializer get serializer => + _$gUpdatePortDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdatePortData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdatePortData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdatePortData_setSettings_settings.serializer, + json, + ); +} + +abstract class GToggleSocksProxyData + implements Built { + GToggleSocksProxyData._(); + + factory GToggleSocksProxyData( + [void Function(GToggleSocksProxyDataBuilder b) updates]) = + _$GToggleSocksProxyData; + + static void _initializeBuilder(GToggleSocksProxyDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GToggleSocksProxyData_setSettings get setSettings; + static Serializer get serializer => + _$gToggleSocksProxyDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleSocksProxyData.serializer, + this, + ) as Map); + + static GToggleSocksProxyData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GToggleSocksProxyData.serializer, + json, + ); +} + +abstract class GToggleSocksProxyData_setSettings + implements + Built { + GToggleSocksProxyData_setSettings._(); + + factory GToggleSocksProxyData_setSettings( + [void Function(GToggleSocksProxyData_setSettingsBuilder b) updates]) = + _$GToggleSocksProxyData_setSettings; + + static void _initializeBuilder(GToggleSocksProxyData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GToggleSocksProxyData_setSettings_settings get settings; + static Serializer get serializer => + _$gToggleSocksProxyDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleSocksProxyData_setSettings.serializer, + this, + ) as Map); + + static GToggleSocksProxyData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GToggleSocksProxyData_setSettings.serializer, + json, + ); +} + +abstract class GToggleSocksProxyData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GToggleSocksProxyData_setSettings_settings._(); + + factory GToggleSocksProxyData_setSettings_settings( + [void Function(GToggleSocksProxyData_setSettings_settingsBuilder b) + updates]) = _$GToggleSocksProxyData_setSettings_settings; + + static void _initializeBuilder( + GToggleSocksProxyData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + static Serializer + get serializer => _$gToggleSocksProxyDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GToggleSocksProxyData_setSettings_settings.serializer, + this, + ) as Map); + + static GToggleSocksProxyData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GToggleSocksProxyData_setSettings_settings.serializer, + json, + ); +} + +abstract class GUpdateSocksVersionData + implements Built { + GUpdateSocksVersionData._(); + + factory GUpdateSocksVersionData( + [void Function(GUpdateSocksVersionDataBuilder b) updates]) = + _$GUpdateSocksVersionData; + + static void _initializeBuilder(GUpdateSocksVersionDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateSocksVersionData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateSocksVersionDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksVersionData.serializer, + this, + ) as Map); + + static GUpdateSocksVersionData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksVersionData.serializer, + json, + ); +} + +abstract class GUpdateSocksVersionData_setSettings + implements + Built { + GUpdateSocksVersionData_setSettings._(); + + factory GUpdateSocksVersionData_setSettings( + [void Function(GUpdateSocksVersionData_setSettingsBuilder b) + updates]) = _$GUpdateSocksVersionData_setSettings; + + static void _initializeBuilder( + GUpdateSocksVersionData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateSocksVersionData_setSettings_settings get settings; + static Serializer get serializer => + _$gUpdateSocksVersionDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksVersionData_setSettings.serializer, + this, + ) as Map); + + static GUpdateSocksVersionData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksVersionData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateSocksVersionData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GUpdateSocksVersionData_setSettings_settings._(); + + factory GUpdateSocksVersionData_setSettings_settings( + [void Function(GUpdateSocksVersionData_setSettings_settingsBuilder b) + updates]) = _$GUpdateSocksVersionData_setSettings_settings; + + static void _initializeBuilder( + GUpdateSocksVersionData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + static Serializer + get serializer => _$gUpdateSocksVersionDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksVersionData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateSocksVersionData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksVersionData_setSettings_settings.serializer, + json, + ); +} + +abstract class GUpdateSocksHostData + implements Built { + GUpdateSocksHostData._(); + + factory GUpdateSocksHostData( + [void Function(GUpdateSocksHostDataBuilder b) updates]) = + _$GUpdateSocksHostData; + + static void _initializeBuilder(GUpdateSocksHostDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateSocksHostData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateSocksHostDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksHostData.serializer, + this, + ) as Map); + + static GUpdateSocksHostData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksHostData.serializer, + json, + ); +} + +abstract class GUpdateSocksHostData_setSettings + implements + Built { + GUpdateSocksHostData_setSettings._(); + + factory GUpdateSocksHostData_setSettings( + [void Function(GUpdateSocksHostData_setSettingsBuilder b) updates]) = + _$GUpdateSocksHostData_setSettings; + + static void _initializeBuilder(GUpdateSocksHostData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateSocksHostData_setSettings_settings get settings; + static Serializer get serializer => + _$gUpdateSocksHostDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksHostData_setSettings.serializer, + this, + ) as Map); + + static GUpdateSocksHostData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksHostData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateSocksHostData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GUpdateSocksHostData_setSettings_settings._(); + + factory GUpdateSocksHostData_setSettings_settings( + [void Function(GUpdateSocksHostData_setSettings_settingsBuilder b) + updates]) = _$GUpdateSocksHostData_setSettings_settings; + + static void _initializeBuilder( + GUpdateSocksHostData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + static Serializer get serializer => + _$gUpdateSocksHostDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksHostData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateSocksHostData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksHostData_setSettings_settings.serializer, + json, + ); +} + +abstract class GUpdateSocksUserNameData + implements + Built { + GUpdateSocksUserNameData._(); + + factory GUpdateSocksUserNameData( + [void Function(GUpdateSocksUserNameDataBuilder b) updates]) = + _$GUpdateSocksUserNameData; + + static void _initializeBuilder(GUpdateSocksUserNameDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateSocksUserNameData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateSocksUserNameDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksUserNameData.serializer, + this, + ) as Map); + + static GUpdateSocksUserNameData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksUserNameData.serializer, + json, + ); +} + +abstract class GUpdateSocksUserNameData_setSettings + implements + Built { + GUpdateSocksUserNameData_setSettings._(); + + factory GUpdateSocksUserNameData_setSettings( + [void Function(GUpdateSocksUserNameData_setSettingsBuilder b) + updates]) = _$GUpdateSocksUserNameData_setSettings; + + static void _initializeBuilder( + GUpdateSocksUserNameData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateSocksUserNameData_setSettings_settings get settings; + static Serializer get serializer => + _$gUpdateSocksUserNameDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksUserNameData_setSettings.serializer, + this, + ) as Map); + + static GUpdateSocksUserNameData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksUserNameData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateSocksUserNameData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GUpdateSocksUserNameData_setSettings_settings._(); + + factory GUpdateSocksUserNameData_setSettings_settings( + [void Function(GUpdateSocksUserNameData_setSettings_settingsBuilder b) + updates]) = _$GUpdateSocksUserNameData_setSettings_settings; + + static void _initializeBuilder( + GUpdateSocksUserNameData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + static Serializer + get serializer => _$gUpdateSocksUserNameDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksUserNameData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateSocksUserNameData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksUserNameData_setSettings_settings.serializer, + json, + ); +} + +abstract class GUpdateSocksPasswordData + implements + Built { + GUpdateSocksPasswordData._(); + + factory GUpdateSocksPasswordData( + [void Function(GUpdateSocksPasswordDataBuilder b) updates]) = + _$GUpdateSocksPasswordData; + + static void _initializeBuilder(GUpdateSocksPasswordDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateSocksPasswordData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateSocksPasswordDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksPasswordData.serializer, + this, + ) as Map); + + static GUpdateSocksPasswordData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksPasswordData.serializer, + json, + ); +} + +abstract class GUpdateSocksPasswordData_setSettings + implements + Built { + GUpdateSocksPasswordData_setSettings._(); + + factory GUpdateSocksPasswordData_setSettings( + [void Function(GUpdateSocksPasswordData_setSettingsBuilder b) + updates]) = _$GUpdateSocksPasswordData_setSettings; + + static void _initializeBuilder( + GUpdateSocksPasswordData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateSocksPasswordData_setSettings_settings get settings; + static Serializer get serializer => + _$gUpdateSocksPasswordDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksPasswordData_setSettings.serializer, + this, + ) as Map); + + static GUpdateSocksPasswordData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksPasswordData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateSocksPasswordData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GUpdateSocksPasswordData_setSettings_settings._(); + + factory GUpdateSocksPasswordData_setSettings_settings( + [void Function(GUpdateSocksPasswordData_setSettings_settingsBuilder b) + updates]) = _$GUpdateSocksPasswordData_setSettings_settings; + + static void _initializeBuilder( + GUpdateSocksPasswordData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + static Serializer + get serializer => _$gUpdateSocksPasswordDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksPasswordData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateSocksPasswordData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksPasswordData_setSettings_settings.serializer, + json, + ); +} + +abstract class GUpdateSocksPortData + implements Built { + GUpdateSocksPortData._(); + + factory GUpdateSocksPortData( + [void Function(GUpdateSocksPortDataBuilder b) updates]) = + _$GUpdateSocksPortData; + + static void _initializeBuilder(GUpdateSocksPortDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateSocksPortData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateSocksPortDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksPortData.serializer, + this, + ) as Map); + + static GUpdateSocksPortData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksPortData.serializer, + json, + ); +} + +abstract class GUpdateSocksPortData_setSettings + implements + Built { + GUpdateSocksPortData_setSettings._(); + + factory GUpdateSocksPortData_setSettings( + [void Function(GUpdateSocksPortData_setSettingsBuilder b) updates]) = + _$GUpdateSocksPortData_setSettings; + + static void _initializeBuilder(GUpdateSocksPortData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateSocksPortData_setSettings_settings get settings; + static Serializer get serializer => + _$gUpdateSocksPortDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksPortData_setSettings.serializer, + this, + ) as Map); + + static GUpdateSocksPortData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksPortData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateSocksPortData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GUpdateSocksPortData_setSettings_settings._(); + + factory GUpdateSocksPortData_setSettings_settings( + [void Function(GUpdateSocksPortData_setSettings_settingsBuilder b) + updates]) = _$GUpdateSocksPortData_setSettings_settings; + + static void _initializeBuilder( + GUpdateSocksPortData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + static Serializer get serializer => + _$gUpdateSocksPortDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksPortData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateSocksPortData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksPortData_setSettings_settings.serializer, + json, + ); +} + +abstract class GToggleFlareSolverrData + implements Built { + GToggleFlareSolverrData._(); + + factory GToggleFlareSolverrData( + [void Function(GToggleFlareSolverrDataBuilder b) updates]) = + _$GToggleFlareSolverrData; + + static void _initializeBuilder(GToggleFlareSolverrDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GToggleFlareSolverrData_setSettings get setSettings; + static Serializer get serializer => + _$gToggleFlareSolverrDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleFlareSolverrData.serializer, + this, + ) as Map); + + static GToggleFlareSolverrData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GToggleFlareSolverrData.serializer, + json, + ); +} + +abstract class GToggleFlareSolverrData_setSettings + implements + Built { + GToggleFlareSolverrData_setSettings._(); + + factory GToggleFlareSolverrData_setSettings( + [void Function(GToggleFlareSolverrData_setSettingsBuilder b) + updates]) = _$GToggleFlareSolverrData_setSettings; + + static void _initializeBuilder( + GToggleFlareSolverrData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GToggleFlareSolverrData_setSettings_settings get settings; + static Serializer get serializer => + _$gToggleFlareSolverrDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleFlareSolverrData_setSettings.serializer, + this, + ) as Map); + + static GToggleFlareSolverrData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GToggleFlareSolverrData_setSettings.serializer, + json, + ); +} + +abstract class GToggleFlareSolverrData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GToggleFlareSolverrData_setSettings_settings._(); + + factory GToggleFlareSolverrData_setSettings_settings( + [void Function(GToggleFlareSolverrData_setSettings_settingsBuilder b) + updates]) = _$GToggleFlareSolverrData_setSettings_settings; + + static void _initializeBuilder( + GToggleFlareSolverrData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + static Serializer + get serializer => _$gToggleFlareSolverrDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GToggleFlareSolverrData_setSettings_settings.serializer, + this, + ) as Map); + + static GToggleFlareSolverrData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GToggleFlareSolverrData_setSettings_settings.serializer, + json, + ); +} + +abstract class GUpdateFlareSolverrSessionNameData + implements + Built { + GUpdateFlareSolverrSessionNameData._(); + + factory GUpdateFlareSolverrSessionNameData( + [void Function(GUpdateFlareSolverrSessionNameDataBuilder b) + updates]) = _$GUpdateFlareSolverrSessionNameData; + + static void _initializeBuilder(GUpdateFlareSolverrSessionNameDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateFlareSolverrSessionNameData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateFlareSolverrSessionNameDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateFlareSolverrSessionNameData.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrSessionNameData? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateFlareSolverrSessionNameData.serializer, + json, + ); +} + +abstract class GUpdateFlareSolverrSessionNameData_setSettings + implements + Built { + GUpdateFlareSolverrSessionNameData_setSettings._(); + + factory GUpdateFlareSolverrSessionNameData_setSettings( + [void Function(GUpdateFlareSolverrSessionNameData_setSettingsBuilder b) + updates]) = _$GUpdateFlareSolverrSessionNameData_setSettings; + + static void _initializeBuilder( + GUpdateFlareSolverrSessionNameData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateFlareSolverrSessionNameData_setSettings_settings get settings; + static Serializer + get serializer => + _$gUpdateFlareSolverrSessionNameDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateFlareSolverrSessionNameData_setSettings.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrSessionNameData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateFlareSolverrSessionNameData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateFlareSolverrSessionNameData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GUpdateFlareSolverrSessionNameData_setSettings_settings._(); + + factory GUpdateFlareSolverrSessionNameData_setSettings_settings( + [void Function( + GUpdateFlareSolverrSessionNameData_setSettings_settingsBuilder b) + updates]) = _$GUpdateFlareSolverrSessionNameData_setSettings_settings; + + static void _initializeBuilder( + GUpdateFlareSolverrSessionNameData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + static Serializer + get serializer => + _$gUpdateFlareSolverrSessionNameDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateFlareSolverrSessionNameData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrSessionNameData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateFlareSolverrSessionNameData_setSettings_settings.serializer, + json, + ); +} + +abstract class GUpdateFlareSolverrSessionTtlData + implements + Built { + GUpdateFlareSolverrSessionTtlData._(); + + factory GUpdateFlareSolverrSessionTtlData( + [void Function(GUpdateFlareSolverrSessionTtlDataBuilder b) updates]) = + _$GUpdateFlareSolverrSessionTtlData; + + static void _initializeBuilder(GUpdateFlareSolverrSessionTtlDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateFlareSolverrSessionTtlData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateFlareSolverrSessionTtlDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateFlareSolverrSessionTtlData.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrSessionTtlData? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateFlareSolverrSessionTtlData.serializer, + json, + ); +} + +abstract class GUpdateFlareSolverrSessionTtlData_setSettings + implements + Built { + GUpdateFlareSolverrSessionTtlData_setSettings._(); + + factory GUpdateFlareSolverrSessionTtlData_setSettings( + [void Function(GUpdateFlareSolverrSessionTtlData_setSettingsBuilder b) + updates]) = _$GUpdateFlareSolverrSessionTtlData_setSettings; + + static void _initializeBuilder( + GUpdateFlareSolverrSessionTtlData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateFlareSolverrSessionTtlData_setSettings_settings get settings; + static Serializer + get serializer => + _$gUpdateFlareSolverrSessionTtlDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateFlareSolverrSessionTtlData_setSettings.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrSessionTtlData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateFlareSolverrSessionTtlData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateFlareSolverrSessionTtlData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GUpdateFlareSolverrSessionTtlData_setSettings_settings._(); + + factory GUpdateFlareSolverrSessionTtlData_setSettings_settings( + [void Function( + GUpdateFlareSolverrSessionTtlData_setSettings_settingsBuilder b) + updates]) = _$GUpdateFlareSolverrSessionTtlData_setSettings_settings; + + static void _initializeBuilder( + GUpdateFlareSolverrSessionTtlData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + static Serializer + get serializer => + _$gUpdateFlareSolverrSessionTtlDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateFlareSolverrSessionTtlData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrSessionTtlData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateFlareSolverrSessionTtlData_setSettings_settings.serializer, + json, + ); +} + +abstract class GUpdateFlareSolverrTimeoutData + implements + Built { + GUpdateFlareSolverrTimeoutData._(); + + factory GUpdateFlareSolverrTimeoutData( + [void Function(GUpdateFlareSolverrTimeoutDataBuilder b) updates]) = + _$GUpdateFlareSolverrTimeoutData; + + static void _initializeBuilder(GUpdateFlareSolverrTimeoutDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateFlareSolverrTimeoutData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateFlareSolverrTimeoutDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateFlareSolverrTimeoutData.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrTimeoutData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateFlareSolverrTimeoutData.serializer, + json, + ); +} + +abstract class GUpdateFlareSolverrTimeoutData_setSettings + implements + Built { + GUpdateFlareSolverrTimeoutData_setSettings._(); + + factory GUpdateFlareSolverrTimeoutData_setSettings( + [void Function(GUpdateFlareSolverrTimeoutData_setSettingsBuilder b) + updates]) = _$GUpdateFlareSolverrTimeoutData_setSettings; + + static void _initializeBuilder( + GUpdateFlareSolverrTimeoutData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateFlareSolverrTimeoutData_setSettings_settings get settings; + static Serializer + get serializer => _$gUpdateFlareSolverrTimeoutDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateFlareSolverrTimeoutData_setSettings.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrTimeoutData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateFlareSolverrTimeoutData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateFlareSolverrTimeoutData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GUpdateFlareSolverrTimeoutData_setSettings_settings._(); + + factory GUpdateFlareSolverrTimeoutData_setSettings_settings( + [void Function( + GUpdateFlareSolverrTimeoutData_setSettings_settingsBuilder b) + updates]) = _$GUpdateFlareSolverrTimeoutData_setSettings_settings; + + static void _initializeBuilder( + GUpdateFlareSolverrTimeoutData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + static Serializer + get serializer => + _$gUpdateFlareSolverrTimeoutDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateFlareSolverrTimeoutData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrTimeoutData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateFlareSolverrTimeoutData_setSettings_settings.serializer, + json, + ); +} + +abstract class GUpdateFlareSolverrUrlData + implements + Built { + GUpdateFlareSolverrUrlData._(); + + factory GUpdateFlareSolverrUrlData( + [void Function(GUpdateFlareSolverrUrlDataBuilder b) updates]) = + _$GUpdateFlareSolverrUrlData; + + static void _initializeBuilder(GUpdateFlareSolverrUrlDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateFlareSolverrUrlData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateFlareSolverrUrlDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateFlareSolverrUrlData.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrUrlData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateFlareSolverrUrlData.serializer, + json, + ); +} + +abstract class GUpdateFlareSolverrUrlData_setSettings + implements + Built { + GUpdateFlareSolverrUrlData_setSettings._(); + + factory GUpdateFlareSolverrUrlData_setSettings( + [void Function(GUpdateFlareSolverrUrlData_setSettingsBuilder b) + updates]) = _$GUpdateFlareSolverrUrlData_setSettings; + + static void _initializeBuilder( + GUpdateFlareSolverrUrlData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateFlareSolverrUrlData_setSettings_settings get settings; + static Serializer get serializer => + _$gUpdateFlareSolverrUrlDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateFlareSolverrUrlData_setSettings.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrUrlData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateFlareSolverrUrlData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateFlareSolverrUrlData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GUpdateFlareSolverrUrlData_setSettings_settings._(); + + factory GUpdateFlareSolverrUrlData_setSettings_settings( + [void Function(GUpdateFlareSolverrUrlData_setSettings_settingsBuilder b) + updates]) = _$GUpdateFlareSolverrUrlData_setSettings_settings; + + static void _initializeBuilder( + GUpdateFlareSolverrUrlData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + static Serializer + get serializer => + _$gUpdateFlareSolverrUrlDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateFlareSolverrUrlData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrUrlData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateFlareSolverrUrlData_setSettings_settings.serializer, + json, + ); +} + +abstract class GToggleDebugLogsData + implements Built { + GToggleDebugLogsData._(); + + factory GToggleDebugLogsData( + [void Function(GToggleDebugLogsDataBuilder b) updates]) = + _$GToggleDebugLogsData; + + static void _initializeBuilder(GToggleDebugLogsDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GToggleDebugLogsData_setSettings get setSettings; + static Serializer get serializer => + _$gToggleDebugLogsDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleDebugLogsData.serializer, + this, + ) as Map); + + static GToggleDebugLogsData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GToggleDebugLogsData.serializer, + json, + ); +} + +abstract class GToggleDebugLogsData_setSettings + implements + Built { + GToggleDebugLogsData_setSettings._(); + + factory GToggleDebugLogsData_setSettings( + [void Function(GToggleDebugLogsData_setSettingsBuilder b) updates]) = + _$GToggleDebugLogsData_setSettings; + + static void _initializeBuilder(GToggleDebugLogsData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GToggleDebugLogsData_setSettings_settings get settings; + static Serializer get serializer => + _$gToggleDebugLogsDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleDebugLogsData_setSettings.serializer, + this, + ) as Map); + + static GToggleDebugLogsData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GToggleDebugLogsData_setSettings.serializer, + json, + ); +} + +abstract class GToggleDebugLogsData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GToggleDebugLogsData_setSettings_settings._(); + + factory GToggleDebugLogsData_setSettings_settings( + [void Function(GToggleDebugLogsData_setSettings_settingsBuilder b) + updates]) = _$GToggleDebugLogsData_setSettings_settings; + + static void _initializeBuilder( + GToggleDebugLogsData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + static Serializer get serializer => + _$gToggleDebugLogsDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GToggleDebugLogsData_setSettings_settings.serializer, + this, + ) as Map); + + static GToggleDebugLogsData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GToggleDebugLogsData_setSettings_settings.serializer, + json, + ); +} + +abstract class GToggleGqlDebugLogsData + implements Built { + GToggleGqlDebugLogsData._(); + + factory GToggleGqlDebugLogsData( + [void Function(GToggleGqlDebugLogsDataBuilder b) updates]) = + _$GToggleGqlDebugLogsData; + + static void _initializeBuilder(GToggleGqlDebugLogsDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GToggleGqlDebugLogsData_setSettings get setSettings; + static Serializer get serializer => + _$gToggleGqlDebugLogsDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleGqlDebugLogsData.serializer, + this, + ) as Map); + + static GToggleGqlDebugLogsData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GToggleGqlDebugLogsData.serializer, + json, + ); +} + +abstract class GToggleGqlDebugLogsData_setSettings + implements + Built { + GToggleGqlDebugLogsData_setSettings._(); + + factory GToggleGqlDebugLogsData_setSettings( + [void Function(GToggleGqlDebugLogsData_setSettingsBuilder b) + updates]) = _$GToggleGqlDebugLogsData_setSettings; + + static void _initializeBuilder( + GToggleGqlDebugLogsData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GToggleGqlDebugLogsData_setSettings_settings get settings; + static Serializer get serializer => + _$gToggleGqlDebugLogsDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleGqlDebugLogsData_setSettings.serializer, + this, + ) as Map); + + static GToggleGqlDebugLogsData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GToggleGqlDebugLogsData_setSettings.serializer, + json, + ); +} + +abstract class GToggleGqlDebugLogsData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GToggleGqlDebugLogsData_setSettings_settings._(); + + factory GToggleGqlDebugLogsData_setSettings_settings( + [void Function(GToggleGqlDebugLogsData_setSettings_settingsBuilder b) + updates]) = _$GToggleGqlDebugLogsData_setSettings_settings; + + static void _initializeBuilder( + GToggleGqlDebugLogsData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + static Serializer + get serializer => _$gToggleGqlDebugLogsDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GToggleGqlDebugLogsData_setSettings_settings.serializer, + this, + ) as Map); + + static GToggleGqlDebugLogsData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GToggleGqlDebugLogsData_setSettings_settings.serializer, + json, + ); +} + +abstract class GToggleSystemTrayEnabledData + implements + Built { + GToggleSystemTrayEnabledData._(); + + factory GToggleSystemTrayEnabledData( + [void Function(GToggleSystemTrayEnabledDataBuilder b) updates]) = + _$GToggleSystemTrayEnabledData; + + static void _initializeBuilder(GToggleSystemTrayEnabledDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GToggleSystemTrayEnabledData_setSettings get setSettings; + static Serializer get serializer => + _$gToggleSystemTrayEnabledDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleSystemTrayEnabledData.serializer, + this, + ) as Map); + + static GToggleSystemTrayEnabledData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GToggleSystemTrayEnabledData.serializer, + json, + ); +} + +abstract class GToggleSystemTrayEnabledData_setSettings + implements + Built { + GToggleSystemTrayEnabledData_setSettings._(); + + factory GToggleSystemTrayEnabledData_setSettings( + [void Function(GToggleSystemTrayEnabledData_setSettingsBuilder b) + updates]) = _$GToggleSystemTrayEnabledData_setSettings; + + static void _initializeBuilder( + GToggleSystemTrayEnabledData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GToggleSystemTrayEnabledData_setSettings_settings get settings; + static Serializer get serializer => + _$gToggleSystemTrayEnabledDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleSystemTrayEnabledData_setSettings.serializer, + this, + ) as Map); + + static GToggleSystemTrayEnabledData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GToggleSystemTrayEnabledData_setSettings.serializer, + json, + ); +} + +abstract class GToggleSystemTrayEnabledData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GToggleSystemTrayEnabledData_setSettings_settings._(); + + factory GToggleSystemTrayEnabledData_setSettings_settings( + [void Function(GToggleSystemTrayEnabledData_setSettings_settingsBuilder b) + updates]) = _$GToggleSystemTrayEnabledData_setSettings_settings; + + static void _initializeBuilder( + GToggleSystemTrayEnabledData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + static Serializer + get serializer => + _$gToggleSystemTrayEnabledDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GToggleSystemTrayEnabledData_setSettings_settings.serializer, + this, + ) as Map); + + static GToggleSystemTrayEnabledData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GToggleSystemTrayEnabledData_setSettings_settings.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/__generated__/server_settings_query.data.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/__generated__/server_settings_query.data.gql.g.dart new file mode 100644 index 00000000..5cedcdb5 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/__generated__/server_settings_query.data.gql.g.dart @@ -0,0 +1,16961 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'server_settings_query.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateServerIpDataSerializer = + new _$GUpdateServerIpDataSerializer(); +Serializer + _$gUpdateServerIpDataSetSettingsSerializer = + new _$GUpdateServerIpData_setSettingsSerializer(); +Serializer + _$gUpdateServerIpDataSetSettingsSettingsSerializer = + new _$GUpdateServerIpData_setSettings_settingsSerializer(); +Serializer _$gUpdatePortDataSerializer = + new _$GUpdatePortDataSerializer(); +Serializer _$gUpdatePortDataSetSettingsSerializer = + new _$GUpdatePortData_setSettingsSerializer(); +Serializer + _$gUpdatePortDataSetSettingsSettingsSerializer = + new _$GUpdatePortData_setSettings_settingsSerializer(); +Serializer _$gToggleSocksProxyDataSerializer = + new _$GToggleSocksProxyDataSerializer(); +Serializer + _$gToggleSocksProxyDataSetSettingsSerializer = + new _$GToggleSocksProxyData_setSettingsSerializer(); +Serializer + _$gToggleSocksProxyDataSetSettingsSettingsSerializer = + new _$GToggleSocksProxyData_setSettings_settingsSerializer(); +Serializer _$gUpdateSocksVersionDataSerializer = + new _$GUpdateSocksVersionDataSerializer(); +Serializer + _$gUpdateSocksVersionDataSetSettingsSerializer = + new _$GUpdateSocksVersionData_setSettingsSerializer(); +Serializer + _$gUpdateSocksVersionDataSetSettingsSettingsSerializer = + new _$GUpdateSocksVersionData_setSettings_settingsSerializer(); +Serializer _$gUpdateSocksHostDataSerializer = + new _$GUpdateSocksHostDataSerializer(); +Serializer + _$gUpdateSocksHostDataSetSettingsSerializer = + new _$GUpdateSocksHostData_setSettingsSerializer(); +Serializer + _$gUpdateSocksHostDataSetSettingsSettingsSerializer = + new _$GUpdateSocksHostData_setSettings_settingsSerializer(); +Serializer _$gUpdateSocksUserNameDataSerializer = + new _$GUpdateSocksUserNameDataSerializer(); +Serializer + _$gUpdateSocksUserNameDataSetSettingsSerializer = + new _$GUpdateSocksUserNameData_setSettingsSerializer(); +Serializer + _$gUpdateSocksUserNameDataSetSettingsSettingsSerializer = + new _$GUpdateSocksUserNameData_setSettings_settingsSerializer(); +Serializer _$gUpdateSocksPasswordDataSerializer = + new _$GUpdateSocksPasswordDataSerializer(); +Serializer + _$gUpdateSocksPasswordDataSetSettingsSerializer = + new _$GUpdateSocksPasswordData_setSettingsSerializer(); +Serializer + _$gUpdateSocksPasswordDataSetSettingsSettingsSerializer = + new _$GUpdateSocksPasswordData_setSettings_settingsSerializer(); +Serializer _$gUpdateSocksPortDataSerializer = + new _$GUpdateSocksPortDataSerializer(); +Serializer + _$gUpdateSocksPortDataSetSettingsSerializer = + new _$GUpdateSocksPortData_setSettingsSerializer(); +Serializer + _$gUpdateSocksPortDataSetSettingsSettingsSerializer = + new _$GUpdateSocksPortData_setSettings_settingsSerializer(); +Serializer _$gToggleFlareSolverrDataSerializer = + new _$GToggleFlareSolverrDataSerializer(); +Serializer + _$gToggleFlareSolverrDataSetSettingsSerializer = + new _$GToggleFlareSolverrData_setSettingsSerializer(); +Serializer + _$gToggleFlareSolverrDataSetSettingsSettingsSerializer = + new _$GToggleFlareSolverrData_setSettings_settingsSerializer(); +Serializer + _$gUpdateFlareSolverrSessionNameDataSerializer = + new _$GUpdateFlareSolverrSessionNameDataSerializer(); +Serializer + _$gUpdateFlareSolverrSessionNameDataSetSettingsSerializer = + new _$GUpdateFlareSolverrSessionNameData_setSettingsSerializer(); +Serializer + _$gUpdateFlareSolverrSessionNameDataSetSettingsSettingsSerializer = + new _$GUpdateFlareSolverrSessionNameData_setSettings_settingsSerializer(); +Serializer + _$gUpdateFlareSolverrSessionTtlDataSerializer = + new _$GUpdateFlareSolverrSessionTtlDataSerializer(); +Serializer + _$gUpdateFlareSolverrSessionTtlDataSetSettingsSerializer = + new _$GUpdateFlareSolverrSessionTtlData_setSettingsSerializer(); +Serializer + _$gUpdateFlareSolverrSessionTtlDataSetSettingsSettingsSerializer = + new _$GUpdateFlareSolverrSessionTtlData_setSettings_settingsSerializer(); +Serializer + _$gUpdateFlareSolverrTimeoutDataSerializer = + new _$GUpdateFlareSolverrTimeoutDataSerializer(); +Serializer + _$gUpdateFlareSolverrTimeoutDataSetSettingsSerializer = + new _$GUpdateFlareSolverrTimeoutData_setSettingsSerializer(); +Serializer + _$gUpdateFlareSolverrTimeoutDataSetSettingsSettingsSerializer = + new _$GUpdateFlareSolverrTimeoutData_setSettings_settingsSerializer(); +Serializer _$gUpdateFlareSolverrUrlDataSerializer = + new _$GUpdateFlareSolverrUrlDataSerializer(); +Serializer + _$gUpdateFlareSolverrUrlDataSetSettingsSerializer = + new _$GUpdateFlareSolverrUrlData_setSettingsSerializer(); +Serializer + _$gUpdateFlareSolverrUrlDataSetSettingsSettingsSerializer = + new _$GUpdateFlareSolverrUrlData_setSettings_settingsSerializer(); +Serializer _$gToggleDebugLogsDataSerializer = + new _$GToggleDebugLogsDataSerializer(); +Serializer + _$gToggleDebugLogsDataSetSettingsSerializer = + new _$GToggleDebugLogsData_setSettingsSerializer(); +Serializer + _$gToggleDebugLogsDataSetSettingsSettingsSerializer = + new _$GToggleDebugLogsData_setSettings_settingsSerializer(); +Serializer _$gToggleGqlDebugLogsDataSerializer = + new _$GToggleGqlDebugLogsDataSerializer(); +Serializer + _$gToggleGqlDebugLogsDataSetSettingsSerializer = + new _$GToggleGqlDebugLogsData_setSettingsSerializer(); +Serializer + _$gToggleGqlDebugLogsDataSetSettingsSettingsSerializer = + new _$GToggleGqlDebugLogsData_setSettings_settingsSerializer(); +Serializer + _$gToggleSystemTrayEnabledDataSerializer = + new _$GToggleSystemTrayEnabledDataSerializer(); +Serializer + _$gToggleSystemTrayEnabledDataSetSettingsSerializer = + new _$GToggleSystemTrayEnabledData_setSettingsSerializer(); +Serializer + _$gToggleSystemTrayEnabledDataSetSettingsSettingsSerializer = + new _$GToggleSystemTrayEnabledData_setSettings_settingsSerializer(); + +class _$GUpdateServerIpDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateServerIpData, + _$GUpdateServerIpData + ]; + @override + final String wireName = 'GUpdateServerIpData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateServerIpData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GUpdateServerIpData_setSettings)), + ]; + + return result; + } + + @override + GUpdateServerIpData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateServerIpDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateServerIpData_setSettings))! + as GUpdateServerIpData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateServerIpData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateServerIpData_setSettings, + _$GUpdateServerIpData_setSettings + ]; + @override + final String wireName = 'GUpdateServerIpData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateServerIpData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GUpdateServerIpData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateServerIpData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateServerIpData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateServerIpData_setSettings_settings))! + as GUpdateServerIpData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateServerIpData_setSettings_settingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateServerIpData_setSettings_settings, + _$GUpdateServerIpData_setSettings_settings + ]; + @override + final String wireName = 'GUpdateServerIpData_setSettings_settings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateServerIpData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GUpdateServerIpData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateServerIpData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GUpdatePortDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GUpdatePortData, _$GUpdatePortData]; + @override + final String wireName = 'GUpdatePortData'; + + @override + Iterable serialize(Serializers serializers, GUpdatePortData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GUpdatePortData_setSettings)), + ]; + + return result; + } + + @override + GUpdatePortData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdatePortDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: const FullType(GUpdatePortData_setSettings))! + as GUpdatePortData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdatePortData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdatePortData_setSettings, + _$GUpdatePortData_setSettings + ]; + @override + final String wireName = 'GUpdatePortData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GUpdatePortData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: const FullType(GUpdatePortData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdatePortData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdatePortData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdatePortData_setSettings_settings))! + as GUpdatePortData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdatePortData_setSettings_settingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdatePortData_setSettings_settings, + _$GUpdatePortData_setSettings_settings + ]; + @override + final String wireName = 'GUpdatePortData_setSettings_settings'; + + @override + Iterable serialize( + Serializers serializers, GUpdatePortData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GUpdatePortData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdatePortData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GToggleSocksProxyDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleSocksProxyData, + _$GToggleSocksProxyData + ]; + @override + final String wireName = 'GToggleSocksProxyData'; + + @override + Iterable serialize( + Serializers serializers, GToggleSocksProxyData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GToggleSocksProxyData_setSettings)), + ]; + + return result; + } + + @override + GToggleSocksProxyData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleSocksProxyDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GToggleSocksProxyData_setSettings))! + as GToggleSocksProxyData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GToggleSocksProxyData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleSocksProxyData_setSettings, + _$GToggleSocksProxyData_setSettings + ]; + @override + final String wireName = 'GToggleSocksProxyData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GToggleSocksProxyData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GToggleSocksProxyData_setSettings_settings)), + ]; + + return result; + } + + @override + GToggleSocksProxyData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleSocksProxyData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GToggleSocksProxyData_setSettings_settings))! + as GToggleSocksProxyData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GToggleSocksProxyData_setSettings_settingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GToggleSocksProxyData_setSettings_settings, + _$GToggleSocksProxyData_setSettings_settings + ]; + @override + final String wireName = 'GToggleSocksProxyData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GToggleSocksProxyData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GToggleSocksProxyData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleSocksProxyData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksVersionDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksVersionData, + _$GUpdateSocksVersionData + ]; + @override + final String wireName = 'GUpdateSocksVersionData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksVersionData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GUpdateSocksVersionData_setSettings)), + ]; + + return result; + } + + @override + GUpdateSocksVersionData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksVersionDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateSocksVersionData_setSettings))! + as GUpdateSocksVersionData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksVersionData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksVersionData_setSettings, + _$GUpdateSocksVersionData_setSettings + ]; + @override + final String wireName = 'GUpdateSocksVersionData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksVersionData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GUpdateSocksVersionData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateSocksVersionData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksVersionData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateSocksVersionData_setSettings_settings))! + as GUpdateSocksVersionData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksVersionData_setSettings_settingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksVersionData_setSettings_settings, + _$GUpdateSocksVersionData_setSettings_settings + ]; + @override + final String wireName = 'GUpdateSocksVersionData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateSocksVersionData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GUpdateSocksVersionData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksVersionData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksHostDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksHostData, + _$GUpdateSocksHostData + ]; + @override + final String wireName = 'GUpdateSocksHostData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksHostData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GUpdateSocksHostData_setSettings)), + ]; + + return result; + } + + @override + GUpdateSocksHostData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksHostDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateSocksHostData_setSettings))! + as GUpdateSocksHostData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksHostData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksHostData_setSettings, + _$GUpdateSocksHostData_setSettings + ]; + @override + final String wireName = 'GUpdateSocksHostData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksHostData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GUpdateSocksHostData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateSocksHostData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksHostData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateSocksHostData_setSettings_settings))! + as GUpdateSocksHostData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksHostData_setSettings_settingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksHostData_setSettings_settings, + _$GUpdateSocksHostData_setSettings_settings + ]; + @override + final String wireName = 'GUpdateSocksHostData_setSettings_settings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksHostData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GUpdateSocksHostData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksHostData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksUserNameDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksUserNameData, + _$GUpdateSocksUserNameData + ]; + @override + final String wireName = 'GUpdateSocksUserNameData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksUserNameData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GUpdateSocksUserNameData_setSettings)), + ]; + + return result; + } + + @override + GUpdateSocksUserNameData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksUserNameDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateSocksUserNameData_setSettings))! + as GUpdateSocksUserNameData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksUserNameData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksUserNameData_setSettings, + _$GUpdateSocksUserNameData_setSettings + ]; + @override + final String wireName = 'GUpdateSocksUserNameData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksUserNameData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GUpdateSocksUserNameData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateSocksUserNameData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksUserNameData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateSocksUserNameData_setSettings_settings))! + as GUpdateSocksUserNameData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksUserNameData_setSettings_settingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksUserNameData_setSettings_settings, + _$GUpdateSocksUserNameData_setSettings_settings + ]; + @override + final String wireName = 'GUpdateSocksUserNameData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateSocksUserNameData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GUpdateSocksUserNameData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksUserNameData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksPasswordDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksPasswordData, + _$GUpdateSocksPasswordData + ]; + @override + final String wireName = 'GUpdateSocksPasswordData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksPasswordData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GUpdateSocksPasswordData_setSettings)), + ]; + + return result; + } + + @override + GUpdateSocksPasswordData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksPasswordDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateSocksPasswordData_setSettings))! + as GUpdateSocksPasswordData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksPasswordData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksPasswordData_setSettings, + _$GUpdateSocksPasswordData_setSettings + ]; + @override + final String wireName = 'GUpdateSocksPasswordData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksPasswordData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GUpdateSocksPasswordData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateSocksPasswordData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksPasswordData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateSocksPasswordData_setSettings_settings))! + as GUpdateSocksPasswordData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksPasswordData_setSettings_settingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksPasswordData_setSettings_settings, + _$GUpdateSocksPasswordData_setSettings_settings + ]; + @override + final String wireName = 'GUpdateSocksPasswordData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateSocksPasswordData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GUpdateSocksPasswordData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksPasswordData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksPortDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksPortData, + _$GUpdateSocksPortData + ]; + @override + final String wireName = 'GUpdateSocksPortData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksPortData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GUpdateSocksPortData_setSettings)), + ]; + + return result; + } + + @override + GUpdateSocksPortData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksPortDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateSocksPortData_setSettings))! + as GUpdateSocksPortData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksPortData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksPortData_setSettings, + _$GUpdateSocksPortData_setSettings + ]; + @override + final String wireName = 'GUpdateSocksPortData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksPortData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GUpdateSocksPortData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateSocksPortData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksPortData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateSocksPortData_setSettings_settings))! + as GUpdateSocksPortData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksPortData_setSettings_settingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksPortData_setSettings_settings, + _$GUpdateSocksPortData_setSettings_settings + ]; + @override + final String wireName = 'GUpdateSocksPortData_setSettings_settings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksPortData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GUpdateSocksPortData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksPortData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GToggleFlareSolverrDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleFlareSolverrData, + _$GToggleFlareSolverrData + ]; + @override + final String wireName = 'GToggleFlareSolverrData'; + + @override + Iterable serialize( + Serializers serializers, GToggleFlareSolverrData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GToggleFlareSolverrData_setSettings)), + ]; + + return result; + } + + @override + GToggleFlareSolverrData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleFlareSolverrDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GToggleFlareSolverrData_setSettings))! + as GToggleFlareSolverrData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GToggleFlareSolverrData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleFlareSolverrData_setSettings, + _$GToggleFlareSolverrData_setSettings + ]; + @override + final String wireName = 'GToggleFlareSolverrData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GToggleFlareSolverrData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GToggleFlareSolverrData_setSettings_settings)), + ]; + + return result; + } + + @override + GToggleFlareSolverrData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleFlareSolverrData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GToggleFlareSolverrData_setSettings_settings))! + as GToggleFlareSolverrData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GToggleFlareSolverrData_setSettings_settingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GToggleFlareSolverrData_setSettings_settings, + _$GToggleFlareSolverrData_setSettings_settings + ]; + @override + final String wireName = 'GToggleFlareSolverrData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GToggleFlareSolverrData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GToggleFlareSolverrData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleFlareSolverrData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrSessionNameDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateFlareSolverrSessionNameData, + _$GUpdateFlareSolverrSessionNameData + ]; + @override + final String wireName = 'GUpdateFlareSolverrSessionNameData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateFlareSolverrSessionNameData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: + const FullType(GUpdateFlareSolverrSessionNameData_setSettings)), + ]; + + return result; + } + + @override + GUpdateFlareSolverrSessionNameData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateFlareSolverrSessionNameDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateFlareSolverrSessionNameData_setSettings))! + as GUpdateFlareSolverrSessionNameData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrSessionNameData_setSettingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GUpdateFlareSolverrSessionNameData_setSettings, + _$GUpdateFlareSolverrSessionNameData_setSettings + ]; + @override + final String wireName = 'GUpdateFlareSolverrSessionNameData_setSettings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateFlareSolverrSessionNameData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: const FullType( + GUpdateFlareSolverrSessionNameData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateFlareSolverrSessionNameData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateFlareSolverrSessionNameData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateFlareSolverrSessionNameData_setSettings_settings))! + as GUpdateFlareSolverrSessionNameData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrSessionNameData_setSettings_settingsSerializer + implements + StructuredSerializer< + GUpdateFlareSolverrSessionNameData_setSettings_settings> { + @override + final Iterable types = const [ + GUpdateFlareSolverrSessionNameData_setSettings_settings, + _$GUpdateFlareSolverrSessionNameData_setSettings_settings + ]; + @override + final String wireName = + 'GUpdateFlareSolverrSessionNameData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateFlareSolverrSessionNameData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GUpdateFlareSolverrSessionNameData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GUpdateFlareSolverrSessionNameData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrSessionTtlDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateFlareSolverrSessionTtlData, + _$GUpdateFlareSolverrSessionTtlData + ]; + @override + final String wireName = 'GUpdateFlareSolverrSessionTtlData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateFlareSolverrSessionTtlData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: + const FullType(GUpdateFlareSolverrSessionTtlData_setSettings)), + ]; + + return result; + } + + @override + GUpdateFlareSolverrSessionTtlData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateFlareSolverrSessionTtlDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateFlareSolverrSessionTtlData_setSettings))! + as GUpdateFlareSolverrSessionTtlData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrSessionTtlData_setSettingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GUpdateFlareSolverrSessionTtlData_setSettings, + _$GUpdateFlareSolverrSessionTtlData_setSettings + ]; + @override + final String wireName = 'GUpdateFlareSolverrSessionTtlData_setSettings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateFlareSolverrSessionTtlData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: const FullType( + GUpdateFlareSolverrSessionTtlData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateFlareSolverrSessionTtlData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateFlareSolverrSessionTtlData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateFlareSolverrSessionTtlData_setSettings_settings))! + as GUpdateFlareSolverrSessionTtlData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrSessionTtlData_setSettings_settingsSerializer + implements + StructuredSerializer< + GUpdateFlareSolverrSessionTtlData_setSettings_settings> { + @override + final Iterable types = const [ + GUpdateFlareSolverrSessionTtlData_setSettings_settings, + _$GUpdateFlareSolverrSessionTtlData_setSettings_settings + ]; + @override + final String wireName = + 'GUpdateFlareSolverrSessionTtlData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateFlareSolverrSessionTtlData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GUpdateFlareSolverrSessionTtlData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GUpdateFlareSolverrSessionTtlData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrTimeoutDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateFlareSolverrTimeoutData, + _$GUpdateFlareSolverrTimeoutData + ]; + @override + final String wireName = 'GUpdateFlareSolverrTimeoutData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateFlareSolverrTimeoutData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: + const FullType(GUpdateFlareSolverrTimeoutData_setSettings)), + ]; + + return result; + } + + @override + GUpdateFlareSolverrTimeoutData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateFlareSolverrTimeoutDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateFlareSolverrTimeoutData_setSettings))! + as GUpdateFlareSolverrTimeoutData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrTimeoutData_setSettingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GUpdateFlareSolverrTimeoutData_setSettings, + _$GUpdateFlareSolverrTimeoutData_setSettings + ]; + @override + final String wireName = 'GUpdateFlareSolverrTimeoutData_setSettings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateFlareSolverrTimeoutData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: const FullType( + GUpdateFlareSolverrTimeoutData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateFlareSolverrTimeoutData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateFlareSolverrTimeoutData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateFlareSolverrTimeoutData_setSettings_settings))! + as GUpdateFlareSolverrTimeoutData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrTimeoutData_setSettings_settingsSerializer + implements + StructuredSerializer< + GUpdateFlareSolverrTimeoutData_setSettings_settings> { + @override + final Iterable types = const [ + GUpdateFlareSolverrTimeoutData_setSettings_settings, + _$GUpdateFlareSolverrTimeoutData_setSettings_settings + ]; + @override + final String wireName = 'GUpdateFlareSolverrTimeoutData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateFlareSolverrTimeoutData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GUpdateFlareSolverrTimeoutData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GUpdateFlareSolverrTimeoutData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrUrlDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateFlareSolverrUrlData, + _$GUpdateFlareSolverrUrlData + ]; + @override + final String wireName = 'GUpdateFlareSolverrUrlData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateFlareSolverrUrlData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: + const FullType(GUpdateFlareSolverrUrlData_setSettings)), + ]; + + return result; + } + + @override + GUpdateFlareSolverrUrlData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateFlareSolverrUrlDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateFlareSolverrUrlData_setSettings))! + as GUpdateFlareSolverrUrlData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrUrlData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateFlareSolverrUrlData_setSettings, + _$GUpdateFlareSolverrUrlData_setSettings + ]; + @override + final String wireName = 'GUpdateFlareSolverrUrlData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateFlareSolverrUrlData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GUpdateFlareSolverrUrlData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateFlareSolverrUrlData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateFlareSolverrUrlData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateFlareSolverrUrlData_setSettings_settings))! + as GUpdateFlareSolverrUrlData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrUrlData_setSettings_settingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GUpdateFlareSolverrUrlData_setSettings_settings, + _$GUpdateFlareSolverrUrlData_setSettings_settings + ]; + @override + final String wireName = 'GUpdateFlareSolverrUrlData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateFlareSolverrUrlData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GUpdateFlareSolverrUrlData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateFlareSolverrUrlData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GToggleDebugLogsDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleDebugLogsData, + _$GToggleDebugLogsData + ]; + @override + final String wireName = 'GToggleDebugLogsData'; + + @override + Iterable serialize( + Serializers serializers, GToggleDebugLogsData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GToggleDebugLogsData_setSettings)), + ]; + + return result; + } + + @override + GToggleDebugLogsData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleDebugLogsDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GToggleDebugLogsData_setSettings))! + as GToggleDebugLogsData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GToggleDebugLogsData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleDebugLogsData_setSettings, + _$GToggleDebugLogsData_setSettings + ]; + @override + final String wireName = 'GToggleDebugLogsData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GToggleDebugLogsData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GToggleDebugLogsData_setSettings_settings)), + ]; + + return result; + } + + @override + GToggleDebugLogsData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleDebugLogsData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GToggleDebugLogsData_setSettings_settings))! + as GToggleDebugLogsData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GToggleDebugLogsData_setSettings_settingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleDebugLogsData_setSettings_settings, + _$GToggleDebugLogsData_setSettings_settings + ]; + @override + final String wireName = 'GToggleDebugLogsData_setSettings_settings'; + + @override + Iterable serialize( + Serializers serializers, GToggleDebugLogsData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GToggleDebugLogsData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleDebugLogsData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GToggleGqlDebugLogsDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleGqlDebugLogsData, + _$GToggleGqlDebugLogsData + ]; + @override + final String wireName = 'GToggleGqlDebugLogsData'; + + @override + Iterable serialize( + Serializers serializers, GToggleGqlDebugLogsData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GToggleGqlDebugLogsData_setSettings)), + ]; + + return result; + } + + @override + GToggleGqlDebugLogsData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleGqlDebugLogsDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GToggleGqlDebugLogsData_setSettings))! + as GToggleGqlDebugLogsData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GToggleGqlDebugLogsData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleGqlDebugLogsData_setSettings, + _$GToggleGqlDebugLogsData_setSettings + ]; + @override + final String wireName = 'GToggleGqlDebugLogsData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GToggleGqlDebugLogsData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GToggleGqlDebugLogsData_setSettings_settings)), + ]; + + return result; + } + + @override + GToggleGqlDebugLogsData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleGqlDebugLogsData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GToggleGqlDebugLogsData_setSettings_settings))! + as GToggleGqlDebugLogsData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GToggleGqlDebugLogsData_setSettings_settingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GToggleGqlDebugLogsData_setSettings_settings, + _$GToggleGqlDebugLogsData_setSettings_settings + ]; + @override + final String wireName = 'GToggleGqlDebugLogsData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GToggleGqlDebugLogsData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GToggleGqlDebugLogsData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleGqlDebugLogsData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GToggleSystemTrayEnabledDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleSystemTrayEnabledData, + _$GToggleSystemTrayEnabledData + ]; + @override + final String wireName = 'GToggleSystemTrayEnabledData'; + + @override + Iterable serialize( + Serializers serializers, GToggleSystemTrayEnabledData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: + const FullType(GToggleSystemTrayEnabledData_setSettings)), + ]; + + return result; + } + + @override + GToggleSystemTrayEnabledData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleSystemTrayEnabledDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GToggleSystemTrayEnabledData_setSettings))! + as GToggleSystemTrayEnabledData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GToggleSystemTrayEnabledData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleSystemTrayEnabledData_setSettings, + _$GToggleSystemTrayEnabledData_setSettings + ]; + @override + final String wireName = 'GToggleSystemTrayEnabledData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GToggleSystemTrayEnabledData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: const FullType( + GToggleSystemTrayEnabledData_setSettings_settings)), + ]; + + return result; + } + + @override + GToggleSystemTrayEnabledData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleSystemTrayEnabledData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GToggleSystemTrayEnabledData_setSettings_settings))! + as GToggleSystemTrayEnabledData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GToggleSystemTrayEnabledData_setSettings_settingsSerializer + implements + StructuredSerializer< + GToggleSystemTrayEnabledData_setSettings_settings> { + @override + final Iterable types = const [ + GToggleSystemTrayEnabledData_setSettings_settings, + _$GToggleSystemTrayEnabledData_setSettings_settings + ]; + @override + final String wireName = 'GToggleSystemTrayEnabledData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GToggleSystemTrayEnabledData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GToggleSystemTrayEnabledData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GToggleSystemTrayEnabledData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateServerIpData extends GUpdateServerIpData { + @override + final String G__typename; + @override + final GUpdateServerIpData_setSettings setSettings; + + factory _$GUpdateServerIpData( + [void Function(GUpdateServerIpDataBuilder)? updates]) => + (new GUpdateServerIpDataBuilder()..update(updates))._build(); + + _$GUpdateServerIpData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateServerIpData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateServerIpData', 'setSettings'); + } + + @override + GUpdateServerIpData rebuild( + void Function(GUpdateServerIpDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateServerIpDataBuilder toBuilder() => + new GUpdateServerIpDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateServerIpData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateServerIpData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateServerIpDataBuilder + implements Builder { + _$GUpdateServerIpData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateServerIpData_setSettingsBuilder? _setSettings; + GUpdateServerIpData_setSettingsBuilder get setSettings => + _$this._setSettings ??= new GUpdateServerIpData_setSettingsBuilder(); + set setSettings(GUpdateServerIpData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateServerIpDataBuilder() { + GUpdateServerIpData._initializeBuilder(this); + } + + GUpdateServerIpDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateServerIpData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateServerIpData; + } + + @override + void update(void Function(GUpdateServerIpDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateServerIpData build() => _build(); + + _$GUpdateServerIpData _build() { + _$GUpdateServerIpData _$result; + try { + _$result = _$v ?? + new _$GUpdateServerIpData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateServerIpData', 'G__typename'), + setSettings: setSettings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateServerIpData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateServerIpData_setSettings + extends GUpdateServerIpData_setSettings { + @override + final String G__typename; + @override + final GUpdateServerIpData_setSettings_settings settings; + + factory _$GUpdateServerIpData_setSettings( + [void Function(GUpdateServerIpData_setSettingsBuilder)? updates]) => + (new GUpdateServerIpData_setSettingsBuilder()..update(updates))._build(); + + _$GUpdateServerIpData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateServerIpData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateServerIpData_setSettings', 'settings'); + } + + @override + GUpdateServerIpData_setSettings rebuild( + void Function(GUpdateServerIpData_setSettingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateServerIpData_setSettingsBuilder toBuilder() => + new GUpdateServerIpData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateServerIpData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateServerIpData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateServerIpData_setSettingsBuilder + implements + Builder { + _$GUpdateServerIpData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateServerIpData_setSettings_settingsBuilder? _settings; + GUpdateServerIpData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateServerIpData_setSettings_settingsBuilder(); + set settings(GUpdateServerIpData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GUpdateServerIpData_setSettingsBuilder() { + GUpdateServerIpData_setSettings._initializeBuilder(this); + } + + GUpdateServerIpData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateServerIpData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateServerIpData_setSettings; + } + + @override + void update(void Function(GUpdateServerIpData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateServerIpData_setSettings build() => _build(); + + _$GUpdateServerIpData_setSettings _build() { + _$GUpdateServerIpData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateServerIpData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateServerIpData_setSettings', 'G__typename'), + settings: settings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateServerIpData_setSettings', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateServerIpData_setSettings_settings + extends GUpdateServerIpData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + + factory _$GUpdateServerIpData_setSettings_settings( + [void Function(GUpdateServerIpData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateServerIpData_setSettings_settingsBuilder()..update(updates)) + ._build(); + + _$GUpdateServerIpData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateServerIpData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GUpdateServerIpData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull( + backupPath, r'GUpdateServerIpData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GUpdateServerIpData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull( + backupTime, r'GUpdateServerIpData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateServerIpData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateServerIpData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, + r'GUpdateServerIpData_setSettings_settings', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GUpdateServerIpData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull(socksProxyPassword, + r'GUpdateServerIpData_setSettings_settings', 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GUpdateServerIpData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull(socksProxyUsername, + r'GUpdateServerIpData_setSettings_settings', 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull(socksProxyVersion, + r'GUpdateServerIpData_setSettings_settings', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, + r'GUpdateServerIpData_setSettings_settings', 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull(flareSolverrSessionName, + r'GUpdateServerIpData_setSettings_settings', 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, + r'GUpdateServerIpData_setSettings_settings', 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, + r'GUpdateServerIpData_setSettings_settings', 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GUpdateServerIpData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GUpdateServerIpData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, + r'GUpdateServerIpData_setSettings_settings', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, + r'GUpdateServerIpData_setSettings_settings', 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GUpdateServerIpData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, + r'GUpdateServerIpData_setSettings_settings', 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GUpdateServerIpData_setSettings_settings', 'localSourcePath'); + } + + @override + GUpdateServerIpData_setSettings_settings rebuild( + void Function(GUpdateServerIpData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateServerIpData_setSettings_settingsBuilder toBuilder() => + new GUpdateServerIpData_setSettings_settingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateServerIpData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateServerIpData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath)) + .toString(); + } +} + +class GUpdateServerIpData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateServerIpData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + GUpdateServerIpData_setSettings_settingsBuilder() { + GUpdateServerIpData_setSettings_settings._initializeBuilder(this); + } + + GUpdateServerIpData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateServerIpData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateServerIpData_setSettings_settings; + } + + @override + void update( + void Function(GUpdateServerIpData_setSettings_settingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateServerIpData_setSettings_settings build() => _build(); + + _$GUpdateServerIpData_setSettings_settings _build() { + _$GUpdateServerIpData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateServerIpData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateServerIpData_setSettings_settings', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateServerIpData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, r'GUpdateServerIpData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GUpdateServerIpData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, r'GUpdateServerIpData_setSettings_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateServerIpData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull(port, r'GUpdateServerIpData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, r'GUpdateServerIpData_setSettings_settings', 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull(socksProxyHost, r'GUpdateServerIpData_setSettings_settings', 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull(socksProxyPassword, r'GUpdateServerIpData_setSettings_settings', 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull(socksProxyPort, r'GUpdateServerIpData_setSettings_settings', 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull(socksProxyUsername, r'GUpdateServerIpData_setSettings_settings', 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull(socksProxyVersion, r'GUpdateServerIpData_setSettings_settings', 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, r'GUpdateServerIpData_setSettings_settings', 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionName, r'GUpdateServerIpData_setSettings_settings', 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, r'GUpdateServerIpData_setSettings_settings', 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, r'GUpdateServerIpData_setSettings_settings', 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, r'GUpdateServerIpData_setSettings_settings', 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, r'GUpdateServerIpData_setSettings_settings', 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, r'GUpdateServerIpData_setSettings_settings', 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, r'GUpdateServerIpData_setSettings_settings', 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, r'GUpdateServerIpData_setSettings_settings', 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull(localSourcePath, r'GUpdateServerIpData_setSettings_settings', 'localSourcePath')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateServerIpData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdatePortData extends GUpdatePortData { + @override + final String G__typename; + @override + final GUpdatePortData_setSettings setSettings; + + factory _$GUpdatePortData([void Function(GUpdatePortDataBuilder)? updates]) => + (new GUpdatePortDataBuilder()..update(updates))._build(); + + _$GUpdatePortData._({required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdatePortData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdatePortData', 'setSettings'); + } + + @override + GUpdatePortData rebuild(void Function(GUpdatePortDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdatePortDataBuilder toBuilder() => + new GUpdatePortDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdatePortData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdatePortData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdatePortDataBuilder + implements Builder { + _$GUpdatePortData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdatePortData_setSettingsBuilder? _setSettings; + GUpdatePortData_setSettingsBuilder get setSettings => + _$this._setSettings ??= new GUpdatePortData_setSettingsBuilder(); + set setSettings(GUpdatePortData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdatePortDataBuilder() { + GUpdatePortData._initializeBuilder(this); + } + + GUpdatePortDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdatePortData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdatePortData; + } + + @override + void update(void Function(GUpdatePortDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdatePortData build() => _build(); + + _$GUpdatePortData _build() { + _$GUpdatePortData _$result; + try { + _$result = _$v ?? + new _$GUpdatePortData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdatePortData', 'G__typename'), + setSettings: setSettings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdatePortData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdatePortData_setSettings extends GUpdatePortData_setSettings { + @override + final String G__typename; + @override + final GUpdatePortData_setSettings_settings settings; + + factory _$GUpdatePortData_setSettings( + [void Function(GUpdatePortData_setSettingsBuilder)? updates]) => + (new GUpdatePortData_setSettingsBuilder()..update(updates))._build(); + + _$GUpdatePortData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdatePortData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdatePortData_setSettings', 'settings'); + } + + @override + GUpdatePortData_setSettings rebuild( + void Function(GUpdatePortData_setSettingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdatePortData_setSettingsBuilder toBuilder() => + new GUpdatePortData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdatePortData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdatePortData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdatePortData_setSettingsBuilder + implements + Builder { + _$GUpdatePortData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdatePortData_setSettings_settingsBuilder? _settings; + GUpdatePortData_setSettings_settingsBuilder get settings => + _$this._settings ??= new GUpdatePortData_setSettings_settingsBuilder(); + set settings(GUpdatePortData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GUpdatePortData_setSettingsBuilder() { + GUpdatePortData_setSettings._initializeBuilder(this); + } + + GUpdatePortData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdatePortData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdatePortData_setSettings; + } + + @override + void update(void Function(GUpdatePortData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdatePortData_setSettings build() => _build(); + + _$GUpdatePortData_setSettings _build() { + _$GUpdatePortData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdatePortData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdatePortData_setSettings', 'G__typename'), + settings: settings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdatePortData_setSettings', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdatePortData_setSettings_settings + extends GUpdatePortData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + + factory _$GUpdatePortData_setSettings_settings( + [void Function(GUpdatePortData_setSettings_settingsBuilder)? + updates]) => + (new GUpdatePortData_setSettings_settingsBuilder()..update(updates)) + ._build(); + + _$GUpdatePortData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdatePortData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GUpdatePortData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull( + backupPath, r'GUpdatePortData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GUpdatePortData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull( + backupTime, r'GUpdatePortData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdatePortData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GUpdatePortData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, + r'GUpdatePortData_setSettings_settings', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GUpdatePortData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull(socksProxyPassword, + r'GUpdatePortData_setSettings_settings', 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GUpdatePortData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull(socksProxyUsername, + r'GUpdatePortData_setSettings_settings', 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull(socksProxyVersion, + r'GUpdatePortData_setSettings_settings', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, + r'GUpdatePortData_setSettings_settings', 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull(flareSolverrSessionName, + r'GUpdatePortData_setSettings_settings', 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, + r'GUpdatePortData_setSettings_settings', 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, + r'GUpdatePortData_setSettings_settings', 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GUpdatePortData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GUpdatePortData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, + r'GUpdatePortData_setSettings_settings', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, + r'GUpdatePortData_setSettings_settings', 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GUpdatePortData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, + r'GUpdatePortData_setSettings_settings', 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GUpdatePortData_setSettings_settings', 'localSourcePath'); + } + + @override + GUpdatePortData_setSettings_settings rebuild( + void Function(GUpdatePortData_setSettings_settingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdatePortData_setSettings_settingsBuilder toBuilder() => + new GUpdatePortData_setSettings_settingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdatePortData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdatePortData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath)) + .toString(); + } +} + +class GUpdatePortData_setSettings_settingsBuilder + implements + Builder { + _$GUpdatePortData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + GUpdatePortData_setSettings_settingsBuilder() { + GUpdatePortData_setSettings_settings._initializeBuilder(this); + } + + GUpdatePortData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _$v = null; + } + return this; + } + + @override + void replace(GUpdatePortData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdatePortData_setSettings_settings; + } + + @override + void update( + void Function(GUpdatePortData_setSettings_settingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdatePortData_setSettings_settings build() => _build(); + + _$GUpdatePortData_setSettings_settings _build() { + _$GUpdatePortData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdatePortData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdatePortData_setSettings_settings', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdatePortData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, r'GUpdatePortData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GUpdatePortData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, r'GUpdatePortData_setSettings_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdatePortData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull(port, r'GUpdatePortData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, r'GUpdatePortData_setSettings_settings', 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull(socksProxyHost, r'GUpdatePortData_setSettings_settings', 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull(socksProxyPassword, r'GUpdatePortData_setSettings_settings', 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull(socksProxyPort, r'GUpdatePortData_setSettings_settings', 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull(socksProxyUsername, r'GUpdatePortData_setSettings_settings', 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull(socksProxyVersion, r'GUpdatePortData_setSettings_settings', 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, r'GUpdatePortData_setSettings_settings', 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionName, r'GUpdatePortData_setSettings_settings', 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, r'GUpdatePortData_setSettings_settings', 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, r'GUpdatePortData_setSettings_settings', 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, r'GUpdatePortData_setSettings_settings', 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, r'GUpdatePortData_setSettings_settings', 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, r'GUpdatePortData_setSettings_settings', 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, r'GUpdatePortData_setSettings_settings', 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, r'GUpdatePortData_setSettings_settings', 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull(localSourcePath, r'GUpdatePortData_setSettings_settings', 'localSourcePath')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdatePortData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleSocksProxyData extends GToggleSocksProxyData { + @override + final String G__typename; + @override + final GToggleSocksProxyData_setSettings setSettings; + + factory _$GToggleSocksProxyData( + [void Function(GToggleSocksProxyDataBuilder)? updates]) => + (new GToggleSocksProxyDataBuilder()..update(updates))._build(); + + _$GToggleSocksProxyData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleSocksProxyData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GToggleSocksProxyData', 'setSettings'); + } + + @override + GToggleSocksProxyData rebuild( + void Function(GToggleSocksProxyDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleSocksProxyDataBuilder toBuilder() => + new GToggleSocksProxyDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleSocksProxyData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleSocksProxyData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GToggleSocksProxyDataBuilder + implements Builder { + _$GToggleSocksProxyData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GToggleSocksProxyData_setSettingsBuilder? _setSettings; + GToggleSocksProxyData_setSettingsBuilder get setSettings => + _$this._setSettings ??= new GToggleSocksProxyData_setSettingsBuilder(); + set setSettings(GToggleSocksProxyData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GToggleSocksProxyDataBuilder() { + GToggleSocksProxyData._initializeBuilder(this); + } + + GToggleSocksProxyDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GToggleSocksProxyData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleSocksProxyData; + } + + @override + void update(void Function(GToggleSocksProxyDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleSocksProxyData build() => _build(); + + _$GToggleSocksProxyData _build() { + _$GToggleSocksProxyData _$result; + try { + _$result = _$v ?? + new _$GToggleSocksProxyData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleSocksProxyData', 'G__typename'), + setSettings: setSettings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleSocksProxyData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleSocksProxyData_setSettings + extends GToggleSocksProxyData_setSettings { + @override + final String G__typename; + @override + final GToggleSocksProxyData_setSettings_settings settings; + + factory _$GToggleSocksProxyData_setSettings( + [void Function(GToggleSocksProxyData_setSettingsBuilder)? updates]) => + (new GToggleSocksProxyData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GToggleSocksProxyData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleSocksProxyData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GToggleSocksProxyData_setSettings', 'settings'); + } + + @override + GToggleSocksProxyData_setSettings rebuild( + void Function(GToggleSocksProxyData_setSettingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleSocksProxyData_setSettingsBuilder toBuilder() => + new GToggleSocksProxyData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleSocksProxyData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleSocksProxyData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GToggleSocksProxyData_setSettingsBuilder + implements + Builder { + _$GToggleSocksProxyData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GToggleSocksProxyData_setSettings_settingsBuilder? _settings; + GToggleSocksProxyData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GToggleSocksProxyData_setSettings_settingsBuilder(); + set settings(GToggleSocksProxyData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GToggleSocksProxyData_setSettingsBuilder() { + GToggleSocksProxyData_setSettings._initializeBuilder(this); + } + + GToggleSocksProxyData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GToggleSocksProxyData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleSocksProxyData_setSettings; + } + + @override + void update( + void Function(GToggleSocksProxyData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleSocksProxyData_setSettings build() => _build(); + + _$GToggleSocksProxyData_setSettings _build() { + _$GToggleSocksProxyData_setSettings _$result; + try { + _$result = _$v ?? + new _$GToggleSocksProxyData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleSocksProxyData_setSettings', 'G__typename'), + settings: settings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleSocksProxyData_setSettings', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleSocksProxyData_setSettings_settings + extends GToggleSocksProxyData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + + factory _$GToggleSocksProxyData_setSettings_settings( + [void Function(GToggleSocksProxyData_setSettings_settingsBuilder)? + updates]) => + (new GToggleSocksProxyData_setSettings_settingsBuilder()..update(updates)) + ._build(); + + _$GToggleSocksProxyData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleSocksProxyData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GToggleSocksProxyData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GToggleSocksProxyData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GToggleSocksProxyData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GToggleSocksProxyData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GToggleSocksProxyData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GToggleSocksProxyData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, + r'GToggleSocksProxyData_setSettings_settings', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GToggleSocksProxyData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull(socksProxyPassword, + r'GToggleSocksProxyData_setSettings_settings', 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GToggleSocksProxyData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull(socksProxyUsername, + r'GToggleSocksProxyData_setSettings_settings', 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull(socksProxyVersion, + r'GToggleSocksProxyData_setSettings_settings', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, + r'GToggleSocksProxyData_setSettings_settings', 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GToggleSocksProxyData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GToggleSocksProxyData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, + r'GToggleSocksProxyData_setSettings_settings', 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GToggleSocksProxyData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GToggleSocksProxyData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, + r'GToggleSocksProxyData_setSettings_settings', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, + r'GToggleSocksProxyData_setSettings_settings', 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GToggleSocksProxyData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, + r'GToggleSocksProxyData_setSettings_settings', 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GToggleSocksProxyData_setSettings_settings', 'localSourcePath'); + } + + @override + GToggleSocksProxyData_setSettings_settings rebuild( + void Function(GToggleSocksProxyData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleSocksProxyData_setSettings_settingsBuilder toBuilder() => + new GToggleSocksProxyData_setSettings_settingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleSocksProxyData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GToggleSocksProxyData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath)) + .toString(); + } +} + +class GToggleSocksProxyData_setSettings_settingsBuilder + implements + Builder { + _$GToggleSocksProxyData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + GToggleSocksProxyData_setSettings_settingsBuilder() { + GToggleSocksProxyData_setSettings_settings._initializeBuilder(this); + } + + GToggleSocksProxyData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _$v = null; + } + return this; + } + + @override + void replace(GToggleSocksProxyData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleSocksProxyData_setSettings_settings; + } + + @override + void update( + void Function(GToggleSocksProxyData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GToggleSocksProxyData_setSettings_settings build() => _build(); + + _$GToggleSocksProxyData_setSettings_settings _build() { + _$GToggleSocksProxyData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GToggleSocksProxyData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleSocksProxyData_setSettings_settings', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GToggleSocksProxyData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, r'GToggleSocksProxyData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GToggleSocksProxyData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, r'GToggleSocksProxyData_setSettings_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GToggleSocksProxyData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull(port, r'GToggleSocksProxyData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, r'GToggleSocksProxyData_setSettings_settings', 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull(socksProxyHost, r'GToggleSocksProxyData_setSettings_settings', 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull(socksProxyPassword, r'GToggleSocksProxyData_setSettings_settings', 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull(socksProxyPort, r'GToggleSocksProxyData_setSettings_settings', 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull(socksProxyUsername, r'GToggleSocksProxyData_setSettings_settings', 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull(socksProxyVersion, r'GToggleSocksProxyData_setSettings_settings', 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, r'GToggleSocksProxyData_setSettings_settings', 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionName, r'GToggleSocksProxyData_setSettings_settings', 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, r'GToggleSocksProxyData_setSettings_settings', 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, r'GToggleSocksProxyData_setSettings_settings', 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, r'GToggleSocksProxyData_setSettings_settings', 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, r'GToggleSocksProxyData_setSettings_settings', 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, r'GToggleSocksProxyData_setSettings_settings', 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, r'GToggleSocksProxyData_setSettings_settings', 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, r'GToggleSocksProxyData_setSettings_settings', 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull(localSourcePath, r'GToggleSocksProxyData_setSettings_settings', 'localSourcePath')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleSocksProxyData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSocksVersionData extends GUpdateSocksVersionData { + @override + final String G__typename; + @override + final GUpdateSocksVersionData_setSettings setSettings; + + factory _$GUpdateSocksVersionData( + [void Function(GUpdateSocksVersionDataBuilder)? updates]) => + (new GUpdateSocksVersionDataBuilder()..update(updates))._build(); + + _$GUpdateSocksVersionData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSocksVersionData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateSocksVersionData', 'setSettings'); + } + + @override + GUpdateSocksVersionData rebuild( + void Function(GUpdateSocksVersionDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksVersionDataBuilder toBuilder() => + new GUpdateSocksVersionDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksVersionData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksVersionData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateSocksVersionDataBuilder + implements + Builder { + _$GUpdateSocksVersionData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateSocksVersionData_setSettingsBuilder? _setSettings; + GUpdateSocksVersionData_setSettingsBuilder get setSettings => + _$this._setSettings ??= new GUpdateSocksVersionData_setSettingsBuilder(); + set setSettings(GUpdateSocksVersionData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateSocksVersionDataBuilder() { + GUpdateSocksVersionData._initializeBuilder(this); + } + + GUpdateSocksVersionDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksVersionData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksVersionData; + } + + @override + void update(void Function(GUpdateSocksVersionDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksVersionData build() => _build(); + + _$GUpdateSocksVersionData _build() { + _$GUpdateSocksVersionData _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksVersionData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSocksVersionData', 'G__typename'), + setSettings: setSettings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksVersionData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSocksVersionData_setSettings + extends GUpdateSocksVersionData_setSettings { + @override + final String G__typename; + @override + final GUpdateSocksVersionData_setSettings_settings settings; + + factory _$GUpdateSocksVersionData_setSettings( + [void Function(GUpdateSocksVersionData_setSettingsBuilder)? + updates]) => + (new GUpdateSocksVersionData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GUpdateSocksVersionData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSocksVersionData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateSocksVersionData_setSettings', 'settings'); + } + + @override + GUpdateSocksVersionData_setSettings rebuild( + void Function(GUpdateSocksVersionData_setSettingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksVersionData_setSettingsBuilder toBuilder() => + new GUpdateSocksVersionData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksVersionData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksVersionData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateSocksVersionData_setSettingsBuilder + implements + Builder { + _$GUpdateSocksVersionData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateSocksVersionData_setSettings_settingsBuilder? _settings; + GUpdateSocksVersionData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateSocksVersionData_setSettings_settingsBuilder(); + set settings(GUpdateSocksVersionData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GUpdateSocksVersionData_setSettingsBuilder() { + GUpdateSocksVersionData_setSettings._initializeBuilder(this); + } + + GUpdateSocksVersionData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksVersionData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksVersionData_setSettings; + } + + @override + void update( + void Function(GUpdateSocksVersionData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksVersionData_setSettings build() => _build(); + + _$GUpdateSocksVersionData_setSettings _build() { + _$GUpdateSocksVersionData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksVersionData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateSocksVersionData_setSettings', 'G__typename'), + settings: settings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksVersionData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSocksVersionData_setSettings_settings + extends GUpdateSocksVersionData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + + factory _$GUpdateSocksVersionData_setSettings_settings( + [void Function(GUpdateSocksVersionData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateSocksVersionData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GUpdateSocksVersionData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateSocksVersionData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GUpdateSocksVersionData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateSocksVersionData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateSocksVersionData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateSocksVersionData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateSocksVersionData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateSocksVersionData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, + r'GUpdateSocksVersionData_setSettings_settings', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GUpdateSocksVersionData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull(socksProxyPassword, + r'GUpdateSocksVersionData_setSettings_settings', 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GUpdateSocksVersionData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull(socksProxyUsername, + r'GUpdateSocksVersionData_setSettings_settings', 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull(socksProxyVersion, + r'GUpdateSocksVersionData_setSettings_settings', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, + r'GUpdateSocksVersionData_setSettings_settings', 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateSocksVersionData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateSocksVersionData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, + r'GUpdateSocksVersionData_setSettings_settings', 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GUpdateSocksVersionData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GUpdateSocksVersionData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, + r'GUpdateSocksVersionData_setSettings_settings', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, + r'GUpdateSocksVersionData_setSettings_settings', 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GUpdateSocksVersionData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateSocksVersionData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GUpdateSocksVersionData_setSettings_settings', 'localSourcePath'); + } + + @override + GUpdateSocksVersionData_setSettings_settings rebuild( + void Function(GUpdateSocksVersionData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksVersionData_setSettings_settingsBuilder toBuilder() => + new GUpdateSocksVersionData_setSettings_settingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksVersionData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateSocksVersionData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath)) + .toString(); + } +} + +class GUpdateSocksVersionData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateSocksVersionData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + GUpdateSocksVersionData_setSettings_settingsBuilder() { + GUpdateSocksVersionData_setSettings_settings._initializeBuilder(this); + } + + GUpdateSocksVersionData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksVersionData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksVersionData_setSettings_settings; + } + + @override + void update( + void Function(GUpdateSocksVersionData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksVersionData_setSettings_settings build() => _build(); + + _$GUpdateSocksVersionData_setSettings_settings _build() { + _$GUpdateSocksVersionData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksVersionData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSocksVersionData_setSettings_settings', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateSocksVersionData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, r'GUpdateSocksVersionData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GUpdateSocksVersionData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, r'GUpdateSocksVersionData_setSettings_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateSocksVersionData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull(port, r'GUpdateSocksVersionData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, r'GUpdateSocksVersionData_setSettings_settings', 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull(socksProxyHost, r'GUpdateSocksVersionData_setSettings_settings', 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull(socksProxyPassword, r'GUpdateSocksVersionData_setSettings_settings', 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull(socksProxyPort, r'GUpdateSocksVersionData_setSettings_settings', 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull(socksProxyUsername, r'GUpdateSocksVersionData_setSettings_settings', 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull(socksProxyVersion, r'GUpdateSocksVersionData_setSettings_settings', 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, r'GUpdateSocksVersionData_setSettings_settings', 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionName, r'GUpdateSocksVersionData_setSettings_settings', 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, r'GUpdateSocksVersionData_setSettings_settings', 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, r'GUpdateSocksVersionData_setSettings_settings', 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, r'GUpdateSocksVersionData_setSettings_settings', 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, r'GUpdateSocksVersionData_setSettings_settings', 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, r'GUpdateSocksVersionData_setSettings_settings', 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, r'GUpdateSocksVersionData_setSettings_settings', 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, r'GUpdateSocksVersionData_setSettings_settings', 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull(localSourcePath, r'GUpdateSocksVersionData_setSettings_settings', 'localSourcePath')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksVersionData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSocksHostData extends GUpdateSocksHostData { + @override + final String G__typename; + @override + final GUpdateSocksHostData_setSettings setSettings; + + factory _$GUpdateSocksHostData( + [void Function(GUpdateSocksHostDataBuilder)? updates]) => + (new GUpdateSocksHostDataBuilder()..update(updates))._build(); + + _$GUpdateSocksHostData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSocksHostData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateSocksHostData', 'setSettings'); + } + + @override + GUpdateSocksHostData rebuild( + void Function(GUpdateSocksHostDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksHostDataBuilder toBuilder() => + new GUpdateSocksHostDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksHostData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksHostData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateSocksHostDataBuilder + implements Builder { + _$GUpdateSocksHostData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateSocksHostData_setSettingsBuilder? _setSettings; + GUpdateSocksHostData_setSettingsBuilder get setSettings => + _$this._setSettings ??= new GUpdateSocksHostData_setSettingsBuilder(); + set setSettings(GUpdateSocksHostData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateSocksHostDataBuilder() { + GUpdateSocksHostData._initializeBuilder(this); + } + + GUpdateSocksHostDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksHostData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksHostData; + } + + @override + void update(void Function(GUpdateSocksHostDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksHostData build() => _build(); + + _$GUpdateSocksHostData _build() { + _$GUpdateSocksHostData _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksHostData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSocksHostData', 'G__typename'), + setSettings: setSettings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksHostData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSocksHostData_setSettings + extends GUpdateSocksHostData_setSettings { + @override + final String G__typename; + @override + final GUpdateSocksHostData_setSettings_settings settings; + + factory _$GUpdateSocksHostData_setSettings( + [void Function(GUpdateSocksHostData_setSettingsBuilder)? updates]) => + (new GUpdateSocksHostData_setSettingsBuilder()..update(updates))._build(); + + _$GUpdateSocksHostData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSocksHostData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateSocksHostData_setSettings', 'settings'); + } + + @override + GUpdateSocksHostData_setSettings rebuild( + void Function(GUpdateSocksHostData_setSettingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksHostData_setSettingsBuilder toBuilder() => + new GUpdateSocksHostData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksHostData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksHostData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateSocksHostData_setSettingsBuilder + implements + Builder { + _$GUpdateSocksHostData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateSocksHostData_setSettings_settingsBuilder? _settings; + GUpdateSocksHostData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateSocksHostData_setSettings_settingsBuilder(); + set settings(GUpdateSocksHostData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GUpdateSocksHostData_setSettingsBuilder() { + GUpdateSocksHostData_setSettings._initializeBuilder(this); + } + + GUpdateSocksHostData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksHostData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksHostData_setSettings; + } + + @override + void update(void Function(GUpdateSocksHostData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksHostData_setSettings build() => _build(); + + _$GUpdateSocksHostData_setSettings _build() { + _$GUpdateSocksHostData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksHostData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateSocksHostData_setSettings', 'G__typename'), + settings: settings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksHostData_setSettings', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSocksHostData_setSettings_settings + extends GUpdateSocksHostData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + + factory _$GUpdateSocksHostData_setSettings_settings( + [void Function(GUpdateSocksHostData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateSocksHostData_setSettings_settingsBuilder()..update(updates)) + ._build(); + + _$GUpdateSocksHostData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateSocksHostData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GUpdateSocksHostData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull( + backupPath, r'GUpdateSocksHostData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GUpdateSocksHostData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull( + backupTime, r'GUpdateSocksHostData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateSocksHostData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateSocksHostData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, + r'GUpdateSocksHostData_setSettings_settings', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GUpdateSocksHostData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull(socksProxyPassword, + r'GUpdateSocksHostData_setSettings_settings', 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GUpdateSocksHostData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull(socksProxyUsername, + r'GUpdateSocksHostData_setSettings_settings', 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull(socksProxyVersion, + r'GUpdateSocksHostData_setSettings_settings', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, + r'GUpdateSocksHostData_setSettings_settings', 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateSocksHostData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, + r'GUpdateSocksHostData_setSettings_settings', 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, + r'GUpdateSocksHostData_setSettings_settings', 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GUpdateSocksHostData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GUpdateSocksHostData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, + r'GUpdateSocksHostData_setSettings_settings', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, + r'GUpdateSocksHostData_setSettings_settings', 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GUpdateSocksHostData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, + r'GUpdateSocksHostData_setSettings_settings', 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GUpdateSocksHostData_setSettings_settings', 'localSourcePath'); + } + + @override + GUpdateSocksHostData_setSettings_settings rebuild( + void Function(GUpdateSocksHostData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksHostData_setSettings_settingsBuilder toBuilder() => + new GUpdateSocksHostData_setSettings_settingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksHostData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateSocksHostData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath)) + .toString(); + } +} + +class GUpdateSocksHostData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateSocksHostData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + GUpdateSocksHostData_setSettings_settingsBuilder() { + GUpdateSocksHostData_setSettings_settings._initializeBuilder(this); + } + + GUpdateSocksHostData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksHostData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksHostData_setSettings_settings; + } + + @override + void update( + void Function(GUpdateSocksHostData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksHostData_setSettings_settings build() => _build(); + + _$GUpdateSocksHostData_setSettings_settings _build() { + _$GUpdateSocksHostData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksHostData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSocksHostData_setSettings_settings', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateSocksHostData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, r'GUpdateSocksHostData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GUpdateSocksHostData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, r'GUpdateSocksHostData_setSettings_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateSocksHostData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull(port, r'GUpdateSocksHostData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, r'GUpdateSocksHostData_setSettings_settings', 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull(socksProxyHost, r'GUpdateSocksHostData_setSettings_settings', 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull(socksProxyPassword, r'GUpdateSocksHostData_setSettings_settings', 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull(socksProxyPort, r'GUpdateSocksHostData_setSettings_settings', 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull(socksProxyUsername, r'GUpdateSocksHostData_setSettings_settings', 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull(socksProxyVersion, r'GUpdateSocksHostData_setSettings_settings', 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, r'GUpdateSocksHostData_setSettings_settings', 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionName, r'GUpdateSocksHostData_setSettings_settings', 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, r'GUpdateSocksHostData_setSettings_settings', 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, r'GUpdateSocksHostData_setSettings_settings', 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, r'GUpdateSocksHostData_setSettings_settings', 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, r'GUpdateSocksHostData_setSettings_settings', 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, r'GUpdateSocksHostData_setSettings_settings', 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, r'GUpdateSocksHostData_setSettings_settings', 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, r'GUpdateSocksHostData_setSettings_settings', 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull(localSourcePath, r'GUpdateSocksHostData_setSettings_settings', 'localSourcePath')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksHostData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSocksUserNameData extends GUpdateSocksUserNameData { + @override + final String G__typename; + @override + final GUpdateSocksUserNameData_setSettings setSettings; + + factory _$GUpdateSocksUserNameData( + [void Function(GUpdateSocksUserNameDataBuilder)? updates]) => + (new GUpdateSocksUserNameDataBuilder()..update(updates))._build(); + + _$GUpdateSocksUserNameData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSocksUserNameData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateSocksUserNameData', 'setSettings'); + } + + @override + GUpdateSocksUserNameData rebuild( + void Function(GUpdateSocksUserNameDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksUserNameDataBuilder toBuilder() => + new GUpdateSocksUserNameDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksUserNameData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksUserNameData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateSocksUserNameDataBuilder + implements + Builder { + _$GUpdateSocksUserNameData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateSocksUserNameData_setSettingsBuilder? _setSettings; + GUpdateSocksUserNameData_setSettingsBuilder get setSettings => + _$this._setSettings ??= new GUpdateSocksUserNameData_setSettingsBuilder(); + set setSettings(GUpdateSocksUserNameData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateSocksUserNameDataBuilder() { + GUpdateSocksUserNameData._initializeBuilder(this); + } + + GUpdateSocksUserNameDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksUserNameData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksUserNameData; + } + + @override + void update(void Function(GUpdateSocksUserNameDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksUserNameData build() => _build(); + + _$GUpdateSocksUserNameData _build() { + _$GUpdateSocksUserNameData _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksUserNameData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSocksUserNameData', 'G__typename'), + setSettings: setSettings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksUserNameData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSocksUserNameData_setSettings + extends GUpdateSocksUserNameData_setSettings { + @override + final String G__typename; + @override + final GUpdateSocksUserNameData_setSettings_settings settings; + + factory _$GUpdateSocksUserNameData_setSettings( + [void Function(GUpdateSocksUserNameData_setSettingsBuilder)? + updates]) => + (new GUpdateSocksUserNameData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GUpdateSocksUserNameData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSocksUserNameData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateSocksUserNameData_setSettings', 'settings'); + } + + @override + GUpdateSocksUserNameData_setSettings rebuild( + void Function(GUpdateSocksUserNameData_setSettingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksUserNameData_setSettingsBuilder toBuilder() => + new GUpdateSocksUserNameData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksUserNameData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksUserNameData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateSocksUserNameData_setSettingsBuilder + implements + Builder { + _$GUpdateSocksUserNameData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateSocksUserNameData_setSettings_settingsBuilder? _settings; + GUpdateSocksUserNameData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateSocksUserNameData_setSettings_settingsBuilder(); + set settings( + GUpdateSocksUserNameData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GUpdateSocksUserNameData_setSettingsBuilder() { + GUpdateSocksUserNameData_setSettings._initializeBuilder(this); + } + + GUpdateSocksUserNameData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksUserNameData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksUserNameData_setSettings; + } + + @override + void update( + void Function(GUpdateSocksUserNameData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksUserNameData_setSettings build() => _build(); + + _$GUpdateSocksUserNameData_setSettings _build() { + _$GUpdateSocksUserNameData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksUserNameData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateSocksUserNameData_setSettings', 'G__typename'), + settings: settings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksUserNameData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSocksUserNameData_setSettings_settings + extends GUpdateSocksUserNameData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + + factory _$GUpdateSocksUserNameData_setSettings_settings( + [void Function(GUpdateSocksUserNameData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateSocksUserNameData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GUpdateSocksUserNameData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateSocksUserNameData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GUpdateSocksUserNameData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateSocksUserNameData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateSocksUserNameData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateSocksUserNameData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateSocksUserNameData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateSocksUserNameData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, + r'GUpdateSocksUserNameData_setSettings_settings', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GUpdateSocksUserNameData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull(socksProxyPassword, + r'GUpdateSocksUserNameData_setSettings_settings', 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GUpdateSocksUserNameData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull(socksProxyUsername, + r'GUpdateSocksUserNameData_setSettings_settings', 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull(socksProxyVersion, + r'GUpdateSocksUserNameData_setSettings_settings', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateSocksUserNameData_setSettings_settings', + 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateSocksUserNameData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateSocksUserNameData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateSocksUserNameData_setSettings_settings', + 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GUpdateSocksUserNameData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GUpdateSocksUserNameData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, + r'GUpdateSocksUserNameData_setSettings_settings', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateSocksUserNameData_setSettings_settings', + 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GUpdateSocksUserNameData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateSocksUserNameData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GUpdateSocksUserNameData_setSettings_settings', 'localSourcePath'); + } + + @override + GUpdateSocksUserNameData_setSettings_settings rebuild( + void Function(GUpdateSocksUserNameData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksUserNameData_setSettings_settingsBuilder toBuilder() => + new GUpdateSocksUserNameData_setSettings_settingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksUserNameData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateSocksUserNameData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath)) + .toString(); + } +} + +class GUpdateSocksUserNameData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateSocksUserNameData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + GUpdateSocksUserNameData_setSettings_settingsBuilder() { + GUpdateSocksUserNameData_setSettings_settings._initializeBuilder(this); + } + + GUpdateSocksUserNameData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksUserNameData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksUserNameData_setSettings_settings; + } + + @override + void update( + void Function(GUpdateSocksUserNameData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksUserNameData_setSettings_settings build() => _build(); + + _$GUpdateSocksUserNameData_setSettings_settings _build() { + _$GUpdateSocksUserNameData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksUserNameData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSocksUserNameData_setSettings_settings', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateSocksUserNameData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, r'GUpdateSocksUserNameData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GUpdateSocksUserNameData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, r'GUpdateSocksUserNameData_setSettings_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateSocksUserNameData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull(port, r'GUpdateSocksUserNameData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, r'GUpdateSocksUserNameData_setSettings_settings', 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull(socksProxyHost, r'GUpdateSocksUserNameData_setSettings_settings', 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull(socksProxyPassword, r'GUpdateSocksUserNameData_setSettings_settings', 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull(socksProxyPort, r'GUpdateSocksUserNameData_setSettings_settings', 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull(socksProxyUsername, r'GUpdateSocksUserNameData_setSettings_settings', 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull(socksProxyVersion, r'GUpdateSocksUserNameData_setSettings_settings', 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, r'GUpdateSocksUserNameData_setSettings_settings', 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionName, r'GUpdateSocksUserNameData_setSettings_settings', 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, r'GUpdateSocksUserNameData_setSettings_settings', 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, r'GUpdateSocksUserNameData_setSettings_settings', 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, r'GUpdateSocksUserNameData_setSettings_settings', 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, r'GUpdateSocksUserNameData_setSettings_settings', 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, r'GUpdateSocksUserNameData_setSettings_settings', 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, r'GUpdateSocksUserNameData_setSettings_settings', 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, r'GUpdateSocksUserNameData_setSettings_settings', 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull(localSourcePath, r'GUpdateSocksUserNameData_setSettings_settings', 'localSourcePath')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksUserNameData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSocksPasswordData extends GUpdateSocksPasswordData { + @override + final String G__typename; + @override + final GUpdateSocksPasswordData_setSettings setSettings; + + factory _$GUpdateSocksPasswordData( + [void Function(GUpdateSocksPasswordDataBuilder)? updates]) => + (new GUpdateSocksPasswordDataBuilder()..update(updates))._build(); + + _$GUpdateSocksPasswordData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSocksPasswordData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateSocksPasswordData', 'setSettings'); + } + + @override + GUpdateSocksPasswordData rebuild( + void Function(GUpdateSocksPasswordDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksPasswordDataBuilder toBuilder() => + new GUpdateSocksPasswordDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksPasswordData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksPasswordData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateSocksPasswordDataBuilder + implements + Builder { + _$GUpdateSocksPasswordData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateSocksPasswordData_setSettingsBuilder? _setSettings; + GUpdateSocksPasswordData_setSettingsBuilder get setSettings => + _$this._setSettings ??= new GUpdateSocksPasswordData_setSettingsBuilder(); + set setSettings(GUpdateSocksPasswordData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateSocksPasswordDataBuilder() { + GUpdateSocksPasswordData._initializeBuilder(this); + } + + GUpdateSocksPasswordDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksPasswordData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksPasswordData; + } + + @override + void update(void Function(GUpdateSocksPasswordDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksPasswordData build() => _build(); + + _$GUpdateSocksPasswordData _build() { + _$GUpdateSocksPasswordData _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksPasswordData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSocksPasswordData', 'G__typename'), + setSettings: setSettings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksPasswordData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSocksPasswordData_setSettings + extends GUpdateSocksPasswordData_setSettings { + @override + final String G__typename; + @override + final GUpdateSocksPasswordData_setSettings_settings settings; + + factory _$GUpdateSocksPasswordData_setSettings( + [void Function(GUpdateSocksPasswordData_setSettingsBuilder)? + updates]) => + (new GUpdateSocksPasswordData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GUpdateSocksPasswordData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSocksPasswordData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateSocksPasswordData_setSettings', 'settings'); + } + + @override + GUpdateSocksPasswordData_setSettings rebuild( + void Function(GUpdateSocksPasswordData_setSettingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksPasswordData_setSettingsBuilder toBuilder() => + new GUpdateSocksPasswordData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksPasswordData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksPasswordData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateSocksPasswordData_setSettingsBuilder + implements + Builder { + _$GUpdateSocksPasswordData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateSocksPasswordData_setSettings_settingsBuilder? _settings; + GUpdateSocksPasswordData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateSocksPasswordData_setSettings_settingsBuilder(); + set settings( + GUpdateSocksPasswordData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GUpdateSocksPasswordData_setSettingsBuilder() { + GUpdateSocksPasswordData_setSettings._initializeBuilder(this); + } + + GUpdateSocksPasswordData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksPasswordData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksPasswordData_setSettings; + } + + @override + void update( + void Function(GUpdateSocksPasswordData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksPasswordData_setSettings build() => _build(); + + _$GUpdateSocksPasswordData_setSettings _build() { + _$GUpdateSocksPasswordData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksPasswordData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateSocksPasswordData_setSettings', 'G__typename'), + settings: settings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksPasswordData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSocksPasswordData_setSettings_settings + extends GUpdateSocksPasswordData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + + factory _$GUpdateSocksPasswordData_setSettings_settings( + [void Function(GUpdateSocksPasswordData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateSocksPasswordData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GUpdateSocksPasswordData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateSocksPasswordData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GUpdateSocksPasswordData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateSocksPasswordData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateSocksPasswordData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateSocksPasswordData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateSocksPasswordData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateSocksPasswordData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, + r'GUpdateSocksPasswordData_setSettings_settings', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GUpdateSocksPasswordData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull(socksProxyPassword, + r'GUpdateSocksPasswordData_setSettings_settings', 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GUpdateSocksPasswordData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull(socksProxyUsername, + r'GUpdateSocksPasswordData_setSettings_settings', 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull(socksProxyVersion, + r'GUpdateSocksPasswordData_setSettings_settings', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateSocksPasswordData_setSettings_settings', + 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateSocksPasswordData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateSocksPasswordData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateSocksPasswordData_setSettings_settings', + 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GUpdateSocksPasswordData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GUpdateSocksPasswordData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, + r'GUpdateSocksPasswordData_setSettings_settings', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateSocksPasswordData_setSettings_settings', + 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GUpdateSocksPasswordData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateSocksPasswordData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GUpdateSocksPasswordData_setSettings_settings', 'localSourcePath'); + } + + @override + GUpdateSocksPasswordData_setSettings_settings rebuild( + void Function(GUpdateSocksPasswordData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksPasswordData_setSettings_settingsBuilder toBuilder() => + new GUpdateSocksPasswordData_setSettings_settingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksPasswordData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateSocksPasswordData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath)) + .toString(); + } +} + +class GUpdateSocksPasswordData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateSocksPasswordData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + GUpdateSocksPasswordData_setSettings_settingsBuilder() { + GUpdateSocksPasswordData_setSettings_settings._initializeBuilder(this); + } + + GUpdateSocksPasswordData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksPasswordData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksPasswordData_setSettings_settings; + } + + @override + void update( + void Function(GUpdateSocksPasswordData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksPasswordData_setSettings_settings build() => _build(); + + _$GUpdateSocksPasswordData_setSettings_settings _build() { + _$GUpdateSocksPasswordData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksPasswordData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSocksPasswordData_setSettings_settings', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateSocksPasswordData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, r'GUpdateSocksPasswordData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GUpdateSocksPasswordData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, r'GUpdateSocksPasswordData_setSettings_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateSocksPasswordData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull(port, r'GUpdateSocksPasswordData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, r'GUpdateSocksPasswordData_setSettings_settings', 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull(socksProxyHost, r'GUpdateSocksPasswordData_setSettings_settings', 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull(socksProxyPassword, r'GUpdateSocksPasswordData_setSettings_settings', 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull(socksProxyPort, r'GUpdateSocksPasswordData_setSettings_settings', 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull(socksProxyUsername, r'GUpdateSocksPasswordData_setSettings_settings', 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull(socksProxyVersion, r'GUpdateSocksPasswordData_setSettings_settings', 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, r'GUpdateSocksPasswordData_setSettings_settings', 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionName, r'GUpdateSocksPasswordData_setSettings_settings', 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, r'GUpdateSocksPasswordData_setSettings_settings', 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, r'GUpdateSocksPasswordData_setSettings_settings', 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, r'GUpdateSocksPasswordData_setSettings_settings', 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, r'GUpdateSocksPasswordData_setSettings_settings', 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, r'GUpdateSocksPasswordData_setSettings_settings', 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, r'GUpdateSocksPasswordData_setSettings_settings', 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, r'GUpdateSocksPasswordData_setSettings_settings', 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull(localSourcePath, r'GUpdateSocksPasswordData_setSettings_settings', 'localSourcePath')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksPasswordData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSocksPortData extends GUpdateSocksPortData { + @override + final String G__typename; + @override + final GUpdateSocksPortData_setSettings setSettings; + + factory _$GUpdateSocksPortData( + [void Function(GUpdateSocksPortDataBuilder)? updates]) => + (new GUpdateSocksPortDataBuilder()..update(updates))._build(); + + _$GUpdateSocksPortData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSocksPortData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateSocksPortData', 'setSettings'); + } + + @override + GUpdateSocksPortData rebuild( + void Function(GUpdateSocksPortDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksPortDataBuilder toBuilder() => + new GUpdateSocksPortDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksPortData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksPortData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateSocksPortDataBuilder + implements Builder { + _$GUpdateSocksPortData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateSocksPortData_setSettingsBuilder? _setSettings; + GUpdateSocksPortData_setSettingsBuilder get setSettings => + _$this._setSettings ??= new GUpdateSocksPortData_setSettingsBuilder(); + set setSettings(GUpdateSocksPortData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateSocksPortDataBuilder() { + GUpdateSocksPortData._initializeBuilder(this); + } + + GUpdateSocksPortDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksPortData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksPortData; + } + + @override + void update(void Function(GUpdateSocksPortDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksPortData build() => _build(); + + _$GUpdateSocksPortData _build() { + _$GUpdateSocksPortData _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksPortData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSocksPortData', 'G__typename'), + setSettings: setSettings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksPortData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSocksPortData_setSettings + extends GUpdateSocksPortData_setSettings { + @override + final String G__typename; + @override + final GUpdateSocksPortData_setSettings_settings settings; + + factory _$GUpdateSocksPortData_setSettings( + [void Function(GUpdateSocksPortData_setSettingsBuilder)? updates]) => + (new GUpdateSocksPortData_setSettingsBuilder()..update(updates))._build(); + + _$GUpdateSocksPortData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSocksPortData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateSocksPortData_setSettings', 'settings'); + } + + @override + GUpdateSocksPortData_setSettings rebuild( + void Function(GUpdateSocksPortData_setSettingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksPortData_setSettingsBuilder toBuilder() => + new GUpdateSocksPortData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksPortData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksPortData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateSocksPortData_setSettingsBuilder + implements + Builder { + _$GUpdateSocksPortData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateSocksPortData_setSettings_settingsBuilder? _settings; + GUpdateSocksPortData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateSocksPortData_setSettings_settingsBuilder(); + set settings(GUpdateSocksPortData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GUpdateSocksPortData_setSettingsBuilder() { + GUpdateSocksPortData_setSettings._initializeBuilder(this); + } + + GUpdateSocksPortData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksPortData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksPortData_setSettings; + } + + @override + void update(void Function(GUpdateSocksPortData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksPortData_setSettings build() => _build(); + + _$GUpdateSocksPortData_setSettings _build() { + _$GUpdateSocksPortData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksPortData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateSocksPortData_setSettings', 'G__typename'), + settings: settings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksPortData_setSettings', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSocksPortData_setSettings_settings + extends GUpdateSocksPortData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + + factory _$GUpdateSocksPortData_setSettings_settings( + [void Function(GUpdateSocksPortData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateSocksPortData_setSettings_settingsBuilder()..update(updates)) + ._build(); + + _$GUpdateSocksPortData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateSocksPortData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GUpdateSocksPortData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull( + backupPath, r'GUpdateSocksPortData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GUpdateSocksPortData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull( + backupTime, r'GUpdateSocksPortData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateSocksPortData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateSocksPortData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, + r'GUpdateSocksPortData_setSettings_settings', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GUpdateSocksPortData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull(socksProxyPassword, + r'GUpdateSocksPortData_setSettings_settings', 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GUpdateSocksPortData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull(socksProxyUsername, + r'GUpdateSocksPortData_setSettings_settings', 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull(socksProxyVersion, + r'GUpdateSocksPortData_setSettings_settings', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, + r'GUpdateSocksPortData_setSettings_settings', 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateSocksPortData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, + r'GUpdateSocksPortData_setSettings_settings', 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, + r'GUpdateSocksPortData_setSettings_settings', 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GUpdateSocksPortData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GUpdateSocksPortData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, + r'GUpdateSocksPortData_setSettings_settings', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, + r'GUpdateSocksPortData_setSettings_settings', 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GUpdateSocksPortData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, + r'GUpdateSocksPortData_setSettings_settings', 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GUpdateSocksPortData_setSettings_settings', 'localSourcePath'); + } + + @override + GUpdateSocksPortData_setSettings_settings rebuild( + void Function(GUpdateSocksPortData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksPortData_setSettings_settingsBuilder toBuilder() => + new GUpdateSocksPortData_setSettings_settingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksPortData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateSocksPortData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath)) + .toString(); + } +} + +class GUpdateSocksPortData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateSocksPortData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + GUpdateSocksPortData_setSettings_settingsBuilder() { + GUpdateSocksPortData_setSettings_settings._initializeBuilder(this); + } + + GUpdateSocksPortData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksPortData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksPortData_setSettings_settings; + } + + @override + void update( + void Function(GUpdateSocksPortData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksPortData_setSettings_settings build() => _build(); + + _$GUpdateSocksPortData_setSettings_settings _build() { + _$GUpdateSocksPortData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksPortData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSocksPortData_setSettings_settings', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateSocksPortData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, r'GUpdateSocksPortData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GUpdateSocksPortData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, r'GUpdateSocksPortData_setSettings_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateSocksPortData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull(port, r'GUpdateSocksPortData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, r'GUpdateSocksPortData_setSettings_settings', 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull(socksProxyHost, r'GUpdateSocksPortData_setSettings_settings', 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull(socksProxyPassword, r'GUpdateSocksPortData_setSettings_settings', 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull(socksProxyPort, r'GUpdateSocksPortData_setSettings_settings', 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull(socksProxyUsername, r'GUpdateSocksPortData_setSettings_settings', 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull(socksProxyVersion, r'GUpdateSocksPortData_setSettings_settings', 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, r'GUpdateSocksPortData_setSettings_settings', 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionName, r'GUpdateSocksPortData_setSettings_settings', 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, r'GUpdateSocksPortData_setSettings_settings', 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, r'GUpdateSocksPortData_setSettings_settings', 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, r'GUpdateSocksPortData_setSettings_settings', 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, r'GUpdateSocksPortData_setSettings_settings', 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, r'GUpdateSocksPortData_setSettings_settings', 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, r'GUpdateSocksPortData_setSettings_settings', 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, r'GUpdateSocksPortData_setSettings_settings', 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull(localSourcePath, r'GUpdateSocksPortData_setSettings_settings', 'localSourcePath')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksPortData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleFlareSolverrData extends GToggleFlareSolverrData { + @override + final String G__typename; + @override + final GToggleFlareSolverrData_setSettings setSettings; + + factory _$GToggleFlareSolverrData( + [void Function(GToggleFlareSolverrDataBuilder)? updates]) => + (new GToggleFlareSolverrDataBuilder()..update(updates))._build(); + + _$GToggleFlareSolverrData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleFlareSolverrData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GToggleFlareSolverrData', 'setSettings'); + } + + @override + GToggleFlareSolverrData rebuild( + void Function(GToggleFlareSolverrDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleFlareSolverrDataBuilder toBuilder() => + new GToggleFlareSolverrDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleFlareSolverrData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleFlareSolverrData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GToggleFlareSolverrDataBuilder + implements + Builder { + _$GToggleFlareSolverrData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GToggleFlareSolverrData_setSettingsBuilder? _setSettings; + GToggleFlareSolverrData_setSettingsBuilder get setSettings => + _$this._setSettings ??= new GToggleFlareSolverrData_setSettingsBuilder(); + set setSettings(GToggleFlareSolverrData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GToggleFlareSolverrDataBuilder() { + GToggleFlareSolverrData._initializeBuilder(this); + } + + GToggleFlareSolverrDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GToggleFlareSolverrData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleFlareSolverrData; + } + + @override + void update(void Function(GToggleFlareSolverrDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleFlareSolverrData build() => _build(); + + _$GToggleFlareSolverrData _build() { + _$GToggleFlareSolverrData _$result; + try { + _$result = _$v ?? + new _$GToggleFlareSolverrData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleFlareSolverrData', 'G__typename'), + setSettings: setSettings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleFlareSolverrData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleFlareSolverrData_setSettings + extends GToggleFlareSolverrData_setSettings { + @override + final String G__typename; + @override + final GToggleFlareSolverrData_setSettings_settings settings; + + factory _$GToggleFlareSolverrData_setSettings( + [void Function(GToggleFlareSolverrData_setSettingsBuilder)? + updates]) => + (new GToggleFlareSolverrData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GToggleFlareSolverrData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleFlareSolverrData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GToggleFlareSolverrData_setSettings', 'settings'); + } + + @override + GToggleFlareSolverrData_setSettings rebuild( + void Function(GToggleFlareSolverrData_setSettingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleFlareSolverrData_setSettingsBuilder toBuilder() => + new GToggleFlareSolverrData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleFlareSolverrData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleFlareSolverrData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GToggleFlareSolverrData_setSettingsBuilder + implements + Builder { + _$GToggleFlareSolverrData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GToggleFlareSolverrData_setSettings_settingsBuilder? _settings; + GToggleFlareSolverrData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GToggleFlareSolverrData_setSettings_settingsBuilder(); + set settings(GToggleFlareSolverrData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GToggleFlareSolverrData_setSettingsBuilder() { + GToggleFlareSolverrData_setSettings._initializeBuilder(this); + } + + GToggleFlareSolverrData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GToggleFlareSolverrData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleFlareSolverrData_setSettings; + } + + @override + void update( + void Function(GToggleFlareSolverrData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleFlareSolverrData_setSettings build() => _build(); + + _$GToggleFlareSolverrData_setSettings _build() { + _$GToggleFlareSolverrData_setSettings _$result; + try { + _$result = _$v ?? + new _$GToggleFlareSolverrData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleFlareSolverrData_setSettings', 'G__typename'), + settings: settings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleFlareSolverrData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleFlareSolverrData_setSettings_settings + extends GToggleFlareSolverrData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + + factory _$GToggleFlareSolverrData_setSettings_settings( + [void Function(GToggleFlareSolverrData_setSettings_settingsBuilder)? + updates]) => + (new GToggleFlareSolverrData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GToggleFlareSolverrData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleFlareSolverrData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GToggleFlareSolverrData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GToggleFlareSolverrData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GToggleFlareSolverrData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GToggleFlareSolverrData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GToggleFlareSolverrData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GToggleFlareSolverrData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, + r'GToggleFlareSolverrData_setSettings_settings', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GToggleFlareSolverrData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull(socksProxyPassword, + r'GToggleFlareSolverrData_setSettings_settings', 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GToggleFlareSolverrData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull(socksProxyUsername, + r'GToggleFlareSolverrData_setSettings_settings', 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull(socksProxyVersion, + r'GToggleFlareSolverrData_setSettings_settings', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, + r'GToggleFlareSolverrData_setSettings_settings', 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GToggleFlareSolverrData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GToggleFlareSolverrData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, + r'GToggleFlareSolverrData_setSettings_settings', 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GToggleFlareSolverrData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GToggleFlareSolverrData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, + r'GToggleFlareSolverrData_setSettings_settings', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, + r'GToggleFlareSolverrData_setSettings_settings', 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GToggleFlareSolverrData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GToggleFlareSolverrData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GToggleFlareSolverrData_setSettings_settings', 'localSourcePath'); + } + + @override + GToggleFlareSolverrData_setSettings_settings rebuild( + void Function(GToggleFlareSolverrData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleFlareSolverrData_setSettings_settingsBuilder toBuilder() => + new GToggleFlareSolverrData_setSettings_settingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleFlareSolverrData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GToggleFlareSolverrData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath)) + .toString(); + } +} + +class GToggleFlareSolverrData_setSettings_settingsBuilder + implements + Builder { + _$GToggleFlareSolverrData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + GToggleFlareSolverrData_setSettings_settingsBuilder() { + GToggleFlareSolverrData_setSettings_settings._initializeBuilder(this); + } + + GToggleFlareSolverrData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _$v = null; + } + return this; + } + + @override + void replace(GToggleFlareSolverrData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleFlareSolverrData_setSettings_settings; + } + + @override + void update( + void Function(GToggleFlareSolverrData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GToggleFlareSolverrData_setSettings_settings build() => _build(); + + _$GToggleFlareSolverrData_setSettings_settings _build() { + _$GToggleFlareSolverrData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GToggleFlareSolverrData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleFlareSolverrData_setSettings_settings', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GToggleFlareSolverrData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, r'GToggleFlareSolverrData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GToggleFlareSolverrData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, r'GToggleFlareSolverrData_setSettings_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GToggleFlareSolverrData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull(port, r'GToggleFlareSolverrData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, r'GToggleFlareSolverrData_setSettings_settings', 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull(socksProxyHost, r'GToggleFlareSolverrData_setSettings_settings', 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull(socksProxyPassword, r'GToggleFlareSolverrData_setSettings_settings', 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull(socksProxyPort, r'GToggleFlareSolverrData_setSettings_settings', 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull(socksProxyUsername, r'GToggleFlareSolverrData_setSettings_settings', 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull(socksProxyVersion, r'GToggleFlareSolverrData_setSettings_settings', 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, r'GToggleFlareSolverrData_setSettings_settings', 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionName, r'GToggleFlareSolverrData_setSettings_settings', 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, r'GToggleFlareSolverrData_setSettings_settings', 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, r'GToggleFlareSolverrData_setSettings_settings', 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, r'GToggleFlareSolverrData_setSettings_settings', 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, r'GToggleFlareSolverrData_setSettings_settings', 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, r'GToggleFlareSolverrData_setSettings_settings', 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, r'GToggleFlareSolverrData_setSettings_settings', 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, r'GToggleFlareSolverrData_setSettings_settings', 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull(localSourcePath, r'GToggleFlareSolverrData_setSettings_settings', 'localSourcePath')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleFlareSolverrData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateFlareSolverrSessionNameData + extends GUpdateFlareSolverrSessionNameData { + @override + final String G__typename; + @override + final GUpdateFlareSolverrSessionNameData_setSettings setSettings; + + factory _$GUpdateFlareSolverrSessionNameData( + [void Function(GUpdateFlareSolverrSessionNameDataBuilder)? + updates]) => + (new GUpdateFlareSolverrSessionNameDataBuilder()..update(updates)) + ._build(); + + _$GUpdateFlareSolverrSessionNameData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateFlareSolverrSessionNameData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateFlareSolverrSessionNameData', 'setSettings'); + } + + @override + GUpdateFlareSolverrSessionNameData rebuild( + void Function(GUpdateFlareSolverrSessionNameDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrSessionNameDataBuilder toBuilder() => + new GUpdateFlareSolverrSessionNameDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateFlareSolverrSessionNameData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateFlareSolverrSessionNameData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateFlareSolverrSessionNameDataBuilder + implements + Builder { + _$GUpdateFlareSolverrSessionNameData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateFlareSolverrSessionNameData_setSettingsBuilder? _setSettings; + GUpdateFlareSolverrSessionNameData_setSettingsBuilder get setSettings => + _$this._setSettings ??= + new GUpdateFlareSolverrSessionNameData_setSettingsBuilder(); + set setSettings( + GUpdateFlareSolverrSessionNameData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateFlareSolverrSessionNameDataBuilder() { + GUpdateFlareSolverrSessionNameData._initializeBuilder(this); + } + + GUpdateFlareSolverrSessionNameDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrSessionNameData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrSessionNameData; + } + + @override + void update( + void Function(GUpdateFlareSolverrSessionNameDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrSessionNameData build() => _build(); + + _$GUpdateFlareSolverrSessionNameData _build() { + _$GUpdateFlareSolverrSessionNameData _$result; + try { + _$result = _$v ?? + new _$GUpdateFlareSolverrSessionNameData._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateFlareSolverrSessionNameData', 'G__typename'), + setSettings: setSettings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateFlareSolverrSessionNameData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateFlareSolverrSessionNameData_setSettings + extends GUpdateFlareSolverrSessionNameData_setSettings { + @override + final String G__typename; + @override + final GUpdateFlareSolverrSessionNameData_setSettings_settings settings; + + factory _$GUpdateFlareSolverrSessionNameData_setSettings( + [void Function(GUpdateFlareSolverrSessionNameData_setSettingsBuilder)? + updates]) => + (new GUpdateFlareSolverrSessionNameData_setSettingsBuilder() + ..update(updates)) + ._build(); + + _$GUpdateFlareSolverrSessionNameData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateFlareSolverrSessionNameData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(settings, + r'GUpdateFlareSolverrSessionNameData_setSettings', 'settings'); + } + + @override + GUpdateFlareSolverrSessionNameData_setSettings rebuild( + void Function(GUpdateFlareSolverrSessionNameData_setSettingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrSessionNameData_setSettingsBuilder toBuilder() => + new GUpdateFlareSolverrSessionNameData_setSettingsBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateFlareSolverrSessionNameData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateFlareSolverrSessionNameData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateFlareSolverrSessionNameData_setSettingsBuilder + implements + Builder { + _$GUpdateFlareSolverrSessionNameData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateFlareSolverrSessionNameData_setSettings_settingsBuilder? _settings; + GUpdateFlareSolverrSessionNameData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateFlareSolverrSessionNameData_setSettings_settingsBuilder(); + set settings( + GUpdateFlareSolverrSessionNameData_setSettings_settingsBuilder? + settings) => + _$this._settings = settings; + + GUpdateFlareSolverrSessionNameData_setSettingsBuilder() { + GUpdateFlareSolverrSessionNameData_setSettings._initializeBuilder(this); + } + + GUpdateFlareSolverrSessionNameData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrSessionNameData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrSessionNameData_setSettings; + } + + @override + void update( + void Function(GUpdateFlareSolverrSessionNameData_setSettingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrSessionNameData_setSettings build() => _build(); + + _$GUpdateFlareSolverrSessionNameData_setSettings _build() { + _$GUpdateFlareSolverrSessionNameData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateFlareSolverrSessionNameData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GUpdateFlareSolverrSessionNameData_setSettings', + 'G__typename'), + settings: settings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateFlareSolverrSessionNameData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateFlareSolverrSessionNameData_setSettings_settings + extends GUpdateFlareSolverrSessionNameData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + + factory _$GUpdateFlareSolverrSessionNameData_setSettings_settings( + [void Function( + GUpdateFlareSolverrSessionNameData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateFlareSolverrSessionNameData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GUpdateFlareSolverrSessionNameData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'backupInterval'); + BuiltValueNullFieldError.checkNotNull( + backupPath, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'backupPath'); + BuiltValueNullFieldError.checkNotNull( + backupTTL, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'backupTTL'); + BuiltValueNullFieldError.checkNotNull( + backupTime, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateFlareSolverrSessionNameData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull(port, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + extensionRepos, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'localSourcePath'); + } + + @override + GUpdateFlareSolverrSessionNameData_setSettings_settings rebuild( + void Function( + GUpdateFlareSolverrSessionNameData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrSessionNameData_setSettings_settingsBuilder toBuilder() => + new GUpdateFlareSolverrSessionNameData_setSettings_settingsBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateFlareSolverrSessionNameData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateFlareSolverrSessionNameData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath)) + .toString(); + } +} + +class GUpdateFlareSolverrSessionNameData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateFlareSolverrSessionNameData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + GUpdateFlareSolverrSessionNameData_setSettings_settingsBuilder() { + GUpdateFlareSolverrSessionNameData_setSettings_settings._initializeBuilder( + this); + } + + GUpdateFlareSolverrSessionNameData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrSessionNameData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrSessionNameData_setSettings_settings; + } + + @override + void update( + void Function( + GUpdateFlareSolverrSessionNameData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrSessionNameData_setSettings_settings build() => _build(); + + _$GUpdateFlareSolverrSessionNameData_setSettings_settings _build() { + _$GUpdateFlareSolverrSessionNameData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateFlareSolverrSessionNameData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, r'GUpdateFlareSolverrSessionNameData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GUpdateFlareSolverrSessionNameData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull(ip, r'GUpdateFlareSolverrSessionNameData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull(port, r'GUpdateFlareSolverrSessionNameData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, r'GUpdateFlareSolverrSessionNameData_setSettings_settings', 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull(socksProxyHost, r'GUpdateFlareSolverrSessionNameData_setSettings_settings', 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull(socksProxyPassword, r'GUpdateFlareSolverrSessionNameData_setSettings_settings', 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull(socksProxyPort, r'GUpdateFlareSolverrSessionNameData_setSettings_settings', 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull(socksProxyUsername, r'GUpdateFlareSolverrSessionNameData_setSettings_settings', 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull(socksProxyVersion, r'GUpdateFlareSolverrSessionNameData_setSettings_settings', 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, r'GUpdateFlareSolverrSessionNameData_setSettings_settings', 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionName, r'GUpdateFlareSolverrSessionNameData_setSettings_settings', 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, r'GUpdateFlareSolverrSessionNameData_setSettings_settings', 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, r'GUpdateFlareSolverrSessionNameData_setSettings_settings', 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, r'GUpdateFlareSolverrSessionNameData_setSettings_settings', 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, r'GUpdateFlareSolverrSessionNameData_setSettings_settings', 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, r'GUpdateFlareSolverrSessionNameData_setSettings_settings', 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, r'GUpdateFlareSolverrSessionNameData_setSettings_settings', 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, r'GUpdateFlareSolverrSessionNameData_setSettings_settings', 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull(localSourcePath, r'GUpdateFlareSolverrSessionNameData_setSettings_settings', 'localSourcePath')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateFlareSolverrSessionTtlData + extends GUpdateFlareSolverrSessionTtlData { + @override + final String G__typename; + @override + final GUpdateFlareSolverrSessionTtlData_setSettings setSettings; + + factory _$GUpdateFlareSolverrSessionTtlData( + [void Function(GUpdateFlareSolverrSessionTtlDataBuilder)? updates]) => + (new GUpdateFlareSolverrSessionTtlDataBuilder()..update(updates)) + ._build(); + + _$GUpdateFlareSolverrSessionTtlData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateFlareSolverrSessionTtlData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateFlareSolverrSessionTtlData', 'setSettings'); + } + + @override + GUpdateFlareSolverrSessionTtlData rebuild( + void Function(GUpdateFlareSolverrSessionTtlDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrSessionTtlDataBuilder toBuilder() => + new GUpdateFlareSolverrSessionTtlDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateFlareSolverrSessionTtlData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateFlareSolverrSessionTtlData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateFlareSolverrSessionTtlDataBuilder + implements + Builder { + _$GUpdateFlareSolverrSessionTtlData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateFlareSolverrSessionTtlData_setSettingsBuilder? _setSettings; + GUpdateFlareSolverrSessionTtlData_setSettingsBuilder get setSettings => + _$this._setSettings ??= + new GUpdateFlareSolverrSessionTtlData_setSettingsBuilder(); + set setSettings( + GUpdateFlareSolverrSessionTtlData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateFlareSolverrSessionTtlDataBuilder() { + GUpdateFlareSolverrSessionTtlData._initializeBuilder(this); + } + + GUpdateFlareSolverrSessionTtlDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrSessionTtlData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrSessionTtlData; + } + + @override + void update( + void Function(GUpdateFlareSolverrSessionTtlDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrSessionTtlData build() => _build(); + + _$GUpdateFlareSolverrSessionTtlData _build() { + _$GUpdateFlareSolverrSessionTtlData _$result; + try { + _$result = _$v ?? + new _$GUpdateFlareSolverrSessionTtlData._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateFlareSolverrSessionTtlData', 'G__typename'), + setSettings: setSettings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateFlareSolverrSessionTtlData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateFlareSolverrSessionTtlData_setSettings + extends GUpdateFlareSolverrSessionTtlData_setSettings { + @override + final String G__typename; + @override + final GUpdateFlareSolverrSessionTtlData_setSettings_settings settings; + + factory _$GUpdateFlareSolverrSessionTtlData_setSettings( + [void Function(GUpdateFlareSolverrSessionTtlData_setSettingsBuilder)? + updates]) => + (new GUpdateFlareSolverrSessionTtlData_setSettingsBuilder() + ..update(updates)) + ._build(); + + _$GUpdateFlareSolverrSessionTtlData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateFlareSolverrSessionTtlData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateFlareSolverrSessionTtlData_setSettings', 'settings'); + } + + @override + GUpdateFlareSolverrSessionTtlData_setSettings rebuild( + void Function(GUpdateFlareSolverrSessionTtlData_setSettingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrSessionTtlData_setSettingsBuilder toBuilder() => + new GUpdateFlareSolverrSessionTtlData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateFlareSolverrSessionTtlData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateFlareSolverrSessionTtlData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateFlareSolverrSessionTtlData_setSettingsBuilder + implements + Builder { + _$GUpdateFlareSolverrSessionTtlData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateFlareSolverrSessionTtlData_setSettings_settingsBuilder? _settings; + GUpdateFlareSolverrSessionTtlData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateFlareSolverrSessionTtlData_setSettings_settingsBuilder(); + set settings( + GUpdateFlareSolverrSessionTtlData_setSettings_settingsBuilder? + settings) => + _$this._settings = settings; + + GUpdateFlareSolverrSessionTtlData_setSettingsBuilder() { + GUpdateFlareSolverrSessionTtlData_setSettings._initializeBuilder(this); + } + + GUpdateFlareSolverrSessionTtlData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrSessionTtlData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrSessionTtlData_setSettings; + } + + @override + void update( + void Function(GUpdateFlareSolverrSessionTtlData_setSettingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrSessionTtlData_setSettings build() => _build(); + + _$GUpdateFlareSolverrSessionTtlData_setSettings _build() { + _$GUpdateFlareSolverrSessionTtlData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateFlareSolverrSessionTtlData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GUpdateFlareSolverrSessionTtlData_setSettings', + 'G__typename'), + settings: settings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateFlareSolverrSessionTtlData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateFlareSolverrSessionTtlData_setSettings_settings + extends GUpdateFlareSolverrSessionTtlData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + + factory _$GUpdateFlareSolverrSessionTtlData_setSettings_settings( + [void Function( + GUpdateFlareSolverrSessionTtlData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateFlareSolverrSessionTtlData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GUpdateFlareSolverrSessionTtlData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'backupInterval'); + BuiltValueNullFieldError.checkNotNull( + backupPath, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'backupPath'); + BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull( + backupTime, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull(port, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + extensionRepos, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'localSourcePath'); + } + + @override + GUpdateFlareSolverrSessionTtlData_setSettings_settings rebuild( + void Function( + GUpdateFlareSolverrSessionTtlData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrSessionTtlData_setSettings_settingsBuilder toBuilder() => + new GUpdateFlareSolverrSessionTtlData_setSettings_settingsBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateFlareSolverrSessionTtlData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath)) + .toString(); + } +} + +class GUpdateFlareSolverrSessionTtlData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateFlareSolverrSessionTtlData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + GUpdateFlareSolverrSessionTtlData_setSettings_settingsBuilder() { + GUpdateFlareSolverrSessionTtlData_setSettings_settings._initializeBuilder( + this); + } + + GUpdateFlareSolverrSessionTtlData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrSessionTtlData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrSessionTtlData_setSettings_settings; + } + + @override + void update( + void Function( + GUpdateFlareSolverrSessionTtlData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrSessionTtlData_setSettings_settings build() => _build(); + + _$GUpdateFlareSolverrSessionTtlData_setSettings_settings _build() { + _$GUpdateFlareSolverrSessionTtlData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateFlareSolverrSessionTtlData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull(ip, r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull(port, r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull(socksProxyHost, r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull(socksProxyPassword, r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull(socksProxyPort, r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull(socksProxyUsername, r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull(socksProxyVersion, r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionName, r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull(localSourcePath, r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', 'localSourcePath')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateFlareSolverrTimeoutData extends GUpdateFlareSolverrTimeoutData { + @override + final String G__typename; + @override + final GUpdateFlareSolverrTimeoutData_setSettings setSettings; + + factory _$GUpdateFlareSolverrTimeoutData( + [void Function(GUpdateFlareSolverrTimeoutDataBuilder)? updates]) => + (new GUpdateFlareSolverrTimeoutDataBuilder()..update(updates))._build(); + + _$GUpdateFlareSolverrTimeoutData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateFlareSolverrTimeoutData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateFlareSolverrTimeoutData', 'setSettings'); + } + + @override + GUpdateFlareSolverrTimeoutData rebuild( + void Function(GUpdateFlareSolverrTimeoutDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrTimeoutDataBuilder toBuilder() => + new GUpdateFlareSolverrTimeoutDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateFlareSolverrTimeoutData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateFlareSolverrTimeoutData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateFlareSolverrTimeoutDataBuilder + implements + Builder { + _$GUpdateFlareSolverrTimeoutData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateFlareSolverrTimeoutData_setSettingsBuilder? _setSettings; + GUpdateFlareSolverrTimeoutData_setSettingsBuilder get setSettings => + _$this._setSettings ??= + new GUpdateFlareSolverrTimeoutData_setSettingsBuilder(); + set setSettings( + GUpdateFlareSolverrTimeoutData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateFlareSolverrTimeoutDataBuilder() { + GUpdateFlareSolverrTimeoutData._initializeBuilder(this); + } + + GUpdateFlareSolverrTimeoutDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrTimeoutData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrTimeoutData; + } + + @override + void update(void Function(GUpdateFlareSolverrTimeoutDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrTimeoutData build() => _build(); + + _$GUpdateFlareSolverrTimeoutData _build() { + _$GUpdateFlareSolverrTimeoutData _$result; + try { + _$result = _$v ?? + new _$GUpdateFlareSolverrTimeoutData._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateFlareSolverrTimeoutData', 'G__typename'), + setSettings: setSettings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateFlareSolverrTimeoutData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateFlareSolverrTimeoutData_setSettings + extends GUpdateFlareSolverrTimeoutData_setSettings { + @override + final String G__typename; + @override + final GUpdateFlareSolverrTimeoutData_setSettings_settings settings; + + factory _$GUpdateFlareSolverrTimeoutData_setSettings( + [void Function(GUpdateFlareSolverrTimeoutData_setSettingsBuilder)? + updates]) => + (new GUpdateFlareSolverrTimeoutData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GUpdateFlareSolverrTimeoutData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateFlareSolverrTimeoutData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateFlareSolverrTimeoutData_setSettings', 'settings'); + } + + @override + GUpdateFlareSolverrTimeoutData_setSettings rebuild( + void Function(GUpdateFlareSolverrTimeoutData_setSettingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrTimeoutData_setSettingsBuilder toBuilder() => + new GUpdateFlareSolverrTimeoutData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateFlareSolverrTimeoutData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateFlareSolverrTimeoutData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateFlareSolverrTimeoutData_setSettingsBuilder + implements + Builder { + _$GUpdateFlareSolverrTimeoutData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateFlareSolverrTimeoutData_setSettings_settingsBuilder? _settings; + GUpdateFlareSolverrTimeoutData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateFlareSolverrTimeoutData_setSettings_settingsBuilder(); + set settings( + GUpdateFlareSolverrTimeoutData_setSettings_settingsBuilder? + settings) => + _$this._settings = settings; + + GUpdateFlareSolverrTimeoutData_setSettingsBuilder() { + GUpdateFlareSolverrTimeoutData_setSettings._initializeBuilder(this); + } + + GUpdateFlareSolverrTimeoutData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrTimeoutData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrTimeoutData_setSettings; + } + + @override + void update( + void Function(GUpdateFlareSolverrTimeoutData_setSettingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrTimeoutData_setSettings build() => _build(); + + _$GUpdateFlareSolverrTimeoutData_setSettings _build() { + _$GUpdateFlareSolverrTimeoutData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateFlareSolverrTimeoutData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateFlareSolverrTimeoutData_setSettings', 'G__typename'), + settings: settings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateFlareSolverrTimeoutData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateFlareSolverrTimeoutData_setSettings_settings + extends GUpdateFlareSolverrTimeoutData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + + factory _$GUpdateFlareSolverrTimeoutData_setSettings_settings( + [void Function( + GUpdateFlareSolverrTimeoutData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateFlareSolverrTimeoutData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GUpdateFlareSolverrTimeoutData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'backupInterval'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateFlareSolverrTimeoutData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateFlareSolverrTimeoutData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + extensionRepos, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'localSourcePath'); + } + + @override + GUpdateFlareSolverrTimeoutData_setSettings_settings rebuild( + void Function( + GUpdateFlareSolverrTimeoutData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrTimeoutData_setSettings_settingsBuilder toBuilder() => + new GUpdateFlareSolverrTimeoutData_setSettings_settingsBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateFlareSolverrTimeoutData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateFlareSolverrTimeoutData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath)) + .toString(); + } +} + +class GUpdateFlareSolverrTimeoutData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateFlareSolverrTimeoutData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + GUpdateFlareSolverrTimeoutData_setSettings_settingsBuilder() { + GUpdateFlareSolverrTimeoutData_setSettings_settings._initializeBuilder( + this); + } + + GUpdateFlareSolverrTimeoutData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrTimeoutData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrTimeoutData_setSettings_settings; + } + + @override + void update( + void Function(GUpdateFlareSolverrTimeoutData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrTimeoutData_setSettings_settings build() => _build(); + + _$GUpdateFlareSolverrTimeoutData_setSettings_settings _build() { + _$GUpdateFlareSolverrTimeoutData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateFlareSolverrTimeoutData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, r'GUpdateFlareSolverrTimeoutData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GUpdateFlareSolverrTimeoutData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull(ip, r'GUpdateFlareSolverrTimeoutData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull(port, r'GUpdateFlareSolverrTimeoutData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, r'GUpdateFlareSolverrTimeoutData_setSettings_settings', 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull(socksProxyHost, r'GUpdateFlareSolverrTimeoutData_setSettings_settings', 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull(socksProxyPassword, r'GUpdateFlareSolverrTimeoutData_setSettings_settings', 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull(socksProxyPort, r'GUpdateFlareSolverrTimeoutData_setSettings_settings', 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull(socksProxyUsername, r'GUpdateFlareSolverrTimeoutData_setSettings_settings', 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull(socksProxyVersion, r'GUpdateFlareSolverrTimeoutData_setSettings_settings', 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, r'GUpdateFlareSolverrTimeoutData_setSettings_settings', 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionName, r'GUpdateFlareSolverrTimeoutData_setSettings_settings', 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, r'GUpdateFlareSolverrTimeoutData_setSettings_settings', 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, r'GUpdateFlareSolverrTimeoutData_setSettings_settings', 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, r'GUpdateFlareSolverrTimeoutData_setSettings_settings', 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, r'GUpdateFlareSolverrTimeoutData_setSettings_settings', 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, r'GUpdateFlareSolverrTimeoutData_setSettings_settings', 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, r'GUpdateFlareSolverrTimeoutData_setSettings_settings', 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, r'GUpdateFlareSolverrTimeoutData_setSettings_settings', 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull(localSourcePath, r'GUpdateFlareSolverrTimeoutData_setSettings_settings', 'localSourcePath')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateFlareSolverrUrlData extends GUpdateFlareSolverrUrlData { + @override + final String G__typename; + @override + final GUpdateFlareSolverrUrlData_setSettings setSettings; + + factory _$GUpdateFlareSolverrUrlData( + [void Function(GUpdateFlareSolverrUrlDataBuilder)? updates]) => + (new GUpdateFlareSolverrUrlDataBuilder()..update(updates))._build(); + + _$GUpdateFlareSolverrUrlData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateFlareSolverrUrlData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateFlareSolverrUrlData', 'setSettings'); + } + + @override + GUpdateFlareSolverrUrlData rebuild( + void Function(GUpdateFlareSolverrUrlDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrUrlDataBuilder toBuilder() => + new GUpdateFlareSolverrUrlDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateFlareSolverrUrlData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateFlareSolverrUrlData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateFlareSolverrUrlDataBuilder + implements + Builder { + _$GUpdateFlareSolverrUrlData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateFlareSolverrUrlData_setSettingsBuilder? _setSettings; + GUpdateFlareSolverrUrlData_setSettingsBuilder get setSettings => + _$this._setSettings ??= + new GUpdateFlareSolverrUrlData_setSettingsBuilder(); + set setSettings(GUpdateFlareSolverrUrlData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateFlareSolverrUrlDataBuilder() { + GUpdateFlareSolverrUrlData._initializeBuilder(this); + } + + GUpdateFlareSolverrUrlDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrUrlData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrUrlData; + } + + @override + void update(void Function(GUpdateFlareSolverrUrlDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrUrlData build() => _build(); + + _$GUpdateFlareSolverrUrlData _build() { + _$GUpdateFlareSolverrUrlData _$result; + try { + _$result = _$v ?? + new _$GUpdateFlareSolverrUrlData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateFlareSolverrUrlData', 'G__typename'), + setSettings: setSettings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateFlareSolverrUrlData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateFlareSolverrUrlData_setSettings + extends GUpdateFlareSolverrUrlData_setSettings { + @override + final String G__typename; + @override + final GUpdateFlareSolverrUrlData_setSettings_settings settings; + + factory _$GUpdateFlareSolverrUrlData_setSettings( + [void Function(GUpdateFlareSolverrUrlData_setSettingsBuilder)? + updates]) => + (new GUpdateFlareSolverrUrlData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GUpdateFlareSolverrUrlData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateFlareSolverrUrlData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateFlareSolverrUrlData_setSettings', 'settings'); + } + + @override + GUpdateFlareSolverrUrlData_setSettings rebuild( + void Function(GUpdateFlareSolverrUrlData_setSettingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrUrlData_setSettingsBuilder toBuilder() => + new GUpdateFlareSolverrUrlData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateFlareSolverrUrlData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateFlareSolverrUrlData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateFlareSolverrUrlData_setSettingsBuilder + implements + Builder { + _$GUpdateFlareSolverrUrlData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateFlareSolverrUrlData_setSettings_settingsBuilder? _settings; + GUpdateFlareSolverrUrlData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateFlareSolverrUrlData_setSettings_settingsBuilder(); + set settings( + GUpdateFlareSolverrUrlData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GUpdateFlareSolverrUrlData_setSettingsBuilder() { + GUpdateFlareSolverrUrlData_setSettings._initializeBuilder(this); + } + + GUpdateFlareSolverrUrlData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrUrlData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrUrlData_setSettings; + } + + @override + void update( + void Function(GUpdateFlareSolverrUrlData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrUrlData_setSettings build() => _build(); + + _$GUpdateFlareSolverrUrlData_setSettings _build() { + _$GUpdateFlareSolverrUrlData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateFlareSolverrUrlData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateFlareSolverrUrlData_setSettings', 'G__typename'), + settings: settings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateFlareSolverrUrlData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateFlareSolverrUrlData_setSettings_settings + extends GUpdateFlareSolverrUrlData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + + factory _$GUpdateFlareSolverrUrlData_setSettings_settings( + [void Function( + GUpdateFlareSolverrUrlData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateFlareSolverrUrlData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GUpdateFlareSolverrUrlData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateFlareSolverrUrlData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GUpdateFlareSolverrUrlData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateFlareSolverrUrlData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateFlareSolverrUrlData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateFlareSolverrUrlData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateFlareSolverrUrlData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateFlareSolverrUrlData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GUpdateFlareSolverrUrlData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GUpdateFlareSolverrUrlData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GUpdateFlareSolverrUrlData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GUpdateFlareSolverrUrlData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GUpdateFlareSolverrUrlData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GUpdateFlareSolverrUrlData_setSettings_settings', 'localSourcePath'); + } + + @override + GUpdateFlareSolverrUrlData_setSettings_settings rebuild( + void Function(GUpdateFlareSolverrUrlData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrUrlData_setSettings_settingsBuilder toBuilder() => + new GUpdateFlareSolverrUrlData_setSettings_settingsBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateFlareSolverrUrlData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateFlareSolverrUrlData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath)) + .toString(); + } +} + +class GUpdateFlareSolverrUrlData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateFlareSolverrUrlData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + GUpdateFlareSolverrUrlData_setSettings_settingsBuilder() { + GUpdateFlareSolverrUrlData_setSettings_settings._initializeBuilder(this); + } + + GUpdateFlareSolverrUrlData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrUrlData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrUrlData_setSettings_settings; + } + + @override + void update( + void Function(GUpdateFlareSolverrUrlData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrUrlData_setSettings_settings build() => _build(); + + _$GUpdateFlareSolverrUrlData_setSettings_settings _build() { + _$GUpdateFlareSolverrUrlData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateFlareSolverrUrlData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateFlareSolverrUrlData_setSettings_settings', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, r'GUpdateFlareSolverrUrlData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GUpdateFlareSolverrUrlData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, r'GUpdateFlareSolverrUrlData_setSettings_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateFlareSolverrUrlData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull(port, r'GUpdateFlareSolverrUrlData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, r'GUpdateFlareSolverrUrlData_setSettings_settings', 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull(socksProxyHost, r'GUpdateFlareSolverrUrlData_setSettings_settings', 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull(socksProxyPassword, r'GUpdateFlareSolverrUrlData_setSettings_settings', 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull(socksProxyPort, r'GUpdateFlareSolverrUrlData_setSettings_settings', 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull(socksProxyUsername, r'GUpdateFlareSolverrUrlData_setSettings_settings', 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull(socksProxyVersion, r'GUpdateFlareSolverrUrlData_setSettings_settings', 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, r'GUpdateFlareSolverrUrlData_setSettings_settings', 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionName, r'GUpdateFlareSolverrUrlData_setSettings_settings', 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, r'GUpdateFlareSolverrUrlData_setSettings_settings', 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, r'GUpdateFlareSolverrUrlData_setSettings_settings', 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, r'GUpdateFlareSolverrUrlData_setSettings_settings', 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, r'GUpdateFlareSolverrUrlData_setSettings_settings', 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, r'GUpdateFlareSolverrUrlData_setSettings_settings', 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, r'GUpdateFlareSolverrUrlData_setSettings_settings', 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, r'GUpdateFlareSolverrUrlData_setSettings_settings', 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull(localSourcePath, r'GUpdateFlareSolverrUrlData_setSettings_settings', 'localSourcePath')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateFlareSolverrUrlData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleDebugLogsData extends GToggleDebugLogsData { + @override + final String G__typename; + @override + final GToggleDebugLogsData_setSettings setSettings; + + factory _$GToggleDebugLogsData( + [void Function(GToggleDebugLogsDataBuilder)? updates]) => + (new GToggleDebugLogsDataBuilder()..update(updates))._build(); + + _$GToggleDebugLogsData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleDebugLogsData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GToggleDebugLogsData', 'setSettings'); + } + + @override + GToggleDebugLogsData rebuild( + void Function(GToggleDebugLogsDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleDebugLogsDataBuilder toBuilder() => + new GToggleDebugLogsDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleDebugLogsData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleDebugLogsData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GToggleDebugLogsDataBuilder + implements Builder { + _$GToggleDebugLogsData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GToggleDebugLogsData_setSettingsBuilder? _setSettings; + GToggleDebugLogsData_setSettingsBuilder get setSettings => + _$this._setSettings ??= new GToggleDebugLogsData_setSettingsBuilder(); + set setSettings(GToggleDebugLogsData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GToggleDebugLogsDataBuilder() { + GToggleDebugLogsData._initializeBuilder(this); + } + + GToggleDebugLogsDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GToggleDebugLogsData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleDebugLogsData; + } + + @override + void update(void Function(GToggleDebugLogsDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleDebugLogsData build() => _build(); + + _$GToggleDebugLogsData _build() { + _$GToggleDebugLogsData _$result; + try { + _$result = _$v ?? + new _$GToggleDebugLogsData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleDebugLogsData', 'G__typename'), + setSettings: setSettings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleDebugLogsData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleDebugLogsData_setSettings + extends GToggleDebugLogsData_setSettings { + @override + final String G__typename; + @override + final GToggleDebugLogsData_setSettings_settings settings; + + factory _$GToggleDebugLogsData_setSettings( + [void Function(GToggleDebugLogsData_setSettingsBuilder)? updates]) => + (new GToggleDebugLogsData_setSettingsBuilder()..update(updates))._build(); + + _$GToggleDebugLogsData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleDebugLogsData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GToggleDebugLogsData_setSettings', 'settings'); + } + + @override + GToggleDebugLogsData_setSettings rebuild( + void Function(GToggleDebugLogsData_setSettingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleDebugLogsData_setSettingsBuilder toBuilder() => + new GToggleDebugLogsData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleDebugLogsData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleDebugLogsData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GToggleDebugLogsData_setSettingsBuilder + implements + Builder { + _$GToggleDebugLogsData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GToggleDebugLogsData_setSettings_settingsBuilder? _settings; + GToggleDebugLogsData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GToggleDebugLogsData_setSettings_settingsBuilder(); + set settings(GToggleDebugLogsData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GToggleDebugLogsData_setSettingsBuilder() { + GToggleDebugLogsData_setSettings._initializeBuilder(this); + } + + GToggleDebugLogsData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GToggleDebugLogsData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleDebugLogsData_setSettings; + } + + @override + void update(void Function(GToggleDebugLogsData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleDebugLogsData_setSettings build() => _build(); + + _$GToggleDebugLogsData_setSettings _build() { + _$GToggleDebugLogsData_setSettings _$result; + try { + _$result = _$v ?? + new _$GToggleDebugLogsData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleDebugLogsData_setSettings', 'G__typename'), + settings: settings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleDebugLogsData_setSettings', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleDebugLogsData_setSettings_settings + extends GToggleDebugLogsData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + + factory _$GToggleDebugLogsData_setSettings_settings( + [void Function(GToggleDebugLogsData_setSettings_settingsBuilder)? + updates]) => + (new GToggleDebugLogsData_setSettings_settingsBuilder()..update(updates)) + ._build(); + + _$GToggleDebugLogsData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleDebugLogsData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GToggleDebugLogsData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull( + backupPath, r'GToggleDebugLogsData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GToggleDebugLogsData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull( + backupTime, r'GToggleDebugLogsData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GToggleDebugLogsData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GToggleDebugLogsData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, + r'GToggleDebugLogsData_setSettings_settings', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GToggleDebugLogsData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull(socksProxyPassword, + r'GToggleDebugLogsData_setSettings_settings', 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GToggleDebugLogsData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull(socksProxyUsername, + r'GToggleDebugLogsData_setSettings_settings', 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull(socksProxyVersion, + r'GToggleDebugLogsData_setSettings_settings', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, + r'GToggleDebugLogsData_setSettings_settings', 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GToggleDebugLogsData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, + r'GToggleDebugLogsData_setSettings_settings', 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, + r'GToggleDebugLogsData_setSettings_settings', 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GToggleDebugLogsData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GToggleDebugLogsData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, + r'GToggleDebugLogsData_setSettings_settings', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, + r'GToggleDebugLogsData_setSettings_settings', 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GToggleDebugLogsData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, + r'GToggleDebugLogsData_setSettings_settings', 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GToggleDebugLogsData_setSettings_settings', 'localSourcePath'); + } + + @override + GToggleDebugLogsData_setSettings_settings rebuild( + void Function(GToggleDebugLogsData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleDebugLogsData_setSettings_settingsBuilder toBuilder() => + new GToggleDebugLogsData_setSettings_settingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleDebugLogsData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GToggleDebugLogsData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath)) + .toString(); + } +} + +class GToggleDebugLogsData_setSettings_settingsBuilder + implements + Builder { + _$GToggleDebugLogsData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + GToggleDebugLogsData_setSettings_settingsBuilder() { + GToggleDebugLogsData_setSettings_settings._initializeBuilder(this); + } + + GToggleDebugLogsData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _$v = null; + } + return this; + } + + @override + void replace(GToggleDebugLogsData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleDebugLogsData_setSettings_settings; + } + + @override + void update( + void Function(GToggleDebugLogsData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GToggleDebugLogsData_setSettings_settings build() => _build(); + + _$GToggleDebugLogsData_setSettings_settings _build() { + _$GToggleDebugLogsData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GToggleDebugLogsData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleDebugLogsData_setSettings_settings', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GToggleDebugLogsData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, r'GToggleDebugLogsData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GToggleDebugLogsData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, r'GToggleDebugLogsData_setSettings_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GToggleDebugLogsData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull(port, r'GToggleDebugLogsData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, r'GToggleDebugLogsData_setSettings_settings', 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull(socksProxyHost, r'GToggleDebugLogsData_setSettings_settings', 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull(socksProxyPassword, r'GToggleDebugLogsData_setSettings_settings', 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull(socksProxyPort, r'GToggleDebugLogsData_setSettings_settings', 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull(socksProxyUsername, r'GToggleDebugLogsData_setSettings_settings', 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull(socksProxyVersion, r'GToggleDebugLogsData_setSettings_settings', 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, r'GToggleDebugLogsData_setSettings_settings', 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionName, r'GToggleDebugLogsData_setSettings_settings', 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, r'GToggleDebugLogsData_setSettings_settings', 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, r'GToggleDebugLogsData_setSettings_settings', 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, r'GToggleDebugLogsData_setSettings_settings', 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, r'GToggleDebugLogsData_setSettings_settings', 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, r'GToggleDebugLogsData_setSettings_settings', 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, r'GToggleDebugLogsData_setSettings_settings', 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, r'GToggleDebugLogsData_setSettings_settings', 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull(localSourcePath, r'GToggleDebugLogsData_setSettings_settings', 'localSourcePath')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleDebugLogsData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleGqlDebugLogsData extends GToggleGqlDebugLogsData { + @override + final String G__typename; + @override + final GToggleGqlDebugLogsData_setSettings setSettings; + + factory _$GToggleGqlDebugLogsData( + [void Function(GToggleGqlDebugLogsDataBuilder)? updates]) => + (new GToggleGqlDebugLogsDataBuilder()..update(updates))._build(); + + _$GToggleGqlDebugLogsData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleGqlDebugLogsData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GToggleGqlDebugLogsData', 'setSettings'); + } + + @override + GToggleGqlDebugLogsData rebuild( + void Function(GToggleGqlDebugLogsDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleGqlDebugLogsDataBuilder toBuilder() => + new GToggleGqlDebugLogsDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleGqlDebugLogsData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleGqlDebugLogsData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GToggleGqlDebugLogsDataBuilder + implements + Builder { + _$GToggleGqlDebugLogsData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GToggleGqlDebugLogsData_setSettingsBuilder? _setSettings; + GToggleGqlDebugLogsData_setSettingsBuilder get setSettings => + _$this._setSettings ??= new GToggleGqlDebugLogsData_setSettingsBuilder(); + set setSettings(GToggleGqlDebugLogsData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GToggleGqlDebugLogsDataBuilder() { + GToggleGqlDebugLogsData._initializeBuilder(this); + } + + GToggleGqlDebugLogsDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GToggleGqlDebugLogsData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleGqlDebugLogsData; + } + + @override + void update(void Function(GToggleGqlDebugLogsDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleGqlDebugLogsData build() => _build(); + + _$GToggleGqlDebugLogsData _build() { + _$GToggleGqlDebugLogsData _$result; + try { + _$result = _$v ?? + new _$GToggleGqlDebugLogsData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleGqlDebugLogsData', 'G__typename'), + setSettings: setSettings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleGqlDebugLogsData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleGqlDebugLogsData_setSettings + extends GToggleGqlDebugLogsData_setSettings { + @override + final String G__typename; + @override + final GToggleGqlDebugLogsData_setSettings_settings settings; + + factory _$GToggleGqlDebugLogsData_setSettings( + [void Function(GToggleGqlDebugLogsData_setSettingsBuilder)? + updates]) => + (new GToggleGqlDebugLogsData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GToggleGqlDebugLogsData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleGqlDebugLogsData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GToggleGqlDebugLogsData_setSettings', 'settings'); + } + + @override + GToggleGqlDebugLogsData_setSettings rebuild( + void Function(GToggleGqlDebugLogsData_setSettingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleGqlDebugLogsData_setSettingsBuilder toBuilder() => + new GToggleGqlDebugLogsData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleGqlDebugLogsData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleGqlDebugLogsData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GToggleGqlDebugLogsData_setSettingsBuilder + implements + Builder { + _$GToggleGqlDebugLogsData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GToggleGqlDebugLogsData_setSettings_settingsBuilder? _settings; + GToggleGqlDebugLogsData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GToggleGqlDebugLogsData_setSettings_settingsBuilder(); + set settings(GToggleGqlDebugLogsData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GToggleGqlDebugLogsData_setSettingsBuilder() { + GToggleGqlDebugLogsData_setSettings._initializeBuilder(this); + } + + GToggleGqlDebugLogsData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GToggleGqlDebugLogsData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleGqlDebugLogsData_setSettings; + } + + @override + void update( + void Function(GToggleGqlDebugLogsData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleGqlDebugLogsData_setSettings build() => _build(); + + _$GToggleGqlDebugLogsData_setSettings _build() { + _$GToggleGqlDebugLogsData_setSettings _$result; + try { + _$result = _$v ?? + new _$GToggleGqlDebugLogsData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleGqlDebugLogsData_setSettings', 'G__typename'), + settings: settings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleGqlDebugLogsData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleGqlDebugLogsData_setSettings_settings + extends GToggleGqlDebugLogsData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + + factory _$GToggleGqlDebugLogsData_setSettings_settings( + [void Function(GToggleGqlDebugLogsData_setSettings_settingsBuilder)? + updates]) => + (new GToggleGqlDebugLogsData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GToggleGqlDebugLogsData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleGqlDebugLogsData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GToggleGqlDebugLogsData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GToggleGqlDebugLogsData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GToggleGqlDebugLogsData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GToggleGqlDebugLogsData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GToggleGqlDebugLogsData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GToggleGqlDebugLogsData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, + r'GToggleGqlDebugLogsData_setSettings_settings', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GToggleGqlDebugLogsData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull(socksProxyPassword, + r'GToggleGqlDebugLogsData_setSettings_settings', 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GToggleGqlDebugLogsData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull(socksProxyUsername, + r'GToggleGqlDebugLogsData_setSettings_settings', 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull(socksProxyVersion, + r'GToggleGqlDebugLogsData_setSettings_settings', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, + r'GToggleGqlDebugLogsData_setSettings_settings', 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, + r'GToggleGqlDebugLogsData_setSettings_settings', 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GToggleGqlDebugLogsData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GToggleGqlDebugLogsData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, + r'GToggleGqlDebugLogsData_setSettings_settings', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, + r'GToggleGqlDebugLogsData_setSettings_settings', 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GToggleGqlDebugLogsData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GToggleGqlDebugLogsData_setSettings_settings', 'localSourcePath'); + } + + @override + GToggleGqlDebugLogsData_setSettings_settings rebuild( + void Function(GToggleGqlDebugLogsData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleGqlDebugLogsData_setSettings_settingsBuilder toBuilder() => + new GToggleGqlDebugLogsData_setSettings_settingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleGqlDebugLogsData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GToggleGqlDebugLogsData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath)) + .toString(); + } +} + +class GToggleGqlDebugLogsData_setSettings_settingsBuilder + implements + Builder { + _$GToggleGqlDebugLogsData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + GToggleGqlDebugLogsData_setSettings_settingsBuilder() { + GToggleGqlDebugLogsData_setSettings_settings._initializeBuilder(this); + } + + GToggleGqlDebugLogsData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _$v = null; + } + return this; + } + + @override + void replace(GToggleGqlDebugLogsData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleGqlDebugLogsData_setSettings_settings; + } + + @override + void update( + void Function(GToggleGqlDebugLogsData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GToggleGqlDebugLogsData_setSettings_settings build() => _build(); + + _$GToggleGqlDebugLogsData_setSettings_settings _build() { + _$GToggleGqlDebugLogsData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GToggleGqlDebugLogsData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleGqlDebugLogsData_setSettings_settings', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, r'GToggleGqlDebugLogsData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GToggleGqlDebugLogsData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, r'GToggleGqlDebugLogsData_setSettings_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GToggleGqlDebugLogsData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull(port, r'GToggleGqlDebugLogsData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, r'GToggleGqlDebugLogsData_setSettings_settings', 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull(socksProxyHost, r'GToggleGqlDebugLogsData_setSettings_settings', 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull(socksProxyPassword, r'GToggleGqlDebugLogsData_setSettings_settings', 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull(socksProxyPort, r'GToggleGqlDebugLogsData_setSettings_settings', 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull(socksProxyUsername, r'GToggleGqlDebugLogsData_setSettings_settings', 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull(socksProxyVersion, r'GToggleGqlDebugLogsData_setSettings_settings', 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, r'GToggleGqlDebugLogsData_setSettings_settings', 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionName, r'GToggleGqlDebugLogsData_setSettings_settings', 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, r'GToggleGqlDebugLogsData_setSettings_settings', 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, r'GToggleGqlDebugLogsData_setSettings_settings', 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, r'GToggleGqlDebugLogsData_setSettings_settings', 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, r'GToggleGqlDebugLogsData_setSettings_settings', 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, r'GToggleGqlDebugLogsData_setSettings_settings', 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, r'GToggleGqlDebugLogsData_setSettings_settings', 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, r'GToggleGqlDebugLogsData_setSettings_settings', 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull(localSourcePath, r'GToggleGqlDebugLogsData_setSettings_settings', 'localSourcePath')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleGqlDebugLogsData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleSystemTrayEnabledData extends GToggleSystemTrayEnabledData { + @override + final String G__typename; + @override + final GToggleSystemTrayEnabledData_setSettings setSettings; + + factory _$GToggleSystemTrayEnabledData( + [void Function(GToggleSystemTrayEnabledDataBuilder)? updates]) => + (new GToggleSystemTrayEnabledDataBuilder()..update(updates))._build(); + + _$GToggleSystemTrayEnabledData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleSystemTrayEnabledData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GToggleSystemTrayEnabledData', 'setSettings'); + } + + @override + GToggleSystemTrayEnabledData rebuild( + void Function(GToggleSystemTrayEnabledDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleSystemTrayEnabledDataBuilder toBuilder() => + new GToggleSystemTrayEnabledDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleSystemTrayEnabledData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleSystemTrayEnabledData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GToggleSystemTrayEnabledDataBuilder + implements + Builder { + _$GToggleSystemTrayEnabledData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GToggleSystemTrayEnabledData_setSettingsBuilder? _setSettings; + GToggleSystemTrayEnabledData_setSettingsBuilder get setSettings => + _$this._setSettings ??= + new GToggleSystemTrayEnabledData_setSettingsBuilder(); + set setSettings( + GToggleSystemTrayEnabledData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GToggleSystemTrayEnabledDataBuilder() { + GToggleSystemTrayEnabledData._initializeBuilder(this); + } + + GToggleSystemTrayEnabledDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GToggleSystemTrayEnabledData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleSystemTrayEnabledData; + } + + @override + void update(void Function(GToggleSystemTrayEnabledDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleSystemTrayEnabledData build() => _build(); + + _$GToggleSystemTrayEnabledData _build() { + _$GToggleSystemTrayEnabledData _$result; + try { + _$result = _$v ?? + new _$GToggleSystemTrayEnabledData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleSystemTrayEnabledData', 'G__typename'), + setSettings: setSettings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleSystemTrayEnabledData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleSystemTrayEnabledData_setSettings + extends GToggleSystemTrayEnabledData_setSettings { + @override + final String G__typename; + @override + final GToggleSystemTrayEnabledData_setSettings_settings settings; + + factory _$GToggleSystemTrayEnabledData_setSettings( + [void Function(GToggleSystemTrayEnabledData_setSettingsBuilder)? + updates]) => + (new GToggleSystemTrayEnabledData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GToggleSystemTrayEnabledData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleSystemTrayEnabledData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GToggleSystemTrayEnabledData_setSettings', 'settings'); + } + + @override + GToggleSystemTrayEnabledData_setSettings rebuild( + void Function(GToggleSystemTrayEnabledData_setSettingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleSystemTrayEnabledData_setSettingsBuilder toBuilder() => + new GToggleSystemTrayEnabledData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleSystemTrayEnabledData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GToggleSystemTrayEnabledData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GToggleSystemTrayEnabledData_setSettingsBuilder + implements + Builder { + _$GToggleSystemTrayEnabledData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GToggleSystemTrayEnabledData_setSettings_settingsBuilder? _settings; + GToggleSystemTrayEnabledData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GToggleSystemTrayEnabledData_setSettings_settingsBuilder(); + set settings( + GToggleSystemTrayEnabledData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GToggleSystemTrayEnabledData_setSettingsBuilder() { + GToggleSystemTrayEnabledData_setSettings._initializeBuilder(this); + } + + GToggleSystemTrayEnabledData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GToggleSystemTrayEnabledData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleSystemTrayEnabledData_setSettings; + } + + @override + void update( + void Function(GToggleSystemTrayEnabledData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleSystemTrayEnabledData_setSettings build() => _build(); + + _$GToggleSystemTrayEnabledData_setSettings _build() { + _$GToggleSystemTrayEnabledData_setSettings _$result; + try { + _$result = _$v ?? + new _$GToggleSystemTrayEnabledData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleSystemTrayEnabledData_setSettings', 'G__typename'), + settings: settings.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleSystemTrayEnabledData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleSystemTrayEnabledData_setSettings_settings + extends GToggleSystemTrayEnabledData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + + factory _$GToggleSystemTrayEnabledData_setSettings_settings( + [void Function( + GToggleSystemTrayEnabledData_setSettings_settingsBuilder)? + updates]) => + (new GToggleSystemTrayEnabledData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GToggleSystemTrayEnabledData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleSystemTrayEnabledData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GToggleSystemTrayEnabledData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GToggleSystemTrayEnabledData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GToggleSystemTrayEnabledData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GToggleSystemTrayEnabledData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GToggleSystemTrayEnabledData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GToggleSystemTrayEnabledData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GToggleSystemTrayEnabledData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GToggleSystemTrayEnabledData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GToggleSystemTrayEnabledData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'localSourcePath'); + } + + @override + GToggleSystemTrayEnabledData_setSettings_settings rebuild( + void Function( + GToggleSystemTrayEnabledData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleSystemTrayEnabledData_setSettings_settingsBuilder toBuilder() => + new GToggleSystemTrayEnabledData_setSettings_settingsBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleSystemTrayEnabledData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GToggleSystemTrayEnabledData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath)) + .toString(); + } +} + +class GToggleSystemTrayEnabledData_setSettings_settingsBuilder + implements + Builder { + _$GToggleSystemTrayEnabledData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + GToggleSystemTrayEnabledData_setSettings_settingsBuilder() { + GToggleSystemTrayEnabledData_setSettings_settings._initializeBuilder(this); + } + + GToggleSystemTrayEnabledData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _$v = null; + } + return this; + } + + @override + void replace(GToggleSystemTrayEnabledData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleSystemTrayEnabledData_setSettings_settings; + } + + @override + void update( + void Function(GToggleSystemTrayEnabledData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GToggleSystemTrayEnabledData_setSettings_settings build() => _build(); + + _$GToggleSystemTrayEnabledData_setSettings_settings _build() { + _$GToggleSystemTrayEnabledData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GToggleSystemTrayEnabledData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleSystemTrayEnabledData_setSettings_settings', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, r'GToggleSystemTrayEnabledData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GToggleSystemTrayEnabledData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, r'GToggleSystemTrayEnabledData_setSettings_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GToggleSystemTrayEnabledData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull(port, r'GToggleSystemTrayEnabledData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, r'GToggleSystemTrayEnabledData_setSettings_settings', 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull(socksProxyHost, r'GToggleSystemTrayEnabledData_setSettings_settings', 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull(socksProxyPassword, r'GToggleSystemTrayEnabledData_setSettings_settings', 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull(socksProxyPort, r'GToggleSystemTrayEnabledData_setSettings_settings', 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull(socksProxyUsername, r'GToggleSystemTrayEnabledData_setSettings_settings', 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull(socksProxyVersion, r'GToggleSystemTrayEnabledData_setSettings_settings', 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, r'GToggleSystemTrayEnabledData_setSettings_settings', 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionName, r'GToggleSystemTrayEnabledData_setSettings_settings', 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, r'GToggleSystemTrayEnabledData_setSettings_settings', 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, r'GToggleSystemTrayEnabledData_setSettings_settings', 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, r'GToggleSystemTrayEnabledData_setSettings_settings', 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, r'GToggleSystemTrayEnabledData_setSettings_settings', 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, r'GToggleSystemTrayEnabledData_setSettings_settings', 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, r'GToggleSystemTrayEnabledData_setSettings_settings', 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, r'GToggleSystemTrayEnabledData_setSettings_settings', 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull(localSourcePath, r'GToggleSystemTrayEnabledData_setSettings_settings', 'localSourcePath')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleSystemTrayEnabledData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/__generated__/server_settings_query.req.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/__generated__/server_settings_query.req.gql.dart new file mode 100644 index 00000000..303590db --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/__generated__/server_settings_query.req.gql.dart @@ -0,0 +1,1325 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/__generated__/server_settings_query.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/__generated__/server_settings_query.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/__generated__/server_settings_query.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'server_settings_query.req.gql.g.dart'; + +abstract class GUpdateServerIpReq + implements + Built, + _i1.OperationRequest<_i2.GUpdateServerIpData, _i3.GUpdateServerIpVars> { + GUpdateServerIpReq._(); + + factory GUpdateServerIpReq( + [void Function(GUpdateServerIpReqBuilder b) updates]) = + _$GUpdateServerIpReq; + + static void _initializeBuilder(GUpdateServerIpReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateServerIp', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateServerIpVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateServerIpData? Function( + _i2.GUpdateServerIpData?, + _i2.GUpdateServerIpData?, + )? get updateResult; + @override + _i2.GUpdateServerIpData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateServerIpData? parseData(Map json) => + _i2.GUpdateServerIpData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateServerIpData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateServerIpData, _i3.GUpdateServerIpVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateServerIpReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateServerIpReq.serializer, + this, + ) as Map); + + static GUpdateServerIpReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateServerIpReq.serializer, + json, + ); +} + +abstract class GUpdatePortReq + implements + Built, + _i1.OperationRequest<_i2.GUpdatePortData, _i3.GUpdatePortVars> { + GUpdatePortReq._(); + + factory GUpdatePortReq([void Function(GUpdatePortReqBuilder b) updates]) = + _$GUpdatePortReq; + + static void _initializeBuilder(GUpdatePortReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdatePort', + ) + ..executeOnListen = true; + + @override + _i3.GUpdatePortVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdatePortData? Function( + _i2.GUpdatePortData?, + _i2.GUpdatePortData?, + )? get updateResult; + @override + _i2.GUpdatePortData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdatePortData? parseData(Map json) => + _i2.GUpdatePortData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdatePortData data) => data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdatePortData, _i3.GUpdatePortVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdatePortReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdatePortReq.serializer, + this, + ) as Map); + + static GUpdatePortReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdatePortReq.serializer, + json, + ); +} + +abstract class GToggleSocksProxyReq + implements + Built, + _i1.OperationRequest<_i2.GToggleSocksProxyData, + _i3.GToggleSocksProxyVars> { + GToggleSocksProxyReq._(); + + factory GToggleSocksProxyReq( + [void Function(GToggleSocksProxyReqBuilder b) updates]) = + _$GToggleSocksProxyReq; + + static void _initializeBuilder(GToggleSocksProxyReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'ToggleSocksProxy', + ) + ..executeOnListen = true; + + @override + _i3.GToggleSocksProxyVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GToggleSocksProxyData? Function( + _i2.GToggleSocksProxyData?, + _i2.GToggleSocksProxyData?, + )? get updateResult; + @override + _i2.GToggleSocksProxyData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GToggleSocksProxyData? parseData(Map json) => + _i2.GToggleSocksProxyData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GToggleSocksProxyData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GToggleSocksProxyData, _i3.GToggleSocksProxyVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gToggleSocksProxyReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GToggleSocksProxyReq.serializer, + this, + ) as Map); + + static GToggleSocksProxyReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GToggleSocksProxyReq.serializer, + json, + ); +} + +abstract class GUpdateSocksVersionReq + implements + Built, + _i1.OperationRequest<_i2.GUpdateSocksVersionData, + _i3.GUpdateSocksVersionVars> { + GUpdateSocksVersionReq._(); + + factory GUpdateSocksVersionReq( + [void Function(GUpdateSocksVersionReqBuilder b) updates]) = + _$GUpdateSocksVersionReq; + + static void _initializeBuilder(GUpdateSocksVersionReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateSocksVersion', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateSocksVersionVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateSocksVersionData? Function( + _i2.GUpdateSocksVersionData?, + _i2.GUpdateSocksVersionData?, + )? get updateResult; + @override + _i2.GUpdateSocksVersionData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateSocksVersionData? parseData(Map json) => + _i2.GUpdateSocksVersionData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateSocksVersionData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateSocksVersionData, _i3.GUpdateSocksVersionVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateSocksVersionReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateSocksVersionReq.serializer, + this, + ) as Map); + + static GUpdateSocksVersionReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateSocksVersionReq.serializer, + json, + ); +} + +abstract class GUpdateSocksHostReq + implements + Built, + _i1 + .OperationRequest<_i2.GUpdateSocksHostData, _i3.GUpdateSocksHostVars> { + GUpdateSocksHostReq._(); + + factory GUpdateSocksHostReq( + [void Function(GUpdateSocksHostReqBuilder b) updates]) = + _$GUpdateSocksHostReq; + + static void _initializeBuilder(GUpdateSocksHostReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateSocksHost', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateSocksHostVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateSocksHostData? Function( + _i2.GUpdateSocksHostData?, + _i2.GUpdateSocksHostData?, + )? get updateResult; + @override + _i2.GUpdateSocksHostData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateSocksHostData? parseData(Map json) => + _i2.GUpdateSocksHostData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateSocksHostData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateSocksHostData, _i3.GUpdateSocksHostVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateSocksHostReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateSocksHostReq.serializer, + this, + ) as Map); + + static GUpdateSocksHostReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateSocksHostReq.serializer, + json, + ); +} + +abstract class GUpdateSocksUserNameReq + implements + Built, + _i1.OperationRequest<_i2.GUpdateSocksUserNameData, + _i3.GUpdateSocksUserNameVars> { + GUpdateSocksUserNameReq._(); + + factory GUpdateSocksUserNameReq( + [void Function(GUpdateSocksUserNameReqBuilder b) updates]) = + _$GUpdateSocksUserNameReq; + + static void _initializeBuilder(GUpdateSocksUserNameReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateSocksUserName', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateSocksUserNameVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateSocksUserNameData? Function( + _i2.GUpdateSocksUserNameData?, + _i2.GUpdateSocksUserNameData?, + )? get updateResult; + @override + _i2.GUpdateSocksUserNameData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateSocksUserNameData? parseData(Map json) => + _i2.GUpdateSocksUserNameData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateSocksUserNameData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateSocksUserNameData, + _i3.GUpdateSocksUserNameVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateSocksUserNameReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateSocksUserNameReq.serializer, + this, + ) as Map); + + static GUpdateSocksUserNameReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateSocksUserNameReq.serializer, + json, + ); +} + +abstract class GUpdateSocksPasswordReq + implements + Built, + _i1.OperationRequest<_i2.GUpdateSocksPasswordData, + _i3.GUpdateSocksPasswordVars> { + GUpdateSocksPasswordReq._(); + + factory GUpdateSocksPasswordReq( + [void Function(GUpdateSocksPasswordReqBuilder b) updates]) = + _$GUpdateSocksPasswordReq; + + static void _initializeBuilder(GUpdateSocksPasswordReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateSocksPassword', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateSocksPasswordVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateSocksPasswordData? Function( + _i2.GUpdateSocksPasswordData?, + _i2.GUpdateSocksPasswordData?, + )? get updateResult; + @override + _i2.GUpdateSocksPasswordData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateSocksPasswordData? parseData(Map json) => + _i2.GUpdateSocksPasswordData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateSocksPasswordData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateSocksPasswordData, + _i3.GUpdateSocksPasswordVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateSocksPasswordReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateSocksPasswordReq.serializer, + this, + ) as Map); + + static GUpdateSocksPasswordReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateSocksPasswordReq.serializer, + json, + ); +} + +abstract class GUpdateSocksPortReq + implements + Built, + _i1 + .OperationRequest<_i2.GUpdateSocksPortData, _i3.GUpdateSocksPortVars> { + GUpdateSocksPortReq._(); + + factory GUpdateSocksPortReq( + [void Function(GUpdateSocksPortReqBuilder b) updates]) = + _$GUpdateSocksPortReq; + + static void _initializeBuilder(GUpdateSocksPortReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateSocksPort', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateSocksPortVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateSocksPortData? Function( + _i2.GUpdateSocksPortData?, + _i2.GUpdateSocksPortData?, + )? get updateResult; + @override + _i2.GUpdateSocksPortData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateSocksPortData? parseData(Map json) => + _i2.GUpdateSocksPortData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateSocksPortData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateSocksPortData, _i3.GUpdateSocksPortVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateSocksPortReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateSocksPortReq.serializer, + this, + ) as Map); + + static GUpdateSocksPortReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateSocksPortReq.serializer, + json, + ); +} + +abstract class GToggleFlareSolverrReq + implements + Built, + _i1.OperationRequest<_i2.GToggleFlareSolverrData, + _i3.GToggleFlareSolverrVars> { + GToggleFlareSolverrReq._(); + + factory GToggleFlareSolverrReq( + [void Function(GToggleFlareSolverrReqBuilder b) updates]) = + _$GToggleFlareSolverrReq; + + static void _initializeBuilder(GToggleFlareSolverrReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'ToggleFlareSolverr', + ) + ..executeOnListen = true; + + @override + _i3.GToggleFlareSolverrVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GToggleFlareSolverrData? Function( + _i2.GToggleFlareSolverrData?, + _i2.GToggleFlareSolverrData?, + )? get updateResult; + @override + _i2.GToggleFlareSolverrData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GToggleFlareSolverrData? parseData(Map json) => + _i2.GToggleFlareSolverrData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GToggleFlareSolverrData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GToggleFlareSolverrData, _i3.GToggleFlareSolverrVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gToggleFlareSolverrReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GToggleFlareSolverrReq.serializer, + this, + ) as Map); + + static GToggleFlareSolverrReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GToggleFlareSolverrReq.serializer, + json, + ); +} + +abstract class GUpdateFlareSolverrSessionNameReq + implements + Built, + _i1.OperationRequest<_i2.GUpdateFlareSolverrSessionNameData, + _i3.GUpdateFlareSolverrSessionNameVars> { + GUpdateFlareSolverrSessionNameReq._(); + + factory GUpdateFlareSolverrSessionNameReq( + [void Function(GUpdateFlareSolverrSessionNameReqBuilder b) updates]) = + _$GUpdateFlareSolverrSessionNameReq; + + static void _initializeBuilder(GUpdateFlareSolverrSessionNameReqBuilder b) => + b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateFlareSolverrSessionName', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateFlareSolverrSessionNameVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateFlareSolverrSessionNameData? Function( + _i2.GUpdateFlareSolverrSessionNameData?, + _i2.GUpdateFlareSolverrSessionNameData?, + )? get updateResult; + @override + _i2.GUpdateFlareSolverrSessionNameData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateFlareSolverrSessionNameData? parseData( + Map json) => + _i2.GUpdateFlareSolverrSessionNameData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson( + _i2.GUpdateFlareSolverrSessionNameData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateFlareSolverrSessionNameData, + _i3.GUpdateFlareSolverrSessionNameVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateFlareSolverrSessionNameReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateFlareSolverrSessionNameReq.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrSessionNameReq? fromJson( + Map json) => + _i6.serializers.deserializeWith( + GUpdateFlareSolverrSessionNameReq.serializer, + json, + ); +} + +abstract class GUpdateFlareSolverrSessionTtlReq + implements + Built, + _i1.OperationRequest<_i2.GUpdateFlareSolverrSessionTtlData, + _i3.GUpdateFlareSolverrSessionTtlVars> { + GUpdateFlareSolverrSessionTtlReq._(); + + factory GUpdateFlareSolverrSessionTtlReq( + [void Function(GUpdateFlareSolverrSessionTtlReqBuilder b) updates]) = + _$GUpdateFlareSolverrSessionTtlReq; + + static void _initializeBuilder(GUpdateFlareSolverrSessionTtlReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateFlareSolverrSessionTtl', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateFlareSolverrSessionTtlVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateFlareSolverrSessionTtlData? Function( + _i2.GUpdateFlareSolverrSessionTtlData?, + _i2.GUpdateFlareSolverrSessionTtlData?, + )? get updateResult; + @override + _i2.GUpdateFlareSolverrSessionTtlData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateFlareSolverrSessionTtlData? parseData(Map json) => + _i2.GUpdateFlareSolverrSessionTtlData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateFlareSolverrSessionTtlData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateFlareSolverrSessionTtlData, + _i3.GUpdateFlareSolverrSessionTtlVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateFlareSolverrSessionTtlReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateFlareSolverrSessionTtlReq.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrSessionTtlReq? fromJson( + Map json) => + _i6.serializers.deserializeWith( + GUpdateFlareSolverrSessionTtlReq.serializer, + json, + ); +} + +abstract class GUpdateFlareSolverrTimeoutReq + implements + Built, + _i1.OperationRequest<_i2.GUpdateFlareSolverrTimeoutData, + _i3.GUpdateFlareSolverrTimeoutVars> { + GUpdateFlareSolverrTimeoutReq._(); + + factory GUpdateFlareSolverrTimeoutReq( + [void Function(GUpdateFlareSolverrTimeoutReqBuilder b) updates]) = + _$GUpdateFlareSolverrTimeoutReq; + + static void _initializeBuilder(GUpdateFlareSolverrTimeoutReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateFlareSolverrTimeout', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateFlareSolverrTimeoutVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateFlareSolverrTimeoutData? Function( + _i2.GUpdateFlareSolverrTimeoutData?, + _i2.GUpdateFlareSolverrTimeoutData?, + )? get updateResult; + @override + _i2.GUpdateFlareSolverrTimeoutData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateFlareSolverrTimeoutData? parseData(Map json) => + _i2.GUpdateFlareSolverrTimeoutData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateFlareSolverrTimeoutData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateFlareSolverrTimeoutData, + _i3.GUpdateFlareSolverrTimeoutVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateFlareSolverrTimeoutReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateFlareSolverrTimeoutReq.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrTimeoutReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateFlareSolverrTimeoutReq.serializer, + json, + ); +} + +abstract class GUpdateFlareSolverrUrlReq + implements + Built, + _i1.OperationRequest<_i2.GUpdateFlareSolverrUrlData, + _i3.GUpdateFlareSolverrUrlVars> { + GUpdateFlareSolverrUrlReq._(); + + factory GUpdateFlareSolverrUrlReq( + [void Function(GUpdateFlareSolverrUrlReqBuilder b) updates]) = + _$GUpdateFlareSolverrUrlReq; + + static void _initializeBuilder(GUpdateFlareSolverrUrlReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateFlareSolverrUrl', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateFlareSolverrUrlVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateFlareSolverrUrlData? Function( + _i2.GUpdateFlareSolverrUrlData?, + _i2.GUpdateFlareSolverrUrlData?, + )? get updateResult; + @override + _i2.GUpdateFlareSolverrUrlData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateFlareSolverrUrlData? parseData(Map json) => + _i2.GUpdateFlareSolverrUrlData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateFlareSolverrUrlData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateFlareSolverrUrlData, + _i3.GUpdateFlareSolverrUrlVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateFlareSolverrUrlReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateFlareSolverrUrlReq.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrUrlReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateFlareSolverrUrlReq.serializer, + json, + ); +} + +abstract class GToggleDebugLogsReq + implements + Built, + _i1 + .OperationRequest<_i2.GToggleDebugLogsData, _i3.GToggleDebugLogsVars> { + GToggleDebugLogsReq._(); + + factory GToggleDebugLogsReq( + [void Function(GToggleDebugLogsReqBuilder b) updates]) = + _$GToggleDebugLogsReq; + + static void _initializeBuilder(GToggleDebugLogsReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'ToggleDebugLogs', + ) + ..executeOnListen = true; + + @override + _i3.GToggleDebugLogsVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GToggleDebugLogsData? Function( + _i2.GToggleDebugLogsData?, + _i2.GToggleDebugLogsData?, + )? get updateResult; + @override + _i2.GToggleDebugLogsData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GToggleDebugLogsData? parseData(Map json) => + _i2.GToggleDebugLogsData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GToggleDebugLogsData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GToggleDebugLogsData, _i3.GToggleDebugLogsVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gToggleDebugLogsReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GToggleDebugLogsReq.serializer, + this, + ) as Map); + + static GToggleDebugLogsReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GToggleDebugLogsReq.serializer, + json, + ); +} + +abstract class GToggleGqlDebugLogsReq + implements + Built, + _i1.OperationRequest<_i2.GToggleGqlDebugLogsData, + _i3.GToggleGqlDebugLogsVars> { + GToggleGqlDebugLogsReq._(); + + factory GToggleGqlDebugLogsReq( + [void Function(GToggleGqlDebugLogsReqBuilder b) updates]) = + _$GToggleGqlDebugLogsReq; + + static void _initializeBuilder(GToggleGqlDebugLogsReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'ToggleGqlDebugLogs', + ) + ..executeOnListen = true; + + @override + _i3.GToggleGqlDebugLogsVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GToggleGqlDebugLogsData? Function( + _i2.GToggleGqlDebugLogsData?, + _i2.GToggleGqlDebugLogsData?, + )? get updateResult; + @override + _i2.GToggleGqlDebugLogsData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GToggleGqlDebugLogsData? parseData(Map json) => + _i2.GToggleGqlDebugLogsData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GToggleGqlDebugLogsData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GToggleGqlDebugLogsData, _i3.GToggleGqlDebugLogsVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gToggleGqlDebugLogsReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GToggleGqlDebugLogsReq.serializer, + this, + ) as Map); + + static GToggleGqlDebugLogsReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GToggleGqlDebugLogsReq.serializer, + json, + ); +} + +abstract class GToggleSystemTrayEnabledReq + implements + Built, + _i1.OperationRequest<_i2.GToggleSystemTrayEnabledData, + _i3.GToggleSystemTrayEnabledVars> { + GToggleSystemTrayEnabledReq._(); + + factory GToggleSystemTrayEnabledReq( + [void Function(GToggleSystemTrayEnabledReqBuilder b) updates]) = + _$GToggleSystemTrayEnabledReq; + + static void _initializeBuilder(GToggleSystemTrayEnabledReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'ToggleSystemTrayEnabled', + ) + ..executeOnListen = true; + + @override + _i3.GToggleSystemTrayEnabledVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GToggleSystemTrayEnabledData? Function( + _i2.GToggleSystemTrayEnabledData?, + _i2.GToggleSystemTrayEnabledData?, + )? get updateResult; + @override + _i2.GToggleSystemTrayEnabledData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GToggleSystemTrayEnabledData? parseData(Map json) => + _i2.GToggleSystemTrayEnabledData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GToggleSystemTrayEnabledData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GToggleSystemTrayEnabledData, + _i3.GToggleSystemTrayEnabledVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gToggleSystemTrayEnabledReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GToggleSystemTrayEnabledReq.serializer, + this, + ) as Map); + + static GToggleSystemTrayEnabledReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GToggleSystemTrayEnabledReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/__generated__/server_settings_query.req.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/__generated__/server_settings_query.req.gql.g.dart new file mode 100644 index 00000000..259f7e64 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/__generated__/server_settings_query.req.gql.g.dart @@ -0,0 +1,5900 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'server_settings_query.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateServerIpReqSerializer = + new _$GUpdateServerIpReqSerializer(); +Serializer _$gUpdatePortReqSerializer = + new _$GUpdatePortReqSerializer(); +Serializer _$gToggleSocksProxyReqSerializer = + new _$GToggleSocksProxyReqSerializer(); +Serializer _$gUpdateSocksVersionReqSerializer = + new _$GUpdateSocksVersionReqSerializer(); +Serializer _$gUpdateSocksHostReqSerializer = + new _$GUpdateSocksHostReqSerializer(); +Serializer _$gUpdateSocksUserNameReqSerializer = + new _$GUpdateSocksUserNameReqSerializer(); +Serializer _$gUpdateSocksPasswordReqSerializer = + new _$GUpdateSocksPasswordReqSerializer(); +Serializer _$gUpdateSocksPortReqSerializer = + new _$GUpdateSocksPortReqSerializer(); +Serializer _$gToggleFlareSolverrReqSerializer = + new _$GToggleFlareSolverrReqSerializer(); +Serializer + _$gUpdateFlareSolverrSessionNameReqSerializer = + new _$GUpdateFlareSolverrSessionNameReqSerializer(); +Serializer + _$gUpdateFlareSolverrSessionTtlReqSerializer = + new _$GUpdateFlareSolverrSessionTtlReqSerializer(); +Serializer + _$gUpdateFlareSolverrTimeoutReqSerializer = + new _$GUpdateFlareSolverrTimeoutReqSerializer(); +Serializer _$gUpdateFlareSolverrUrlReqSerializer = + new _$GUpdateFlareSolverrUrlReqSerializer(); +Serializer _$gToggleDebugLogsReqSerializer = + new _$GToggleDebugLogsReqSerializer(); +Serializer _$gToggleGqlDebugLogsReqSerializer = + new _$GToggleGqlDebugLogsReqSerializer(); +Serializer + _$gToggleSystemTrayEnabledReqSerializer = + new _$GToggleSystemTrayEnabledReqSerializer(); + +class _$GUpdateServerIpReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GUpdateServerIpReq, _$GUpdateServerIpReq]; + @override + final String wireName = 'GUpdateServerIpReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateServerIpReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateServerIpVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateServerIpData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateServerIpReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateServerIpReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GUpdateServerIpVars))! + as _i3.GUpdateServerIpVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GUpdateServerIpData))! + as _i2.GUpdateServerIpData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdatePortReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GUpdatePortReq, _$GUpdatePortReq]; + @override + final String wireName = 'GUpdatePortReq'; + + @override + Iterable serialize(Serializers serializers, GUpdatePortReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdatePortVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdatePortData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdatePortReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdatePortReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GUpdatePortVars))! + as _i3.GUpdatePortVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GUpdatePortData))! + as _i2.GUpdatePortData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GToggleSocksProxyReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleSocksProxyReq, + _$GToggleSocksProxyReq + ]; + @override + final String wireName = 'GToggleSocksProxyReq'; + + @override + Iterable serialize( + Serializers serializers, GToggleSocksProxyReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GToggleSocksProxyVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GToggleSocksProxyData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GToggleSocksProxyReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleSocksProxyReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GToggleSocksProxyVars))! + as _i3.GToggleSocksProxyVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GToggleSocksProxyData))! + as _i2.GToggleSocksProxyData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksVersionReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksVersionReq, + _$GUpdateSocksVersionReq + ]; + @override + final String wireName = 'GUpdateSocksVersionReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksVersionReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateSocksVersionVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateSocksVersionData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateSocksVersionReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksVersionReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GUpdateSocksVersionVars))! + as _i3.GUpdateSocksVersionVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GUpdateSocksVersionData))! + as _i2.GUpdateSocksVersionData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksHostReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksHostReq, + _$GUpdateSocksHostReq + ]; + @override + final String wireName = 'GUpdateSocksHostReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksHostReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateSocksHostVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateSocksHostData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateSocksHostReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksHostReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GUpdateSocksHostVars))! + as _i3.GUpdateSocksHostVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GUpdateSocksHostData))! + as _i2.GUpdateSocksHostData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksUserNameReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksUserNameReq, + _$GUpdateSocksUserNameReq + ]; + @override + final String wireName = 'GUpdateSocksUserNameReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksUserNameReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateSocksUserNameVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateSocksUserNameData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateSocksUserNameReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksUserNameReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GUpdateSocksUserNameVars))! + as _i3.GUpdateSocksUserNameVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GUpdateSocksUserNameData))! + as _i2.GUpdateSocksUserNameData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksPasswordReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksPasswordReq, + _$GUpdateSocksPasswordReq + ]; + @override + final String wireName = 'GUpdateSocksPasswordReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksPasswordReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateSocksPasswordVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateSocksPasswordData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateSocksPasswordReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksPasswordReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GUpdateSocksPasswordVars))! + as _i3.GUpdateSocksPasswordVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GUpdateSocksPasswordData))! + as _i2.GUpdateSocksPasswordData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksPortReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksPortReq, + _$GUpdateSocksPortReq + ]; + @override + final String wireName = 'GUpdateSocksPortReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksPortReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateSocksPortVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateSocksPortData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateSocksPortReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksPortReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GUpdateSocksPortVars))! + as _i3.GUpdateSocksPortVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GUpdateSocksPortData))! + as _i2.GUpdateSocksPortData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GToggleFlareSolverrReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleFlareSolverrReq, + _$GToggleFlareSolverrReq + ]; + @override + final String wireName = 'GToggleFlareSolverrReq'; + + @override + Iterable serialize( + Serializers serializers, GToggleFlareSolverrReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GToggleFlareSolverrVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GToggleFlareSolverrData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GToggleFlareSolverrReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleFlareSolverrReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GToggleFlareSolverrVars))! + as _i3.GToggleFlareSolverrVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GToggleFlareSolverrData))! + as _i2.GToggleFlareSolverrData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrSessionNameReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateFlareSolverrSessionNameReq, + _$GUpdateFlareSolverrSessionNameReq + ]; + @override + final String wireName = 'GUpdateFlareSolverrSessionNameReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateFlareSolverrSessionNameReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: + const FullType(_i3.GUpdateFlareSolverrSessionNameVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: + const FullType(_i2.GUpdateFlareSolverrSessionNameData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateFlareSolverrSessionNameReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateFlareSolverrSessionNameReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GUpdateFlareSolverrSessionNameVars))! + as _i3.GUpdateFlareSolverrSessionNameVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i2.GUpdateFlareSolverrSessionNameData))! + as _i2.GUpdateFlareSolverrSessionNameData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrSessionTtlReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateFlareSolverrSessionTtlReq, + _$GUpdateFlareSolverrSessionTtlReq + ]; + @override + final String wireName = 'GUpdateFlareSolverrSessionTtlReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateFlareSolverrSessionTtlReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateFlareSolverrSessionTtlVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: + const FullType(_i2.GUpdateFlareSolverrSessionTtlData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateFlareSolverrSessionTtlReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateFlareSolverrSessionTtlReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GUpdateFlareSolverrSessionTtlVars))! + as _i3.GUpdateFlareSolverrSessionTtlVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i2.GUpdateFlareSolverrSessionTtlData))! + as _i2.GUpdateFlareSolverrSessionTtlData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrTimeoutReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateFlareSolverrTimeoutReq, + _$GUpdateFlareSolverrTimeoutReq + ]; + @override + final String wireName = 'GUpdateFlareSolverrTimeoutReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateFlareSolverrTimeoutReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateFlareSolverrTimeoutVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateFlareSolverrTimeoutData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateFlareSolverrTimeoutReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateFlareSolverrTimeoutReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GUpdateFlareSolverrTimeoutVars))! + as _i3.GUpdateFlareSolverrTimeoutVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i2.GUpdateFlareSolverrTimeoutData))! + as _i2.GUpdateFlareSolverrTimeoutData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrUrlReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateFlareSolverrUrlReq, + _$GUpdateFlareSolverrUrlReq + ]; + @override + final String wireName = 'GUpdateFlareSolverrUrlReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateFlareSolverrUrlReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateFlareSolverrUrlVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateFlareSolverrUrlData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateFlareSolverrUrlReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateFlareSolverrUrlReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GUpdateFlareSolverrUrlVars))! + as _i3.GUpdateFlareSolverrUrlVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i2.GUpdateFlareSolverrUrlData))! + as _i2.GUpdateFlareSolverrUrlData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GToggleDebugLogsReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleDebugLogsReq, + _$GToggleDebugLogsReq + ]; + @override + final String wireName = 'GToggleDebugLogsReq'; + + @override + Iterable serialize( + Serializers serializers, GToggleDebugLogsReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GToggleDebugLogsVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GToggleDebugLogsData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GToggleDebugLogsReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleDebugLogsReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GToggleDebugLogsVars))! + as _i3.GToggleDebugLogsVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GToggleDebugLogsData))! + as _i2.GToggleDebugLogsData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GToggleGqlDebugLogsReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleGqlDebugLogsReq, + _$GToggleGqlDebugLogsReq + ]; + @override + final String wireName = 'GToggleGqlDebugLogsReq'; + + @override + Iterable serialize( + Serializers serializers, GToggleGqlDebugLogsReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GToggleGqlDebugLogsVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GToggleGqlDebugLogsData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GToggleGqlDebugLogsReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleGqlDebugLogsReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GToggleGqlDebugLogsVars))! + as _i3.GToggleGqlDebugLogsVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GToggleGqlDebugLogsData))! + as _i2.GToggleGqlDebugLogsData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GToggleSystemTrayEnabledReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleSystemTrayEnabledReq, + _$GToggleSystemTrayEnabledReq + ]; + @override + final String wireName = 'GToggleSystemTrayEnabledReq'; + + @override + Iterable serialize( + Serializers serializers, GToggleSystemTrayEnabledReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GToggleSystemTrayEnabledVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GToggleSystemTrayEnabledData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GToggleSystemTrayEnabledReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleSystemTrayEnabledReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GToggleSystemTrayEnabledVars))! + as _i3.GToggleSystemTrayEnabledVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i2.GToggleSystemTrayEnabledData))! + as _i2.GToggleSystemTrayEnabledData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateServerIpReq extends GUpdateServerIpReq { + @override + final _i3.GUpdateServerIpVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateServerIpData? Function( + _i2.GUpdateServerIpData?, _i2.GUpdateServerIpData?)? updateResult; + @override + final _i2.GUpdateServerIpData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateServerIpReq( + [void Function(GUpdateServerIpReqBuilder)? updates]) => + (new GUpdateServerIpReqBuilder()..update(updates))._build(); + + _$GUpdateServerIpReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GUpdateServerIpReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateServerIpReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateServerIpReq', 'executeOnListen'); + } + + @override + GUpdateServerIpReq rebuild( + void Function(GUpdateServerIpReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateServerIpReqBuilder toBuilder() => + new GUpdateServerIpReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateServerIpReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateServerIpReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateServerIpReqBuilder + implements Builder { + _$GUpdateServerIpReq? _$v; + + _i3.GUpdateServerIpVarsBuilder? _vars; + _i3.GUpdateServerIpVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateServerIpVarsBuilder(); + set vars(_i3.GUpdateServerIpVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateServerIpData? Function( + _i2.GUpdateServerIpData?, _i2.GUpdateServerIpData?)? _updateResult; + _i2.GUpdateServerIpData? Function( + _i2.GUpdateServerIpData?, _i2.GUpdateServerIpData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateServerIpData? Function( + _i2.GUpdateServerIpData?, _i2.GUpdateServerIpData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateServerIpDataBuilder? _optimisticResponse; + _i2.GUpdateServerIpDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GUpdateServerIpDataBuilder(); + set optimisticResponse(_i2.GUpdateServerIpDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateServerIpReqBuilder() { + GUpdateServerIpReq._initializeBuilder(this); + } + + GUpdateServerIpReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateServerIpReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateServerIpReq; + } + + @override + void update(void Function(GUpdateServerIpReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateServerIpReq build() => _build(); + + _$GUpdateServerIpReq _build() { + _$GUpdateServerIpReq _$result; + try { + _$result = _$v ?? + new _$GUpdateServerIpReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateServerIpReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateServerIpReq', 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateServerIpReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdatePortReq extends GUpdatePortReq { + @override + final _i3.GUpdatePortVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdatePortData? Function( + _i2.GUpdatePortData?, _i2.GUpdatePortData?)? updateResult; + @override + final _i2.GUpdatePortData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdatePortReq([void Function(GUpdatePortReqBuilder)? updates]) => + (new GUpdatePortReqBuilder()..update(updates))._build(); + + _$GUpdatePortReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GUpdatePortReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdatePortReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdatePortReq', 'executeOnListen'); + } + + @override + GUpdatePortReq rebuild(void Function(GUpdatePortReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdatePortReqBuilder toBuilder() => + new GUpdatePortReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdatePortReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdatePortReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdatePortReqBuilder + implements Builder { + _$GUpdatePortReq? _$v; + + _i3.GUpdatePortVarsBuilder? _vars; + _i3.GUpdatePortVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdatePortVarsBuilder(); + set vars(_i3.GUpdatePortVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdatePortData? Function(_i2.GUpdatePortData?, _i2.GUpdatePortData?)? + _updateResult; + _i2.GUpdatePortData? Function(_i2.GUpdatePortData?, _i2.GUpdatePortData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdatePortData? Function( + _i2.GUpdatePortData?, _i2.GUpdatePortData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdatePortDataBuilder? _optimisticResponse; + _i2.GUpdatePortDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GUpdatePortDataBuilder(); + set optimisticResponse(_i2.GUpdatePortDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdatePortReqBuilder() { + GUpdatePortReq._initializeBuilder(this); + } + + GUpdatePortReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdatePortReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdatePortReq; + } + + @override + void update(void Function(GUpdatePortReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdatePortReq build() => _build(); + + _$GUpdatePortReq _build() { + _$GUpdatePortReq _$result; + try { + _$result = _$v ?? + new _$GUpdatePortReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdatePortReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdatePortReq', 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdatePortReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleSocksProxyReq extends GToggleSocksProxyReq { + @override + final _i3.GToggleSocksProxyVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GToggleSocksProxyData? Function( + _i2.GToggleSocksProxyData?, _i2.GToggleSocksProxyData?)? updateResult; + @override + final _i2.GToggleSocksProxyData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GToggleSocksProxyReq( + [void Function(GToggleSocksProxyReqBuilder)? updates]) => + (new GToggleSocksProxyReqBuilder()..update(updates))._build(); + + _$GToggleSocksProxyReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GToggleSocksProxyReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GToggleSocksProxyReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GToggleSocksProxyReq', 'executeOnListen'); + } + + @override + GToggleSocksProxyReq rebuild( + void Function(GToggleSocksProxyReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleSocksProxyReqBuilder toBuilder() => + new GToggleSocksProxyReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GToggleSocksProxyReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleSocksProxyReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GToggleSocksProxyReqBuilder + implements Builder { + _$GToggleSocksProxyReq? _$v; + + _i3.GToggleSocksProxyVarsBuilder? _vars; + _i3.GToggleSocksProxyVarsBuilder get vars => + _$this._vars ??= new _i3.GToggleSocksProxyVarsBuilder(); + set vars(_i3.GToggleSocksProxyVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GToggleSocksProxyData? Function( + _i2.GToggleSocksProxyData?, _i2.GToggleSocksProxyData?)? _updateResult; + _i2.GToggleSocksProxyData? Function( + _i2.GToggleSocksProxyData?, _i2.GToggleSocksProxyData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GToggleSocksProxyData? Function( + _i2.GToggleSocksProxyData?, _i2.GToggleSocksProxyData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GToggleSocksProxyDataBuilder? _optimisticResponse; + _i2.GToggleSocksProxyDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GToggleSocksProxyDataBuilder(); + set optimisticResponse( + _i2.GToggleSocksProxyDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GToggleSocksProxyReqBuilder() { + GToggleSocksProxyReq._initializeBuilder(this); + } + + GToggleSocksProxyReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GToggleSocksProxyReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleSocksProxyReq; + } + + @override + void update(void Function(GToggleSocksProxyReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleSocksProxyReq build() => _build(); + + _$GToggleSocksProxyReq _build() { + _$GToggleSocksProxyReq _$result; + try { + _$result = _$v ?? + new _$GToggleSocksProxyReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GToggleSocksProxyReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GToggleSocksProxyReq', 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleSocksProxyReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSocksVersionReq extends GUpdateSocksVersionReq { + @override + final _i3.GUpdateSocksVersionVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateSocksVersionData? Function( + _i2.GUpdateSocksVersionData?, _i2.GUpdateSocksVersionData?)? updateResult; + @override + final _i2.GUpdateSocksVersionData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateSocksVersionReq( + [void Function(GUpdateSocksVersionReqBuilder)? updates]) => + (new GUpdateSocksVersionReqBuilder()..update(updates))._build(); + + _$GUpdateSocksVersionReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GUpdateSocksVersionReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateSocksVersionReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateSocksVersionReq', 'executeOnListen'); + } + + @override + GUpdateSocksVersionReq rebuild( + void Function(GUpdateSocksVersionReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksVersionReqBuilder toBuilder() => + new GUpdateSocksVersionReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateSocksVersionReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksVersionReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateSocksVersionReqBuilder + implements Builder { + _$GUpdateSocksVersionReq? _$v; + + _i3.GUpdateSocksVersionVarsBuilder? _vars; + _i3.GUpdateSocksVersionVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateSocksVersionVarsBuilder(); + set vars(_i3.GUpdateSocksVersionVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateSocksVersionData? Function( + _i2.GUpdateSocksVersionData?, _i2.GUpdateSocksVersionData?)? + _updateResult; + _i2.GUpdateSocksVersionData? Function( + _i2.GUpdateSocksVersionData?, _i2.GUpdateSocksVersionData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateSocksVersionData? Function( + _i2.GUpdateSocksVersionData?, _i2.GUpdateSocksVersionData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateSocksVersionDataBuilder? _optimisticResponse; + _i2.GUpdateSocksVersionDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GUpdateSocksVersionDataBuilder(); + set optimisticResponse( + _i2.GUpdateSocksVersionDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateSocksVersionReqBuilder() { + GUpdateSocksVersionReq._initializeBuilder(this); + } + + GUpdateSocksVersionReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksVersionReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksVersionReq; + } + + @override + void update(void Function(GUpdateSocksVersionReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksVersionReq build() => _build(); + + _$GUpdateSocksVersionReq _build() { + _$GUpdateSocksVersionReq _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksVersionReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateSocksVersionReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GUpdateSocksVersionReq', + 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksVersionReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSocksHostReq extends GUpdateSocksHostReq { + @override + final _i3.GUpdateSocksHostVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateSocksHostData? Function( + _i2.GUpdateSocksHostData?, _i2.GUpdateSocksHostData?)? updateResult; + @override + final _i2.GUpdateSocksHostData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateSocksHostReq( + [void Function(GUpdateSocksHostReqBuilder)? updates]) => + (new GUpdateSocksHostReqBuilder()..update(updates))._build(); + + _$GUpdateSocksHostReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GUpdateSocksHostReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateSocksHostReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateSocksHostReq', 'executeOnListen'); + } + + @override + GUpdateSocksHostReq rebuild( + void Function(GUpdateSocksHostReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksHostReqBuilder toBuilder() => + new GUpdateSocksHostReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateSocksHostReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksHostReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateSocksHostReqBuilder + implements Builder { + _$GUpdateSocksHostReq? _$v; + + _i3.GUpdateSocksHostVarsBuilder? _vars; + _i3.GUpdateSocksHostVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateSocksHostVarsBuilder(); + set vars(_i3.GUpdateSocksHostVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateSocksHostData? Function( + _i2.GUpdateSocksHostData?, _i2.GUpdateSocksHostData?)? _updateResult; + _i2.GUpdateSocksHostData? Function( + _i2.GUpdateSocksHostData?, _i2.GUpdateSocksHostData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateSocksHostData? Function( + _i2.GUpdateSocksHostData?, _i2.GUpdateSocksHostData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateSocksHostDataBuilder? _optimisticResponse; + _i2.GUpdateSocksHostDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GUpdateSocksHostDataBuilder(); + set optimisticResponse(_i2.GUpdateSocksHostDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateSocksHostReqBuilder() { + GUpdateSocksHostReq._initializeBuilder(this); + } + + GUpdateSocksHostReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksHostReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksHostReq; + } + + @override + void update(void Function(GUpdateSocksHostReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksHostReq build() => _build(); + + _$GUpdateSocksHostReq _build() { + _$GUpdateSocksHostReq _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksHostReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateSocksHostReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateSocksHostReq', 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksHostReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSocksUserNameReq extends GUpdateSocksUserNameReq { + @override + final _i3.GUpdateSocksUserNameVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateSocksUserNameData? Function( + _i2.GUpdateSocksUserNameData?, _i2.GUpdateSocksUserNameData?)? + updateResult; + @override + final _i2.GUpdateSocksUserNameData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateSocksUserNameReq( + [void Function(GUpdateSocksUserNameReqBuilder)? updates]) => + (new GUpdateSocksUserNameReqBuilder()..update(updates))._build(); + + _$GUpdateSocksUserNameReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GUpdateSocksUserNameReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateSocksUserNameReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateSocksUserNameReq', 'executeOnListen'); + } + + @override + GUpdateSocksUserNameReq rebuild( + void Function(GUpdateSocksUserNameReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksUserNameReqBuilder toBuilder() => + new GUpdateSocksUserNameReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateSocksUserNameReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksUserNameReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateSocksUserNameReqBuilder + implements + Builder { + _$GUpdateSocksUserNameReq? _$v; + + _i3.GUpdateSocksUserNameVarsBuilder? _vars; + _i3.GUpdateSocksUserNameVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateSocksUserNameVarsBuilder(); + set vars(_i3.GUpdateSocksUserNameVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateSocksUserNameData? Function( + _i2.GUpdateSocksUserNameData?, _i2.GUpdateSocksUserNameData?)? + _updateResult; + _i2.GUpdateSocksUserNameData? Function( + _i2.GUpdateSocksUserNameData?, _i2.GUpdateSocksUserNameData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateSocksUserNameData? Function( + _i2.GUpdateSocksUserNameData?, _i2.GUpdateSocksUserNameData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateSocksUserNameDataBuilder? _optimisticResponse; + _i2.GUpdateSocksUserNameDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GUpdateSocksUserNameDataBuilder(); + set optimisticResponse( + _i2.GUpdateSocksUserNameDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateSocksUserNameReqBuilder() { + GUpdateSocksUserNameReq._initializeBuilder(this); + } + + GUpdateSocksUserNameReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksUserNameReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksUserNameReq; + } + + @override + void update(void Function(GUpdateSocksUserNameReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksUserNameReq build() => _build(); + + _$GUpdateSocksUserNameReq _build() { + _$GUpdateSocksUserNameReq _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksUserNameReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateSocksUserNameReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GUpdateSocksUserNameReq', + 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksUserNameReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSocksPasswordReq extends GUpdateSocksPasswordReq { + @override + final _i3.GUpdateSocksPasswordVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateSocksPasswordData? Function( + _i2.GUpdateSocksPasswordData?, _i2.GUpdateSocksPasswordData?)? + updateResult; + @override + final _i2.GUpdateSocksPasswordData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateSocksPasswordReq( + [void Function(GUpdateSocksPasswordReqBuilder)? updates]) => + (new GUpdateSocksPasswordReqBuilder()..update(updates))._build(); + + _$GUpdateSocksPasswordReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GUpdateSocksPasswordReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateSocksPasswordReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateSocksPasswordReq', 'executeOnListen'); + } + + @override + GUpdateSocksPasswordReq rebuild( + void Function(GUpdateSocksPasswordReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksPasswordReqBuilder toBuilder() => + new GUpdateSocksPasswordReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateSocksPasswordReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksPasswordReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateSocksPasswordReqBuilder + implements + Builder { + _$GUpdateSocksPasswordReq? _$v; + + _i3.GUpdateSocksPasswordVarsBuilder? _vars; + _i3.GUpdateSocksPasswordVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateSocksPasswordVarsBuilder(); + set vars(_i3.GUpdateSocksPasswordVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateSocksPasswordData? Function( + _i2.GUpdateSocksPasswordData?, _i2.GUpdateSocksPasswordData?)? + _updateResult; + _i2.GUpdateSocksPasswordData? Function( + _i2.GUpdateSocksPasswordData?, _i2.GUpdateSocksPasswordData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateSocksPasswordData? Function( + _i2.GUpdateSocksPasswordData?, _i2.GUpdateSocksPasswordData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateSocksPasswordDataBuilder? _optimisticResponse; + _i2.GUpdateSocksPasswordDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GUpdateSocksPasswordDataBuilder(); + set optimisticResponse( + _i2.GUpdateSocksPasswordDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateSocksPasswordReqBuilder() { + GUpdateSocksPasswordReq._initializeBuilder(this); + } + + GUpdateSocksPasswordReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksPasswordReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksPasswordReq; + } + + @override + void update(void Function(GUpdateSocksPasswordReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksPasswordReq build() => _build(); + + _$GUpdateSocksPasswordReq _build() { + _$GUpdateSocksPasswordReq _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksPasswordReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateSocksPasswordReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GUpdateSocksPasswordReq', + 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksPasswordReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSocksPortReq extends GUpdateSocksPortReq { + @override + final _i3.GUpdateSocksPortVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateSocksPortData? Function( + _i2.GUpdateSocksPortData?, _i2.GUpdateSocksPortData?)? updateResult; + @override + final _i2.GUpdateSocksPortData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateSocksPortReq( + [void Function(GUpdateSocksPortReqBuilder)? updates]) => + (new GUpdateSocksPortReqBuilder()..update(updates))._build(); + + _$GUpdateSocksPortReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GUpdateSocksPortReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateSocksPortReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateSocksPortReq', 'executeOnListen'); + } + + @override + GUpdateSocksPortReq rebuild( + void Function(GUpdateSocksPortReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksPortReqBuilder toBuilder() => + new GUpdateSocksPortReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateSocksPortReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksPortReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateSocksPortReqBuilder + implements Builder { + _$GUpdateSocksPortReq? _$v; + + _i3.GUpdateSocksPortVarsBuilder? _vars; + _i3.GUpdateSocksPortVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateSocksPortVarsBuilder(); + set vars(_i3.GUpdateSocksPortVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateSocksPortData? Function( + _i2.GUpdateSocksPortData?, _i2.GUpdateSocksPortData?)? _updateResult; + _i2.GUpdateSocksPortData? Function( + _i2.GUpdateSocksPortData?, _i2.GUpdateSocksPortData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateSocksPortData? Function( + _i2.GUpdateSocksPortData?, _i2.GUpdateSocksPortData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateSocksPortDataBuilder? _optimisticResponse; + _i2.GUpdateSocksPortDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GUpdateSocksPortDataBuilder(); + set optimisticResponse(_i2.GUpdateSocksPortDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateSocksPortReqBuilder() { + GUpdateSocksPortReq._initializeBuilder(this); + } + + GUpdateSocksPortReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksPortReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksPortReq; + } + + @override + void update(void Function(GUpdateSocksPortReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksPortReq build() => _build(); + + _$GUpdateSocksPortReq _build() { + _$GUpdateSocksPortReq _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksPortReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateSocksPortReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateSocksPortReq', 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksPortReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleFlareSolverrReq extends GToggleFlareSolverrReq { + @override + final _i3.GToggleFlareSolverrVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GToggleFlareSolverrData? Function( + _i2.GToggleFlareSolverrData?, _i2.GToggleFlareSolverrData?)? updateResult; + @override + final _i2.GToggleFlareSolverrData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GToggleFlareSolverrReq( + [void Function(GToggleFlareSolverrReqBuilder)? updates]) => + (new GToggleFlareSolverrReqBuilder()..update(updates))._build(); + + _$GToggleFlareSolverrReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GToggleFlareSolverrReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GToggleFlareSolverrReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GToggleFlareSolverrReq', 'executeOnListen'); + } + + @override + GToggleFlareSolverrReq rebuild( + void Function(GToggleFlareSolverrReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleFlareSolverrReqBuilder toBuilder() => + new GToggleFlareSolverrReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GToggleFlareSolverrReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleFlareSolverrReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GToggleFlareSolverrReqBuilder + implements Builder { + _$GToggleFlareSolverrReq? _$v; + + _i3.GToggleFlareSolverrVarsBuilder? _vars; + _i3.GToggleFlareSolverrVarsBuilder get vars => + _$this._vars ??= new _i3.GToggleFlareSolverrVarsBuilder(); + set vars(_i3.GToggleFlareSolverrVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GToggleFlareSolverrData? Function( + _i2.GToggleFlareSolverrData?, _i2.GToggleFlareSolverrData?)? + _updateResult; + _i2.GToggleFlareSolverrData? Function( + _i2.GToggleFlareSolverrData?, _i2.GToggleFlareSolverrData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GToggleFlareSolverrData? Function( + _i2.GToggleFlareSolverrData?, _i2.GToggleFlareSolverrData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GToggleFlareSolverrDataBuilder? _optimisticResponse; + _i2.GToggleFlareSolverrDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GToggleFlareSolverrDataBuilder(); + set optimisticResponse( + _i2.GToggleFlareSolverrDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GToggleFlareSolverrReqBuilder() { + GToggleFlareSolverrReq._initializeBuilder(this); + } + + GToggleFlareSolverrReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GToggleFlareSolverrReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleFlareSolverrReq; + } + + @override + void update(void Function(GToggleFlareSolverrReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleFlareSolverrReq build() => _build(); + + _$GToggleFlareSolverrReq _build() { + _$GToggleFlareSolverrReq _$result; + try { + _$result = _$v ?? + new _$GToggleFlareSolverrReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GToggleFlareSolverrReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GToggleFlareSolverrReq', + 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleFlareSolverrReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateFlareSolverrSessionNameReq + extends GUpdateFlareSolverrSessionNameReq { + @override + final _i3.GUpdateFlareSolverrSessionNameVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateFlareSolverrSessionNameData? Function( + _i2.GUpdateFlareSolverrSessionNameData?, + _i2.GUpdateFlareSolverrSessionNameData?)? updateResult; + @override + final _i2.GUpdateFlareSolverrSessionNameData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateFlareSolverrSessionNameReq( + [void Function(GUpdateFlareSolverrSessionNameReqBuilder)? updates]) => + (new GUpdateFlareSolverrSessionNameReqBuilder()..update(updates)) + ._build(); + + _$GUpdateFlareSolverrSessionNameReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GUpdateFlareSolverrSessionNameReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateFlareSolverrSessionNameReq', 'operation'); + BuiltValueNullFieldError.checkNotNull(executeOnListen, + r'GUpdateFlareSolverrSessionNameReq', 'executeOnListen'); + } + + @override + GUpdateFlareSolverrSessionNameReq rebuild( + void Function(GUpdateFlareSolverrSessionNameReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrSessionNameReqBuilder toBuilder() => + new GUpdateFlareSolverrSessionNameReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateFlareSolverrSessionNameReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateFlareSolverrSessionNameReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateFlareSolverrSessionNameReqBuilder + implements + Builder { + _$GUpdateFlareSolverrSessionNameReq? _$v; + + _i3.GUpdateFlareSolverrSessionNameVarsBuilder? _vars; + _i3.GUpdateFlareSolverrSessionNameVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateFlareSolverrSessionNameVarsBuilder(); + set vars(_i3.GUpdateFlareSolverrSessionNameVarsBuilder? vars) => + _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateFlareSolverrSessionNameData? Function( + _i2.GUpdateFlareSolverrSessionNameData?, + _i2.GUpdateFlareSolverrSessionNameData?)? _updateResult; + _i2.GUpdateFlareSolverrSessionNameData? Function( + _i2.GUpdateFlareSolverrSessionNameData?, + _i2.GUpdateFlareSolverrSessionNameData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateFlareSolverrSessionNameData? Function( + _i2.GUpdateFlareSolverrSessionNameData?, + _i2.GUpdateFlareSolverrSessionNameData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateFlareSolverrSessionNameDataBuilder? _optimisticResponse; + _i2.GUpdateFlareSolverrSessionNameDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= + new _i2.GUpdateFlareSolverrSessionNameDataBuilder(); + set optimisticResponse( + _i2.GUpdateFlareSolverrSessionNameDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateFlareSolverrSessionNameReqBuilder() { + GUpdateFlareSolverrSessionNameReq._initializeBuilder(this); + } + + GUpdateFlareSolverrSessionNameReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrSessionNameReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrSessionNameReq; + } + + @override + void update( + void Function(GUpdateFlareSolverrSessionNameReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrSessionNameReq build() => _build(); + + _$GUpdateFlareSolverrSessionNameReq _build() { + _$GUpdateFlareSolverrSessionNameReq _$result; + try { + _$result = _$v ?? + new _$GUpdateFlareSolverrSessionNameReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateFlareSolverrSessionNameReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GUpdateFlareSolverrSessionNameReq', + 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateFlareSolverrSessionNameReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateFlareSolverrSessionTtlReq + extends GUpdateFlareSolverrSessionTtlReq { + @override + final _i3.GUpdateFlareSolverrSessionTtlVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateFlareSolverrSessionTtlData? Function( + _i2.GUpdateFlareSolverrSessionTtlData?, + _i2.GUpdateFlareSolverrSessionTtlData?)? updateResult; + @override + final _i2.GUpdateFlareSolverrSessionTtlData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateFlareSolverrSessionTtlReq( + [void Function(GUpdateFlareSolverrSessionTtlReqBuilder)? updates]) => + (new GUpdateFlareSolverrSessionTtlReqBuilder()..update(updates))._build(); + + _$GUpdateFlareSolverrSessionTtlReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GUpdateFlareSolverrSessionTtlReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateFlareSolverrSessionTtlReq', 'operation'); + BuiltValueNullFieldError.checkNotNull(executeOnListen, + r'GUpdateFlareSolverrSessionTtlReq', 'executeOnListen'); + } + + @override + GUpdateFlareSolverrSessionTtlReq rebuild( + void Function(GUpdateFlareSolverrSessionTtlReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrSessionTtlReqBuilder toBuilder() => + new GUpdateFlareSolverrSessionTtlReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateFlareSolverrSessionTtlReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateFlareSolverrSessionTtlReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateFlareSolverrSessionTtlReqBuilder + implements + Builder { + _$GUpdateFlareSolverrSessionTtlReq? _$v; + + _i3.GUpdateFlareSolverrSessionTtlVarsBuilder? _vars; + _i3.GUpdateFlareSolverrSessionTtlVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateFlareSolverrSessionTtlVarsBuilder(); + set vars(_i3.GUpdateFlareSolverrSessionTtlVarsBuilder? vars) => + _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateFlareSolverrSessionTtlData? Function( + _i2.GUpdateFlareSolverrSessionTtlData?, + _i2.GUpdateFlareSolverrSessionTtlData?)? _updateResult; + _i2.GUpdateFlareSolverrSessionTtlData? Function( + _i2.GUpdateFlareSolverrSessionTtlData?, + _i2.GUpdateFlareSolverrSessionTtlData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateFlareSolverrSessionTtlData? Function( + _i2.GUpdateFlareSolverrSessionTtlData?, + _i2.GUpdateFlareSolverrSessionTtlData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateFlareSolverrSessionTtlDataBuilder? _optimisticResponse; + _i2.GUpdateFlareSolverrSessionTtlDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= + new _i2.GUpdateFlareSolverrSessionTtlDataBuilder(); + set optimisticResponse( + _i2.GUpdateFlareSolverrSessionTtlDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateFlareSolverrSessionTtlReqBuilder() { + GUpdateFlareSolverrSessionTtlReq._initializeBuilder(this); + } + + GUpdateFlareSolverrSessionTtlReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrSessionTtlReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrSessionTtlReq; + } + + @override + void update(void Function(GUpdateFlareSolverrSessionTtlReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrSessionTtlReq build() => _build(); + + _$GUpdateFlareSolverrSessionTtlReq _build() { + _$GUpdateFlareSolverrSessionTtlReq _$result; + try { + _$result = _$v ?? + new _$GUpdateFlareSolverrSessionTtlReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateFlareSolverrSessionTtlReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GUpdateFlareSolverrSessionTtlReq', + 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateFlareSolverrSessionTtlReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateFlareSolverrTimeoutReq extends GUpdateFlareSolverrTimeoutReq { + @override + final _i3.GUpdateFlareSolverrTimeoutVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateFlareSolverrTimeoutData? Function( + _i2.GUpdateFlareSolverrTimeoutData?, + _i2.GUpdateFlareSolverrTimeoutData?)? updateResult; + @override + final _i2.GUpdateFlareSolverrTimeoutData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateFlareSolverrTimeoutReq( + [void Function(GUpdateFlareSolverrTimeoutReqBuilder)? updates]) => + (new GUpdateFlareSolverrTimeoutReqBuilder()..update(updates))._build(); + + _$GUpdateFlareSolverrTimeoutReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GUpdateFlareSolverrTimeoutReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateFlareSolverrTimeoutReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateFlareSolverrTimeoutReq', 'executeOnListen'); + } + + @override + GUpdateFlareSolverrTimeoutReq rebuild( + void Function(GUpdateFlareSolverrTimeoutReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrTimeoutReqBuilder toBuilder() => + new GUpdateFlareSolverrTimeoutReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateFlareSolverrTimeoutReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateFlareSolverrTimeoutReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateFlareSolverrTimeoutReqBuilder + implements + Builder { + _$GUpdateFlareSolverrTimeoutReq? _$v; + + _i3.GUpdateFlareSolverrTimeoutVarsBuilder? _vars; + _i3.GUpdateFlareSolverrTimeoutVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateFlareSolverrTimeoutVarsBuilder(); + set vars(_i3.GUpdateFlareSolverrTimeoutVarsBuilder? vars) => + _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateFlareSolverrTimeoutData? Function( + _i2.GUpdateFlareSolverrTimeoutData?, + _i2.GUpdateFlareSolverrTimeoutData?)? _updateResult; + _i2.GUpdateFlareSolverrTimeoutData? Function( + _i2.GUpdateFlareSolverrTimeoutData?, + _i2.GUpdateFlareSolverrTimeoutData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateFlareSolverrTimeoutData? Function( + _i2.GUpdateFlareSolverrTimeoutData?, + _i2.GUpdateFlareSolverrTimeoutData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateFlareSolverrTimeoutDataBuilder? _optimisticResponse; + _i2.GUpdateFlareSolverrTimeoutDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= + new _i2.GUpdateFlareSolverrTimeoutDataBuilder(); + set optimisticResponse( + _i2.GUpdateFlareSolverrTimeoutDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateFlareSolverrTimeoutReqBuilder() { + GUpdateFlareSolverrTimeoutReq._initializeBuilder(this); + } + + GUpdateFlareSolverrTimeoutReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrTimeoutReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrTimeoutReq; + } + + @override + void update(void Function(GUpdateFlareSolverrTimeoutReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrTimeoutReq build() => _build(); + + _$GUpdateFlareSolverrTimeoutReq _build() { + _$GUpdateFlareSolverrTimeoutReq _$result; + try { + _$result = _$v ?? + new _$GUpdateFlareSolverrTimeoutReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateFlareSolverrTimeoutReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GUpdateFlareSolverrTimeoutReq', + 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateFlareSolverrTimeoutReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateFlareSolverrUrlReq extends GUpdateFlareSolverrUrlReq { + @override + final _i3.GUpdateFlareSolverrUrlVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateFlareSolverrUrlData? Function( + _i2.GUpdateFlareSolverrUrlData?, _i2.GUpdateFlareSolverrUrlData?)? + updateResult; + @override + final _i2.GUpdateFlareSolverrUrlData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateFlareSolverrUrlReq( + [void Function(GUpdateFlareSolverrUrlReqBuilder)? updates]) => + (new GUpdateFlareSolverrUrlReqBuilder()..update(updates))._build(); + + _$GUpdateFlareSolverrUrlReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GUpdateFlareSolverrUrlReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateFlareSolverrUrlReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateFlareSolverrUrlReq', 'executeOnListen'); + } + + @override + GUpdateFlareSolverrUrlReq rebuild( + void Function(GUpdateFlareSolverrUrlReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrUrlReqBuilder toBuilder() => + new GUpdateFlareSolverrUrlReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateFlareSolverrUrlReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateFlareSolverrUrlReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateFlareSolverrUrlReqBuilder + implements + Builder { + _$GUpdateFlareSolverrUrlReq? _$v; + + _i3.GUpdateFlareSolverrUrlVarsBuilder? _vars; + _i3.GUpdateFlareSolverrUrlVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateFlareSolverrUrlVarsBuilder(); + set vars(_i3.GUpdateFlareSolverrUrlVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateFlareSolverrUrlData? Function( + _i2.GUpdateFlareSolverrUrlData?, _i2.GUpdateFlareSolverrUrlData?)? + _updateResult; + _i2.GUpdateFlareSolverrUrlData? Function( + _i2.GUpdateFlareSolverrUrlData?, _i2.GUpdateFlareSolverrUrlData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateFlareSolverrUrlData? Function( + _i2.GUpdateFlareSolverrUrlData?, + _i2.GUpdateFlareSolverrUrlData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateFlareSolverrUrlDataBuilder? _optimisticResponse; + _i2.GUpdateFlareSolverrUrlDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= + new _i2.GUpdateFlareSolverrUrlDataBuilder(); + set optimisticResponse( + _i2.GUpdateFlareSolverrUrlDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateFlareSolverrUrlReqBuilder() { + GUpdateFlareSolverrUrlReq._initializeBuilder(this); + } + + GUpdateFlareSolverrUrlReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrUrlReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrUrlReq; + } + + @override + void update(void Function(GUpdateFlareSolverrUrlReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrUrlReq build() => _build(); + + _$GUpdateFlareSolverrUrlReq _build() { + _$GUpdateFlareSolverrUrlReq _$result; + try { + _$result = _$v ?? + new _$GUpdateFlareSolverrUrlReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateFlareSolverrUrlReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GUpdateFlareSolverrUrlReq', + 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateFlareSolverrUrlReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleDebugLogsReq extends GToggleDebugLogsReq { + @override + final _i3.GToggleDebugLogsVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GToggleDebugLogsData? Function( + _i2.GToggleDebugLogsData?, _i2.GToggleDebugLogsData?)? updateResult; + @override + final _i2.GToggleDebugLogsData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GToggleDebugLogsReq( + [void Function(GToggleDebugLogsReqBuilder)? updates]) => + (new GToggleDebugLogsReqBuilder()..update(updates))._build(); + + _$GToggleDebugLogsReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GToggleDebugLogsReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GToggleDebugLogsReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GToggleDebugLogsReq', 'executeOnListen'); + } + + @override + GToggleDebugLogsReq rebuild( + void Function(GToggleDebugLogsReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleDebugLogsReqBuilder toBuilder() => + new GToggleDebugLogsReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GToggleDebugLogsReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleDebugLogsReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GToggleDebugLogsReqBuilder + implements Builder { + _$GToggleDebugLogsReq? _$v; + + _i3.GToggleDebugLogsVarsBuilder? _vars; + _i3.GToggleDebugLogsVarsBuilder get vars => + _$this._vars ??= new _i3.GToggleDebugLogsVarsBuilder(); + set vars(_i3.GToggleDebugLogsVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GToggleDebugLogsData? Function( + _i2.GToggleDebugLogsData?, _i2.GToggleDebugLogsData?)? _updateResult; + _i2.GToggleDebugLogsData? Function( + _i2.GToggleDebugLogsData?, _i2.GToggleDebugLogsData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GToggleDebugLogsData? Function( + _i2.GToggleDebugLogsData?, _i2.GToggleDebugLogsData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GToggleDebugLogsDataBuilder? _optimisticResponse; + _i2.GToggleDebugLogsDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GToggleDebugLogsDataBuilder(); + set optimisticResponse(_i2.GToggleDebugLogsDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GToggleDebugLogsReqBuilder() { + GToggleDebugLogsReq._initializeBuilder(this); + } + + GToggleDebugLogsReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GToggleDebugLogsReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleDebugLogsReq; + } + + @override + void update(void Function(GToggleDebugLogsReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleDebugLogsReq build() => _build(); + + _$GToggleDebugLogsReq _build() { + _$GToggleDebugLogsReq _$result; + try { + _$result = _$v ?? + new _$GToggleDebugLogsReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GToggleDebugLogsReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GToggleDebugLogsReq', 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleDebugLogsReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleGqlDebugLogsReq extends GToggleGqlDebugLogsReq { + @override + final _i3.GToggleGqlDebugLogsVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GToggleGqlDebugLogsData? Function( + _i2.GToggleGqlDebugLogsData?, _i2.GToggleGqlDebugLogsData?)? updateResult; + @override + final _i2.GToggleGqlDebugLogsData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GToggleGqlDebugLogsReq( + [void Function(GToggleGqlDebugLogsReqBuilder)? updates]) => + (new GToggleGqlDebugLogsReqBuilder()..update(updates))._build(); + + _$GToggleGqlDebugLogsReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GToggleGqlDebugLogsReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GToggleGqlDebugLogsReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GToggleGqlDebugLogsReq', 'executeOnListen'); + } + + @override + GToggleGqlDebugLogsReq rebuild( + void Function(GToggleGqlDebugLogsReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleGqlDebugLogsReqBuilder toBuilder() => + new GToggleGqlDebugLogsReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GToggleGqlDebugLogsReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleGqlDebugLogsReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GToggleGqlDebugLogsReqBuilder + implements Builder { + _$GToggleGqlDebugLogsReq? _$v; + + _i3.GToggleGqlDebugLogsVarsBuilder? _vars; + _i3.GToggleGqlDebugLogsVarsBuilder get vars => + _$this._vars ??= new _i3.GToggleGqlDebugLogsVarsBuilder(); + set vars(_i3.GToggleGqlDebugLogsVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GToggleGqlDebugLogsData? Function( + _i2.GToggleGqlDebugLogsData?, _i2.GToggleGqlDebugLogsData?)? + _updateResult; + _i2.GToggleGqlDebugLogsData? Function( + _i2.GToggleGqlDebugLogsData?, _i2.GToggleGqlDebugLogsData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GToggleGqlDebugLogsData? Function( + _i2.GToggleGqlDebugLogsData?, _i2.GToggleGqlDebugLogsData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GToggleGqlDebugLogsDataBuilder? _optimisticResponse; + _i2.GToggleGqlDebugLogsDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GToggleGqlDebugLogsDataBuilder(); + set optimisticResponse( + _i2.GToggleGqlDebugLogsDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GToggleGqlDebugLogsReqBuilder() { + GToggleGqlDebugLogsReq._initializeBuilder(this); + } + + GToggleGqlDebugLogsReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GToggleGqlDebugLogsReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleGqlDebugLogsReq; + } + + @override + void update(void Function(GToggleGqlDebugLogsReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleGqlDebugLogsReq build() => _build(); + + _$GToggleGqlDebugLogsReq _build() { + _$GToggleGqlDebugLogsReq _$result; + try { + _$result = _$v ?? + new _$GToggleGqlDebugLogsReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GToggleGqlDebugLogsReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GToggleGqlDebugLogsReq', + 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleGqlDebugLogsReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleSystemTrayEnabledReq extends GToggleSystemTrayEnabledReq { + @override + final _i3.GToggleSystemTrayEnabledVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GToggleSystemTrayEnabledData? Function( + _i2.GToggleSystemTrayEnabledData?, _i2.GToggleSystemTrayEnabledData?)? + updateResult; + @override + final _i2.GToggleSystemTrayEnabledData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GToggleSystemTrayEnabledReq( + [void Function(GToggleSystemTrayEnabledReqBuilder)? updates]) => + (new GToggleSystemTrayEnabledReqBuilder()..update(updates))._build(); + + _$GToggleSystemTrayEnabledReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GToggleSystemTrayEnabledReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GToggleSystemTrayEnabledReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GToggleSystemTrayEnabledReq', 'executeOnListen'); + } + + @override + GToggleSystemTrayEnabledReq rebuild( + void Function(GToggleSystemTrayEnabledReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleSystemTrayEnabledReqBuilder toBuilder() => + new GToggleSystemTrayEnabledReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GToggleSystemTrayEnabledReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleSystemTrayEnabledReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GToggleSystemTrayEnabledReqBuilder + implements + Builder { + _$GToggleSystemTrayEnabledReq? _$v; + + _i3.GToggleSystemTrayEnabledVarsBuilder? _vars; + _i3.GToggleSystemTrayEnabledVarsBuilder get vars => + _$this._vars ??= new _i3.GToggleSystemTrayEnabledVarsBuilder(); + set vars(_i3.GToggleSystemTrayEnabledVarsBuilder? vars) => + _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GToggleSystemTrayEnabledData? Function( + _i2.GToggleSystemTrayEnabledData?, _i2.GToggleSystemTrayEnabledData?)? + _updateResult; + _i2.GToggleSystemTrayEnabledData? Function( + _i2.GToggleSystemTrayEnabledData?, _i2.GToggleSystemTrayEnabledData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GToggleSystemTrayEnabledData? Function( + _i2.GToggleSystemTrayEnabledData?, + _i2.GToggleSystemTrayEnabledData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GToggleSystemTrayEnabledDataBuilder? _optimisticResponse; + _i2.GToggleSystemTrayEnabledDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= + new _i2.GToggleSystemTrayEnabledDataBuilder(); + set optimisticResponse( + _i2.GToggleSystemTrayEnabledDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GToggleSystemTrayEnabledReqBuilder() { + GToggleSystemTrayEnabledReq._initializeBuilder(this); + } + + GToggleSystemTrayEnabledReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GToggleSystemTrayEnabledReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleSystemTrayEnabledReq; + } + + @override + void update(void Function(GToggleSystemTrayEnabledReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleSystemTrayEnabledReq build() => _build(); + + _$GToggleSystemTrayEnabledReq _build() { + _$GToggleSystemTrayEnabledReq _$result; + try { + _$result = _$v ?? + new _$GToggleSystemTrayEnabledReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GToggleSystemTrayEnabledReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GToggleSystemTrayEnabledReq', + 'executeOnListen'), + context: context); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleSystemTrayEnabledReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/__generated__/server_settings_query.var.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/__generated__/server_settings_query.var.gql.dart new file mode 100644 index 00000000..5e4a2e06 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/__generated__/server_settings_query.var.gql.dart @@ -0,0 +1,406 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'server_settings_query.var.gql.g.dart'; + +abstract class GUpdateServerIpVars + implements Built { + GUpdateServerIpVars._(); + + factory GUpdateServerIpVars( + [void Function(GUpdateServerIpVarsBuilder b) updates]) = + _$GUpdateServerIpVars; + + String? get ip; + static Serializer get serializer => + _$gUpdateServerIpVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateServerIpVars.serializer, + this, + ) as Map); + + static GUpdateServerIpVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateServerIpVars.serializer, + json, + ); +} + +abstract class GUpdatePortVars + implements Built { + GUpdatePortVars._(); + + factory GUpdatePortVars([void Function(GUpdatePortVarsBuilder b) updates]) = + _$GUpdatePortVars; + + int? get port; + static Serializer get serializer => + _$gUpdatePortVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdatePortVars.serializer, + this, + ) as Map); + + static GUpdatePortVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdatePortVars.serializer, + json, + ); +} + +abstract class GToggleSocksProxyVars + implements Built { + GToggleSocksProxyVars._(); + + factory GToggleSocksProxyVars( + [void Function(GToggleSocksProxyVarsBuilder b) updates]) = + _$GToggleSocksProxyVars; + + bool? get socksProxyEnabled; + static Serializer get serializer => + _$gToggleSocksProxyVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleSocksProxyVars.serializer, + this, + ) as Map); + + static GToggleSocksProxyVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GToggleSocksProxyVars.serializer, + json, + ); +} + +abstract class GUpdateSocksVersionVars + implements Built { + GUpdateSocksVersionVars._(); + + factory GUpdateSocksVersionVars( + [void Function(GUpdateSocksVersionVarsBuilder b) updates]) = + _$GUpdateSocksVersionVars; + + int? get socksProxyVersion; + static Serializer get serializer => + _$gUpdateSocksVersionVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksVersionVars.serializer, + this, + ) as Map); + + static GUpdateSocksVersionVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksVersionVars.serializer, + json, + ); +} + +abstract class GUpdateSocksHostVars + implements Built { + GUpdateSocksHostVars._(); + + factory GUpdateSocksHostVars( + [void Function(GUpdateSocksHostVarsBuilder b) updates]) = + _$GUpdateSocksHostVars; + + String? get socksProxyHost; + static Serializer get serializer => + _$gUpdateSocksHostVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksHostVars.serializer, + this, + ) as Map); + + static GUpdateSocksHostVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksHostVars.serializer, + json, + ); +} + +abstract class GUpdateSocksUserNameVars + implements + Built { + GUpdateSocksUserNameVars._(); + + factory GUpdateSocksUserNameVars( + [void Function(GUpdateSocksUserNameVarsBuilder b) updates]) = + _$GUpdateSocksUserNameVars; + + String? get socksProxyUsername; + static Serializer get serializer => + _$gUpdateSocksUserNameVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksUserNameVars.serializer, + this, + ) as Map); + + static GUpdateSocksUserNameVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksUserNameVars.serializer, + json, + ); +} + +abstract class GUpdateSocksPasswordVars + implements + Built { + GUpdateSocksPasswordVars._(); + + factory GUpdateSocksPasswordVars( + [void Function(GUpdateSocksPasswordVarsBuilder b) updates]) = + _$GUpdateSocksPasswordVars; + + String? get socksProxyPassword; + static Serializer get serializer => + _$gUpdateSocksPasswordVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksPasswordVars.serializer, + this, + ) as Map); + + static GUpdateSocksPasswordVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksPasswordVars.serializer, + json, + ); +} + +abstract class GUpdateSocksPortVars + implements Built { + GUpdateSocksPortVars._(); + + factory GUpdateSocksPortVars( + [void Function(GUpdateSocksPortVarsBuilder b) updates]) = + _$GUpdateSocksPortVars; + + String? get socksProxyPort; + static Serializer get serializer => + _$gUpdateSocksPortVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksPortVars.serializer, + this, + ) as Map); + + static GUpdateSocksPortVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksPortVars.serializer, + json, + ); +} + +abstract class GToggleFlareSolverrVars + implements Built { + GToggleFlareSolverrVars._(); + + factory GToggleFlareSolverrVars( + [void Function(GToggleFlareSolverrVarsBuilder b) updates]) = + _$GToggleFlareSolverrVars; + + bool? get flareSolverrEnabled; + static Serializer get serializer => + _$gToggleFlareSolverrVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleFlareSolverrVars.serializer, + this, + ) as Map); + + static GToggleFlareSolverrVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GToggleFlareSolverrVars.serializer, + json, + ); +} + +abstract class GUpdateFlareSolverrSessionNameVars + implements + Built { + GUpdateFlareSolverrSessionNameVars._(); + + factory GUpdateFlareSolverrSessionNameVars( + [void Function(GUpdateFlareSolverrSessionNameVarsBuilder b) + updates]) = _$GUpdateFlareSolverrSessionNameVars; + + String? get flareSolverrSessionName; + static Serializer get serializer => + _$gUpdateFlareSolverrSessionNameVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateFlareSolverrSessionNameVars.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrSessionNameVars? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateFlareSolverrSessionNameVars.serializer, + json, + ); +} + +abstract class GUpdateFlareSolverrSessionTtlVars + implements + Built { + GUpdateFlareSolverrSessionTtlVars._(); + + factory GUpdateFlareSolverrSessionTtlVars( + [void Function(GUpdateFlareSolverrSessionTtlVarsBuilder b) updates]) = + _$GUpdateFlareSolverrSessionTtlVars; + + int? get flareSolverrSessionTtl; + static Serializer get serializer => + _$gUpdateFlareSolverrSessionTtlVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateFlareSolverrSessionTtlVars.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrSessionTtlVars? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateFlareSolverrSessionTtlVars.serializer, + json, + ); +} + +abstract class GUpdateFlareSolverrTimeoutVars + implements + Built { + GUpdateFlareSolverrTimeoutVars._(); + + factory GUpdateFlareSolverrTimeoutVars( + [void Function(GUpdateFlareSolverrTimeoutVarsBuilder b) updates]) = + _$GUpdateFlareSolverrTimeoutVars; + + int? get flareSolverrTimeout; + static Serializer get serializer => + _$gUpdateFlareSolverrTimeoutVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateFlareSolverrTimeoutVars.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrTimeoutVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateFlareSolverrTimeoutVars.serializer, + json, + ); +} + +abstract class GUpdateFlareSolverrUrlVars + implements + Built { + GUpdateFlareSolverrUrlVars._(); + + factory GUpdateFlareSolverrUrlVars( + [void Function(GUpdateFlareSolverrUrlVarsBuilder b) updates]) = + _$GUpdateFlareSolverrUrlVars; + + String? get flareSolverrUrl; + static Serializer get serializer => + _$gUpdateFlareSolverrUrlVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateFlareSolverrUrlVars.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrUrlVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateFlareSolverrUrlVars.serializer, + json, + ); +} + +abstract class GToggleDebugLogsVars + implements Built { + GToggleDebugLogsVars._(); + + factory GToggleDebugLogsVars( + [void Function(GToggleDebugLogsVarsBuilder b) updates]) = + _$GToggleDebugLogsVars; + + bool? get debugLogsEnabled; + static Serializer get serializer => + _$gToggleDebugLogsVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleDebugLogsVars.serializer, + this, + ) as Map); + + static GToggleDebugLogsVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GToggleDebugLogsVars.serializer, + json, + ); +} + +abstract class GToggleGqlDebugLogsVars + implements Built { + GToggleGqlDebugLogsVars._(); + + factory GToggleGqlDebugLogsVars( + [void Function(GToggleGqlDebugLogsVarsBuilder b) updates]) = + _$GToggleGqlDebugLogsVars; + + bool? get gqlDebugLogsEnabled; + static Serializer get serializer => + _$gToggleGqlDebugLogsVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleGqlDebugLogsVars.serializer, + this, + ) as Map); + + static GToggleGqlDebugLogsVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GToggleGqlDebugLogsVars.serializer, + json, + ); +} + +abstract class GToggleSystemTrayEnabledVars + implements + Built { + GToggleSystemTrayEnabledVars._(); + + factory GToggleSystemTrayEnabledVars( + [void Function(GToggleSystemTrayEnabledVarsBuilder b) updates]) = + _$GToggleSystemTrayEnabledVars; + + bool? get systemTrayEnabled; + static Serializer get serializer => + _$gToggleSystemTrayEnabledVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleSystemTrayEnabledVars.serializer, + this, + ) as Map); + + static GToggleSystemTrayEnabledVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GToggleSystemTrayEnabledVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/__generated__/server_settings_query.var.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/__generated__/server_settings_query.var.gql.g.dart new file mode 100644 index 00000000..28335b7a --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/__generated__/server_settings_query.var.gql.g.dart @@ -0,0 +1,2187 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'server_settings_query.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateServerIpVarsSerializer = + new _$GUpdateServerIpVarsSerializer(); +Serializer _$gUpdatePortVarsSerializer = + new _$GUpdatePortVarsSerializer(); +Serializer _$gToggleSocksProxyVarsSerializer = + new _$GToggleSocksProxyVarsSerializer(); +Serializer _$gUpdateSocksVersionVarsSerializer = + new _$GUpdateSocksVersionVarsSerializer(); +Serializer _$gUpdateSocksHostVarsSerializer = + new _$GUpdateSocksHostVarsSerializer(); +Serializer _$gUpdateSocksUserNameVarsSerializer = + new _$GUpdateSocksUserNameVarsSerializer(); +Serializer _$gUpdateSocksPasswordVarsSerializer = + new _$GUpdateSocksPasswordVarsSerializer(); +Serializer _$gUpdateSocksPortVarsSerializer = + new _$GUpdateSocksPortVarsSerializer(); +Serializer _$gToggleFlareSolverrVarsSerializer = + new _$GToggleFlareSolverrVarsSerializer(); +Serializer + _$gUpdateFlareSolverrSessionNameVarsSerializer = + new _$GUpdateFlareSolverrSessionNameVarsSerializer(); +Serializer + _$gUpdateFlareSolverrSessionTtlVarsSerializer = + new _$GUpdateFlareSolverrSessionTtlVarsSerializer(); +Serializer + _$gUpdateFlareSolverrTimeoutVarsSerializer = + new _$GUpdateFlareSolverrTimeoutVarsSerializer(); +Serializer _$gUpdateFlareSolverrUrlVarsSerializer = + new _$GUpdateFlareSolverrUrlVarsSerializer(); +Serializer _$gToggleDebugLogsVarsSerializer = + new _$GToggleDebugLogsVarsSerializer(); +Serializer _$gToggleGqlDebugLogsVarsSerializer = + new _$GToggleGqlDebugLogsVarsSerializer(); +Serializer + _$gToggleSystemTrayEnabledVarsSerializer = + new _$GToggleSystemTrayEnabledVarsSerializer(); + +class _$GUpdateServerIpVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateServerIpVars, + _$GUpdateServerIpVars + ]; + @override + final String wireName = 'GUpdateServerIpVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateServerIpVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.ip; + if (value != null) { + result + ..add('ip') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateServerIpVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateServerIpVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdatePortVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GUpdatePortVars, _$GUpdatePortVars]; + @override + final String wireName = 'GUpdatePortVars'; + + @override + Iterable serialize(Serializers serializers, GUpdatePortVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.port; + if (value != null) { + result + ..add('port') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + return result; + } + + @override + GUpdatePortVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdatePortVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + } + } + + return result.build(); + } +} + +class _$GToggleSocksProxyVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleSocksProxyVars, + _$GToggleSocksProxyVars + ]; + @override + final String wireName = 'GToggleSocksProxyVars'; + + @override + Iterable serialize( + Serializers serializers, GToggleSocksProxyVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.socksProxyEnabled; + if (value != null) { + result + ..add('socksProxyEnabled') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + GToggleSocksProxyVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleSocksProxyVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksVersionVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksVersionVars, + _$GUpdateSocksVersionVars + ]; + @override + final String wireName = 'GUpdateSocksVersionVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksVersionVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.socksProxyVersion; + if (value != null) { + result + ..add('socksProxyVersion') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + return result; + } + + @override + GUpdateSocksVersionVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksVersionVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksHostVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksHostVars, + _$GUpdateSocksHostVars + ]; + @override + final String wireName = 'GUpdateSocksHostVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksHostVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.socksProxyHost; + if (value != null) { + result + ..add('socksProxyHost') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateSocksHostVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksHostVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksUserNameVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksUserNameVars, + _$GUpdateSocksUserNameVars + ]; + @override + final String wireName = 'GUpdateSocksUserNameVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksUserNameVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.socksProxyUsername; + if (value != null) { + result + ..add('socksProxyUsername') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateSocksUserNameVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksUserNameVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksPasswordVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksPasswordVars, + _$GUpdateSocksPasswordVars + ]; + @override + final String wireName = 'GUpdateSocksPasswordVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksPasswordVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.socksProxyPassword; + if (value != null) { + result + ..add('socksProxyPassword') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateSocksPasswordVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksPasswordVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksPortVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksPortVars, + _$GUpdateSocksPortVars + ]; + @override + final String wireName = 'GUpdateSocksPortVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksPortVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.socksProxyPort; + if (value != null) { + result + ..add('socksProxyPort') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateSocksPortVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksPortVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GToggleFlareSolverrVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleFlareSolverrVars, + _$GToggleFlareSolverrVars + ]; + @override + final String wireName = 'GToggleFlareSolverrVars'; + + @override + Iterable serialize( + Serializers serializers, GToggleFlareSolverrVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.flareSolverrEnabled; + if (value != null) { + result + ..add('flareSolverrEnabled') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + GToggleFlareSolverrVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleFlareSolverrVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrSessionNameVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateFlareSolverrSessionNameVars, + _$GUpdateFlareSolverrSessionNameVars + ]; + @override + final String wireName = 'GUpdateFlareSolverrSessionNameVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateFlareSolverrSessionNameVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.flareSolverrSessionName; + if (value != null) { + result + ..add('flareSolverrSessionName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateFlareSolverrSessionNameVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateFlareSolverrSessionNameVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrSessionTtlVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateFlareSolverrSessionTtlVars, + _$GUpdateFlareSolverrSessionTtlVars + ]; + @override + final String wireName = 'GUpdateFlareSolverrSessionTtlVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateFlareSolverrSessionTtlVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.flareSolverrSessionTtl; + if (value != null) { + result + ..add('flareSolverrSessionTtl') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + return result; + } + + @override + GUpdateFlareSolverrSessionTtlVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateFlareSolverrSessionTtlVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrTimeoutVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateFlareSolverrTimeoutVars, + _$GUpdateFlareSolverrTimeoutVars + ]; + @override + final String wireName = 'GUpdateFlareSolverrTimeoutVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateFlareSolverrTimeoutVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.flareSolverrTimeout; + if (value != null) { + result + ..add('flareSolverrTimeout') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + return result; + } + + @override + GUpdateFlareSolverrTimeoutVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateFlareSolverrTimeoutVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrUrlVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateFlareSolverrUrlVars, + _$GUpdateFlareSolverrUrlVars + ]; + @override + final String wireName = 'GUpdateFlareSolverrUrlVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateFlareSolverrUrlVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.flareSolverrUrl; + if (value != null) { + result + ..add('flareSolverrUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateFlareSolverrUrlVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateFlareSolverrUrlVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GToggleDebugLogsVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleDebugLogsVars, + _$GToggleDebugLogsVars + ]; + @override + final String wireName = 'GToggleDebugLogsVars'; + + @override + Iterable serialize( + Serializers serializers, GToggleDebugLogsVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.debugLogsEnabled; + if (value != null) { + result + ..add('debugLogsEnabled') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + GToggleDebugLogsVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleDebugLogsVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$GToggleGqlDebugLogsVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleGqlDebugLogsVars, + _$GToggleGqlDebugLogsVars + ]; + @override + final String wireName = 'GToggleGqlDebugLogsVars'; + + @override + Iterable serialize( + Serializers serializers, GToggleGqlDebugLogsVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.gqlDebugLogsEnabled; + if (value != null) { + result + ..add('gqlDebugLogsEnabled') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + GToggleGqlDebugLogsVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleGqlDebugLogsVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$GToggleSystemTrayEnabledVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleSystemTrayEnabledVars, + _$GToggleSystemTrayEnabledVars + ]; + @override + final String wireName = 'GToggleSystemTrayEnabledVars'; + + @override + Iterable serialize( + Serializers serializers, GToggleSystemTrayEnabledVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.systemTrayEnabled; + if (value != null) { + result + ..add('systemTrayEnabled') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + GToggleSystemTrayEnabledVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleSystemTrayEnabledVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateServerIpVars extends GUpdateServerIpVars { + @override + final String? ip; + + factory _$GUpdateServerIpVars( + [void Function(GUpdateServerIpVarsBuilder)? updates]) => + (new GUpdateServerIpVarsBuilder()..update(updates))._build(); + + _$GUpdateServerIpVars._({this.ip}) : super._(); + + @override + GUpdateServerIpVars rebuild( + void Function(GUpdateServerIpVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateServerIpVarsBuilder toBuilder() => + new GUpdateServerIpVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateServerIpVars && ip == other.ip; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateServerIpVars')..add('ip', ip)) + .toString(); + } +} + +class GUpdateServerIpVarsBuilder + implements Builder { + _$GUpdateServerIpVars? _$v; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + GUpdateServerIpVarsBuilder(); + + GUpdateServerIpVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _ip = $v.ip; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateServerIpVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateServerIpVars; + } + + @override + void update(void Function(GUpdateServerIpVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateServerIpVars build() => _build(); + + _$GUpdateServerIpVars _build() { + final _$result = _$v ?? new _$GUpdateServerIpVars._(ip: ip); + replace(_$result); + return _$result; + } +} + +class _$GUpdatePortVars extends GUpdatePortVars { + @override + final int? port; + + factory _$GUpdatePortVars([void Function(GUpdatePortVarsBuilder)? updates]) => + (new GUpdatePortVarsBuilder()..update(updates))._build(); + + _$GUpdatePortVars._({this.port}) : super._(); + + @override + GUpdatePortVars rebuild(void Function(GUpdatePortVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdatePortVarsBuilder toBuilder() => + new GUpdatePortVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdatePortVars && port == other.port; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdatePortVars')..add('port', port)) + .toString(); + } +} + +class GUpdatePortVarsBuilder + implements Builder { + _$GUpdatePortVars? _$v; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + GUpdatePortVarsBuilder(); + + GUpdatePortVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _port = $v.port; + _$v = null; + } + return this; + } + + @override + void replace(GUpdatePortVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdatePortVars; + } + + @override + void update(void Function(GUpdatePortVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdatePortVars build() => _build(); + + _$GUpdatePortVars _build() { + final _$result = _$v ?? new _$GUpdatePortVars._(port: port); + replace(_$result); + return _$result; + } +} + +class _$GToggleSocksProxyVars extends GToggleSocksProxyVars { + @override + final bool? socksProxyEnabled; + + factory _$GToggleSocksProxyVars( + [void Function(GToggleSocksProxyVarsBuilder)? updates]) => + (new GToggleSocksProxyVarsBuilder()..update(updates))._build(); + + _$GToggleSocksProxyVars._({this.socksProxyEnabled}) : super._(); + + @override + GToggleSocksProxyVars rebuild( + void Function(GToggleSocksProxyVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleSocksProxyVarsBuilder toBuilder() => + new GToggleSocksProxyVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleSocksProxyVars && + socksProxyEnabled == other.socksProxyEnabled; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleSocksProxyVars') + ..add('socksProxyEnabled', socksProxyEnabled)) + .toString(); + } +} + +class GToggleSocksProxyVarsBuilder + implements Builder { + _$GToggleSocksProxyVars? _$v; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + GToggleSocksProxyVarsBuilder(); + + GToggleSocksProxyVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _socksProxyEnabled = $v.socksProxyEnabled; + _$v = null; + } + return this; + } + + @override + void replace(GToggleSocksProxyVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleSocksProxyVars; + } + + @override + void update(void Function(GToggleSocksProxyVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleSocksProxyVars build() => _build(); + + _$GToggleSocksProxyVars _build() { + final _$result = _$v ?? + new _$GToggleSocksProxyVars._(socksProxyEnabled: socksProxyEnabled); + replace(_$result); + return _$result; + } +} + +class _$GUpdateSocksVersionVars extends GUpdateSocksVersionVars { + @override + final int? socksProxyVersion; + + factory _$GUpdateSocksVersionVars( + [void Function(GUpdateSocksVersionVarsBuilder)? updates]) => + (new GUpdateSocksVersionVarsBuilder()..update(updates))._build(); + + _$GUpdateSocksVersionVars._({this.socksProxyVersion}) : super._(); + + @override + GUpdateSocksVersionVars rebuild( + void Function(GUpdateSocksVersionVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksVersionVarsBuilder toBuilder() => + new GUpdateSocksVersionVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksVersionVars && + socksProxyVersion == other.socksProxyVersion; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksVersionVars') + ..add('socksProxyVersion', socksProxyVersion)) + .toString(); + } +} + +class GUpdateSocksVersionVarsBuilder + implements + Builder { + _$GUpdateSocksVersionVars? _$v; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + GUpdateSocksVersionVarsBuilder(); + + GUpdateSocksVersionVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _socksProxyVersion = $v.socksProxyVersion; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksVersionVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksVersionVars; + } + + @override + void update(void Function(GUpdateSocksVersionVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksVersionVars build() => _build(); + + _$GUpdateSocksVersionVars _build() { + final _$result = _$v ?? + new _$GUpdateSocksVersionVars._(socksProxyVersion: socksProxyVersion); + replace(_$result); + return _$result; + } +} + +class _$GUpdateSocksHostVars extends GUpdateSocksHostVars { + @override + final String? socksProxyHost; + + factory _$GUpdateSocksHostVars( + [void Function(GUpdateSocksHostVarsBuilder)? updates]) => + (new GUpdateSocksHostVarsBuilder()..update(updates))._build(); + + _$GUpdateSocksHostVars._({this.socksProxyHost}) : super._(); + + @override + GUpdateSocksHostVars rebuild( + void Function(GUpdateSocksHostVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksHostVarsBuilder toBuilder() => + new GUpdateSocksHostVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksHostVars && + socksProxyHost == other.socksProxyHost; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksHostVars') + ..add('socksProxyHost', socksProxyHost)) + .toString(); + } +} + +class GUpdateSocksHostVarsBuilder + implements Builder { + _$GUpdateSocksHostVars? _$v; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + GUpdateSocksHostVarsBuilder(); + + GUpdateSocksHostVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _socksProxyHost = $v.socksProxyHost; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksHostVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksHostVars; + } + + @override + void update(void Function(GUpdateSocksHostVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksHostVars build() => _build(); + + _$GUpdateSocksHostVars _build() { + final _$result = + _$v ?? new _$GUpdateSocksHostVars._(socksProxyHost: socksProxyHost); + replace(_$result); + return _$result; + } +} + +class _$GUpdateSocksUserNameVars extends GUpdateSocksUserNameVars { + @override + final String? socksProxyUsername; + + factory _$GUpdateSocksUserNameVars( + [void Function(GUpdateSocksUserNameVarsBuilder)? updates]) => + (new GUpdateSocksUserNameVarsBuilder()..update(updates))._build(); + + _$GUpdateSocksUserNameVars._({this.socksProxyUsername}) : super._(); + + @override + GUpdateSocksUserNameVars rebuild( + void Function(GUpdateSocksUserNameVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksUserNameVarsBuilder toBuilder() => + new GUpdateSocksUserNameVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksUserNameVars && + socksProxyUsername == other.socksProxyUsername; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksUserNameVars') + ..add('socksProxyUsername', socksProxyUsername)) + .toString(); + } +} + +class GUpdateSocksUserNameVarsBuilder + implements + Builder { + _$GUpdateSocksUserNameVars? _$v; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + GUpdateSocksUserNameVarsBuilder(); + + GUpdateSocksUserNameVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _socksProxyUsername = $v.socksProxyUsername; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksUserNameVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksUserNameVars; + } + + @override + void update(void Function(GUpdateSocksUserNameVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksUserNameVars build() => _build(); + + _$GUpdateSocksUserNameVars _build() { + final _$result = _$v ?? + new _$GUpdateSocksUserNameVars._( + socksProxyUsername: socksProxyUsername); + replace(_$result); + return _$result; + } +} + +class _$GUpdateSocksPasswordVars extends GUpdateSocksPasswordVars { + @override + final String? socksProxyPassword; + + factory _$GUpdateSocksPasswordVars( + [void Function(GUpdateSocksPasswordVarsBuilder)? updates]) => + (new GUpdateSocksPasswordVarsBuilder()..update(updates))._build(); + + _$GUpdateSocksPasswordVars._({this.socksProxyPassword}) : super._(); + + @override + GUpdateSocksPasswordVars rebuild( + void Function(GUpdateSocksPasswordVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksPasswordVarsBuilder toBuilder() => + new GUpdateSocksPasswordVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksPasswordVars && + socksProxyPassword == other.socksProxyPassword; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksPasswordVars') + ..add('socksProxyPassword', socksProxyPassword)) + .toString(); + } +} + +class GUpdateSocksPasswordVarsBuilder + implements + Builder { + _$GUpdateSocksPasswordVars? _$v; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + GUpdateSocksPasswordVarsBuilder(); + + GUpdateSocksPasswordVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _socksProxyPassword = $v.socksProxyPassword; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksPasswordVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksPasswordVars; + } + + @override + void update(void Function(GUpdateSocksPasswordVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksPasswordVars build() => _build(); + + _$GUpdateSocksPasswordVars _build() { + final _$result = _$v ?? + new _$GUpdateSocksPasswordVars._( + socksProxyPassword: socksProxyPassword); + replace(_$result); + return _$result; + } +} + +class _$GUpdateSocksPortVars extends GUpdateSocksPortVars { + @override + final String? socksProxyPort; + + factory _$GUpdateSocksPortVars( + [void Function(GUpdateSocksPortVarsBuilder)? updates]) => + (new GUpdateSocksPortVarsBuilder()..update(updates))._build(); + + _$GUpdateSocksPortVars._({this.socksProxyPort}) : super._(); + + @override + GUpdateSocksPortVars rebuild( + void Function(GUpdateSocksPortVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksPortVarsBuilder toBuilder() => + new GUpdateSocksPortVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksPortVars && + socksProxyPort == other.socksProxyPort; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksPortVars') + ..add('socksProxyPort', socksProxyPort)) + .toString(); + } +} + +class GUpdateSocksPortVarsBuilder + implements Builder { + _$GUpdateSocksPortVars? _$v; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + GUpdateSocksPortVarsBuilder(); + + GUpdateSocksPortVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _socksProxyPort = $v.socksProxyPort; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksPortVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksPortVars; + } + + @override + void update(void Function(GUpdateSocksPortVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksPortVars build() => _build(); + + _$GUpdateSocksPortVars _build() { + final _$result = + _$v ?? new _$GUpdateSocksPortVars._(socksProxyPort: socksProxyPort); + replace(_$result); + return _$result; + } +} + +class _$GToggleFlareSolverrVars extends GToggleFlareSolverrVars { + @override + final bool? flareSolverrEnabled; + + factory _$GToggleFlareSolverrVars( + [void Function(GToggleFlareSolverrVarsBuilder)? updates]) => + (new GToggleFlareSolverrVarsBuilder()..update(updates))._build(); + + _$GToggleFlareSolverrVars._({this.flareSolverrEnabled}) : super._(); + + @override + GToggleFlareSolverrVars rebuild( + void Function(GToggleFlareSolverrVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleFlareSolverrVarsBuilder toBuilder() => + new GToggleFlareSolverrVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleFlareSolverrVars && + flareSolverrEnabled == other.flareSolverrEnabled; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleFlareSolverrVars') + ..add('flareSolverrEnabled', flareSolverrEnabled)) + .toString(); + } +} + +class GToggleFlareSolverrVarsBuilder + implements + Builder { + _$GToggleFlareSolverrVars? _$v; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + GToggleFlareSolverrVarsBuilder(); + + GToggleFlareSolverrVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _flareSolverrEnabled = $v.flareSolverrEnabled; + _$v = null; + } + return this; + } + + @override + void replace(GToggleFlareSolverrVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleFlareSolverrVars; + } + + @override + void update(void Function(GToggleFlareSolverrVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleFlareSolverrVars build() => _build(); + + _$GToggleFlareSolverrVars _build() { + final _$result = _$v ?? + new _$GToggleFlareSolverrVars._( + flareSolverrEnabled: flareSolverrEnabled); + replace(_$result); + return _$result; + } +} + +class _$GUpdateFlareSolverrSessionNameVars + extends GUpdateFlareSolverrSessionNameVars { + @override + final String? flareSolverrSessionName; + + factory _$GUpdateFlareSolverrSessionNameVars( + [void Function(GUpdateFlareSolverrSessionNameVarsBuilder)? + updates]) => + (new GUpdateFlareSolverrSessionNameVarsBuilder()..update(updates)) + ._build(); + + _$GUpdateFlareSolverrSessionNameVars._({this.flareSolverrSessionName}) + : super._(); + + @override + GUpdateFlareSolverrSessionNameVars rebuild( + void Function(GUpdateFlareSolverrSessionNameVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrSessionNameVarsBuilder toBuilder() => + new GUpdateFlareSolverrSessionNameVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateFlareSolverrSessionNameVars && + flareSolverrSessionName == other.flareSolverrSessionName; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateFlareSolverrSessionNameVars') + ..add('flareSolverrSessionName', flareSolverrSessionName)) + .toString(); + } +} + +class GUpdateFlareSolverrSessionNameVarsBuilder + implements + Builder { + _$GUpdateFlareSolverrSessionNameVars? _$v; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + GUpdateFlareSolverrSessionNameVarsBuilder(); + + GUpdateFlareSolverrSessionNameVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _flareSolverrSessionName = $v.flareSolverrSessionName; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrSessionNameVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrSessionNameVars; + } + + @override + void update( + void Function(GUpdateFlareSolverrSessionNameVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrSessionNameVars build() => _build(); + + _$GUpdateFlareSolverrSessionNameVars _build() { + final _$result = _$v ?? + new _$GUpdateFlareSolverrSessionNameVars._( + flareSolverrSessionName: flareSolverrSessionName); + replace(_$result); + return _$result; + } +} + +class _$GUpdateFlareSolverrSessionTtlVars + extends GUpdateFlareSolverrSessionTtlVars { + @override + final int? flareSolverrSessionTtl; + + factory _$GUpdateFlareSolverrSessionTtlVars( + [void Function(GUpdateFlareSolverrSessionTtlVarsBuilder)? updates]) => + (new GUpdateFlareSolverrSessionTtlVarsBuilder()..update(updates)) + ._build(); + + _$GUpdateFlareSolverrSessionTtlVars._({this.flareSolverrSessionTtl}) + : super._(); + + @override + GUpdateFlareSolverrSessionTtlVars rebuild( + void Function(GUpdateFlareSolverrSessionTtlVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrSessionTtlVarsBuilder toBuilder() => + new GUpdateFlareSolverrSessionTtlVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateFlareSolverrSessionTtlVars && + flareSolverrSessionTtl == other.flareSolverrSessionTtl; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateFlareSolverrSessionTtlVars') + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl)) + .toString(); + } +} + +class GUpdateFlareSolverrSessionTtlVarsBuilder + implements + Builder { + _$GUpdateFlareSolverrSessionTtlVars? _$v; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + GUpdateFlareSolverrSessionTtlVarsBuilder(); + + GUpdateFlareSolverrSessionTtlVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrSessionTtlVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrSessionTtlVars; + } + + @override + void update( + void Function(GUpdateFlareSolverrSessionTtlVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrSessionTtlVars build() => _build(); + + _$GUpdateFlareSolverrSessionTtlVars _build() { + final _$result = _$v ?? + new _$GUpdateFlareSolverrSessionTtlVars._( + flareSolverrSessionTtl: flareSolverrSessionTtl); + replace(_$result); + return _$result; + } +} + +class _$GUpdateFlareSolverrTimeoutVars extends GUpdateFlareSolverrTimeoutVars { + @override + final int? flareSolverrTimeout; + + factory _$GUpdateFlareSolverrTimeoutVars( + [void Function(GUpdateFlareSolverrTimeoutVarsBuilder)? updates]) => + (new GUpdateFlareSolverrTimeoutVarsBuilder()..update(updates))._build(); + + _$GUpdateFlareSolverrTimeoutVars._({this.flareSolverrTimeout}) : super._(); + + @override + GUpdateFlareSolverrTimeoutVars rebuild( + void Function(GUpdateFlareSolverrTimeoutVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrTimeoutVarsBuilder toBuilder() => + new GUpdateFlareSolverrTimeoutVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateFlareSolverrTimeoutVars && + flareSolverrTimeout == other.flareSolverrTimeout; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateFlareSolverrTimeoutVars') + ..add('flareSolverrTimeout', flareSolverrTimeout)) + .toString(); + } +} + +class GUpdateFlareSolverrTimeoutVarsBuilder + implements + Builder { + _$GUpdateFlareSolverrTimeoutVars? _$v; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + GUpdateFlareSolverrTimeoutVarsBuilder(); + + GUpdateFlareSolverrTimeoutVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _flareSolverrTimeout = $v.flareSolverrTimeout; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrTimeoutVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrTimeoutVars; + } + + @override + void update(void Function(GUpdateFlareSolverrTimeoutVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrTimeoutVars build() => _build(); + + _$GUpdateFlareSolverrTimeoutVars _build() { + final _$result = _$v ?? + new _$GUpdateFlareSolverrTimeoutVars._( + flareSolverrTimeout: flareSolverrTimeout); + replace(_$result); + return _$result; + } +} + +class _$GUpdateFlareSolverrUrlVars extends GUpdateFlareSolverrUrlVars { + @override + final String? flareSolverrUrl; + + factory _$GUpdateFlareSolverrUrlVars( + [void Function(GUpdateFlareSolverrUrlVarsBuilder)? updates]) => + (new GUpdateFlareSolverrUrlVarsBuilder()..update(updates))._build(); + + _$GUpdateFlareSolverrUrlVars._({this.flareSolverrUrl}) : super._(); + + @override + GUpdateFlareSolverrUrlVars rebuild( + void Function(GUpdateFlareSolverrUrlVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrUrlVarsBuilder toBuilder() => + new GUpdateFlareSolverrUrlVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateFlareSolverrUrlVars && + flareSolverrUrl == other.flareSolverrUrl; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateFlareSolverrUrlVars') + ..add('flareSolverrUrl', flareSolverrUrl)) + .toString(); + } +} + +class GUpdateFlareSolverrUrlVarsBuilder + implements + Builder { + _$GUpdateFlareSolverrUrlVars? _$v; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + GUpdateFlareSolverrUrlVarsBuilder(); + + GUpdateFlareSolverrUrlVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _flareSolverrUrl = $v.flareSolverrUrl; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrUrlVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrUrlVars; + } + + @override + void update(void Function(GUpdateFlareSolverrUrlVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrUrlVars build() => _build(); + + _$GUpdateFlareSolverrUrlVars _build() { + final _$result = _$v ?? + new _$GUpdateFlareSolverrUrlVars._(flareSolverrUrl: flareSolverrUrl); + replace(_$result); + return _$result; + } +} + +class _$GToggleDebugLogsVars extends GToggleDebugLogsVars { + @override + final bool? debugLogsEnabled; + + factory _$GToggleDebugLogsVars( + [void Function(GToggleDebugLogsVarsBuilder)? updates]) => + (new GToggleDebugLogsVarsBuilder()..update(updates))._build(); + + _$GToggleDebugLogsVars._({this.debugLogsEnabled}) : super._(); + + @override + GToggleDebugLogsVars rebuild( + void Function(GToggleDebugLogsVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleDebugLogsVarsBuilder toBuilder() => + new GToggleDebugLogsVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleDebugLogsVars && + debugLogsEnabled == other.debugLogsEnabled; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleDebugLogsVars') + ..add('debugLogsEnabled', debugLogsEnabled)) + .toString(); + } +} + +class GToggleDebugLogsVarsBuilder + implements Builder { + _$GToggleDebugLogsVars? _$v; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + GToggleDebugLogsVarsBuilder(); + + GToggleDebugLogsVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _debugLogsEnabled = $v.debugLogsEnabled; + _$v = null; + } + return this; + } + + @override + void replace(GToggleDebugLogsVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleDebugLogsVars; + } + + @override + void update(void Function(GToggleDebugLogsVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleDebugLogsVars build() => _build(); + + _$GToggleDebugLogsVars _build() { + final _$result = + _$v ?? new _$GToggleDebugLogsVars._(debugLogsEnabled: debugLogsEnabled); + replace(_$result); + return _$result; + } +} + +class _$GToggleGqlDebugLogsVars extends GToggleGqlDebugLogsVars { + @override + final bool? gqlDebugLogsEnabled; + + factory _$GToggleGqlDebugLogsVars( + [void Function(GToggleGqlDebugLogsVarsBuilder)? updates]) => + (new GToggleGqlDebugLogsVarsBuilder()..update(updates))._build(); + + _$GToggleGqlDebugLogsVars._({this.gqlDebugLogsEnabled}) : super._(); + + @override + GToggleGqlDebugLogsVars rebuild( + void Function(GToggleGqlDebugLogsVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleGqlDebugLogsVarsBuilder toBuilder() => + new GToggleGqlDebugLogsVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleGqlDebugLogsVars && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleGqlDebugLogsVars') + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled)) + .toString(); + } +} + +class GToggleGqlDebugLogsVarsBuilder + implements + Builder { + _$GToggleGqlDebugLogsVars? _$v; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + GToggleGqlDebugLogsVarsBuilder(); + + GToggleGqlDebugLogsVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _$v = null; + } + return this; + } + + @override + void replace(GToggleGqlDebugLogsVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleGqlDebugLogsVars; + } + + @override + void update(void Function(GToggleGqlDebugLogsVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleGqlDebugLogsVars build() => _build(); + + _$GToggleGqlDebugLogsVars _build() { + final _$result = _$v ?? + new _$GToggleGqlDebugLogsVars._( + gqlDebugLogsEnabled: gqlDebugLogsEnabled); + replace(_$result); + return _$result; + } +} + +class _$GToggleSystemTrayEnabledVars extends GToggleSystemTrayEnabledVars { + @override + final bool? systemTrayEnabled; + + factory _$GToggleSystemTrayEnabledVars( + [void Function(GToggleSystemTrayEnabledVarsBuilder)? updates]) => + (new GToggleSystemTrayEnabledVarsBuilder()..update(updates))._build(); + + _$GToggleSystemTrayEnabledVars._({this.systemTrayEnabled}) : super._(); + + @override + GToggleSystemTrayEnabledVars rebuild( + void Function(GToggleSystemTrayEnabledVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleSystemTrayEnabledVarsBuilder toBuilder() => + new GToggleSystemTrayEnabledVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleSystemTrayEnabledVars && + systemTrayEnabled == other.systemTrayEnabled; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleSystemTrayEnabledVars') + ..add('systemTrayEnabled', systemTrayEnabled)) + .toString(); + } +} + +class GToggleSystemTrayEnabledVarsBuilder + implements + Builder { + _$GToggleSystemTrayEnabledVars? _$v; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + GToggleSystemTrayEnabledVarsBuilder(); + + GToggleSystemTrayEnabledVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _systemTrayEnabled = $v.systemTrayEnabled; + _$v = null; + } + return this; + } + + @override + void replace(GToggleSystemTrayEnabledVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleSystemTrayEnabledVars; + } + + @override + void update(void Function(GToggleSystemTrayEnabledVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleSystemTrayEnabledVars build() => _build(); + + _$GToggleSystemTrayEnabledVars _build() { + final _$result = _$v ?? + new _$GToggleSystemTrayEnabledVars._( + systemTrayEnabled: systemTrayEnabled); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/server_settings_query.dart b/lib/src/features/settings/presentation/server/data/graphql/server_settings_query.dart new file mode 100644 index 00000000..53113b78 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/server_settings_query.dart @@ -0,0 +1,56 @@ +import '__generated__/server_settings_query.req.gql.dart'; + +abstract class ServerSettingsQuery { + static GUpdateServerIpReq updateServerIp(String value) => + GUpdateServerIpReq((req) => req..vars.ip = value); + + static GUpdatePortReq updatePort(int value) => + GUpdatePortReq((req) => req..vars.port = value); + + static GToggleSocksProxyReq toggleSocksProxy(bool value) => + GToggleSocksProxyReq((req) => req..vars.socksProxyEnabled = value); + + static GUpdateSocksVersionReq updateSocksVersion(int value) => + GUpdateSocksVersionReq((req) => req..vars.socksProxyVersion = value); + + static GUpdateSocksHostReq updateSocksHost(String value) => + GUpdateSocksHostReq((req) => req..vars.socksProxyHost = value); + + static GUpdateSocksUserNameReq updateSocksUserName(String value) => + GUpdateSocksUserNameReq((req) => req..vars.socksProxyUsername = value); + + static GUpdateSocksPasswordReq updateSocksPassword(String value) => + GUpdateSocksPasswordReq((req) => req..vars.socksProxyPassword = value); + + static GUpdateSocksPortReq updateSocksPort(String value) => + GUpdateSocksPortReq((req) => req..vars.socksProxyPort = value); + + static GToggleFlareSolverrReq toggleFlareSolverr(bool value) => + GToggleFlareSolverrReq((req) => req..vars.flareSolverrEnabled = value); + + static GUpdateFlareSolverrSessionNameReq updateFlareSolverrSessionName( + String value) => + GUpdateFlareSolverrSessionNameReq( + (req) => req..vars.flareSolverrSessionName = value); + + static GUpdateFlareSolverrSessionTtlReq updateFlareSolverrSessionTtl( + int value) => + GUpdateFlareSolverrSessionTtlReq( + (req) => req..vars.flareSolverrSessionTtl = value); + + static GUpdateFlareSolverrTimeoutReq updateFlareSolverrTimeout(int value) => + GUpdateFlareSolverrTimeoutReq( + (req) => req..vars.flareSolverrTimeout = value); + + static GUpdateFlareSolverrUrlReq updateFlareSolverrUrl(String value) => + GUpdateFlareSolverrUrlReq((req) => req..vars.flareSolverrUrl = value); + + static GToggleDebugLogsReq toggleDebugLogs(bool value) => + GToggleDebugLogsReq((req) => req..vars.debugLogsEnabled = value); + + static GToggleGqlDebugLogsReq toggleGqlDebugLogs(bool value) => + GToggleGqlDebugLogsReq((req) => req..vars.gqlDebugLogsEnabled = value); + + static GToggleSystemTrayEnabledReq toggleSystemTrayEnabled(bool value) => + GToggleSystemTrayEnabledReq((req) => req..vars.systemTrayEnabled = value); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/server_settings_query.graphql b/lib/src/features/settings/presentation/server/data/graphql/server_settings_query.graphql new file mode 100644 index 00000000..a66e527e --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/server_settings_query.graphql @@ -0,0 +1,129 @@ +# import '/src/features/settings/data/graphql/settings_query.graphql' +mutation UpdateServerIp($ip: String) { + setSettings(input: {settings: {ip: $ip}}) { + settings { + ...SettingsFragment + } + } +} + +mutation UpdatePort($port: Int = 4567) { + setSettings(input: {settings: {port: $port}}) { + settings { + ...SettingsFragment + } + } +} + + +mutation ToggleSocksProxy($socksProxyEnabled: Boolean = false) { + setSettings(input: {settings: {socksProxyEnabled: $socksProxyEnabled}}) { + settings { + ...SettingsFragment + } + } +} + +mutation UpdateSocksVersion($socksProxyVersion: Int = 10) { + setSettings(input: {settings: {socksProxyVersion: $socksProxyVersion}}){ + settings { + ...SettingsFragment + } + } +} + +mutation UpdateSocksHost($socksProxyHost: String = "") { + setSettings(input: {settings: {socksProxyHost: $socksProxyHost}}) { + settings { + ...SettingsFragment + } + } +} + +mutation UpdateSocksUserName($socksProxyUsername: String = "") { + setSettings(input: {settings: {socksProxyUsername: $socksProxyUsername}}){ + settings { + ...SettingsFragment + } + } +} + +mutation UpdateSocksPassword($socksProxyPassword: String = "") { + setSettings(input: {settings: {socksProxyPassword: $socksProxyPassword}}){ + settings { + ...SettingsFragment + } + } +} + +mutation UpdateSocksPort($socksProxyPort: String = "") { + setSettings(input: {settings: {socksProxyPort: $socksProxyPort}}){ + settings { + ...SettingsFragment + } + } +} + +mutation ToggleFlareSolverr($flareSolverrEnabled: Boolean = false) { + setSettings(input: {settings: {flareSolverrEnabled: $flareSolverrEnabled}}) { + settings { + ...SettingsFragment + } + } +} + +mutation UpdateFlareSolverrSessionName($flareSolverrSessionName: String = "") { + setSettings(input: {settings: {flareSolverrSessionName: $flareSolverrSessionName}}) { + settings { + ...SettingsFragment + } + } +} + +mutation UpdateFlareSolverrSessionTtl($flareSolverrSessionTtl: Int = 10) { + setSettings(input: {settings: {flareSolverrSessionTtl: $flareSolverrSessionTtl}}) { + settings { + ...SettingsFragment + } + } +} + +mutation UpdateFlareSolverrTimeout($flareSolverrTimeout: Int = 10) { + setSettings(input: {settings: {flareSolverrTimeout: $flareSolverrTimeout}}) { + settings { + ...SettingsFragment + } + } +} + +mutation UpdateFlareSolverrUrl($flareSolverrUrl: String = "") { + setSettings(input: {settings: {flareSolverrUrl: $flareSolverrUrl}}) { + settings { + ...SettingsFragment + } + } +} + +mutation ToggleDebugLogs($debugLogsEnabled: Boolean = false) { + setSettings(input: {settings: {debugLogsEnabled: $debugLogsEnabled}}) { + settings { + ...SettingsFragment + } + } +} + +mutation ToggleGqlDebugLogs($gqlDebugLogsEnabled: Boolean = false) { + setSettings(input: {settings: {gqlDebugLogsEnabled: $gqlDebugLogsEnabled}}) { + settings { + ...SettingsFragment + } + } +} + +mutation ToggleSystemTrayEnabled($systemTrayEnabled: Boolean = false) { + setSettings(input: {settings: {systemTrayEnabled: $systemTrayEnabled}}) { + settings { + ...SettingsFragment + } + } +} diff --git a/lib/src/features/settings/presentation/server/data/server_settings_repository.dart b/lib/src/features/settings/presentation/server/data/server_settings_repository.dart new file mode 100644 index 00000000..544334f8 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/server_settings_repository.dart @@ -0,0 +1,132 @@ +import 'package:ferry/ferry.dart'; +import 'package:riverpod_annotation/riverpod_annotation.dart'; + +import '../../../../../global_providers/global_providers.dart'; +import '../../../../../utils/extensions/custom_extensions.dart'; +import '../../../data/settings_repository.dart'; +import 'graphql/server_settings_query.dart'; + +part 'server_settings_repository.g.dart'; + +class ServerSettingsRepository { + const ServerSettingsRepository(this.ferryClient); + + final Client ferryClient; + + Future updateIpAddress(String ipAddress) => ferryClient + .fetch( + ServerSettingsQuery.updateServerIp(ipAddress), + (data) => data.setSettings.settings, + ) + .first; + + Future updatePort(int port) => ferryClient + .fetch( + ServerSettingsQuery.updatePort(port), + (data) => data.setSettings.settings, + ) + .first; + + Future toggleSocksProxy(bool isEnabled) => ferryClient + .fetch( + ServerSettingsQuery.toggleSocksProxy(isEnabled), + (data) => data.setSettings.settings, + ) + .first; + + Future updateSocksVersion(int newVersion) => ferryClient + .fetch( + ServerSettingsQuery.updateSocksVersion(newVersion), + (data) => data.setSettings.settings, + ) + .first; + + Future updateSocksHost(String value) => ferryClient + .fetch( + ServerSettingsQuery.updateSocksHost(value), + (data) => data.setSettings.settings, + ) + .first; + + Future updateSocksUserName(String value) => ferryClient + .fetch( + ServerSettingsQuery.updateSocksUserName(value), + (data) => data.setSettings.settings, + ) + .first; + + Future updateSocksPassword(String value) => ferryClient + .fetch( + ServerSettingsQuery.updateSocksPassword(value), + (data) => data.setSettings.settings, + ) + .first; + + Future updateSocksPort(String value) => ferryClient + .fetch( + ServerSettingsQuery.updateSocksPort(value), + (data) => data.setSettings.settings, + ) + .first; + + Future toggleFlareSolverr(bool value) => ferryClient + .fetch( + ServerSettingsQuery.toggleFlareSolverr(value), + (data) => data.setSettings.settings, + ) + .first; + + Future updateFlareSolverrSessionName(String value) => + ferryClient + .fetch( + ServerSettingsQuery.updateFlareSolverrSessionName(value), + (data) => data.setSettings.settings, + ) + .first; + + Future updateFlareSolverrSessionTtl(int value) => ferryClient + .fetch( + ServerSettingsQuery.updateFlareSolverrSessionTtl(value), + (data) => data.setSettings.settings, + ) + .first; + + Future updateFlareSolverrTimeout(int value) => ferryClient + .fetch( + ServerSettingsQuery.updateFlareSolverrTimeout(value), + (data) => data.setSettings.settings, + ) + .first; + Future updateFlareSolverrUrl(String value) => ferryClient + .fetch( + ServerSettingsQuery.updateFlareSolverrUrl(value), + (data) => data.setSettings.settings, + ) + .first; + + Future toggleDebugLogs(bool value) => ferryClient + .fetch( + ServerSettingsQuery.toggleDebugLogs(value), + (data) => data.setSettings.settings, + ) + .first; + + Future toggleGqlDebugLogs(bool value) => ferryClient + .fetch( + ServerSettingsQuery.toggleGqlDebugLogs(value), + (data) => data.setSettings.settings, + ) + .first; + + Future toggleSystemTrayEnabled(bool value) => ferryClient + .fetch( + ServerSettingsQuery.toggleSystemTrayEnabled(value), + (data) => data.setSettings.settings, + ) + .first; +} + +@riverpod +ServerSettingsRepository serverSettingsRepository( + ServerSettingsRepositoryRef ref) => + ServerSettingsRepository(ref.watch(ferryClientProvider)); diff --git a/lib/src/features/settings/presentation/server/data/server_settings_repository.g.dart b/lib/src/features/settings/presentation/server/data/server_settings_repository.g.dart new file mode 100644 index 00000000..fbb1f609 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/server_settings_repository.g.dart @@ -0,0 +1,28 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'server_settings_repository.dart'; + +// ************************************************************************** +// RiverpodGenerator +// ************************************************************************** + +String _$serverSettingsRepositoryHash() => + r'50dde824bee83fac227e10c3f465aaf26b23faab'; + +/// See also [serverSettingsRepository]. +@ProviderFor(serverSettingsRepository) +final serverSettingsRepositoryProvider = + AutoDisposeProvider.internal( + serverSettingsRepository, + name: r'serverSettingsRepositoryProvider', + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') + ? null + : _$serverSettingsRepositoryHash, + dependencies: null, + allTransitiveDependencies: null, +); + +typedef ServerSettingsRepositoryRef + = AutoDisposeProviderRef; +// ignore_for_file: type=lint +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member diff --git a/lib/src/features/settings/presentation/server/server_screen.dart b/lib/src/features/settings/presentation/server/server_screen.dart index 0a606929..9aebce60 100644 --- a/lib/src/features/settings/presentation/server/server_screen.dart +++ b/lib/src/features/settings/presentation/server/server_screen.dart @@ -9,63 +9,69 @@ import 'package:flutter/material.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../constants/endpoints.dart'; -import '../../../../constants/enum.dart'; -import '../../../../global_providers/global_providers.dart'; - import '../../../../utils/extensions/custom_extensions.dart'; import '../../../../utils/launch_url_in_web.dart'; import '../../../../utils/misc/toast/toast.dart'; -import '../../widgets/server_port_tile/server_port_tile.dart'; -import '../../widgets/server_url_tile/server_url_tile.dart'; -import 'widget/auth_type_tile.dart'; -import 'widget/credential_popup/credentials_popup.dart'; +import '../../controller/server_controller.dart'; +import 'widget/authentication/authentication_section.dart'; +import 'widget/client/client_section.dart'; +import 'widget/client/server_port_tile/server_port_tile.dart'; +import 'widget/client/server_url_tile/server_url_tile.dart'; +import 'widget/cloud_flare/cloud_flare_section.dart'; +import 'widget/misc_settings/misc_settings_section.dart'; +import 'widget/server_binding/server_binding_section.dart'; +import 'widget/socks_proxy/socks_proxy_section.dart'; class ServerScreen extends ConsumerWidget { const ServerScreen({super.key}); + @override Widget build(BuildContext context, WidgetRef ref) { - final authType = ref.watch(authTypeKeyProvider); + final serverSettings = ref.watch(settingsProvider); + onRefresh() => ref.refresh(settingsProvider.future); return Scaffold( appBar: AppBar( title: Text(context.l10n.server), ), - body: ListView( - children: [ - const ServerUrlTile(), - const ServerPortTile(), - const AuthTypeTile(), - if (authType != null && authType != AuthType.none) - ListTile( - leading: const Icon(Icons.password_rounded), - title: Text(context.l10n.credentials), - onTap: () { - showDialog( - context: context, - builder: (context) => const CredentialsPopup(), - ); - }, - ), - if (!kIsWeb) - ListTile( - leading: const Icon(Icons.web_rounded), - title: Text(context.l10n.webUI), - onTap: () { - final url = Endpoints.baseApi( - baseUrl: ref.read(serverUrlProvider), - port: ref.read(serverPortProvider), - addPort: ref.watch(serverPortToggleProvider).ifNull(), - appendApiToUrl: false, - ); - if (url.isNotBlank) { - launchUrlInWeb( - context, - url, - ref.read(toastProvider(context)), - ); - } - }, - ) - ], + body: RefreshIndicator( + onRefresh: onRefresh, + child: ListTileTheme( + data: const ListTileThemeData( + subtitleTextStyle: TextStyle(color: Colors.grey), + ), + child: ListView( + children: [ + const ClientSection(), + const AuthenticationSection(), + if (!kIsWeb) + ListTile( + leading: const Icon(Icons.web_rounded), + title: Text(context.l10n.webUI), + onTap: () { + final url = Endpoints.baseApi( + baseUrl: ref.read(serverUrlProvider), + port: ref.read(serverPortProvider), + addPort: ref.watch(serverPortToggleProvider).ifNull(), + appendApiToUrl: false, + ); + if (url.isNotBlank) { + launchUrlInWeb( + context, + url, + ref.read(toastProvider), + ); + } + }, + ), + if (serverSettings.valueOrNull != null) ...[ + ServerBindingSection(serverBindingDto: serverSettings.value!), + SocksProxySection(socksProxyDto: serverSettings.value!), + CloudFlareSection(cloudFlareDto: serverSettings.value!), + MiscSettingsSection(miscSettingsDto: serverSettings.value!), + ] + ], + ), + ), ), ); } diff --git a/lib/src/features/settings/presentation/server/widget/auth_type_tile.dart b/lib/src/features/settings/presentation/server/widget/authentication/auth_type/auth_type_tile.dart similarity index 82% rename from lib/src/features/settings/presentation/server/widget/auth_type_tile.dart rename to lib/src/features/settings/presentation/server/widget/authentication/auth_type/auth_type_tile.dart index f753d74b..b7bc0252 100644 --- a/lib/src/features/settings/presentation/server/widget/auth_type_tile.dart +++ b/lib/src/features/settings/presentation/server/widget/authentication/auth_type/auth_type_tile.dart @@ -7,10 +7,10 @@ import 'package:flutter/material.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; -import '../../../../../constants/enum.dart'; -import '../../../../../global_providers/global_providers.dart'; -import '../../../../../utils/extensions/custom_extensions.dart'; -import '../../../../../widgets/popup_widgets/radio_list_popup.dart'; +import '../../../../../../../constants/enum.dart'; +import '../../../../../../../global_providers/global_providers.dart'; +import '../../../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../../../widgets/popup_widgets/radio_list_popup.dart'; class AuthTypeTile extends ConsumerWidget { const AuthTypeTile({super.key}); diff --git a/lib/src/features/settings/presentation/server/widget/authentication/authentication_section.dart b/lib/src/features/settings/presentation/server/widget/authentication/authentication_section.dart new file mode 100644 index 00000000..c6f130f9 --- /dev/null +++ b/lib/src/features/settings/presentation/server/widget/authentication/authentication_section.dart @@ -0,0 +1,36 @@ +import 'package:flutter/material.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; + +import '../../../../../../constants/enum.dart'; +import '../../../../../../global_providers/global_providers.dart'; +import '../../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../../widgets/section_title.dart'; +import '../credential_popup/credentials_popup.dart'; +import 'auth_type/auth_type_tile.dart'; + +class AuthenticationSection extends ConsumerWidget { + const AuthenticationSection({super.key}); + + @override + Widget build(context, ref) { + final authType = ref.watch(authTypeKeyProvider); + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + SectionTitle(title: context.l10n.authentication), + const AuthTypeTile(), + if (authType != null && authType != AuthType.none) + ListTile( + leading: const Icon(Icons.password_rounded), + title: Text(context.l10n.credentials), + onTap: () { + showDialog( + context: context, + builder: (context) => const CredentialsPopup(), + ); + }, + ), + ], + ); + } +} diff --git a/lib/src/features/settings/presentation/server/widget/client/client_section.dart b/lib/src/features/settings/presentation/server/widget/client/client_section.dart new file mode 100644 index 00000000..c0924fa4 --- /dev/null +++ b/lib/src/features/settings/presentation/server/widget/client/client_section.dart @@ -0,0 +1,22 @@ +import 'package:flutter/widgets.dart'; + +import '../../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../../widgets/section_title.dart'; +import 'server_port_tile/server_port_tile.dart'; +import 'server_url_tile/server_url_tile.dart'; + +class ClientSection extends StatelessWidget { + const ClientSection({super.key}); + + @override + Widget build(BuildContext context) { + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + SectionTitle(title: context.l10n.client), + const ServerUrlTile(), + const ServerPortTile(), + ], + ); + } +} diff --git a/lib/src/features/settings/presentation/server/widget/client/server_port_tile/server_port_tile.dart b/lib/src/features/settings/presentation/server/widget/client/server_port_tile/server_port_tile.dart new file mode 100644 index 00000000..2d405e04 --- /dev/null +++ b/lib/src/features/settings/presentation/server/widget/client/server_port_tile/server_port_tile.dart @@ -0,0 +1,59 @@ +// Copyright (c) 2022 Contributors to the Suwayomi project +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; +import 'package:riverpod_annotation/riverpod_annotation.dart'; + +import '../../../../../../../constants/db_keys.dart'; +import '../../../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../../../utils/mixin/shared_preferences_client_mixin.dart'; +import '../../../../../../../widgets/input_popup/domain/input_popup_type.dart'; +import '../../../../../../../widgets/input_popup/input_popup.dart'; + +part 'server_port_tile.g.dart'; + +@riverpod +class ServerPort extends _$ServerPort with SharedPreferenceClientMixin { + @override + int? build() => initialize(DBKeys.serverPort); +} + +@riverpod +class ServerPortToggle extends _$ServerPortToggle + with SharedPreferenceClientMixin { + @override + bool? build() => initialize( + DBKeys.serverPortToggle, + initial: kIsWeb ? false : DBKeys.serverPortToggle.initial, + ); +} + +class ServerPortTile extends ConsumerWidget { + const ServerPortTile({super.key}); + + @override + Widget build(BuildContext context, WidgetRef ref) { + final serverPort = ref.watch(serverPortProvider); + final serverToggle = ref.watch(serverPortToggleProvider).ifNull(); + return InputPopup( + title: context.l10n.serverPort, + subtitle: serverToggle ? serverPort.toString() : null, + leading: const Icon(Icons.dns_rounded), + value: serverPort?.toString(), + trailing: Switch( + value: serverToggle, + onChanged: ref.read(serverPortToggleProvider.notifier).update, + ), + onChange: serverToggle + ? (port) => + ref.read(serverPortProvider.notifier).update(int.tryParse(port)) + : null, + type: const InputPopupType.numberPicker(min: 0, max: 65535), + ); + } +} diff --git a/lib/src/features/settings/widgets/server_port_tile/server_port_tile.g.dart b/lib/src/features/settings/presentation/server/widget/client/server_port_tile/server_port_tile.g.dart similarity index 100% rename from lib/src/features/settings/widgets/server_port_tile/server_port_tile.g.dart rename to lib/src/features/settings/presentation/server/widget/client/server_port_tile/server_port_tile.g.dart diff --git a/lib/src/features/settings/widgets/server_url_tile/server_search_button.dart b/lib/src/features/settings/presentation/server/widget/client/server_url_tile/server_search_button.dart similarity index 85% rename from lib/src/features/settings/widgets/server_url_tile/server_search_button.dart rename to lib/src/features/settings/presentation/server/widget/client/server_url_tile/server_search_button.dart index 7bd3bc1e..59f07417 100644 --- a/lib/src/features/settings/widgets/server_url_tile/server_search_button.dart +++ b/lib/src/features/settings/presentation/server/widget/client/server_url_tile/server_search_button.dart @@ -10,10 +10,10 @@ import 'package:flutter/material.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:network_info_plus/network_info_plus.dart'; -import '../../../../constants/db_keys.dart'; -import '../../../../utils/extensions/custom_extensions.dart'; -import '../../../../utils/misc/toast/toast.dart'; -import '../../../../widgets/async_buttons/async_text_button.dart'; +import '../../../../../../../constants/db_keys.dart'; +import '../../../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../../../utils/misc/toast/toast.dart'; +import '../../../../../../../widgets/async_buttons/async_text_button.dart'; import '../server_port_tile/server_port_tile.dart'; import 'server_url_tile.dart'; @@ -68,7 +68,7 @@ class ServerSearchButton extends ConsumerWidget { final addPort = ref.watch(serverPortToggleProvider).ifNull(); if (!addPort) return const SizedBox.shrink(); return AsyncTextButton( - icon: const Icon(Icons.search), + icon: const Icon(Icons.search_rounded), onPressed: port != null ? () async { final value = await getServerAddress(port); @@ -77,8 +77,8 @@ class ServerSearchButton extends ConsumerWidget { } else { if (context.mounted) { ref - .watch(toastProvider(context)) - .showError(context.l10n.noServerFound); + .watch(toastProvider) + ?.showError(context.l10n.noServerFound); } } } diff --git a/lib/src/features/settings/presentation/server/widget/client/server_url_tile/server_url_tile.dart b/lib/src/features/settings/presentation/server/widget/client/server_url_tile/server_url_tile.dart new file mode 100644 index 00000000..f002afa1 --- /dev/null +++ b/lib/src/features/settings/presentation/server/widget/client/server_url_tile/server_url_tile.dart @@ -0,0 +1,50 @@ +// Copyright (c) 2022 Contributors to the Suwayomi project +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; +import 'package:riverpod_annotation/riverpod_annotation.dart'; + +import '../../../../../../../constants/db_keys.dart'; +import '../../../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../../../utils/mixin/shared_preferences_client_mixin.dart'; +import '../../../../../../../widgets/input_popup/domain/input_popup_type.dart'; +import '../../../../../../../widgets/input_popup/input_popup.dart'; +import 'server_search_button.dart'; + +part 'server_url_tile.g.dart'; + +@riverpod +class ServerUrl extends _$ServerUrl with SharedPreferenceClientMixin { + @override + String? build() => initialize( + DBKeys.serverUrl, + initial: kIsWeb ? Uri.base.origin : DBKeys.serverUrl.initial, + ); +} + +class ServerUrlTile extends ConsumerWidget { + const ServerUrlTile({super.key}); + + @override + Widget build(BuildContext context, WidgetRef ref) { + final serverUrl = ref.watch(serverUrlProvider); + return InputPopup( + title: context.l10n.serverUrl, + subtitle: serverUrl, + leading: const Icon(Icons.computer_rounded), + trailing: !kIsWeb ? const ServerSearchButton() : null, + type: InputPopupType.textField(hintText: context.l10n.serverUrlHintText), + value: serverUrl, + onChange: (value) { + final tempUrl = + value.endsWith('/') ? value.substring(0, value.length - 1) : value; + ref.read(serverUrlProvider.notifier).update(tempUrl); + }, + ); + } +} diff --git a/lib/src/features/settings/widgets/server_url_tile/server_url_tile.g.dart b/lib/src/features/settings/presentation/server/widget/client/server_url_tile/server_url_tile.g.dart similarity index 100% rename from lib/src/features/settings/widgets/server_url_tile/server_url_tile.g.dart rename to lib/src/features/settings/presentation/server/widget/client/server_url_tile/server_url_tile.g.dart diff --git a/lib/src/features/settings/presentation/server/widget/cloud_flare/cloud_flare_section.dart b/lib/src/features/settings/presentation/server/widget/cloud_flare/cloud_flare_section.dart new file mode 100644 index 00000000..3ccdc3f5 --- /dev/null +++ b/lib/src/features/settings/presentation/server/widget/cloud_flare/cloud_flare_section.dart @@ -0,0 +1,125 @@ +import 'package:flutter/material.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; + +import '../../../../../../constants/urls.dart'; +import '../../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../../utils/launch_url_in_web.dart'; +import '../../../../../../utils/misc/app_utils.dart'; +import '../../../../../../utils/misc/toast/toast.dart'; +import '../../../../../../widgets/input_popup/domain/input_popup_type.dart'; +import '../../../../../../widgets/input_popup/input_popup.dart'; +import '../../../../../../widgets/section_title.dart'; +import '../../../../controller/server_controller.dart'; +import '../../../../domain/cloud_flare/cloud_flare.dart'; +import '../../data/server_settings_repository.dart'; + +class CloudFlareSection extends ConsumerWidget { + const CloudFlareSection({super.key, required this.cloudFlareDto}); + + final CloudFlareDto cloudFlareDto; + @override + Widget build(context, ref) { + final repository = ref.watch(serverSettingsRepositoryProvider); + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + SectionTitle(title: context.l10n.cloudflareBypass), + SwitchListTile( + title: Row(children: [ + Text(context.l10n.flareSolverr), + IconButton( + iconSize: 18, + onPressed: () => launchUrlInWeb( + context, AppUrls.flareSolverr.url, ref.read(toastProvider)), + icon: const Icon(Icons.open_in_new_rounded)) + ]), + value: cloudFlareDto.flareSolverrEnabled, + subtitle: Text(context.l10n.openFlareSolverr), + onChanged: (isEnabled) async { + final value = await AppUtils.guard( + () => repository.toggleFlareSolverr(isEnabled), + ref.read(toastProvider)); + if (value != null) { + ref.read(settingsProvider.notifier).updateState(value); + } + }, + ), + if (cloudFlareDto.flareSolverrEnabled) ...[ + InputPopup( + title: context.l10n.flareSolverrServerUrl, + type: InputPopupType.textField( + hintText: + context.l10n.enterProp(context.l10n.flareSolverrServerUrl)), + subtitle: cloudFlareDto.flareSolverrUrl, + value: cloudFlareDto.flareSolverrUrl, + onChange: (newValue) async { + final result = await AppUtils.guard( + () => repository.updateFlareSolverrUrl(newValue), + ref.read(toastProvider)); + if (result != null) { + ref.watch(settingsProvider.notifier).updateState(result); + } + }, + ), + InputPopup( + title: context.l10n.flareSolverrRequestTimeout, + value: cloudFlareDto.flareSolverrTimeout.toString(), + subtitle: context.l10n.nSeconds(cloudFlareDto.flareSolverrTimeout), + onChange: (value) async { + final newValue = int.tryParse(value); + if (newValue != null) { + final result = await AppUtils.guard( + () => repository.updateFlareSolverrTimeout(newValue), + ref.read(toastProvider)); + if (result != null) { + ref.watch(settingsProvider.notifier).updateState(result); + } + } else { + ref.read(toastProvider)?.showError(context.l10n + .invalidProp(context.l10n.flareSolverrRequestTimeout)); + } + }, + type: const InputPopupType.numberSlider(min: 20, max: 300), + ), + InputPopup( + title: context.l10n.flareSolverrSessionName, + type: InputPopupType.textField( + hintText: context.l10n + .enterProp(context.l10n.flareSolverrSessionName)), + subtitle: cloudFlareDto.flareSolverrSessionName, + value: cloudFlareDto.flareSolverrSessionName, + onChange: (newValue) async { + final result = await AppUtils.guard( + () => repository.updateFlareSolverrSessionName(newValue), + ref.read(toastProvider)); + if (result != null) { + ref.watch(settingsProvider.notifier).updateState(result); + } + }, + ), + InputPopup( + title: context.l10n.flareSolverrSessionTTL, + value: cloudFlareDto.flareSolverrSessionTtl.toString(), + subtitle: + context.l10n.nMinutes(cloudFlareDto.flareSolverrSessionTtl), + onChange: (value) async { + final newValue = int.tryParse(value); + if (newValue != null) { + final result = await AppUtils.guard( + () => repository.updateFlareSolverrSessionTtl(newValue), + ref.read(toastProvider)); + if (result != null) { + ref.watch(settingsProvider.notifier).updateState(result); + } + } else { + ref.read(toastProvider)?.showError(context.l10n + .invalidProp(context.l10n.flareSolverrSessionTTL)); + } + }, + type: const InputPopupType.numberSlider(min: 1, max: 60), + ), + ], + ], + ); + } +} diff --git a/lib/src/features/settings/presentation/server/widget/misc_settings/misc_settings_section.dart b/lib/src/features/settings/presentation/server/widget/misc_settings/misc_settings_section.dart new file mode 100644 index 00000000..d7617dd3 --- /dev/null +++ b/lib/src/features/settings/presentation/server/widget/misc_settings/misc_settings_section.dart @@ -0,0 +1,63 @@ +import 'package:flutter/material.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; + +import '../../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../../utils/misc/app_utils.dart'; +import '../../../../../../utils/misc/toast/toast.dart'; +import '../../../../../../widgets/section_title.dart'; +import '../../../../controller/server_controller.dart'; +import '../../../../domain/misc_settings/misc_settings.dart'; +import '../../data/server_settings_repository.dart'; + +class MiscSettingsSection extends ConsumerWidget { + const MiscSettingsSection({super.key, required this.miscSettingsDto}); + final MiscSettingsDto miscSettingsDto; + @override + Widget build(context, ref) { + final repository = ref.watch(serverSettingsRepositoryProvider); + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + SectionTitle(title: context.l10n.misc), + SwitchListTile( + title: Text(context.l10n.debugLogs), + value: miscSettingsDto.debugLogsEnabled, + onChanged: (isEnabled) async { + final value = await AppUtils.guard( + () => repository.toggleDebugLogs(isEnabled), + ref.read(toastProvider)); + if (value != null) { + ref.read(settingsProvider.notifier).updateState(value); + } + }, + ), + SwitchListTile( + title: Text(context.l10n.gqlDebugLogs), + subtitle: Text(context.l10n.gqlDebugLogsHint), + value: miscSettingsDto.gqlDebugLogsEnabled, + onChanged: (isEnabled) async { + final value = await AppUtils.guard( + () => repository.toggleGqlDebugLogs(isEnabled), + ref.read(toastProvider)); + if (value != null) { + ref.read(settingsProvider.notifier).updateState(value); + } + }, + ), + SwitchListTile( + title: Text(context.l10n.systemTrayIcon), + subtitle: Text(context.l10n.systemTrayIcon), + value: miscSettingsDto.systemTrayEnabled, + onChanged: (isEnabled) async { + final value = await AppUtils.guard( + () => repository.toggleSystemTrayEnabled(isEnabled), + ref.read(toastProvider)); + if (value != null) { + ref.read(settingsProvider.notifier).updateState(value); + } + }, + ), + ], + ); + } +} diff --git a/lib/src/features/settings/presentation/server/widget/server_binding/server_binding_section.dart b/lib/src/features/settings/presentation/server/widget/server_binding/server_binding_section.dart new file mode 100644 index 00000000..29c1d779 --- /dev/null +++ b/lib/src/features/settings/presentation/server/widget/server_binding/server_binding_section.dart @@ -0,0 +1,66 @@ +import 'package:flutter/material.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; + +import '../../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../../utils/misc/app_utils.dart'; +import '../../../../../../utils/misc/toast/toast.dart'; +import '../../../../../../widgets/input_popup/domain/input_popup_type.dart'; +import '../../../../../../widgets/input_popup/input_popup.dart'; +import '../../../../../../widgets/section_title.dart'; +import '../../../../controller/server_controller.dart'; +import '../../../../domain/server_binding/server_binding.dart'; +import '../../data/server_settings_repository.dart'; + +class ServerBindingSection extends ConsumerWidget { + const ServerBindingSection({ + super.key, + required this.serverBindingDto, + }); + final ServerBindingDto serverBindingDto; + @override + Widget build(context, ref) { + final repository = ref.watch(serverSettingsRepositoryProvider); + + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + SectionTitle(title: context.l10n.serverBindings), + InputPopup( + title: context.l10n.ip, + leading: const Icon(Icons.computer_rounded), + type: InputPopupType.textField(hintText: context.l10n.ipHintText), + subtitle: serverBindingDto.ip, + value: serverBindingDto.ip, + onChange: (newIp) async { + final value = await AppUtils.guard( + () => repository.updateIpAddress(newIp), + ref.read(toastProvider)); + if (value != null) { + ref.watch(settingsProvider.notifier).updateState(value); + } + }, + ), + InputPopup( + title: context.l10n.serverPort, + subtitle: serverBindingDto.port.toString(), + leading: const Icon(Icons.dns_rounded), + value: serverBindingDto.port.toString(), + onChange: (port) async { + final newPort = int.tryParse(port); + if (newPort != null) { + final value = await AppUtils.guard( + () => repository.updatePort(newPort), + ref.read(toastProvider)); + if (value != null) { + ref.watch(settingsProvider.notifier).updateState(value); + } + } else { + ref.read(toastProvider)?.showError(context.l10n.invalidPort); + } + }, + type: const InputPopupType.numberPicker(min: 0, max: 65535), + ), + ], + ); + } +} diff --git a/lib/src/features/settings/presentation/server/widget/socks_proxy/socks_proxy_section.dart b/lib/src/features/settings/presentation/server/widget/socks_proxy/socks_proxy_section.dart new file mode 100644 index 00000000..ed5ac681 --- /dev/null +++ b/lib/src/features/settings/presentation/server/widget/socks_proxy/socks_proxy_section.dart @@ -0,0 +1,128 @@ +import 'package:flutter/material.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; + +import '../../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../../utils/misc/app_utils.dart'; +import '../../../../../../utils/misc/toast/toast.dart'; +import '../../../../../../widgets/input_popup/domain/input_popup_type.dart'; +import '../../../../../../widgets/input_popup/input_popup.dart'; +import '../../../../../../widgets/section_title.dart'; +import '../../../../controller/server_controller.dart'; +import '../../../../domain/socks_proxy/socks_proxy.dart'; +import '../../data/server_settings_repository.dart'; + +class SocksProxySection extends ConsumerWidget { + const SocksProxySection({ + super.key, + required this.socksProxyDto, + }); + final SocksProxyDto socksProxyDto; + @override + Widget build(context, ref) { + final repository = ref.watch(serverSettingsRepositoryProvider); + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + SectionTitle(title: context.l10n.socksProxy), + SwitchListTile( + title: Text(context.l10n.enableSocksProxy), + value: socksProxyDto.socksProxyEnabled, + onChanged: (isEnabled) async { + final value = await AppUtils.guard( + () => repository.toggleSocksProxy(isEnabled), + ref.read(toastProvider)); + if (value != null) { + ref.read(settingsProvider.notifier).updateState(value); + } + }, + ), + if (socksProxyDto.socksProxyEnabled) ...[ + InputPopup( + title: context.l10n.socksVersion, + subtitle: socksProxyDto.socksProxyVersion.toString(), + value: socksProxyDto.socksProxyVersion.toString(), + onChange: (version) async { + final newVersion = int.tryParse(version); + if (newVersion != null) { + final value = await AppUtils.guard( + () => repository.updateSocksVersion(newVersion), + ref.read(toastProvider)); + if (value != null) { + ref.watch(settingsProvider.notifier).updateState(value); + } + } else { + ref.read(toastProvider)?.showError( + context.l10n.invalidProp(context.l10n.socksVersion)); + } + }, + type: const InputPopupType.numberPicker(min: 4, max: 5), + ), + InputPopup( + title: context.l10n.socksHost, + type: InputPopupType.textField( + hintText: context.l10n.enterProp(context.l10n.socksHost)), + subtitle: socksProxyDto.socksProxyHost, + value: socksProxyDto.socksProxyHost, + onChange: (newValue) async { + final result = await AppUtils.guard( + () => repository.updateSocksHost(newValue), + ref.read(toastProvider)); + if (result != null) { + ref.watch(settingsProvider.notifier).updateState(result); + } + }, + ), + InputPopup( + title: context.l10n.socksPort, + subtitle: socksProxyDto.socksProxyPort.toString(), + value: socksProxyDto.socksProxyPort.toString(), + onChange: (port) async { + final newPort = int.tryParse(port); + if (newPort != null) { + final value = await AppUtils.guard( + () => repository.updateSocksPort(newPort.toString()), + ref.read(toastProvider)); + if (value != null) { + ref.watch(settingsProvider.notifier).updateState(value); + } + } else { + ref.read(toastProvider)?.showError(context.l10n.invalidPort); + } + }, + type: const InputPopupType.numberPicker(min: 0, max: 65535), + ), + InputPopup( + title: context.l10n.socksUserName, + type: InputPopupType.textField( + hintText: context.l10n.enterProp(context.l10n.socksUserName)), + subtitle: socksProxyDto.socksProxyUsername, + value: socksProxyDto.socksProxyUsername, + onChange: (newValue) async { + final result = await AppUtils.guard( + () => repository.updateSocksUserName(newValue), + ref.read(toastProvider)); + if (result != null) { + ref.watch(settingsProvider.notifier).updateState(result); + } + }, + ), + InputPopup( + title: context.l10n.socksPassword, + type: InputPopupType.password( + hintText: context.l10n.enterProp(context.l10n.socksPassword), + ), + value: socksProxyDto.socksProxyPassword, + onChange: (newValue) async { + final result = await AppUtils.guard( + () => repository.updateSocksPassword(newValue), + ref.read(toastProvider)); + if (result != null) { + ref.watch(settingsProvider.notifier).updateState(result); + } + }, + ), + ], + ], + ); + } +} diff --git a/lib/src/features/settings/presentation/settings/settings_screen.dart b/lib/src/features/settings/presentation/settings/settings_screen.dart index 1009558a..e0a43de4 100644 --- a/lib/src/features/settings/presentation/settings/settings_screen.dart +++ b/lib/src/features/settings/presentation/settings/settings_screen.dart @@ -23,37 +23,37 @@ class SettingsScreen extends StatelessWidget { ListTile( title: Text(context.l10n.general), leading: const Icon(Icons.tune_rounded), - onTap: () => const GeneralSettingsRoute().push(context), + onTap: () => const GeneralSettingsRoute().go(context), ), ListTile( title: Text(context.l10n.appearance), leading: const Icon(Icons.color_lens_rounded), - onTap: () => const AppearanceSettingsRoute().push(context), + onTap: () => const AppearanceSettingsRoute().go(context), ), ListTile( title: Text(context.l10n.library), leading: const Icon(Icons.collections_bookmark_rounded), - onTap: () => const LibrarySettingsRoute().push(context), + onTap: () => const LibrarySettingsRoute().go(context), ), ListTile( title: Text(context.l10n.reader), leading: const Icon(Icons.chrome_reader_mode_rounded), - onTap: () => const ReaderSettingsRoute().push(context), + onTap: () => const ReaderSettingsRoute().go(context), ), ListTile( title: Text(context.l10n.browse), leading: const Icon(Icons.explore_rounded), - onTap: () => const BrowseSettingsRoute().push(context), + onTap: () => const BrowseSettingsRoute().go(context), ), ListTile( title: Text(context.l10n.backup), leading: const Icon(Icons.settings_backup_restore_rounded), - onTap: () => const BackupRoute().push(context), + onTap: () => const BackupRoute().go(context), ), ListTile( title: Text(context.l10n.server), leading: const Icon(Icons.computer_rounded), - onTap: () => const ServerSettingsRoute().push(context), + onTap: () => const ServerSettingsRoute().go(context), ), ], ), diff --git a/lib/src/features/settings/widgets/server_port_tile/server_port_tile.dart b/lib/src/features/settings/widgets/server_port_tile/server_port_tile.dart deleted file mode 100644 index 52df4c82..00000000 --- a/lib/src/features/settings/widgets/server_port_tile/server_port_tile.dart +++ /dev/null @@ -1,112 +0,0 @@ -// Copyright (c) 2022 Contributors to the Suwayomi project -// -// This Source Code Form is subject to the terms of the Mozilla Public -// License, v. 2.0. If a copy of the MPL was not distributed with this -// file, You can obtain one at http://mozilla.org/MPL/2.0/. - -import 'package:flutter/foundation.dart'; -import 'package:flutter/material.dart'; -import 'package:flutter/services.dart'; -import 'package:flutter_hooks/flutter_hooks.dart'; -import 'package:hooks_riverpod/hooks_riverpod.dart'; -import 'package:riverpod_annotation/riverpod_annotation.dart'; - -import '../../../../constants/db_keys.dart'; -import '../../../../utils/extensions/custom_extensions.dart'; -import '../../../../utils/mixin/shared_preferences_client_mixin.dart'; -import '../../../../widgets/popup_widgets/pop_button.dart'; - -part 'server_port_tile.g.dart'; - -@riverpod -class ServerPort extends _$ServerPort with SharedPreferenceClientMixin { - @override - int? build() => initialize(DBKeys.serverPort); -} - -@riverpod -class ServerPortToggle extends _$ServerPortToggle - with SharedPreferenceClientMixin { - @override - bool? build() => initialize( - DBKeys.serverPortToggle, - initial: kIsWeb ? false : DBKeys.serverPortToggle.initial, - ); -} - -class ServerPortTile extends ConsumerWidget { - const ServerPortTile({super.key}); - - @override - Widget build(BuildContext context, WidgetRef ref) { - final serverPort = ref.watch(serverPortProvider); - final serverToggle = ref.watch(serverPortToggleProvider).ifNull(); - return ListTile( - leading: const Icon(Icons.dns_rounded), - title: Text(context.l10n.serverPort), - subtitle: (serverToggle && serverPort != null) - ? (Text(serverPort.toString())) - : null, - trailing: Switch( - value: serverToggle, - onChanged: (value) { - ref.read(serverPortToggleProvider.notifier).update(value); - }, - ), - onTap: serverToggle - ? () => showDialog( - context: context, - builder: (context) => ServerPortField(initialPort: serverPort), - ) - : null, - ); - } -} - -class ServerPortField extends HookConsumerWidget { - const ServerPortField({ - this.initialPort, - super.key, - }); - final int? initialPort; - - void _update(int? port, WidgetRef ref) { - ref.read(serverPortProvider.notifier).update(port); - } - - @override - Widget build(BuildContext context, WidgetRef ref) { - final controller = useTextEditingController( - text: (initialPort ?? '').toString(), - ); - return AlertDialog( - title: Text(context.l10n.serverPort), - content: TextField( - autofocus: true, - controller: controller, - onSubmitted: (value) { - _update(int.tryParse(controller.text), ref); - Navigator.pop(context); - }, - keyboardType: TextInputType.number, - maxLength: 5, - inputFormatters: [FilteringTextInputFormatter.digitsOnly], - decoration: InputDecoration( - counter: const SizedBox.shrink(), - border: const OutlineInputBorder(), - hintText: (context.l10n.serverPortHintText), - ), - ), - actions: [ - const PopButton(), - ElevatedButton( - onPressed: () { - _update(int.tryParse(controller.text), ref); - Navigator.pop(context); - }, - child: Text(context.l10n.save), - ), - ], - ); - } -} diff --git a/lib/src/features/settings/widgets/server_url_tile/server_url_tile.dart b/lib/src/features/settings/widgets/server_url_tile/server_url_tile.dart deleted file mode 100644 index 6f861602..00000000 --- a/lib/src/features/settings/widgets/server_url_tile/server_url_tile.dart +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright (c) 2022 Contributors to the Suwayomi project -// -// This Source Code Form is subject to the terms of the Mozilla Public -// License, v. 2.0. If a copy of the MPL was not distributed with this -// file, You can obtain one at http://mozilla.org/MPL/2.0/. - -import 'package:flutter/foundation.dart'; -import 'package:flutter/material.dart'; -import 'package:flutter_hooks/flutter_hooks.dart'; -import 'package:hooks_riverpod/hooks_riverpod.dart'; -import 'package:riverpod_annotation/riverpod_annotation.dart'; - -import '../../../../constants/db_keys.dart'; -import '../../../../utils/extensions/custom_extensions.dart'; -import '../../../../utils/mixin/shared_preferences_client_mixin.dart'; -import '../../../../widgets/popup_widgets/pop_button.dart'; -import 'server_search_button.dart'; - -part 'server_url_tile.g.dart'; - -@riverpod -class ServerUrl extends _$ServerUrl with SharedPreferenceClientMixin { - @override - String? build() => initialize( - DBKeys.serverUrl, - initial: kIsWeb ? Uri.base.origin : DBKeys.serverUrl.initial, - ); -} - -class ServerUrlTile extends ConsumerWidget { - const ServerUrlTile({super.key}); - - @override - Widget build(BuildContext context, WidgetRef ref) { - final serverUrl = ref.watch(serverUrlProvider); - return ListTile( - leading: const Icon(Icons.computer_rounded), - title: Text(context.l10n.serverUrl), - subtitle: (serverUrl.isNotBlank) ? Text(serverUrl!) : null, - trailing: !kIsWeb ? (const ServerSearchButton()) : null, - onTap: () => showDialog( - context: context, - builder: (context) => ServerUrlField(initialUrl: serverUrl), - ), - ); - } -} - -class ServerUrlField extends HookConsumerWidget { - const ServerUrlField({ - this.initialUrl, - super.key, - }); - final String? initialUrl; - - void _update(String url, WidgetRef ref) { - final tempUrl = url.endsWith('/') ? url.substring(0, url.length - 1) : url; - ref.read(serverUrlProvider.notifier).update(tempUrl); - } - - @override - Widget build(BuildContext context, WidgetRef ref) { - final controller = useTextEditingController(text: initialUrl); - return AlertDialog( - title: Text(context.l10n.serverUrl), - content: TextField( - autofocus: true, - controller: controller, - onSubmitted: (value) { - _update(controller.text, ref); - Navigator.pop(context); - }, - decoration: InputDecoration( - border: const OutlineInputBorder(), - hintText: (context.l10n.serverUrlHintText), - ), - ), - actions: [ - const PopButton(), - ElevatedButton( - onPressed: () { - _update(controller.text, ref); - Navigator.pop(context); - }, - child: Text(context.l10n.save), - ), - ], - ); - } -} diff --git a/lib/src/features/settings/widgets/slider_setting_tile/slider_setting_tile.dart b/lib/src/features/settings/widgets/slider_setting_tile/slider_setting_tile.dart index 9fd192fc..68b17079 100644 --- a/lib/src/features/settings/widgets/slider_setting_tile/slider_setting_tile.dart +++ b/lib/src/features/settings/widgets/slider_setting_tile/slider_setting_tile.dart @@ -36,7 +36,7 @@ class SliderSettingTile extends StatelessWidget { title: Text(title), trailing: IconButton( onPressed: () => onChanged(defaultValue), - icon: const Icon(Icons.refresh), + icon: const Icon(Icons.refresh_rounded), ), subtitle: Row( children: [ diff --git a/lib/src/global_providers/global_providers.dart b/lib/src/global_providers/global_providers.dart index 715d0978..edd0d7be 100644 --- a/lib/src/global_providers/global_providers.dart +++ b/lib/src/global_providers/global_providers.dart @@ -16,9 +16,9 @@ import 'package:shared_preferences/shared_preferences.dart'; import '../constants/db_keys.dart'; import '../constants/enum.dart'; +import '../features/settings/presentation/server/widget/client/server_port_tile/server_port_tile.dart'; +import '../features/settings/presentation/server/widget/client/server_url_tile/server_url_tile.dart'; import '../features/settings/presentation/server/widget/credential_popup/credentials_popup.dart'; -import '../features/settings/widgets/server_port_tile/server_port_tile.dart'; -import '../features/settings/widgets/server_url_tile/server_url_tile.dart'; import '../utils/extensions/custom_extensions.dart'; import '../utils/mixin/shared_preferences_client_mixin.dart'; import '../utils/storage/dio/dio_client.dart'; diff --git a/lib/src/graphql/__generated__/fragments.ast.gql.dart b/lib/src/graphql/__generated__/fragments.ast.gql.dart new file mode 100644 index 00000000..5796c5fb --- /dev/null +++ b/lib/src/graphql/__generated__/fragments.ast.gql.dart @@ -0,0 +1,46 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const PageInfoFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'PageInfoFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'PageInfo'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'endCursor'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'hasNextPage'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'hasPreviousPage'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'startCursor'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), +); +const document = _i1.DocumentNode(definitions: [PageInfoFragment]); diff --git a/lib/src/graphql/__generated__/fragments.data.gql.dart b/lib/src/graphql/__generated__/fragments.data.gql.dart new file mode 100644 index 00000000..0e524bc0 --- /dev/null +++ b/lib/src/graphql/__generated__/fragments.data.gql.dart @@ -0,0 +1,61 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' + as _i1; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i2; + +part 'fragments.data.gql.g.dart'; + +abstract class GPageInfoFragment { + String get G__typename; + _i1.GCursor? get endCursor; + bool get hasNextPage; + bool get hasPreviousPage; + _i1.GCursor? get startCursor; + Map toJson(); +} + +abstract class GPageInfoFragmentData + implements + Built, + GPageInfoFragment { + GPageInfoFragmentData._(); + + factory GPageInfoFragmentData( + [void Function(GPageInfoFragmentDataBuilder b) updates]) = + _$GPageInfoFragmentData; + + static void _initializeBuilder(GPageInfoFragmentDataBuilder b) => + b..G__typename = 'PageInfo'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + _i1.GCursor? get endCursor; + @override + bool get hasNextPage; + @override + bool get hasPreviousPage; + @override + _i1.GCursor? get startCursor; + static Serializer get serializer => + _$gPageInfoFragmentDataSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GPageInfoFragmentData.serializer, + this, + ) as Map); + + static GPageInfoFragmentData? fromJson(Map json) => + _i2.serializers.deserializeWith( + GPageInfoFragmentData.serializer, + json, + ); +} diff --git a/lib/src/graphql/__generated__/fragments.data.gql.g.dart b/lib/src/graphql/__generated__/fragments.data.gql.g.dart new file mode 100644 index 00000000..6c0db009 --- /dev/null +++ b/lib/src/graphql/__generated__/fragments.data.gql.g.dart @@ -0,0 +1,260 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragments.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gPageInfoFragmentDataSerializer = + new _$GPageInfoFragmentDataSerializer(); + +class _$GPageInfoFragmentDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GPageInfoFragmentData, + _$GPageInfoFragmentData + ]; + @override + final String wireName = 'GPageInfoFragmentData'; + + @override + Iterable serialize( + Serializers serializers, GPageInfoFragmentData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'hasNextPage', + serializers.serialize(object.hasNextPage, + specifiedType: const FullType(bool)), + 'hasPreviousPage', + serializers.serialize(object.hasPreviousPage, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.endCursor; + if (value != null) { + result + ..add('endCursor') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.GCursor))); + } + value = object.startCursor; + if (value != null) { + result + ..add('startCursor') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.GCursor))); + } + return result; + } + + @override + GPageInfoFragmentData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GPageInfoFragmentDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'endCursor': + result.endCursor.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GCursor))! as _i1.GCursor); + break; + case 'hasNextPage': + result.hasNextPage = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'hasPreviousPage': + result.hasPreviousPage = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'startCursor': + result.startCursor.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GCursor))! as _i1.GCursor); + break; + } + } + + return result.build(); + } +} + +class _$GPageInfoFragmentData extends GPageInfoFragmentData { + @override + final String G__typename; + @override + final _i1.GCursor? endCursor; + @override + final bool hasNextPage; + @override + final bool hasPreviousPage; + @override + final _i1.GCursor? startCursor; + + factory _$GPageInfoFragmentData( + [void Function(GPageInfoFragmentDataBuilder)? updates]) => + (new GPageInfoFragmentDataBuilder()..update(updates))._build(); + + _$GPageInfoFragmentData._( + {required this.G__typename, + this.endCursor, + required this.hasNextPage, + required this.hasPreviousPage, + this.startCursor}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GPageInfoFragmentData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + hasNextPage, r'GPageInfoFragmentData', 'hasNextPage'); + BuiltValueNullFieldError.checkNotNull( + hasPreviousPage, r'GPageInfoFragmentData', 'hasPreviousPage'); + } + + @override + GPageInfoFragmentData rebuild( + void Function(GPageInfoFragmentDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GPageInfoFragmentDataBuilder toBuilder() => + new GPageInfoFragmentDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GPageInfoFragmentData && + G__typename == other.G__typename && + endCursor == other.endCursor && + hasNextPage == other.hasNextPage && + hasPreviousPage == other.hasPreviousPage && + startCursor == other.startCursor; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, endCursor.hashCode); + _$hash = $jc(_$hash, hasNextPage.hashCode); + _$hash = $jc(_$hash, hasPreviousPage.hashCode); + _$hash = $jc(_$hash, startCursor.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GPageInfoFragmentData') + ..add('G__typename', G__typename) + ..add('endCursor', endCursor) + ..add('hasNextPage', hasNextPage) + ..add('hasPreviousPage', hasPreviousPage) + ..add('startCursor', startCursor)) + .toString(); + } +} + +class GPageInfoFragmentDataBuilder + implements Builder { + _$GPageInfoFragmentData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + _i1.GCursorBuilder? _endCursor; + _i1.GCursorBuilder get endCursor => + _$this._endCursor ??= new _i1.GCursorBuilder(); + set endCursor(_i1.GCursorBuilder? endCursor) => _$this._endCursor = endCursor; + + bool? _hasNextPage; + bool? get hasNextPage => _$this._hasNextPage; + set hasNextPage(bool? hasNextPage) => _$this._hasNextPage = hasNextPage; + + bool? _hasPreviousPage; + bool? get hasPreviousPage => _$this._hasPreviousPage; + set hasPreviousPage(bool? hasPreviousPage) => + _$this._hasPreviousPage = hasPreviousPage; + + _i1.GCursorBuilder? _startCursor; + _i1.GCursorBuilder get startCursor => + _$this._startCursor ??= new _i1.GCursorBuilder(); + set startCursor(_i1.GCursorBuilder? startCursor) => + _$this._startCursor = startCursor; + + GPageInfoFragmentDataBuilder() { + GPageInfoFragmentData._initializeBuilder(this); + } + + GPageInfoFragmentDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _endCursor = $v.endCursor?.toBuilder(); + _hasNextPage = $v.hasNextPage; + _hasPreviousPage = $v.hasPreviousPage; + _startCursor = $v.startCursor?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GPageInfoFragmentData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GPageInfoFragmentData; + } + + @override + void update(void Function(GPageInfoFragmentDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GPageInfoFragmentData build() => _build(); + + _$GPageInfoFragmentData _build() { + _$GPageInfoFragmentData _$result; + try { + _$result = _$v ?? + new _$GPageInfoFragmentData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GPageInfoFragmentData', 'G__typename'), + endCursor: _endCursor?.build(), + hasNextPage: BuiltValueNullFieldError.checkNotNull( + hasNextPage, r'GPageInfoFragmentData', 'hasNextPage'), + hasPreviousPage: BuiltValueNullFieldError.checkNotNull( + hasPreviousPage, r'GPageInfoFragmentData', 'hasPreviousPage'), + startCursor: _startCursor?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'endCursor'; + _endCursor?.build(); + + _$failedField = 'startCursor'; + _startCursor?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GPageInfoFragmentData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/graphql/__generated__/fragments.req.gql.dart b/lib/src/graphql/__generated__/fragments.req.gql.dart new file mode 100644 index 00000000..8b7a4688 --- /dev/null +++ b/lib/src/graphql/__generated__/fragments.req.gql.dart @@ -0,0 +1,67 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql/ast.dart' as _i5; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/fragments.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/fragments.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/fragments.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'fragments.req.gql.g.dart'; + +abstract class GPageInfoFragmentReq + implements + Built, + _i1 + .FragmentRequest<_i2.GPageInfoFragmentData, _i3.GPageInfoFragmentVars> { + GPageInfoFragmentReq._(); + + factory GPageInfoFragmentReq( + [void Function(GPageInfoFragmentReqBuilder b) updates]) = + _$GPageInfoFragmentReq; + + static void _initializeBuilder(GPageInfoFragmentReqBuilder b) => b + ..document = _i4.document + ..fragmentName = 'PageInfoFragment'; + + @override + _i3.GPageInfoFragmentVars get vars; + @override + _i5.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GPageInfoFragmentData? parseData(Map json) => + _i2.GPageInfoFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GPageInfoFragmentData data) => + data.toJson(); + + static Serializer get serializer => + _$gPageInfoFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GPageInfoFragmentReq.serializer, + this, + ) as Map); + + static GPageInfoFragmentReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GPageInfoFragmentReq.serializer, + json, + ); +} diff --git a/lib/src/graphql/__generated__/fragments.req.gql.g.dart b/lib/src/graphql/__generated__/fragments.req.gql.g.dart new file mode 100644 index 00000000..827862c7 --- /dev/null +++ b/lib/src/graphql/__generated__/fragments.req.gql.g.dart @@ -0,0 +1,236 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragments.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gPageInfoFragmentReqSerializer = + new _$GPageInfoFragmentReqSerializer(); + +class _$GPageInfoFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GPageInfoFragmentReq, + _$GPageInfoFragmentReq + ]; + @override + final String wireName = 'GPageInfoFragmentReq'; + + @override + Iterable serialize( + Serializers serializers, GPageInfoFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GPageInfoFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i5.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GPageInfoFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GPageInfoFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GPageInfoFragmentVars))! + as _i3.GPageInfoFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i5.DocumentNode))! + as _i5.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GPageInfoFragmentReq extends GPageInfoFragmentReq { + @override + final _i3.GPageInfoFragmentVars vars; + @override + final _i5.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GPageInfoFragmentReq( + [void Function(GPageInfoFragmentReqBuilder)? updates]) => + (new GPageInfoFragmentReqBuilder()..update(updates))._build(); + + _$GPageInfoFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GPageInfoFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GPageInfoFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GPageInfoFragmentReq', 'idFields'); + } + + @override + GPageInfoFragmentReq rebuild( + void Function(GPageInfoFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GPageInfoFragmentReqBuilder toBuilder() => + new GPageInfoFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GPageInfoFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GPageInfoFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GPageInfoFragmentReqBuilder + implements Builder { + _$GPageInfoFragmentReq? _$v; + + _i3.GPageInfoFragmentVarsBuilder? _vars; + _i3.GPageInfoFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GPageInfoFragmentVarsBuilder(); + set vars(_i3.GPageInfoFragmentVarsBuilder? vars) => _$this._vars = vars; + + _i5.DocumentNode? _document; + _i5.DocumentNode? get document => _$this._document; + set document(_i5.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GPageInfoFragmentReqBuilder() { + GPageInfoFragmentReq._initializeBuilder(this); + } + + GPageInfoFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GPageInfoFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GPageInfoFragmentReq; + } + + @override + void update(void Function(GPageInfoFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GPageInfoFragmentReq build() => _build(); + + _$GPageInfoFragmentReq _build() { + _$GPageInfoFragmentReq _$result; + try { + _$result = _$v ?? + new _$GPageInfoFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GPageInfoFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GPageInfoFragmentReq', 'idFields')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GPageInfoFragmentReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/graphql/__generated__/fragments.var.gql.dart b/lib/src/graphql/__generated__/fragments.var.gql.dart new file mode 100644 index 00000000..828462fb --- /dev/null +++ b/lib/src/graphql/__generated__/fragments.var.gql.dart @@ -0,0 +1,33 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragments.var.gql.g.dart'; + +abstract class GPageInfoFragmentVars + implements Built { + GPageInfoFragmentVars._(); + + factory GPageInfoFragmentVars( + [void Function(GPageInfoFragmentVarsBuilder b) updates]) = + _$GPageInfoFragmentVars; + + static Serializer get serializer => + _$gPageInfoFragmentVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GPageInfoFragmentVars.serializer, + this, + ) as Map); + + static GPageInfoFragmentVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GPageInfoFragmentVars.serializer, + json, + ); +} diff --git a/lib/src/graphql/__generated__/fragments.var.gql.g.dart b/lib/src/graphql/__generated__/fragments.var.gql.g.dart new file mode 100644 index 00000000..a79da3f0 --- /dev/null +++ b/lib/src/graphql/__generated__/fragments.var.gql.g.dart @@ -0,0 +1,97 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragments.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gPageInfoFragmentVarsSerializer = + new _$GPageInfoFragmentVarsSerializer(); + +class _$GPageInfoFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GPageInfoFragmentVars, + _$GPageInfoFragmentVars + ]; + @override + final String wireName = 'GPageInfoFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GPageInfoFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GPageInfoFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GPageInfoFragmentVarsBuilder().build(); + } +} + +class _$GPageInfoFragmentVars extends GPageInfoFragmentVars { + factory _$GPageInfoFragmentVars( + [void Function(GPageInfoFragmentVarsBuilder)? updates]) => + (new GPageInfoFragmentVarsBuilder()..update(updates))._build(); + + _$GPageInfoFragmentVars._() : super._(); + + @override + GPageInfoFragmentVars rebuild( + void Function(GPageInfoFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GPageInfoFragmentVarsBuilder toBuilder() => + new GPageInfoFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GPageInfoFragmentVars; + } + + @override + int get hashCode { + return 859052789; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GPageInfoFragmentVars').toString(); + } +} + +class GPageInfoFragmentVarsBuilder + implements Builder { + _$GPageInfoFragmentVars? _$v; + + GPageInfoFragmentVarsBuilder(); + + @override + void replace(GPageInfoFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GPageInfoFragmentVars; + } + + @override + void update(void Function(GPageInfoFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GPageInfoFragmentVars build() => _build(); + + _$GPageInfoFragmentVars _build() { + final _$result = _$v ?? new _$GPageInfoFragmentVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/graphql/__generated__/serializers.gql.dart b/lib/src/graphql/__generated__/serializers.gql.dart index b552bdb5..7fdd24a7 100644 --- a/lib/src/graphql/__generated__/serializers.gql.dart +++ b/lib/src/graphql/__generated__/serializers.gql.dart @@ -18,10 +18,166 @@ import 'package:tachidesk_sorayomi/src/features/about/data/graphql/__generated__ show GAboutReq, GServerUpdateReq; import 'package:tachidesk_sorayomi/src/features/about/data/graphql/__generated__/about_query.var.gql.dart' show GAboutVars, GServerUpdateVars; +import 'package:tachidesk_sorayomi/src/features/about/domain/about/graphql/__generated__/fragment.data.gql.dart' + show GAboutFragmentData; +import 'package:tachidesk_sorayomi/src/features/about/domain/about/graphql/__generated__/fragment.req.gql.dart' + show GAboutFragmentReq; +import 'package:tachidesk_sorayomi/src/features/about/domain/about/graphql/__generated__/fragment.var.gql.dart' + show GAboutFragmentVars; +import 'package:tachidesk_sorayomi/src/features/about/domain/server_update/graphql/__generated__/fragment.data.gql.dart' + show GServerUpdateFragmentData; +import 'package:tachidesk_sorayomi/src/features/about/domain/server_update/graphql/__generated__/fragment.req.gql.dart' + show GServerUpdateFragmentReq; +import 'package:tachidesk_sorayomi/src/features/about/domain/server_update/graphql/__generated__/fragment.var.gql.dart' + show GServerUpdateFragmentVars; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/extension/graphql/__generated__/fragment.data.gql.dart' + show GExtensionFragmentData; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/extension/graphql/__generated__/fragment.req.gql.dart' + show GExtensionFragmentReq; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/extension/graphql/__generated__/fragment.var.gql.dart' + show GExtensionFragmentVars; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/source/graphql/__generated__/fragment.data.gql.dart' + show + GFullSourceFragmentData_filters, + GFullSourceFragmentData_filters__asGroupFilter_filters, + GFullSourceFragmentData, + GFullSourceFragmentData_extension, + GFullSourceFragmentData_filters__asCheckBoxFilter, + GFullSourceFragmentData_filters__asGroupFilter, + GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter, + GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter, + GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter, + GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter, + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter, + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault, + GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter, + GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter, + GFullSourceFragmentData_filters__asGroupFilter_filters__base, + GFullSourceFragmentData_filters__asHeaderFilter, + GFullSourceFragmentData_filters__asSelectFilter, + GFullSourceFragmentData_filters__asSeparatorFilter, + GFullSourceFragmentData_filters__asSortFilter, + GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault, + GFullSourceFragmentData_filters__asTextFilter, + GFullSourceFragmentData_filters__asTriStateFilter, + GFullSourceFragmentData_filters__base, + GSourceFragmentData, + GSourceFragmentData_extension; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/source/graphql/__generated__/fragment.req.gql.dart' + show GFullSourceFragmentReq, GSourceFragmentReq; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/source/graphql/__generated__/fragment.var.gql.dart' + show GFullSourceFragmentVars, GSourceFragmentVars; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/source_preference/graphql/__generated__/fragment.data.gql.dart' + show + GSourcePreferenceFragmentData, + GSourcePreferenceFragmentData__asCheckBoxPreference, + GSourcePreferenceFragmentData__asEditTextPreference, + GSourcePreferenceFragmentData__asListPreference, + GSourcePreferenceFragmentData__asMultiSelectListPreference, + GSourcePreferenceFragmentData__asSwitchPreference, + GSourcePreferenceFragmentData__base; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/source_preference/graphql/__generated__/fragment.req.gql.dart' + show GSourcePreferenceFragmentReq; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/source_preference/graphql/__generated__/fragment.var.gql.dart' + show GSourcePreferenceFragmentVars; +import 'package:tachidesk_sorayomi/src/features/library/data/graphql/__generated__/category_query.data.gql.dart' + show + GAllCategoriesData, + GAllCategoriesData_categories, + GAllCategoriesData_categories_nodes, + GAllCategoriesData_categories_nodes_mangas, + GAllCategoriesData_categories_nodes_meta, + GAllCategoriesData_categories_pageInfo; +import 'package:tachidesk_sorayomi/src/features/library/data/graphql/__generated__/category_query.req.gql.dart' + show GAllCategoriesReq; +import 'package:tachidesk_sorayomi/src/features/library/data/graphql/__generated__/category_query.var.gql.dart' + show GAllCategoriesVars; +import 'package:tachidesk_sorayomi/src/features/library/domain/category/graphql/__generated__/fragment.data.gql.dart' + show + GCategoryFragmentData, + GCategoryFragmentData_mangas, + GCategoryFragmentData_meta; +import 'package:tachidesk_sorayomi/src/features/library/domain/category/graphql/__generated__/fragment.req.gql.dart' + show GCategoryFragmentReq; +import 'package:tachidesk_sorayomi/src/features/library/domain/category/graphql/__generated__/fragment.var.gql.dart' + show GCategoryFragmentVars; +import 'package:tachidesk_sorayomi/src/features/manga_book/domain/chapter/graphql/__generated__/fragment.data.gql.dart' + show GChapterFragmentData, GChapterFragmentData_meta; +import 'package:tachidesk_sorayomi/src/features/manga_book/domain/chapter/graphql/__generated__/fragment.req.gql.dart' + show GChapterFragmentReq; +import 'package:tachidesk_sorayomi/src/features/manga_book/domain/chapter/graphql/__generated__/fragment.var.gql.dart' + show GChapterFragmentVars; +import 'package:tachidesk_sorayomi/src/features/manga_book/domain/manga/graphql/__generated__/fragment.data.gql.dart' + show + GMangaFragmentData, + GMangaFragmentData_lastReadChapter, + GMangaFragmentData_lastReadChapter_meta, + GMangaFragmentData_latestFetchedChapter, + GMangaFragmentData_latestFetchedChapter_meta, + GMangaFragmentData_latestReadChapter, + GMangaFragmentData_latestReadChapter_meta, + GMangaFragmentData_latestUploadedChapter, + GMangaFragmentData_latestUploadedChapter_meta, + GMangaFragmentData_meta, + GMangaFragmentData_source, + GMangaFragmentData_source_extension; +import 'package:tachidesk_sorayomi/src/features/manga_book/domain/manga/graphql/__generated__/fragment.req.gql.dart' + show GMangaFragmentReq; +import 'package:tachidesk_sorayomi/src/features/manga_book/domain/manga/graphql/__generated__/fragment.var.gql.dart' + show GMangaFragmentVars; import 'package:tachidesk_sorayomi/src/features/settings/data/graphql/__generated__/settings_query.data.gql.dart' show - GAutomaticBackupSettingsData, - GAutomaticBackupSettingsData_settings, + GServerSettingsData, + GServerSettingsData_settings, + GSettingsFragmentData; +import 'package:tachidesk_sorayomi/src/features/settings/data/graphql/__generated__/settings_query.req.gql.dart' + show GServerSettingsReq, GSettingsFragmentReq; +import 'package:tachidesk_sorayomi/src/features/settings/data/graphql/__generated__/settings_query.var.gql.dart' + show GServerSettingsVars, GSettingsFragmentVars; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.data.gql.dart' + show GAutomaticBackupSettingsFragmentData; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.req.gql.dart' + show GAutomaticBackupSettingsFragmentReq; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/fragment.var.gql.dart' + show GAutomaticBackupSettingsFragmentVars; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.data.gql.dart' + show GBrowserSettingsFragmentData; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.req.gql.dart' + show GBrowserSettingsFragmentReq; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.var.gql.dart' + show GBrowserSettingsFragmentVars; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.data.gql.dart' + show GCloudFlareBypassFragmentData; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.req.gql.dart' + show GCloudFlareBypassFragmentReq; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.var.gql.dart' + show GCloudFlareBypassFragmentVars; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.data.gql.dart' + show GMiscSettingsFragmentData; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.req.gql.dart' + show GMiscSettingsFragmentReq; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.var.gql.dart' + show GMiscSettingsFragmentVars; +import 'package:tachidesk_sorayomi/src/features/settings/domain/restore_status/graphql/__generated__/fragment.data.gql.dart' + show GRestoreStatusFragmentData; +import 'package:tachidesk_sorayomi/src/features/settings/domain/restore_status/graphql/__generated__/fragment.req.gql.dart' + show GRestoreStatusFragmentReq; +import 'package:tachidesk_sorayomi/src/features/settings/domain/restore_status/graphql/__generated__/fragment.var.gql.dart' + show GRestoreStatusFragmentVars; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.data.gql.dart' + show GServerBindingFragmentData; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.req.gql.dart' + show GServerBindingFragmentReq; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.var.gql.dart' + show GServerBindingFragmentVars; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.data.gql.dart' + show GSocksProxyFragmentData; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.req.gql.dart' + show GSocksProxyFragmentReq; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.var.gql.dart' + show GSocksProxyFragmentVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/__generated__/backup_settings_query.data.gql.dart' + show GCreateBackupData, GCreateBackupData_createBackup, GRestoreBackupData, @@ -44,9 +200,8 @@ import 'package:tachidesk_sorayomi/src/features/settings/data/graphql/__generate GValidateBackupData, GValidateBackupData_validateBackup, GValidateBackupData_validateBackup_missingSources; -import 'package:tachidesk_sorayomi/src/features/settings/data/graphql/__generated__/settings_query.req.gql.dart' +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/__generated__/backup_settings_query.req.gql.dart' show - GAutomaticBackupSettingsReq, GCreateBackupReq, GRestoreBackupReq, GRestoreStatusReq, @@ -55,9 +210,8 @@ import 'package:tachidesk_sorayomi/src/features/settings/data/graphql/__generate GUpdateBackupTTLReq, GUpdateBackupTimeReq, GValidateBackupReq; -import 'package:tachidesk_sorayomi/src/features/settings/data/graphql/__generated__/settings_query.var.gql.dart' +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/__generated__/backup_settings_query.var.gql.dart' show - GAutomaticBackupSettingsVars, GCreateBackupVars, GRestoreBackupVars, GRestoreStatusVars, @@ -66,6 +220,119 @@ import 'package:tachidesk_sorayomi/src/features/settings/data/graphql/__generate GUpdateBackupTTLVars, GUpdateBackupTimeVars, GValidateBackupVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/browse/data/graphql/__generated__/browse_settings_query.data.gql.dart' + show + GUpdateExtensionReposData, + GUpdateExtensionReposData_setSettings, + GUpdateExtensionReposData_setSettings_settings, + GUpdateLocalSourcePathData, + GUpdateLocalSourcePathData_setSettings, + GUpdateLocalSourcePathData_setSettings_settings, + GUpdateSourceInParallelData, + GUpdateSourceInParallelData_setSettings, + GUpdateSourceInParallelData_setSettings_settings; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/browse/data/graphql/__generated__/browse_settings_query.req.gql.dart' + show + GUpdateExtensionReposReq, + GUpdateLocalSourcePathReq, + GUpdateSourceInParallelReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/browse/data/graphql/__generated__/browse_settings_query.var.gql.dart' + show + GUpdateExtensionReposVars, + GUpdateLocalSourcePathVars, + GUpdateSourceInParallelVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/__generated__/server_settings_query.data.gql.dart' + show + GToggleDebugLogsData, + GToggleDebugLogsData_setSettings, + GToggleDebugLogsData_setSettings_settings, + GToggleFlareSolverrData, + GToggleFlareSolverrData_setSettings, + GToggleFlareSolverrData_setSettings_settings, + GToggleGqlDebugLogsData, + GToggleGqlDebugLogsData_setSettings, + GToggleGqlDebugLogsData_setSettings_settings, + GToggleSocksProxyData, + GToggleSocksProxyData_setSettings, + GToggleSocksProxyData_setSettings_settings, + GToggleSystemTrayEnabledData, + GToggleSystemTrayEnabledData_setSettings, + GToggleSystemTrayEnabledData_setSettings_settings, + GUpdateFlareSolverrSessionNameData, + GUpdateFlareSolverrSessionNameData_setSettings, + GUpdateFlareSolverrSessionNameData_setSettings_settings, + GUpdateFlareSolverrSessionTtlData, + GUpdateFlareSolverrSessionTtlData_setSettings, + GUpdateFlareSolverrSessionTtlData_setSettings_settings, + GUpdateFlareSolverrTimeoutData, + GUpdateFlareSolverrTimeoutData_setSettings, + GUpdateFlareSolverrTimeoutData_setSettings_settings, + GUpdateFlareSolverrUrlData, + GUpdateFlareSolverrUrlData_setSettings, + GUpdateFlareSolverrUrlData_setSettings_settings, + GUpdatePortData, + GUpdatePortData_setSettings, + GUpdatePortData_setSettings_settings, + GUpdateServerIpData, + GUpdateServerIpData_setSettings, + GUpdateServerIpData_setSettings_settings, + GUpdateSocksHostData, + GUpdateSocksHostData_setSettings, + GUpdateSocksHostData_setSettings_settings, + GUpdateSocksPasswordData, + GUpdateSocksPasswordData_setSettings, + GUpdateSocksPasswordData_setSettings_settings, + GUpdateSocksPortData, + GUpdateSocksPortData_setSettings, + GUpdateSocksPortData_setSettings_settings, + GUpdateSocksUserNameData, + GUpdateSocksUserNameData_setSettings, + GUpdateSocksUserNameData_setSettings_settings, + GUpdateSocksVersionData, + GUpdateSocksVersionData_setSettings, + GUpdateSocksVersionData_setSettings_settings; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/__generated__/server_settings_query.req.gql.dart' + show + GToggleDebugLogsReq, + GToggleFlareSolverrReq, + GToggleGqlDebugLogsReq, + GToggleSocksProxyReq, + GToggleSystemTrayEnabledReq, + GUpdateFlareSolverrSessionNameReq, + GUpdateFlareSolverrSessionTtlReq, + GUpdateFlareSolverrTimeoutReq, + GUpdateFlareSolverrUrlReq, + GUpdatePortReq, + GUpdateServerIpReq, + GUpdateSocksHostReq, + GUpdateSocksPasswordReq, + GUpdateSocksPortReq, + GUpdateSocksUserNameReq, + GUpdateSocksVersionReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/__generated__/server_settings_query.var.gql.dart' + show + GToggleDebugLogsVars, + GToggleFlareSolverrVars, + GToggleGqlDebugLogsVars, + GToggleSocksProxyVars, + GToggleSystemTrayEnabledVars, + GUpdateFlareSolverrSessionNameVars, + GUpdateFlareSolverrSessionTtlVars, + GUpdateFlareSolverrTimeoutVars, + GUpdateFlareSolverrUrlVars, + GUpdatePortVars, + GUpdateServerIpVars, + GUpdateSocksHostVars, + GUpdateSocksPasswordVars, + GUpdateSocksPortVars, + GUpdateSocksUserNameVars, + GUpdateSocksVersionVars; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/fragments.data.gql.dart' + show GPageInfoFragmentData; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/fragments.req.gql.dart' + show GPageInfoFragmentReq; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/fragments.var.gql.dart' + show GPageInfoFragmentVars; import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' show GBackupRestoreState, @@ -191,29 +458,57 @@ part 'serializers.gql.g.dart'; final SerializersBuilder _serializersBuilder = _$serializers.toBuilder() ..add(OperationSerializer()) ..add(UploadSerializer()) + ..add(GFullSourceFragmentData_filters.serializer) + ..add(GFullSourceFragmentData_filters__asGroupFilter_filters.serializer) + ..add(GSourcePreferenceFragmentData.serializer) ..addPlugin(StandardJsonPlugin()); @SerializersFor([ GAboutData, GAboutData_aboutServer, + GAboutFragmentData, + GAboutFragmentReq, + GAboutFragmentVars, GAboutReq, GAboutVars, - GAutomaticBackupSettingsData, - GAutomaticBackupSettingsData_settings, - GAutomaticBackupSettingsReq, - GAutomaticBackupSettingsVars, + GAllCategoriesData, + GAllCategoriesData_categories, + GAllCategoriesData_categories_nodes, + GAllCategoriesData_categories_nodes_mangas, + GAllCategoriesData_categories_nodes_meta, + GAllCategoriesData_categories_pageInfo, + GAllCategoriesReq, + GAllCategoriesVars, + GAutomaticBackupSettingsFragmentData, + GAutomaticBackupSettingsFragmentReq, + GAutomaticBackupSettingsFragmentVars, GBackupRestoreState, GBindTrackInput, GBooleanFilterInput, + GBrowserSettingsFragmentData, + GBrowserSettingsFragmentReq, + GBrowserSettingsFragmentVars, GCategoryConditionInput, GCategoryFilterInput, + GCategoryFragmentData, + GCategoryFragmentData_mangas, + GCategoryFragmentData_meta, + GCategoryFragmentReq, + GCategoryFragmentVars, GCategoryMetaTypeInput, GCategoryOrderBy, GChapterConditionInput, GChapterFilterInput, + GChapterFragmentData, + GChapterFragmentData_meta, + GChapterFragmentReq, + GChapterFragmentVars, GChapterMetaTypeInput, GChapterOrderBy, GClearCachedImagesInput, GClearDownloaderInput, + GCloudFlareBypassFragmentData, + GCloudFlareBypassFragmentReq, + GCloudFlareBypassFragmentVars, GCreateBackupData, GCreateBackupData_createBackup, GCreateBackupInput, @@ -238,6 +533,9 @@ final SerializersBuilder _serializersBuilder = _$serializers.toBuilder() GEnqueueChapterDownloadsInput, GExtensionConditionInput, GExtensionFilterInput, + GExtensionFragmentData, + GExtensionFragmentReq, + GExtensionFragmentVars, GExtensionOrderBy, GFetchChapterPagesInput, GFetchChaptersInput, @@ -247,6 +545,29 @@ final SerializersBuilder _serializersBuilder = _$serializers.toBuilder() GFetchSourceMangaType, GFilterChangeInput, GFloatFilterInput, + GFullSourceFragmentData, + GFullSourceFragmentData_extension, + GFullSourceFragmentData_filters__asCheckBoxFilter, + GFullSourceFragmentData_filters__asGroupFilter, + GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter, + GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter, + GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter, + GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter, + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter, + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault, + GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter, + GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter, + GFullSourceFragmentData_filters__asGroupFilter_filters__base, + GFullSourceFragmentData_filters__asHeaderFilter, + GFullSourceFragmentData_filters__asSelectFilter, + GFullSourceFragmentData_filters__asSeparatorFilter, + GFullSourceFragmentData_filters__asSortFilter, + GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault, + GFullSourceFragmentData_filters__asTextFilter, + GFullSourceFragmentData_filters__asTriStateFilter, + GFullSourceFragmentData_filters__base, + GFullSourceFragmentReq, + GFullSourceFragmentVars, GGlobalMetaTypeInput, GIncludeOrExclude, GInstallExternalExtensionInput, @@ -258,6 +579,20 @@ final SerializersBuilder _serializersBuilder = _$serializers.toBuilder() GLongString, GMangaConditionInput, GMangaFilterInput, + GMangaFragmentData, + GMangaFragmentData_lastReadChapter, + GMangaFragmentData_lastReadChapter_meta, + GMangaFragmentData_latestFetchedChapter, + GMangaFragmentData_latestFetchedChapter_meta, + GMangaFragmentData_latestReadChapter, + GMangaFragmentData_latestReadChapter_meta, + GMangaFragmentData_latestUploadedChapter, + GMangaFragmentData_latestUploadedChapter_meta, + GMangaFragmentData_meta, + GMangaFragmentData_source, + GMangaFragmentData_source_extension, + GMangaFragmentReq, + GMangaFragmentVars, GMangaMetaTypeInput, GMangaOrderBy, GMangaStatus, @@ -265,6 +600,12 @@ final SerializersBuilder _serializersBuilder = _$serializers.toBuilder() GMetaConditionInput, GMetaFilterInput, GMetaOrderBy, + GMiscSettingsFragmentData, + GMiscSettingsFragmentReq, + GMiscSettingsFragmentVars, + GPageInfoFragmentData, + GPageInfoFragmentReq, + GPageInfoFragmentVars, GPartialSettingsTypeInput, GReorderChapterDownloadInput, GResetSettingsInput, @@ -276,11 +617,24 @@ final SerializersBuilder _serializersBuilder = _$serializers.toBuilder() GRestoreBackupVars, GRestoreStatusData, GRestoreStatusData_restoreStatus, + GRestoreStatusFragmentData, + GRestoreStatusFragmentReq, + GRestoreStatusFragmentVars, GRestoreStatusReq, GRestoreStatusVars, GSearchTrackerInput, + GServerBindingFragmentData, + GServerBindingFragmentReq, + GServerBindingFragmentVars, + GServerSettingsData, + GServerSettingsData_settings, + GServerSettingsReq, + GServerSettingsVars, GServerUpdateData, GServerUpdateData_checkForServerUpdates, + GServerUpdateFragmentData, + GServerUpdateFragmentReq, + GServerUpdateFragmentVars, GServerUpdateReq, GServerUpdateVars, GSetCategoryMetaInput, @@ -289,16 +643,59 @@ final SerializersBuilder _serializersBuilder = _$serializers.toBuilder() GSetMangaMetaInput, GSetSettingsInput, GSetSourceMetaInput, + GSettingsFragmentData, + GSettingsFragmentReq, + GSettingsFragmentVars, + GSocksProxyFragmentData, + GSocksProxyFragmentReq, + GSocksProxyFragmentVars, GSortOrder, GSortSelectionInput, GSourceConditionInput, GSourceFilterInput, + GSourceFragmentData, + GSourceFragmentData_extension, + GSourceFragmentReq, + GSourceFragmentVars, GSourceMetaTypeInput, GSourceOrderBy, GSourcePreferenceChangeInput, + GSourcePreferenceFragmentData__asCheckBoxPreference, + GSourcePreferenceFragmentData__asEditTextPreference, + GSourcePreferenceFragmentData__asListPreference, + GSourcePreferenceFragmentData__asMultiSelectListPreference, + GSourcePreferenceFragmentData__asSwitchPreference, + GSourcePreferenceFragmentData__base, + GSourcePreferenceFragmentReq, + GSourcePreferenceFragmentVars, GStartDownloaderInput, GStopDownloaderInput, GStringFilterInput, + GToggleDebugLogsData, + GToggleDebugLogsData_setSettings, + GToggleDebugLogsData_setSettings_settings, + GToggleDebugLogsReq, + GToggleDebugLogsVars, + GToggleFlareSolverrData, + GToggleFlareSolverrData_setSettings, + GToggleFlareSolverrData_setSettings_settings, + GToggleFlareSolverrReq, + GToggleFlareSolverrVars, + GToggleGqlDebugLogsData, + GToggleGqlDebugLogsData_setSettings, + GToggleGqlDebugLogsData_setSettings_settings, + GToggleGqlDebugLogsReq, + GToggleGqlDebugLogsVars, + GToggleSocksProxyData, + GToggleSocksProxyData_setSettings, + GToggleSocksProxyData_setSettings_settings, + GToggleSocksProxyReq, + GToggleSocksProxyVars, + GToggleSystemTrayEnabledData, + GToggleSystemTrayEnabledData_setSettings, + GToggleSystemTrayEnabledData_setSettings_settings, + GToggleSystemTrayEnabledReq, + GToggleSystemTrayEnabledVars, GTrackRecordConditionInput, GTrackRecordFilterInput, GTrackRecordOrderBy, @@ -335,14 +732,84 @@ final SerializersBuilder _serializersBuilder = _$serializers.toBuilder() GUpdateChaptersInput, GUpdateExtensionInput, GUpdateExtensionPatchInput, + GUpdateExtensionReposData, + GUpdateExtensionReposData_setSettings, + GUpdateExtensionReposData_setSettings_settings, + GUpdateExtensionReposReq, + GUpdateExtensionReposVars, GUpdateExtensionsInput, + GUpdateFlareSolverrSessionNameData, + GUpdateFlareSolverrSessionNameData_setSettings, + GUpdateFlareSolverrSessionNameData_setSettings_settings, + GUpdateFlareSolverrSessionNameReq, + GUpdateFlareSolverrSessionNameVars, + GUpdateFlareSolverrSessionTtlData, + GUpdateFlareSolverrSessionTtlData_setSettings, + GUpdateFlareSolverrSessionTtlData_setSettings_settings, + GUpdateFlareSolverrSessionTtlReq, + GUpdateFlareSolverrSessionTtlVars, + GUpdateFlareSolverrTimeoutData, + GUpdateFlareSolverrTimeoutData_setSettings, + GUpdateFlareSolverrTimeoutData_setSettings_settings, + GUpdateFlareSolverrTimeoutReq, + GUpdateFlareSolverrTimeoutVars, + GUpdateFlareSolverrUrlData, + GUpdateFlareSolverrUrlData_setSettings, + GUpdateFlareSolverrUrlData_setSettings_settings, + GUpdateFlareSolverrUrlReq, + GUpdateFlareSolverrUrlVars, GUpdateLibraryMangaInput, + GUpdateLocalSourcePathData, + GUpdateLocalSourcePathData_setSettings, + GUpdateLocalSourcePathData_setSettings_settings, + GUpdateLocalSourcePathReq, + GUpdateLocalSourcePathVars, GUpdateMangaCategoriesInput, GUpdateMangaCategoriesPatchInput, GUpdateMangaInput, GUpdateMangaPatchInput, GUpdateMangasCategoriesInput, GUpdateMangasInput, + GUpdatePortData, + GUpdatePortData_setSettings, + GUpdatePortData_setSettings_settings, + GUpdatePortReq, + GUpdatePortVars, + GUpdateServerIpData, + GUpdateServerIpData_setSettings, + GUpdateServerIpData_setSettings_settings, + GUpdateServerIpReq, + GUpdateServerIpVars, + GUpdateSocksHostData, + GUpdateSocksHostData_setSettings, + GUpdateSocksHostData_setSettings_settings, + GUpdateSocksHostReq, + GUpdateSocksHostVars, + GUpdateSocksPasswordData, + GUpdateSocksPasswordData_setSettings, + GUpdateSocksPasswordData_setSettings_settings, + GUpdateSocksPasswordReq, + GUpdateSocksPasswordVars, + GUpdateSocksPortData, + GUpdateSocksPortData_setSettings, + GUpdateSocksPortData_setSettings_settings, + GUpdateSocksPortReq, + GUpdateSocksPortVars, + GUpdateSocksUserNameData, + GUpdateSocksUserNameData_setSettings, + GUpdateSocksUserNameData_setSettings_settings, + GUpdateSocksUserNameReq, + GUpdateSocksUserNameVars, + GUpdateSocksVersionData, + GUpdateSocksVersionData_setSettings, + GUpdateSocksVersionData_setSettings_settings, + GUpdateSocksVersionReq, + GUpdateSocksVersionVars, + GUpdateSourceInParallelData, + GUpdateSourceInParallelData_setSettings, + GUpdateSourceInParallelData_setSettings_settings, + GUpdateSourceInParallelReq, + GUpdateSourceInParallelVars, GUpdateSourcePreferenceInput, GUpdateState, GUpdateStopInput, diff --git a/lib/src/graphql/__generated__/serializers.gql.g.dart b/lib/src/graphql/__generated__/serializers.gql.g.dart index b762cbf4..1c6c5771 100644 --- a/lib/src/graphql/__generated__/serializers.gql.g.dart +++ b/lib/src/graphql/__generated__/serializers.gql.g.dart @@ -10,25 +10,50 @@ Serializers _$serializers = (new Serializers().toBuilder() ..add(FetchPolicy.serializer) ..add(GAboutData.serializer) ..add(GAboutData_aboutServer.serializer) + ..add(GAboutFragmentData.serializer) + ..add(GAboutFragmentReq.serializer) + ..add(GAboutFragmentVars.serializer) ..add(GAboutReq.serializer) ..add(GAboutVars.serializer) - ..add(GAutomaticBackupSettingsData.serializer) - ..add(GAutomaticBackupSettingsData_settings.serializer) - ..add(GAutomaticBackupSettingsReq.serializer) - ..add(GAutomaticBackupSettingsVars.serializer) + ..add(GAllCategoriesData.serializer) + ..add(GAllCategoriesData_categories.serializer) + ..add(GAllCategoriesData_categories_nodes.serializer) + ..add(GAllCategoriesData_categories_nodes_mangas.serializer) + ..add(GAllCategoriesData_categories_nodes_meta.serializer) + ..add(GAllCategoriesData_categories_pageInfo.serializer) + ..add(GAllCategoriesReq.serializer) + ..add(GAllCategoriesVars.serializer) + ..add(GAutomaticBackupSettingsFragmentData.serializer) + ..add(GAutomaticBackupSettingsFragmentReq.serializer) + ..add(GAutomaticBackupSettingsFragmentVars.serializer) ..add(GBackupRestoreState.serializer) ..add(GBindTrackInput.serializer) ..add(GBooleanFilterInput.serializer) + ..add(GBrowserSettingsFragmentData.serializer) + ..add(GBrowserSettingsFragmentReq.serializer) + ..add(GBrowserSettingsFragmentVars.serializer) ..add(GCategoryConditionInput.serializer) ..add(GCategoryFilterInput.serializer) + ..add(GCategoryFragmentData.serializer) + ..add(GCategoryFragmentData_mangas.serializer) + ..add(GCategoryFragmentData_meta.serializer) + ..add(GCategoryFragmentReq.serializer) + ..add(GCategoryFragmentVars.serializer) ..add(GCategoryMetaTypeInput.serializer) ..add(GCategoryOrderBy.serializer) ..add(GChapterConditionInput.serializer) ..add(GChapterFilterInput.serializer) + ..add(GChapterFragmentData.serializer) + ..add(GChapterFragmentData_meta.serializer) + ..add(GChapterFragmentReq.serializer) + ..add(GChapterFragmentVars.serializer) ..add(GChapterMetaTypeInput.serializer) ..add(GChapterOrderBy.serializer) ..add(GClearCachedImagesInput.serializer) ..add(GClearDownloaderInput.serializer) + ..add(GCloudFlareBypassFragmentData.serializer) + ..add(GCloudFlareBypassFragmentReq.serializer) + ..add(GCloudFlareBypassFragmentVars.serializer) ..add(GCreateBackupData.serializer) ..add(GCreateBackupData_createBackup.serializer) ..add(GCreateBackupInput.serializer) @@ -53,6 +78,9 @@ Serializers _$serializers = (new Serializers().toBuilder() ..add(GEnqueueChapterDownloadsInput.serializer) ..add(GExtensionConditionInput.serializer) ..add(GExtensionFilterInput.serializer) + ..add(GExtensionFragmentData.serializer) + ..add(GExtensionFragmentReq.serializer) + ..add(GExtensionFragmentVars.serializer) ..add(GExtensionOrderBy.serializer) ..add(GFetchChapterPagesInput.serializer) ..add(GFetchChaptersInput.serializer) @@ -62,6 +90,45 @@ Serializers _$serializers = (new Serializers().toBuilder() ..add(GFetchSourceMangaType.serializer) ..add(GFilterChangeInput.serializer) ..add(GFloatFilterInput.serializer) + ..add(GFullSourceFragmentData.serializer) + ..add(GFullSourceFragmentData_extension.serializer) + ..add(GFullSourceFragmentData_filters__asCheckBoxFilter.serializer) + ..add(GFullSourceFragmentData_filters__asGroupFilter.serializer) + ..add( + GFullSourceFragmentData_filters__asGroupFilter_filters__asCheckBoxFilter + .serializer) + ..add( + GFullSourceFragmentData_filters__asGroupFilter_filters__asHeaderFilter + .serializer) + ..add( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSelectFilter + .serializer) + ..add( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSeparatorFilter + .serializer) + ..add(GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter + .serializer) + ..add( + GFullSourceFragmentData_filters__asGroupFilter_filters__asSortFilter_SortFilterDefault + .serializer) + ..add(GFullSourceFragmentData_filters__asGroupFilter_filters__asTextFilter + .serializer) + ..add( + GFullSourceFragmentData_filters__asGroupFilter_filters__asTriStateFilter + .serializer) + ..add(GFullSourceFragmentData_filters__asGroupFilter_filters__base + .serializer) + ..add(GFullSourceFragmentData_filters__asHeaderFilter.serializer) + ..add(GFullSourceFragmentData_filters__asSelectFilter.serializer) + ..add(GFullSourceFragmentData_filters__asSeparatorFilter.serializer) + ..add(GFullSourceFragmentData_filters__asSortFilter.serializer) + ..add(GFullSourceFragmentData_filters__asSortFilter_SortFilterDefault + .serializer) + ..add(GFullSourceFragmentData_filters__asTextFilter.serializer) + ..add(GFullSourceFragmentData_filters__asTriStateFilter.serializer) + ..add(GFullSourceFragmentData_filters__base.serializer) + ..add(GFullSourceFragmentReq.serializer) + ..add(GFullSourceFragmentVars.serializer) ..add(GGlobalMetaTypeInput.serializer) ..add(GIncludeOrExclude.serializer) ..add(GInstallExternalExtensionInput.serializer) @@ -73,6 +140,20 @@ Serializers _$serializers = (new Serializers().toBuilder() ..add(GLongString.serializer) ..add(GMangaConditionInput.serializer) ..add(GMangaFilterInput.serializer) + ..add(GMangaFragmentData.serializer) + ..add(GMangaFragmentData_lastReadChapter.serializer) + ..add(GMangaFragmentData_lastReadChapter_meta.serializer) + ..add(GMangaFragmentData_latestFetchedChapter.serializer) + ..add(GMangaFragmentData_latestFetchedChapter_meta.serializer) + ..add(GMangaFragmentData_latestReadChapter.serializer) + ..add(GMangaFragmentData_latestReadChapter_meta.serializer) + ..add(GMangaFragmentData_latestUploadedChapter.serializer) + ..add(GMangaFragmentData_latestUploadedChapter_meta.serializer) + ..add(GMangaFragmentData_meta.serializer) + ..add(GMangaFragmentData_source.serializer) + ..add(GMangaFragmentData_source_extension.serializer) + ..add(GMangaFragmentReq.serializer) + ..add(GMangaFragmentVars.serializer) ..add(GMangaMetaTypeInput.serializer) ..add(GMangaOrderBy.serializer) ..add(GMangaStatus.serializer) @@ -80,6 +161,12 @@ Serializers _$serializers = (new Serializers().toBuilder() ..add(GMetaConditionInput.serializer) ..add(GMetaFilterInput.serializer) ..add(GMetaOrderBy.serializer) + ..add(GMiscSettingsFragmentData.serializer) + ..add(GMiscSettingsFragmentReq.serializer) + ..add(GMiscSettingsFragmentVars.serializer) + ..add(GPageInfoFragmentData.serializer) + ..add(GPageInfoFragmentReq.serializer) + ..add(GPageInfoFragmentVars.serializer) ..add(GPartialSettingsTypeInput.serializer) ..add(GReorderChapterDownloadInput.serializer) ..add(GResetSettingsInput.serializer) @@ -91,11 +178,24 @@ Serializers _$serializers = (new Serializers().toBuilder() ..add(GRestoreBackupVars.serializer) ..add(GRestoreStatusData.serializer) ..add(GRestoreStatusData_restoreStatus.serializer) + ..add(GRestoreStatusFragmentData.serializer) + ..add(GRestoreStatusFragmentReq.serializer) + ..add(GRestoreStatusFragmentVars.serializer) ..add(GRestoreStatusReq.serializer) ..add(GRestoreStatusVars.serializer) ..add(GSearchTrackerInput.serializer) + ..add(GServerBindingFragmentData.serializer) + ..add(GServerBindingFragmentReq.serializer) + ..add(GServerBindingFragmentVars.serializer) + ..add(GServerSettingsData.serializer) + ..add(GServerSettingsData_settings.serializer) + ..add(GServerSettingsReq.serializer) + ..add(GServerSettingsVars.serializer) ..add(GServerUpdateData.serializer) ..add(GServerUpdateData_checkForServerUpdates.serializer) + ..add(GServerUpdateFragmentData.serializer) + ..add(GServerUpdateFragmentReq.serializer) + ..add(GServerUpdateFragmentVars.serializer) ..add(GServerUpdateReq.serializer) ..add(GServerUpdateVars.serializer) ..add(GSetCategoryMetaInput.serializer) @@ -104,16 +204,60 @@ Serializers _$serializers = (new Serializers().toBuilder() ..add(GSetMangaMetaInput.serializer) ..add(GSetSettingsInput.serializer) ..add(GSetSourceMetaInput.serializer) + ..add(GSettingsFragmentData.serializer) + ..add(GSettingsFragmentReq.serializer) + ..add(GSettingsFragmentVars.serializer) + ..add(GSocksProxyFragmentData.serializer) + ..add(GSocksProxyFragmentReq.serializer) + ..add(GSocksProxyFragmentVars.serializer) ..add(GSortOrder.serializer) ..add(GSortSelectionInput.serializer) ..add(GSourceConditionInput.serializer) ..add(GSourceFilterInput.serializer) + ..add(GSourceFragmentData.serializer) + ..add(GSourceFragmentData_extension.serializer) + ..add(GSourceFragmentReq.serializer) + ..add(GSourceFragmentVars.serializer) ..add(GSourceMetaTypeInput.serializer) ..add(GSourceOrderBy.serializer) ..add(GSourcePreferenceChangeInput.serializer) + ..add(GSourcePreferenceFragmentData__asCheckBoxPreference.serializer) + ..add(GSourcePreferenceFragmentData__asEditTextPreference.serializer) + ..add(GSourcePreferenceFragmentData__asListPreference.serializer) + ..add( + GSourcePreferenceFragmentData__asMultiSelectListPreference.serializer) + ..add(GSourcePreferenceFragmentData__asSwitchPreference.serializer) + ..add(GSourcePreferenceFragmentData__base.serializer) + ..add(GSourcePreferenceFragmentReq.serializer) + ..add(GSourcePreferenceFragmentVars.serializer) ..add(GStartDownloaderInput.serializer) ..add(GStopDownloaderInput.serializer) ..add(GStringFilterInput.serializer) + ..add(GToggleDebugLogsData.serializer) + ..add(GToggleDebugLogsData_setSettings.serializer) + ..add(GToggleDebugLogsData_setSettings_settings.serializer) + ..add(GToggleDebugLogsReq.serializer) + ..add(GToggleDebugLogsVars.serializer) + ..add(GToggleFlareSolverrData.serializer) + ..add(GToggleFlareSolverrData_setSettings.serializer) + ..add(GToggleFlareSolverrData_setSettings_settings.serializer) + ..add(GToggleFlareSolverrReq.serializer) + ..add(GToggleFlareSolverrVars.serializer) + ..add(GToggleGqlDebugLogsData.serializer) + ..add(GToggleGqlDebugLogsData_setSettings.serializer) + ..add(GToggleGqlDebugLogsData_setSettings_settings.serializer) + ..add(GToggleGqlDebugLogsReq.serializer) + ..add(GToggleGqlDebugLogsVars.serializer) + ..add(GToggleSocksProxyData.serializer) + ..add(GToggleSocksProxyData_setSettings.serializer) + ..add(GToggleSocksProxyData_setSettings_settings.serializer) + ..add(GToggleSocksProxyReq.serializer) + ..add(GToggleSocksProxyVars.serializer) + ..add(GToggleSystemTrayEnabledData.serializer) + ..add(GToggleSystemTrayEnabledData_setSettings.serializer) + ..add(GToggleSystemTrayEnabledData_setSettings_settings.serializer) + ..add(GToggleSystemTrayEnabledReq.serializer) + ..add(GToggleSystemTrayEnabledVars.serializer) ..add(GTrackRecordConditionInput.serializer) ..add(GTrackRecordFilterInput.serializer) ..add(GTrackRecordOrderBy.serializer) @@ -150,14 +294,84 @@ Serializers _$serializers = (new Serializers().toBuilder() ..add(GUpdateChaptersInput.serializer) ..add(GUpdateExtensionInput.serializer) ..add(GUpdateExtensionPatchInput.serializer) + ..add(GUpdateExtensionReposData.serializer) + ..add(GUpdateExtensionReposData_setSettings.serializer) + ..add(GUpdateExtensionReposData_setSettings_settings.serializer) + ..add(GUpdateExtensionReposReq.serializer) + ..add(GUpdateExtensionReposVars.serializer) ..add(GUpdateExtensionsInput.serializer) + ..add(GUpdateFlareSolverrSessionNameData.serializer) + ..add(GUpdateFlareSolverrSessionNameData_setSettings.serializer) + ..add(GUpdateFlareSolverrSessionNameData_setSettings_settings.serializer) + ..add(GUpdateFlareSolverrSessionNameReq.serializer) + ..add(GUpdateFlareSolverrSessionNameVars.serializer) + ..add(GUpdateFlareSolverrSessionTtlData.serializer) + ..add(GUpdateFlareSolverrSessionTtlData_setSettings.serializer) + ..add(GUpdateFlareSolverrSessionTtlData_setSettings_settings.serializer) + ..add(GUpdateFlareSolverrSessionTtlReq.serializer) + ..add(GUpdateFlareSolverrSessionTtlVars.serializer) + ..add(GUpdateFlareSolverrTimeoutData.serializer) + ..add(GUpdateFlareSolverrTimeoutData_setSettings.serializer) + ..add(GUpdateFlareSolverrTimeoutData_setSettings_settings.serializer) + ..add(GUpdateFlareSolverrTimeoutReq.serializer) + ..add(GUpdateFlareSolverrTimeoutVars.serializer) + ..add(GUpdateFlareSolverrUrlData.serializer) + ..add(GUpdateFlareSolverrUrlData_setSettings.serializer) + ..add(GUpdateFlareSolverrUrlData_setSettings_settings.serializer) + ..add(GUpdateFlareSolverrUrlReq.serializer) + ..add(GUpdateFlareSolverrUrlVars.serializer) ..add(GUpdateLibraryMangaInput.serializer) + ..add(GUpdateLocalSourcePathData.serializer) + ..add(GUpdateLocalSourcePathData_setSettings.serializer) + ..add(GUpdateLocalSourcePathData_setSettings_settings.serializer) + ..add(GUpdateLocalSourcePathReq.serializer) + ..add(GUpdateLocalSourcePathVars.serializer) ..add(GUpdateMangaCategoriesInput.serializer) ..add(GUpdateMangaCategoriesPatchInput.serializer) ..add(GUpdateMangaInput.serializer) ..add(GUpdateMangaPatchInput.serializer) ..add(GUpdateMangasCategoriesInput.serializer) ..add(GUpdateMangasInput.serializer) + ..add(GUpdatePortData.serializer) + ..add(GUpdatePortData_setSettings.serializer) + ..add(GUpdatePortData_setSettings_settings.serializer) + ..add(GUpdatePortReq.serializer) + ..add(GUpdatePortVars.serializer) + ..add(GUpdateServerIpData.serializer) + ..add(GUpdateServerIpData_setSettings.serializer) + ..add(GUpdateServerIpData_setSettings_settings.serializer) + ..add(GUpdateServerIpReq.serializer) + ..add(GUpdateServerIpVars.serializer) + ..add(GUpdateSocksHostData.serializer) + ..add(GUpdateSocksHostData_setSettings.serializer) + ..add(GUpdateSocksHostData_setSettings_settings.serializer) + ..add(GUpdateSocksHostReq.serializer) + ..add(GUpdateSocksHostVars.serializer) + ..add(GUpdateSocksPasswordData.serializer) + ..add(GUpdateSocksPasswordData_setSettings.serializer) + ..add(GUpdateSocksPasswordData_setSettings_settings.serializer) + ..add(GUpdateSocksPasswordReq.serializer) + ..add(GUpdateSocksPasswordVars.serializer) + ..add(GUpdateSocksPortData.serializer) + ..add(GUpdateSocksPortData_setSettings.serializer) + ..add(GUpdateSocksPortData_setSettings_settings.serializer) + ..add(GUpdateSocksPortReq.serializer) + ..add(GUpdateSocksPortVars.serializer) + ..add(GUpdateSocksUserNameData.serializer) + ..add(GUpdateSocksUserNameData_setSettings.serializer) + ..add(GUpdateSocksUserNameData_setSettings_settings.serializer) + ..add(GUpdateSocksUserNameReq.serializer) + ..add(GUpdateSocksUserNameVars.serializer) + ..add(GUpdateSocksVersionData.serializer) + ..add(GUpdateSocksVersionData_setSettings.serializer) + ..add(GUpdateSocksVersionData_setSettings_settings.serializer) + ..add(GUpdateSocksVersionReq.serializer) + ..add(GUpdateSocksVersionVars.serializer) + ..add(GUpdateSourceInParallelData.serializer) + ..add(GUpdateSourceInParallelData_setSettings.serializer) + ..add(GUpdateSourceInParallelData_setSettings_settings.serializer) + ..add(GUpdateSourceInParallelReq.serializer) + ..add(GUpdateSourceInParallelVars.serializer) ..add(GUpdateSourcePreferenceInput.serializer) ..add(GUpdateState.serializer) ..add(GUpdateStopInput.serializer) @@ -173,6 +387,14 @@ Serializers _$serializers = (new Serializers().toBuilder() ..add(GWebUIFlavor.serializer) ..add(GWebUIInterface.serializer) ..add(GWebUIUpdateInput.serializer) + ..addBuilderFactory( + const FullType(BuiltList, + const [const FullType(GAllCategoriesData_categories_nodes)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, + const [const FullType(GAllCategoriesData_categories_nodes_meta)]), + () => new ListBuilder()) ..addBuilderFactory( const FullType( BuiltList, const [const FullType(GCategoryFilterInput)]), @@ -181,6 +403,10 @@ Serializers _$serializers = (new Serializers().toBuilder() const FullType( BuiltList, const [const FullType(GCategoryFilterInput)]), () => new ListBuilder()) + ..addBuilderFactory( + const FullType( + BuiltList, const [const FullType(GCategoryFragmentData_meta)]), + () => new ListBuilder()) ..addBuilderFactory( const FullType( BuiltList, const [const FullType(GChapterFilterInput)]), @@ -189,6 +415,10 @@ Serializers _$serializers = (new Serializers().toBuilder() const FullType( BuiltList, const [const FullType(GChapterFilterInput)]), () => new ListBuilder()) + ..addBuilderFactory( + const FullType( + BuiltList, const [const FullType(GChapterFragmentData_meta)]), + () => new ListBuilder()) ..addBuilderFactory( const FullType( BuiltList, const [const FullType(GExtensionFilterInput)]), @@ -200,6 +430,17 @@ Serializers _$serializers = (new Serializers().toBuilder() ..addBuilderFactory( const FullType(BuiltList, const [const FullType(GFilterChangeInput)]), () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, + const [const FullType(GFullSourceFragmentData_filters)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [ + const FullType( + GFullSourceFragmentData_filters__asGroupFilter_filters) + ]), + () => new ListBuilder< + GFullSourceFragmentData_filters__asGroupFilter_filters>()) ..addBuilderFactory( const FullType(BuiltList, const [const FullType(GLongString)]), () => new ListBuilder()) @@ -212,6 +453,26 @@ Serializers _$serializers = (new Serializers().toBuilder() ..addBuilderFactory( const FullType(BuiltList, const [const FullType(GMangaFilterInput)]), () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, + const [const FullType(GMangaFragmentData_lastReadChapter_meta)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [ + const FullType(GMangaFragmentData_latestFetchedChapter_meta) + ]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [ + const FullType(GMangaFragmentData_latestReadChapter_meta) + ]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [ + const FullType(GMangaFragmentData_latestUploadedChapter_meta) + ]), + () => + new ListBuilder()) ..addBuilderFactory( const FullType(BuiltList, const [const FullType(GMangaStatus)]), () => new ListBuilder()) @@ -269,6 +530,124 @@ Serializers _$serializers = (new Serializers().toBuilder() ..addBuilderFactory( const FullType(BuiltList, const [const FullType(String)]), () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType( + BuiltList, const [const FullType(GMangaFragmentData_meta)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) ..addBuilderFactory( const FullType(BuiltList, const [const FullType(bool)]), () => new ListBuilder()) diff --git a/lib/src/graphql/fragments.graphql b/lib/src/graphql/fragments.graphql new file mode 100644 index 00000000..b5706909 --- /dev/null +++ b/lib/src/graphql/fragments.graphql @@ -0,0 +1,6 @@ +fragment PageInfoFragment on PageInfo { + endCursor + hasNextPage + hasPreviousPage + startCursor +} diff --git a/lib/src/l10n/app_ar.arb b/lib/src/l10n/app_ar.arb index 47babc1a..1327271e 100644 --- a/lib/src/l10n/app_ar.arb +++ b/lib/src/l10n/app_ar.arb @@ -21,7 +21,7 @@ }, "appTitle": "تاشيديسك سورايومي", "@appTitle": { - "description": "Name of the app (Tachidesk Sorayomi in native script)" + "description": "Name of the app (Sorayomi in native script)" }, "authType": "نوع المصادقة", "@authType": { @@ -118,7 +118,7 @@ "description": "Toast text to show that the message has been copied", "placeholders": { "msg": { - "example": "Client : Tachidesk Sorayomi", + "example": "Client : Sorayomi", "type": "String" } } diff --git a/lib/src/l10n/app_de.arb b/lib/src/l10n/app_de.arb index 757189b8..75ec23ec 100644 --- a/lib/src/l10n/app_de.arb +++ b/lib/src/l10n/app_de.arb @@ -36,7 +36,7 @@ "description": "Toast text to show that the message has been copied", "placeholders": { "msg": { - "example": "Client : Tachidesk Sorayomi", + "example": "Client : Sorayomi", "type": "String" } } @@ -107,9 +107,9 @@ "@appTheme": { "description": "Popup title and Button text to change App Theme" }, - "appTitle": "Tachidesk Sorayomi", + "appTitle": "Sorayomi", "@appTitle": { - "description": "Name of the app (Tachidesk Sorayomi in native script)" + "description": "Name of the app (Sorayomi in native script)" }, "appearance": "Aussehen", "@appearance": { diff --git a/lib/src/l10n/app_en.arb b/lib/src/l10n/app_en.arb index 867bafda..1678c75b 100644 --- a/lib/src/l10n/app_en.arb +++ b/lib/src/l10n/app_en.arb @@ -19,7 +19,7 @@ "description": "Popup title and Button text to change App Theme Mode" }, "@appTitle": { - "description": "Name of the app (Tachidesk Sorayomi in native script)" + "description": "Name of the app (Sorayomi in native script)" }, "@appearance": { "description": "Screen title and Button text of Appearance screen" @@ -33,6 +33,9 @@ "@authTypeNone": { "description": "Radio button text for no Authentication" }, + "@authentication": { + "description": "Section title for server authentication" + }, "@automaticBackup": { "description": "Settings group title for automatic backup settings" }, @@ -120,14 +123,20 @@ "@close": { "description": "Text for close button" }, + "@cloudflareBypass": { + "description": "Section title for Cloudflare Bypass" + }, "@completed": { "description": "Checkbox text to filter Completed mangas in Library screen and Manga Grouping text in Update Summary screen" }, + "@copied": { + "description": "Copied Text" + }, "@copyMsg": { "description": "Toast text to show that the message has been copied", "placeholders": { "msg": { - "example": "Client : Tachidesk Sorayomi", + "example": "Client : Sorayomi", "type": "String" } } @@ -147,6 +156,9 @@ "@daysAgo": { "description": "Days ago text to show the release date of manga" }, + "@debugLogs": { + "description": "Switch title for Debug logs in settings" + }, "@defaultCategory": { "description": "Checkbox description when creating a Category to add manga to the Category by Default" }, @@ -192,6 +204,12 @@ "@emptyCategory": { "description": "Description to show that category list is empty in Edit Category screen" }, + "@enableSocksProxy": { + "description": "Switch title to enable SOCKS Proxy" + }, + "@enterProp": { + "description": "Hint text for text field to enter value of Property" + }, "@errorBackupCreate": { "description": "Error Text to show that backup creating failed" }, @@ -231,6 +249,12 @@ "@extensionListEmpty": { "description": "Description to show that Extension list is empty in Extension list tab of Browse screen" }, + "@extensionRepository": { + "description": "Screen title text for Extension repository settings screen" + }, + "@extensionRepositoryDescription": { + "description": "Subtitle text for Extension repository settings property" + }, "@extensions": { "description": "Extension list Tab title in Browse Screen" }, @@ -246,6 +270,21 @@ "@finished": { "description": "Text to show the Currently Finished reading chapter in Reader Screen" }, + "@flareSolverr": { + "description": "Toggle title to enable FlareSolverr" + }, + "@flareSolverrRequestTimeout": { + "description": "Title text for FlareSolverr Request Timeout property" + }, + "@flareSolverrServerUrl": { + "description": "Title text for FlareSolverr Server Url property" + }, + "@flareSolverrSessionName": { + "description": "Title text for FlareSolverr Session Name property" + }, + "@flareSolverrSessionTTL": { + "description": "Title text for FlareSolverr Session TTL property" + }, "@general": { "description": "Screen title and Button text of General setting screen" }, @@ -258,6 +297,12 @@ "@globalUpdate": { "description": "Button text of Global Manga Update" }, + "@gqlDebugLogs": { + "description": "Switch title for Graphql Debug logs in settings" + }, + "@gqlDebugLogsHint": { + "description": "Switch subTitle for Graphql Debug logs in settings" + }, "@help": { "description": "Button text of help in about screen" }, @@ -279,6 +324,15 @@ "@installingExtension": { "description": "Toast text to show that the extension is installing" }, + "@invalidPort": { + "description": "Error when Submitted invalid Port Number" + }, + "@invalidProp": { + "description": "Toast text for select invalid property value" + }, + "@ip": { + "description": "Option title for Server IP Address in Server settings" + }, "@isTrueBlack": { "description": "Switch title to enable {} black theme" }, @@ -291,6 +345,12 @@ "@library": { "description": "Screen title and Button text of Library and Library Settings screen" }, + "@localSourceLocation": { + "description": "Text for Local Source Location settings property" + }, + "@localSourceLocationDescription": { + "description": "Description text for Local Source Location property" + }, "@manga": { "description": "Screen title and Button text of Manga details screen" }, @@ -333,6 +393,9 @@ "@mangaStatusUnknown": { "description": "Text to show Manga Status Unknown in Manga details screen" }, + "@misc": { + "description": "Section title for misc settings" + }, "@missingExtension": { "description": "Group title to show the Missing Extensions when restoring Backup" }, @@ -351,6 +414,18 @@ "@nDays": { "description": "to show Number of days with plural" }, + "@nMinutes": { + "description": "Text to represent 'n' Minutes" + }, + "@nRepo": { + "description": "Text to show n repo as subtitle" + }, + "@nSeconds": { + "description": "Text to represent 'n' seconds" + }, + "@nSources": { + "description": "Text to represent n number Parallel source requests" + }, "@nameCountDisplay": { "description": "Text pattern to display an name and count in a string", "placeholders": { @@ -397,6 +472,9 @@ } } }, + "@noPropFound": { + "description": "Template text to say No value for property found" + }, "@noResultFound": { "description": "Text to show that no results found for the given search query" }, @@ -433,6 +511,9 @@ "@obsolete": { "description": "Text to show that the extension has become Obsolete" }, + "@openFlareSolverr": { + "description": "Text for link to Open Flare Solverr setup documentation" + }, "@or": { "description": "text literal for word or" }, @@ -445,6 +526,9 @@ } } }, + "@parallelSourceRequest": { + "description": "Text for Parallel source requests property" + }, "@password": { "description": "Title text for password field" }, @@ -631,6 +715,9 @@ "@server": { "description": "Text title for the server in About screen" }, + "@serverBindings": { + "description": "Title for server bindings settings" + }, "@serverPort": { "description": "Popup title and Button text to update Server Port" }, @@ -649,6 +736,12 @@ "@settings": { "description": "Screen title and Button text of Settings screen" }, + "@socksProxy": { + "description": "Section title for SOCKS Proxy settings" + }, + "@socksVersion": { + "description": "Title for Socks version picker" + }, "@sort": { "description": "title of sort Tab across the app" }, @@ -670,6 +763,9 @@ "@start": { "description": "Button text start reading the manga" }, + "@systemTrayIcon": { + "description": "Switch title to Show icon in system tray in settings" + }, "@themeModeDark": { "description": "Radio button text for App theme - Dark" }, @@ -706,6 +802,9 @@ "@updateCompleted": { "description": "Button text to show that extension update is completed" }, + "@updateFailed": { + "description": "Failed to update Text" + }, "@updates": { "description": "Screen title and Button text of Updates screen" }, @@ -752,11 +851,12 @@ "allScanlators": "All Scanlators", "appLanguage": "App Language", "appTheme": "App Theme Mode", - "appTitle": "Tachidesk Sorayomi", + "appTitle": "Sorayomi", "appearance": "Appearance", "authType": "Authentication Type", "authTypeBasic": "Basic Auth", "authTypeNone": "None", + "authentication": "Authentication", "automaticBackup": "Automatic Backup", "backup": "Backup & Restore", "backupAndRestore": "Backup and Restore", @@ -785,13 +885,16 @@ "client": "Client", "clientVersion": "Client version", "close": "Close", + "cloudflareBypass": "Cloudflare Bypass", "completed": "Completed", + "copied": "Copied!", "copyMsg": "'{msg}' Copied!", "createBackupDescription": "Backup library as a Tachidesk backup", "createBackupTitle": "Create Backup", "credentials": "Credentials", "current": "Current", "daysAgo": "{days} days ago", + "debugLogs": "Debug logs", "defaultCategory": "Default category when adding new manga to library", "delete": "Delete", "deleteCategoryDescription": "This will merge all Mangas in this Category to Default!", @@ -807,6 +910,8 @@ "edit": "Edit", "editCategory": "Edit Category", "emptyCategory": "Category name can't be Empty", + "enableSocksProxy": "Use SOCKS Proxy", + "enterProp": "Enter {prop}", "errorBackupCreate": "Failed to create Backup", "errorBackupRestore": "Failed to restore backup!", "errorExtension": "Can't find the selected extension", @@ -818,15 +923,24 @@ "errorUserName": "UserName can't be empty", "extensionInstalled": "Extension Installed!", "extensionListEmpty": "Extension list is Empty", + "extensionRepository": "Extension Repository", + "extensionRepositoryDescription": "Add repositories from which extensions can be installed", "extensions": "Extensions", "failed": "Failed", "filter": "Filter", "findServer": "Find", "finished": "Finished", + "flareSolverr": "FlareSolverr", + "flareSolverrRequestTimeout": "FlareSolverr Request Timeout", + "flareSolverrServerUrl": "FlareSolverr Server Url", + "flareSolverrSessionName": "FlareSolverr session name", + "flareSolverrSessionTTL": "FlareSolverr session TTL", "general": "General", "gitHub": "GitHub", "globalSearch": "Global Search", "globalUpdate": "Global Update", + "gqlDebugLogs": "Graphql debug logs", + "gqlDebugLogsHint": "This includes logs with non privacy safe information", "help": "Help", "inLibrary": "In library", "includeCategories": "Categories", @@ -834,10 +948,16 @@ "install": "Install", "installing": "Installing", "installingExtension": "Installing Extension", + "invalidPort": "Invalid Port", + "invalidProp": "Invalid {property}", + "ip": "IP Address", + "ipHintText": "Enter server binding IP address", "isTrueBlack": "True Black", "languages": "Languages", "latest": "Latest", "library": "Library", + "localSourceLocation": "Local source location", + "localSourceLocationDescription": "The path to the directory on the server where local source files are saved in", "manga": "Manga", "mangaGridSize": "Manga Grid Size", "mangaMissingSources": "Manga Missing Sources", @@ -852,12 +972,17 @@ "mangaStatusOngoing": "Ongoing", "mangaStatusPublishingFinished": "Publishing Finished", "mangaStatusUnknown": "Unknown", + "misc": "Misc", "missingExtension": "Missing Extensions", "missingTrackers": "Missing Trackers", "more": "More", "moveToBottom": "Move to Bottom", "moveToTop": "Move to top", "nDays": "{count, select, 01{01 Day} other{{count} Days}}", + "nMinutes": "{n, plural, =1{1 Minute} other{{n} Minutes}}", + "nRepo": "{n, plural, =1{1 Repo} other{{n} Repos}}", + "nSeconds": "{n, plural, =1{1 second} other{{n} seconds}}", + "nSources": "{n, plural, =1{1 Source} other{{n} Sources}}", "nameCountDisplay": "{name}: {count}", "newUpdateAvailable": "New update available", "nextChapter": "Next: {chapterTitle}", @@ -868,6 +993,7 @@ "noDownloads": "No Downloads", "noMangaFound": "No Mangas Found", "noOfChapters": "{count} Chapters", + "noPropFound": "No {prop} Found", "noResultFound": "No results found", "noServerFound": "No Server found in your local network", "noSourcesFound": "No sources found", @@ -878,8 +1004,10 @@ "nsfwInfo": "This does not prevent unofficial or potentially incorrectly flagged extensions from surfacing NSFW(18+) content within app", "numSelected": "{num} Selected", "obsolete": "Obsolete", + "openFlareSolverr": "Checkout FlareSolverr for information on how to set it up", "or": "or", "page": "Page: {number}", + "parallelSourceRequest": "Parallel source requests", "password": "Password", "pause": "Pause", "pending": "Pending", @@ -943,12 +1071,19 @@ "selectNext10": "Select next 10", "selectUnread": "Select Unread", "server": "Server", + "serverBindings": "Server Bindings", "serverPort": "Server Port", "serverPortHintText": "Server port", "serverUrl": "Server URL", "serverUrlHintText": "Server url", "serverVersion": "Server version", "settings": "Settings", + "socksHost": "SOCKS Host", + "socksPassword": "SOCKS Password", + "socksPort": "SOCKS Port", + "socksProxy": "SOCKS Proxy", + "socksUserName": "SOCKS UserName", + "socksVersion": "SOCKS Version", "sort": "Sort", "source": "Source", "sourceTypeFilter": "Filter", @@ -956,6 +1091,7 @@ "sourceTypePopular": "Popular", "sources": "Sources", "start": "Start", + "systemTrayIcon": "Show icon in system tray", "themeModeDark": "Dark", "themeModeLight": "Light", "themeModeSystem": "System", @@ -968,6 +1104,7 @@ "unread": "Unread", "update": "Update", "updateCompleted": "Update Completed", + "updateFailed": "Failed to update {property}", "updates": "Updates", "updatesSummary": "Updates Summary", "updating": "Updating", diff --git a/lib/src/l10n/app_es.arb b/lib/src/l10n/app_es.arb index dff1580a..236634ab 100644 --- a/lib/src/l10n/app_es.arb +++ b/lib/src/l10n/app_es.arb @@ -10,7 +10,7 @@ "@appLanguage": {}, "appTheme": "Tema de la aplicación", "@appTheme": {}, - "appTitle": "Tachidesk Sorayomi", + "appTitle": "Sorayomi", "@appTitle": {}, "appearance": "Apariencia", "@appearance": {}, diff --git a/lib/src/l10n/app_fr.arb b/lib/src/l10n/app_fr.arb index 4e7a9693..e92c2374 100644 --- a/lib/src/l10n/app_fr.arb +++ b/lib/src/l10n/app_fr.arb @@ -27,9 +27,9 @@ "@appTheme": { "description": "Popup title and Button text to change App Theme" }, - "appTitle": "Tachidesk Sorayomi", + "appTitle": "Sorayomi", "@appTitle": { - "description": "Name of the app (Tachidesk Sorayomi in native script)" + "description": "Name of the app (Sorayomi in native script)" }, "browse": "Parcourir", "@browse": { @@ -106,7 +106,7 @@ "description": "Toast text to show that the message has been copied", "placeholders": { "msg": { - "example": "Client : Tachidesk Sorayomi", + "example": "Client : Sorayomi", "type": "String" } } diff --git a/lib/src/l10n/app_ko.arb b/lib/src/l10n/app_ko.arb index f46f0a1c..ff46d518 100644 --- a/lib/src/l10n/app_ko.arb +++ b/lib/src/l10n/app_ko.arb @@ -11,9 +11,9 @@ "@appTheme": { "description": "Popup title and Button text to change App Theme" }, - "appTitle": "Tachidesk Sorayomi", + "appTitle": "Sorayomi", "@appTitle": { - "description": "Name of the app (Tachidesk Sorayomi in native script)" + "description": "Name of the app (Sorayomi in native script)" }, "appearance": "모양", "@appearance": { @@ -66,7 +66,7 @@ "description": "Toast text to show that the message has been copied", "placeholders": { "msg": { - "example": "Client : Tachidesk Sorayomi", + "example": "Client : Sorayomi", "type": "String" } } diff --git a/lib/src/l10n/app_pt.arb b/lib/src/l10n/app_pt.arb index 5e74ca73..c2d8999d 100644 --- a/lib/src/l10n/app_pt.arb +++ b/lib/src/l10n/app_pt.arb @@ -10,7 +10,7 @@ "@appLanguage": {}, "appTheme": "Tema da Aplicação", "@appTheme": {}, - "appTitle": "Tachidesk Sorayomi", + "appTitle": "Sorayomi", "@appTitle": {}, "appearance": "Aparência", "@appearance": {}, diff --git a/lib/src/l10n/app_pt_PT.arb b/lib/src/l10n/app_pt_PT.arb index ecd0b058..c3dfd958 100644 --- a/lib/src/l10n/app_pt_PT.arb +++ b/lib/src/l10n/app_pt_PT.arb @@ -10,7 +10,7 @@ "@appLanguage": {}, "appTheme": "Tema da Aplicação", "@appTheme": {}, - "appTitle": "Tachidesk Sorayomi", + "appTitle": "Sorayomi", "@appTitle": {}, "appearance": "Aparência", "@appearance": {}, diff --git a/lib/src/l10n/app_uk.arb b/lib/src/l10n/app_uk.arb index caaa23c5..4838317b 100644 --- a/lib/src/l10n/app_uk.arb +++ b/lib/src/l10n/app_uk.arb @@ -11,9 +11,9 @@ "@appTheme": { "description": "Popup title and Button text to change App Theme" }, - "appTitle": "Tachidesk Sorayomi", + "appTitle": "Sorayomi", "@appTitle": { - "description": "Name of the app (Tachidesk Sorayomi in native script)" + "description": "Name of the app (Sorayomi in native script)" }, "appearance": "Зовнішній вигляд", "@appearance": { @@ -76,7 +76,7 @@ "description": "Toast text to show that the message has been copied", "placeholders": { "msg": { - "example": "Client : Tachidesk Sorayomi", + "example": "Client : Sorayomi", "type": "String" } } diff --git a/lib/src/l10n/app_zh.arb b/lib/src/l10n/app_zh.arb index 0f504ac9..bd1ccfdb 100644 --- a/lib/src/l10n/app_zh.arb +++ b/lib/src/l10n/app_zh.arb @@ -76,7 +76,7 @@ "description": "Toast text to show that the message has been copied", "placeholders": { "msg": { - "example": "Client : Tachidesk Sorayomi", + "example": "Client : Sorayomi", "type": "String" } } @@ -107,7 +107,7 @@ }, "appTitle": "Sorayomi", "@appTitle": { - "description": "Name of the app (Tachidesk Sorayomi in native script)" + "description": "Name of the app (Sorayomi in native script)" }, "addToLibrary": "添加到书架", "@addToLibrary": { diff --git a/lib/src/l10n/app_zh_Hans.arb b/lib/src/l10n/app_zh_Hans.arb index d7ff0003..c646e279 100644 --- a/lib/src/l10n/app_zh_Hans.arb +++ b/lib/src/l10n/app_zh_Hans.arb @@ -76,7 +76,7 @@ "description": "Toast text to show that the message has been copied", "placeholders": { "msg": { - "example": "Client : Tachidesk Sorayomi", + "example": "Client : Sorayomi", "type": "String" } } @@ -107,7 +107,7 @@ }, "appTitle": "Sorayomi", "@appTitle": { - "description": "Name of the app (Tachidesk Sorayomi in native script)" + "description": "Name of the app (Sorayomi in native script)" }, "addToLibrary": "添加到书架", "@addToLibrary": { diff --git a/lib/src/l10n/app_zh_Hant.arb b/lib/src/l10n/app_zh_Hant.arb index 34274fad..18c50461 100644 --- a/lib/src/l10n/app_zh_Hant.arb +++ b/lib/src/l10n/app_zh_Hant.arb @@ -361,9 +361,9 @@ "@authType": { "description": "Popup title and Button text to change App Authentication" }, - "appTitle": "Tachidesk Sorayomi", + "appTitle": "Sorayomi", "@appTitle": { - "description": "Name of the app (Tachidesk Sorayomi in native script)" + "description": "Name of the app (Sorayomi in native script)" }, "credentials": "認證", "@credentials": { @@ -454,7 +454,7 @@ "description": "Toast text to show that the message has been copied", "placeholders": { "msg": { - "example": "Client : Tachidesk Sorayomi", + "example": "Client : Sorayomi", "type": "String" } } diff --git a/lib/src/routes/router_config.dart b/lib/src/routes/router_config.dart index 25c0c269..cdb3a6b8 100644 --- a/lib/src/routes/router_config.dart +++ b/lib/src/routes/router_config.dart @@ -1,10 +1,5 @@ -// Copyright (c) 2022 Contributors to the Suwayomi project -// -// This Source Code Form is subject to the terms of the Mozilla Public -// License, v. 2.0. If a copy of the MPL was not distributed with this -// file, You can obtain one at http://mozilla.org/MPL/2.0/. - import 'package:flex_color_scheme/flex_color_scheme.dart'; +import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:go_router/go_router.dart'; @@ -14,7 +9,9 @@ import '../constants/enum.dart'; import '../features/about/presentation/about/about_screen.dart'; import '../features/browse_center/domain/filter/filter_model.dart'; import '../features/browse_center/presentation/browse/browse_screen.dart'; +import '../features/browse_center/presentation/extension/extension_screen.dart'; import '../features/browse_center/presentation/global_search/global_search_screen.dart'; +import '../features/browse_center/presentation/source/source_screen.dart'; import '../features/browse_center/presentation/source_manga_list/source_manga_list_screen.dart'; import '../features/browse_center/presentation/source_preference/source_preference_screen.dart'; import '../features/library/presentation/category/edit_category_screen.dart'; @@ -28,6 +25,7 @@ import '../features/quick_open/presentation/search_stack/search_stack_screen.dar import '../features/settings/presentation/appearance/appearance_screen.dart'; import '../features/settings/presentation/backup/backup_screen.dart'; import '../features/settings/presentation/browse/browse_settings_screen.dart'; +import '../features/settings/presentation/browse/widgets/extension_repository/extension_repository_screen.dart'; import '../features/settings/presentation/general/general_screen.dart'; import '../features/settings/presentation/library/library_settings_screen.dart'; import '../features/settings/presentation/more/more_screen.dart'; @@ -35,44 +33,56 @@ import '../features/settings/presentation/reader/reader_settings_screen.dart'; import '../features/settings/presentation/server/server_screen.dart'; import '../features/settings/presentation/settings/settings_screen.dart'; import '../utils/extensions/custom_extensions.dart'; -import '../widgets/shell/shell_screen.dart'; +import '../widgets/shell/navigation_shell_screen.dart'; part 'router_config.g.dart'; +part 'sub_routes/browser_routes.dart'; +part 'sub_routes/common_routes.dart'; +part 'sub_routes/downloads_routes.dart'; +part 'sub_routes/library_routes.dart'; +part 'sub_routes/more_routes.dart'; +part 'sub_routes/updates_routes.dart'; -final GlobalKey _rootNavigatorKey = - GlobalKey(debugLabel: 'root'); +final rootNavigatorKey = GlobalKey(debugLabel: 'root'); -final GlobalKey _quickOpenNavigatorKey = +final _quickOpenNavigatorKey = GlobalKey(debugLabel: 'Quick Open'); -final GlobalKey _shellNavigatorKey = - GlobalKey(debugLabel: 'shell'); +final _shellNavigatorKey = GlobalKey(debugLabel: 'shell'); +final _browseNavigatorKey = GlobalKey(debugLabel: 'browse'); abstract class Routes { - static const home = '/'; - static const library = '/library'; - static const librarySettings = 'library'; + static const library = '/library/:categoryId'; + static const updates = '/updates'; - static const browse = '/browse'; + static const downloads = '/downloads'; + + static const extensionRoute = '/extension'; + static const source = '/source'; + static const sourceManga = ':sourceId'; + static const sourceMangaType = '$sourceManga/:sourceType'; + static const sourcePreference = '$sourceManga/preference'; + + // More static const more = '/more'; - static const about = '/about'; + static const settings = 'settings'; + static const librarySettings = 'library'; + static const editCategories = 'edit-categories'; + static const browseSettings = 'browse'; + static const extensionRepositorySettings = 'repo'; + static const readerSettings = 'reader'; static const appearanceSettings = 'appearance'; static const generalSettings = 'general'; static const backup = 'backup'; - static const settings = '/settings'; - static const browseSettings = 'browse'; - static const readerSettings = 'reader'; - static const reader = '/manga/:mangaId/chapter/:chapterIndex'; static const serverSettings = 'server'; - static const editCategories = 'edit-categories'; - static const extensions = '/extensions'; - static const manga = '$mangaRoute:mangaId'; - static const mangaRoute = '/manga/'; - static const sourceManga = '/source/:sourceId/:sourceType'; - static const sourcePreference = '/source/:sourceId/preference'; - static const globalSearch = '/global-search'; + + // Commons + static const mangaRoute = '/manga/:mangaId'; + static const reader = 'chapter/:chapterIndex'; static const updateStatus = "/update-status"; + static const about = 'about'; + static const globalSearch = '/global-search'; } @riverpod @@ -80,46 +90,108 @@ GoRouter routerConfig(ref) { return GoRouter( routes: $appRoutes, debugLogDiagnostics: true, - initialLocation: Routes.library, - navigatorKey: _rootNavigatorKey, + initialLocation: const LibraryRoute(categoryId: 0).location, + navigatorKey: rootNavigatorKey, ); } @TypedShellRoute( routes: [ - TypedShellRoute( - routes: [ - TypedGoRoute(path: Routes.home), - TypedGoRoute(path: Routes.library), - TypedGoRoute(path: Routes.updates), - TypedGoRoute(path: Routes.browse), - TypedGoRoute(path: Routes.downloads), - TypedGoRoute(path: Routes.more), + TypedStatefulShellRoute( + branches: [ + TypedStatefulShellBranch( + routes: [ + TypedGoRoute( + path: Routes.library, + routes: [], + ), + ], + ), + TypedStatefulShellBranch( + routes: [TypedGoRoute(path: Routes.updates)], + ), + TypedStatefulShellBranch( + routes: [ + TypedStatefulShellRoute( + branches: [ + TypedStatefulShellBranch( + routes: [ + TypedGoRoute( + path: Routes.source, + routes: [ + TypedGoRoute( + path: Routes.sourceMangaType, + ), + TypedGoRoute( + path: Routes.sourcePreference, + ) + ], + ), + ], + ), + TypedStatefulShellBranch( + routes: [ + TypedGoRoute( + path: Routes.extensionRoute, + ), + ], + ), + ], + ), + ], + ), + TypedStatefulShellBranch( + routes: [TypedGoRoute(path: Routes.downloads)], + ), + TypedStatefulShellBranch( + routes: [ + TypedGoRoute( + path: Routes.more, + routes: [ + TypedGoRoute(path: Routes.about), + TypedGoRoute( + path: Routes.settings, + routes: [ + TypedGoRoute( + path: Routes.librarySettings, + routes: [ + TypedGoRoute( + path: Routes.editCategories) + ], + ), + TypedGoRoute( + path: Routes.serverSettings), + TypedGoRoute( + path: Routes.readerSettings), + TypedGoRoute( + path: Routes.appearanceSettings), + TypedGoRoute( + path: Routes.generalSettings), + TypedGoRoute( + path: Routes.browseSettings, + routes: [ + TypedGoRoute( + path: Routes.extensionRepositorySettings) + ], + ), + TypedGoRoute(path: Routes.backup), + ], + ), + ], + ), + ], + ), ], ), - TypedGoRoute(path: Routes.manga), + TypedGoRoute( + path: Routes.mangaRoute, + routes: [TypedGoRoute(path: Routes.reader)], + ), TypedGoRoute(path: Routes.updateStatus), TypedGoRoute(path: Routes.globalSearch), - TypedGoRoute(path: Routes.sourcePreference), - TypedGoRoute(path: Routes.sourceManga), - TypedGoRoute(path: Routes.about), - TypedGoRoute(path: Routes.reader), - TypedGoRoute(path: Routes.settings, routes: [ - TypedGoRoute( - path: Routes.librarySettings, - routes: [ - TypedGoRoute(path: Routes.editCategories) - ], - ), - TypedGoRoute(path: Routes.serverSettings), - TypedGoRoute(path: Routes.readerSettings), - TypedGoRoute(path: Routes.appearanceSettings), - TypedGoRoute(path: Routes.generalSettings), - TypedGoRoute(path: Routes.browseSettings), - TypedGoRoute(path: Routes.backup), - ]) ], ) +@immutable class QuickSearchRoute extends ShellRouteData { const QuickSearchRoute(); @@ -139,273 +211,12 @@ class QuickSearchRoute extends ShellRouteData { } // Shell Routes -class ShellRoute extends ShellRouteData { - const ShellRoute(); +class NavigationShellRoute extends StatefulShellRouteData { + const NavigationShellRoute(); static final $navigatorKey = _shellNavigatorKey; @override - Widget builder(context, state, navigator) => ShellScreen(child: navigator); -} - -class HomeRoute extends GoRouteData { - const HomeRoute(); - @override - FutureOr redirect(context, state) => Routes.library; -} - -class LibraryRoute extends GoRouteData { - const LibraryRoute({this.initialCategoryOrder}); - final int? initialCategoryOrder; - @override - Page buildPage(BuildContext context, GoRouterState state) => - NoTransitionPage( - child: LibraryScreen(initialCategoryOrder: initialCategoryOrder), - ); -} - -class UpdatesRoute extends GoRouteData { - const UpdatesRoute(); - @override - Page buildPage(BuildContext context, GoRouterState state) => - const NoTransitionPage(child: UpdatesScreen()); -} - -class BrowseRoute extends GoRouteData { - const BrowseRoute(); - @override - Page buildPage(BuildContext context, GoRouterState state) => - const NoTransitionPage(child: BrowseScreen()); -} - -class DownloadsRoute extends GoRouteData { - const DownloadsRoute(); - @override - Page buildPage(BuildContext context, GoRouterState state) => - const NoTransitionPage(child: DownloadsScreen()); -} - -class MoreRoute extends GoRouteData { - const MoreRoute(); - @override - Page buildPage(BuildContext context, GoRouterState state) => - const NoTransitionPage(child: MoreScreen()); -} - -// -class MangaRoute extends GoRouteData { - const MangaRoute({required this.mangaId, this.categoryId}); - final int mangaId; - final int? categoryId; - - static final $parentNavigatorKey = _quickOpenNavigatorKey; - - @override - Widget build(BuildContext context, GoRouterState state) => - MangaDetailsScreen(mangaId: mangaId, categoryId: categoryId); -} - -class UpdateStatusRoute extends GoRouteData { - const UpdateStatusRoute(); - - static final $parentNavigatorKey = _quickOpenNavigatorKey; - - @override - Widget build(BuildContext context, GoRouterState state) => - const UpdateStatusSummaryDialog(); -} - -class GlobalSearchRoute extends GoRouteData { - const GlobalSearchRoute({this.query}); - final String? query; - - static final $parentNavigatorKey = _quickOpenNavigatorKey; - - @override - Widget build(BuildContext context, GoRouterState state) => - GlobalSearchScreen(key: ValueKey(query), initialQuery: query); -} - -class SourceMangaRoute extends GoRouteData { - const SourceMangaRoute({ - required this.sourceId, - required this.sourceType, - this.query, - this.$extra, - }); - final String sourceId; - final SourceType sourceType; - final String? query; - final List? $extra; - - static final $parentNavigatorKey = _quickOpenNavigatorKey; - - @override - Widget build(BuildContext context, GoRouterState state) => - SourceMangaListScreen( - key: ValueKey(sourceId), - sourceId: sourceId, - sourceType: sourceType, - initialQuery: query, - initialFilter: $extra, - ); -} - -class SourcePreferenceRoute extends GoRouteData { - final String sourceId; - const SourcePreferenceRoute({required this.sourceId}); - - static final $parentNavigatorKey = _quickOpenNavigatorKey; - - @override - Widget build(BuildContext context, GoRouterState state) { - return SourcePreferenceScreen(sourceId: sourceId); - } -} - -class AboutRoute extends GoRouteData { - const AboutRoute(); - - static final $parentNavigatorKey = _quickOpenNavigatorKey; - - @override - Widget build(BuildContext context, GoRouterState state) => - const AboutScreen(); -} - -class ReaderRoute extends GoRouteData { - const ReaderRoute({ - required this.mangaId, - required this.chapterIndex, - this.transVertical, - this.toPrev, - this.showReaderLayoutAnimation = false, - }); - final int mangaId; - final int chapterIndex; - final bool? transVertical; - final bool? toPrev; - final bool showReaderLayoutAnimation; - - static final $parentNavigatorKey = _quickOpenNavigatorKey; - - @override - Page buildPage(BuildContext context, GoRouterState state) { - return CustomTransitionPage( - key: state.pageKey, - child: ReaderScreen( - mangaId: mangaId, - chapterIndex: chapterIndex, - showReaderLayoutAnimation: showReaderLayoutAnimation, - ), - transitionsBuilder: (context, animation, secondaryAnimation, child) { - Offset offset = Offset.zero; - offset += Offset( - transVertical.ifNull() ? 0 : 1, - transVertical.ifNull() ? 1 : 0, - ); - if (toPrev.ifNull()) { - offset *= -1; - } - - return SlideTransition( - position: Tween( - begin: offset, - end: Offset.zero, - ).animate(animation), - child: child, - ); - }, - ); - } -} - -class SettingsRoute extends GoRouteData { - const SettingsRoute(); - - static final $parentNavigatorKey = _quickOpenNavigatorKey; - - @override - Widget build(BuildContext context, GoRouterState state) => - const SettingsScreen(); -} - -class LibrarySettingsRoute extends GoRouteData { - const LibrarySettingsRoute(); - - static final $parentNavigatorKey = _quickOpenNavigatorKey; - - @override - Widget build(BuildContext context, GoRouterState state) => - const LibrarySettingsScreen(); -} - -class EditCategoriesRoute extends GoRouteData { - const EditCategoriesRoute(); - - static final $parentNavigatorKey = _quickOpenNavigatorKey; - - @override - Widget build(BuildContext context, GoRouterState state) => - const EditCategoryScreen(); -} - -class ServerSettingsRoute extends GoRouteData { - const ServerSettingsRoute(); - - static final $parentNavigatorKey = _quickOpenNavigatorKey; - - @override - Widget build(BuildContext context, GoRouterState state) => - const ServerScreen(); -} - -class ReaderSettingsRoute extends GoRouteData { - const ReaderSettingsRoute(); - - static final $parentNavigatorKey = _quickOpenNavigatorKey; - - @override - Widget build(BuildContext context, GoRouterState state) => - const ReaderSettingsScreen(); -} - -class AppearanceSettingsRoute extends GoRouteData { - const AppearanceSettingsRoute(); - - static final $parentNavigatorKey = _quickOpenNavigatorKey; - - @override - Widget build(BuildContext context, GoRouterState state) => - const AppearanceScreen(); -} - -class GeneralSettingsRoute extends GoRouteData { - const GeneralSettingsRoute(); - - static final $parentNavigatorKey = _quickOpenNavigatorKey; - - @override - Widget build(BuildContext context, GoRouterState state) => - const GeneralScreen(); -} - -class BrowseSettingsRoute extends GoRouteData { - const BrowseSettingsRoute(); - - static final $parentNavigatorKey = _quickOpenNavigatorKey; - - @override - Widget build(BuildContext context, GoRouterState state) => - const BrowseSettingsScreen(); -} - -class BackupRoute extends GoRouteData { - const BackupRoute(); - - static final $parentNavigatorKey = _quickOpenNavigatorKey; - - @override - Widget build(BuildContext context, GoRouterState state) => - const BackupScreen(); + Widget builder(context, state, navigationShell) => + NavigationShellScreen(child: navigationShell); } diff --git a/lib/src/routes/router_config.g.dart b/lib/src/routes/router_config.g.dart index 419a6622..b983cb38 100644 --- a/lib/src/routes/router_config.g.dart +++ b/lib/src/routes/router_config.g.dart @@ -14,44 +14,155 @@ RouteBase get $quickSearchRoute => ShellRouteData.$route( navigatorKey: QuickSearchRoute.$navigatorKey, factory: $QuickSearchRouteExtension._fromState, routes: [ - ShellRouteData.$route( - navigatorKey: ShellRoute.$navigatorKey, - factory: $ShellRouteExtension._fromState, - routes: [ - GoRouteData.$route( - path: '/', - factory: $HomeRouteExtension._fromState, - ), - GoRouteData.$route( - path: '/library', - factory: $LibraryRouteExtension._fromState, + StatefulShellRouteData.$route( + factory: $NavigationShellRouteExtension._fromState, + branches: [ + StatefulShellBranchData.$branch( + initialLocation: LibraryBranch.$initialLocation, + routes: [ + GoRouteData.$route( + path: '/library/:categoryId', + factory: $LibraryRouteExtension._fromState, + ), + ], ), - GoRouteData.$route( - path: '/updates', - factory: $UpdatesRouteExtension._fromState, + StatefulShellBranchData.$branch( + routes: [ + GoRouteData.$route( + path: '/updates', + factory: $UpdatesRouteExtension._fromState, + ), + ], ), - GoRouteData.$route( - path: '/browse', - factory: $BrowseRouteExtension._fromState, + StatefulShellBranchData.$branch( + initialLocation: BrowserBranch.$initialLocation, + routes: [ + StatefulShellRouteData.$route( + navigatorContainerBuilder: + BrowseShellRoute.$navigatorContainerBuilder, + factory: $BrowseShellRouteExtension._fromState, + branches: [ + StatefulShellBranchData.$branch( + initialLocation: BrowseSourceBranch.$initialLocation, + routes: [ + GoRouteData.$route( + path: '/source', + factory: $BrowseSourceRouteExtension._fromState, + routes: [ + GoRouteData.$route( + path: ':sourceId/:sourceType', + parentNavigatorKey: + SourceTypeRoute.$parentNavigatorKey, + factory: $SourceTypeRouteExtension._fromState, + ), + GoRouteData.$route( + path: ':sourceId/preference', + parentNavigatorKey: + SourcePreferenceRoute.$parentNavigatorKey, + factory: + $SourcePreferenceRouteExtension._fromState, + ), + ], + ), + ], + ), + StatefulShellBranchData.$branch( + initialLocation: BrowseExtensionBranch.$initialLocation, + routes: [ + GoRouteData.$route( + path: '/extension', + factory: $BrowseExtensionRouteExtension._fromState, + ), + ], + ), + ], + ), + ], ), - GoRouteData.$route( - path: '/downloads', - factory: $DownloadsRouteExtension._fromState, + StatefulShellBranchData.$branch( + routes: [ + GoRouteData.$route( + path: '/downloads', + factory: $DownloadsRouteExtension._fromState, + ), + ], ), - GoRouteData.$route( - path: '/more', - factory: $MoreRouteExtension._fromState, + StatefulShellBranchData.$branch( + routes: [ + GoRouteData.$route( + path: '/more', + factory: $MoreRouteExtension._fromState, + routes: [ + GoRouteData.$route( + path: 'about', + factory: $AboutRouteExtension._fromState, + ), + GoRouteData.$route( + path: 'settings', + factory: $SettingsRouteExtension._fromState, + routes: [ + GoRouteData.$route( + path: 'library', + factory: $LibrarySettingsRouteExtension._fromState, + routes: [ + GoRouteData.$route( + path: 'edit-categories', + factory: $EditCategoriesRouteExtension._fromState, + ), + ], + ), + GoRouteData.$route( + path: 'server', + factory: $ServerSettingsRouteExtension._fromState, + ), + GoRouteData.$route( + path: 'reader', + factory: $ReaderSettingsRouteExtension._fromState, + ), + GoRouteData.$route( + path: 'appearance', + factory: $AppearanceSettingsRouteExtension._fromState, + ), + GoRouteData.$route( + path: 'general', + factory: $GeneralSettingsRouteExtension._fromState, + ), + GoRouteData.$route( + path: 'browse', + factory: $BrowseSettingsRouteExtension._fromState, + routes: [ + GoRouteData.$route( + path: 'repo', + factory: + $ExtensionRepositoryRouteExtension._fromState, + ), + ], + ), + GoRouteData.$route( + path: 'backup', + factory: $BackupRouteExtension._fromState, + ), + ], + ), + ], + ), + ], ), ], ), GoRouteData.$route( path: '/manga/:mangaId', - parentNavigatorKey: MangaRoute.$parentNavigatorKey, factory: $MangaRouteExtension._fromState, + routes: [ + GoRouteData.$route( + path: 'chapter/:chapterIndex', + parentNavigatorKey: ReaderRoute.$parentNavigatorKey, + factory: $ReaderRouteExtension._fromState, + ), + ], ), GoRouteData.$route( path: '/update-status', - parentNavigatorKey: UpdateStatusRoute.$parentNavigatorKey, factory: $UpdateStatusRouteExtension._fromState, ), GoRouteData.$route( @@ -59,75 +170,6 @@ RouteBase get $quickSearchRoute => ShellRouteData.$route( parentNavigatorKey: GlobalSearchRoute.$parentNavigatorKey, factory: $GlobalSearchRouteExtension._fromState, ), - GoRouteData.$route( - path: '/source/:sourceId/preference', - parentNavigatorKey: SourcePreferenceRoute.$parentNavigatorKey, - factory: $SourcePreferenceRouteExtension._fromState, - ), - GoRouteData.$route( - path: '/source/:sourceId/:sourceType', - parentNavigatorKey: SourceMangaRoute.$parentNavigatorKey, - factory: $SourceMangaRouteExtension._fromState, - ), - GoRouteData.$route( - path: '/about', - parentNavigatorKey: AboutRoute.$parentNavigatorKey, - factory: $AboutRouteExtension._fromState, - ), - GoRouteData.$route( - path: '/manga/:mangaId/chapter/:chapterIndex', - parentNavigatorKey: ReaderRoute.$parentNavigatorKey, - factory: $ReaderRouteExtension._fromState, - ), - GoRouteData.$route( - path: '/settings', - parentNavigatorKey: SettingsRoute.$parentNavigatorKey, - factory: $SettingsRouteExtension._fromState, - routes: [ - GoRouteData.$route( - path: 'library', - parentNavigatorKey: LibrarySettingsRoute.$parentNavigatorKey, - factory: $LibrarySettingsRouteExtension._fromState, - routes: [ - GoRouteData.$route( - path: 'edit-categories', - parentNavigatorKey: EditCategoriesRoute.$parentNavigatorKey, - factory: $EditCategoriesRouteExtension._fromState, - ), - ], - ), - GoRouteData.$route( - path: 'server', - parentNavigatorKey: ServerSettingsRoute.$parentNavigatorKey, - factory: $ServerSettingsRouteExtension._fromState, - ), - GoRouteData.$route( - path: 'reader', - parentNavigatorKey: ReaderSettingsRoute.$parentNavigatorKey, - factory: $ReaderSettingsRouteExtension._fromState, - ), - GoRouteData.$route( - path: 'appearance', - parentNavigatorKey: AppearanceSettingsRoute.$parentNavigatorKey, - factory: $AppearanceSettingsRouteExtension._fromState, - ), - GoRouteData.$route( - path: 'general', - parentNavigatorKey: GeneralSettingsRoute.$parentNavigatorKey, - factory: $GeneralSettingsRouteExtension._fromState, - ), - GoRouteData.$route( - path: 'browse', - parentNavigatorKey: BrowseSettingsRoute.$parentNavigatorKey, - factory: $BrowseSettingsRouteExtension._fromState, - ), - GoRouteData.$route( - path: 'backup', - parentNavigatorKey: BackupRoute.$parentNavigatorKey, - factory: $BackupRouteExtension._fromState, - ), - ], - ), ], ); @@ -136,15 +178,18 @@ extension $QuickSearchRouteExtension on QuickSearchRoute { const QuickSearchRoute(); } -extension $ShellRouteExtension on ShellRoute { - static ShellRoute _fromState(GoRouterState state) => const ShellRoute(); +extension $NavigationShellRouteExtension on NavigationShellRoute { + static NavigationShellRoute _fromState(GoRouterState state) => + const NavigationShellRoute(); } -extension $HomeRouteExtension on HomeRoute { - static HomeRoute _fromState(GoRouterState state) => const HomeRoute(); +extension $LibraryRouteExtension on LibraryRoute { + static LibraryRoute _fromState(GoRouterState state) => LibraryRoute( + categoryId: int.parse(state.pathParameters['categoryId']!), + ); String get location => GoRouteData.$location( - '/', + '/library/${Uri.encodeComponent(categoryId.toString())}', ); void go(BuildContext context) => context.go(location); @@ -157,18 +202,11 @@ extension $HomeRouteExtension on HomeRoute { void replace(BuildContext context) => context.replace(location); } -extension $LibraryRouteExtension on LibraryRoute { - static LibraryRoute _fromState(GoRouterState state) => LibraryRoute( - initialCategoryOrder: _$convertMapValue( - 'initial-category-order', state.uri.queryParameters, int.parse), - ); +extension $UpdatesRouteExtension on UpdatesRoute { + static UpdatesRoute _fromState(GoRouterState state) => const UpdatesRoute(); String get location => GoRouteData.$location( - '/library', - queryParams: { - if (initialCategoryOrder != null) - 'initial-category-order': initialCategoryOrder!.toString(), - }, + '/updates', ); void go(BuildContext context) => context.go(location); @@ -181,11 +219,17 @@ extension $LibraryRouteExtension on LibraryRoute { void replace(BuildContext context) => context.replace(location); } -extension $UpdatesRouteExtension on UpdatesRoute { - static UpdatesRoute _fromState(GoRouterState state) => const UpdatesRoute(); +extension $BrowseShellRouteExtension on BrowseShellRoute { + static BrowseShellRoute _fromState(GoRouterState state) => + const BrowseShellRoute(); +} + +extension $BrowseSourceRouteExtension on BrowseSourceRoute { + static BrowseSourceRoute _fromState(GoRouterState state) => + const BrowseSourceRoute(); String get location => GoRouteData.$location( - '/updates', + '/source', ); void go(BuildContext context) => context.go(location); @@ -198,11 +242,48 @@ extension $UpdatesRouteExtension on UpdatesRoute { void replace(BuildContext context) => context.replace(location); } -extension $BrowseRouteExtension on BrowseRoute { - static BrowseRoute _fromState(GoRouterState state) => const BrowseRoute(); +extension $SourceTypeRouteExtension on SourceTypeRoute { + static SourceTypeRoute _fromState(GoRouterState state) => SourceTypeRoute( + sourceId: state.pathParameters['sourceId']!, + sourceType: + _$SourceTypeEnumMap._$fromName(state.pathParameters['sourceType']!), + query: state.uri.queryParameters['query'], + $extra: state.extra as List?, + ); + + String get location => GoRouteData.$location( + '/source/${Uri.encodeComponent(sourceId)}/${Uri.encodeComponent(_$SourceTypeEnumMap[sourceType]!)}', + queryParams: { + if (query != null) 'query': query, + }, + ); + + void go(BuildContext context) => context.go(location, extra: $extra); + + Future push(BuildContext context) => + context.push(location, extra: $extra); + + void pushReplacement(BuildContext context) => + context.pushReplacement(location, extra: $extra); + + void replace(BuildContext context) => + context.replace(location, extra: $extra); +} + +const _$SourceTypeEnumMap = { + SourceType.latest: 'latest', + SourceType.popular: 'popular', + SourceType.filter: 'filter', +}; + +extension $SourcePreferenceRouteExtension on SourcePreferenceRoute { + static SourcePreferenceRoute _fromState(GoRouterState state) => + SourcePreferenceRoute( + sourceId: state.pathParameters['sourceId']!, + ); String get location => GoRouteData.$location( - '/browse', + '/source/${Uri.encodeComponent(sourceId)}/preference', ); void go(BuildContext context) => context.go(location); @@ -215,12 +296,12 @@ extension $BrowseRouteExtension on BrowseRoute { void replace(BuildContext context) => context.replace(location); } -extension $DownloadsRouteExtension on DownloadsRoute { - static DownloadsRoute _fromState(GoRouterState state) => - const DownloadsRoute(); +extension $BrowseExtensionRouteExtension on BrowseExtensionRoute { + static BrowseExtensionRoute _fromState(GoRouterState state) => + const BrowseExtensionRoute(); String get location => GoRouteData.$location( - '/downloads', + '/extension', ); void go(BuildContext context) => context.go(location); @@ -233,11 +314,12 @@ extension $DownloadsRouteExtension on DownloadsRoute { void replace(BuildContext context) => context.replace(location); } -extension $MoreRouteExtension on MoreRoute { - static MoreRoute _fromState(GoRouterState state) => const MoreRoute(); +extension $DownloadsRouteExtension on DownloadsRoute { + static DownloadsRoute _fromState(GoRouterState state) => + const DownloadsRoute(); String get location => GoRouteData.$location( - '/more', + '/downloads', ); void go(BuildContext context) => context.go(location); @@ -250,18 +332,11 @@ extension $MoreRouteExtension on MoreRoute { void replace(BuildContext context) => context.replace(location); } -extension $MangaRouteExtension on MangaRoute { - static MangaRoute _fromState(GoRouterState state) => MangaRoute( - mangaId: int.parse(state.pathParameters['mangaId']!), - categoryId: _$convertMapValue( - 'category-id', state.uri.queryParameters, int.parse), - ); +extension $MoreRouteExtension on MoreRoute { + static MoreRoute _fromState(GoRouterState state) => const MoreRoute(); String get location => GoRouteData.$location( - '/manga/${Uri.encodeComponent(mangaId.toString())}', - queryParams: { - if (categoryId != null) 'category-id': categoryId!.toString(), - }, + '/more', ); void go(BuildContext context) => context.go(location); @@ -274,12 +349,11 @@ extension $MangaRouteExtension on MangaRoute { void replace(BuildContext context) => context.replace(location); } -extension $UpdateStatusRouteExtension on UpdateStatusRoute { - static UpdateStatusRoute _fromState(GoRouterState state) => - const UpdateStatusRoute(); +extension $AboutRouteExtension on AboutRoute { + static AboutRoute _fromState(GoRouterState state) => const AboutRoute(); String get location => GoRouteData.$location( - '/update-status', + '/more/about', ); void go(BuildContext context) => context.go(location); @@ -292,16 +366,11 @@ extension $UpdateStatusRouteExtension on UpdateStatusRoute { void replace(BuildContext context) => context.replace(location); } -extension $GlobalSearchRouteExtension on GlobalSearchRoute { - static GlobalSearchRoute _fromState(GoRouterState state) => GlobalSearchRoute( - query: state.uri.queryParameters['query'], - ); +extension $SettingsRouteExtension on SettingsRoute { + static SettingsRoute _fromState(GoRouterState state) => const SettingsRoute(); String get location => GoRouteData.$location( - '/global-search', - queryParams: { - if (query != null) 'query': query, - }, + '/more/settings', ); void go(BuildContext context) => context.go(location); @@ -314,14 +383,12 @@ extension $GlobalSearchRouteExtension on GlobalSearchRoute { void replace(BuildContext context) => context.replace(location); } -extension $SourcePreferenceRouteExtension on SourcePreferenceRoute { - static SourcePreferenceRoute _fromState(GoRouterState state) => - SourcePreferenceRoute( - sourceId: state.pathParameters['sourceId']!, - ); +extension $LibrarySettingsRouteExtension on LibrarySettingsRoute { + static LibrarySettingsRoute _fromState(GoRouterState state) => + const LibrarySettingsRoute(); String get location => GoRouteData.$location( - '/source/${Uri.encodeComponent(sourceId)}/preference', + '/more/settings/library', ); void go(BuildContext context) => context.go(location); @@ -334,45 +401,30 @@ extension $SourcePreferenceRouteExtension on SourcePreferenceRoute { void replace(BuildContext context) => context.replace(location); } -extension $SourceMangaRouteExtension on SourceMangaRoute { - static SourceMangaRoute _fromState(GoRouterState state) => SourceMangaRoute( - sourceId: state.pathParameters['sourceId']!, - sourceType: - _$SourceTypeEnumMap._$fromName(state.pathParameters['sourceType']!), - query: state.uri.queryParameters['query'], - $extra: state.extra as List?, - ); +extension $EditCategoriesRouteExtension on EditCategoriesRoute { + static EditCategoriesRoute _fromState(GoRouterState state) => + const EditCategoriesRoute(); String get location => GoRouteData.$location( - '/source/${Uri.encodeComponent(sourceId)}/${Uri.encodeComponent(_$SourceTypeEnumMap[sourceType]!)}', - queryParams: { - if (query != null) 'query': query, - }, + '/more/settings/library/edit-categories', ); - void go(BuildContext context) => context.go(location, extra: $extra); + void go(BuildContext context) => context.go(location); - Future push(BuildContext context) => - context.push(location, extra: $extra); + Future push(BuildContext context) => context.push(location); void pushReplacement(BuildContext context) => - context.pushReplacement(location, extra: $extra); + context.pushReplacement(location); - void replace(BuildContext context) => - context.replace(location, extra: $extra); + void replace(BuildContext context) => context.replace(location); } -const _$SourceTypeEnumMap = { - SourceType.latest: 'latest', - SourceType.popular: 'popular', - SourceType.filter: 'filter', -}; - -extension $AboutRouteExtension on AboutRoute { - static AboutRoute _fromState(GoRouterState state) => const AboutRoute(); +extension $ServerSettingsRouteExtension on ServerSettingsRoute { + static ServerSettingsRoute _fromState(GoRouterState state) => + const ServerSettingsRoute(); String get location => GoRouteData.$location( - '/about', + '/more/settings/server', ); void go(BuildContext context) => context.go(location); @@ -385,31 +437,12 @@ extension $AboutRouteExtension on AboutRoute { void replace(BuildContext context) => context.replace(location); } -extension $ReaderRouteExtension on ReaderRoute { - static ReaderRoute _fromState(GoRouterState state) => ReaderRoute( - mangaId: int.parse(state.pathParameters['mangaId']!), - chapterIndex: int.parse(state.pathParameters['chapterIndex']!), - transVertical: _$convertMapValue( - 'trans-vertical', state.uri.queryParameters, _$boolConverter), - toPrev: _$convertMapValue( - 'to-prev', state.uri.queryParameters, _$boolConverter), - showReaderLayoutAnimation: _$convertMapValue( - 'show-reader-layout-animation', - state.uri.queryParameters, - _$boolConverter) ?? - false, - ); +extension $ReaderSettingsRouteExtension on ReaderSettingsRoute { + static ReaderSettingsRoute _fromState(GoRouterState state) => + const ReaderSettingsRoute(); String get location => GoRouteData.$location( - '/manga/${Uri.encodeComponent(mangaId.toString())}/chapter/${Uri.encodeComponent(chapterIndex.toString())}', - queryParams: { - if (transVertical != null) - 'trans-vertical': transVertical!.toString(), - if (toPrev != null) 'to-prev': toPrev!.toString(), - if (showReaderLayoutAnimation != false) - 'show-reader-layout-animation': - showReaderLayoutAnimation.toString(), - }, + '/more/settings/reader', ); void go(BuildContext context) => context.go(location); @@ -422,11 +455,12 @@ extension $ReaderRouteExtension on ReaderRoute { void replace(BuildContext context) => context.replace(location); } -extension $SettingsRouteExtension on SettingsRoute { - static SettingsRoute _fromState(GoRouterState state) => const SettingsRoute(); +extension $AppearanceSettingsRouteExtension on AppearanceSettingsRoute { + static AppearanceSettingsRoute _fromState(GoRouterState state) => + const AppearanceSettingsRoute(); String get location => GoRouteData.$location( - '/settings', + '/more/settings/appearance', ); void go(BuildContext context) => context.go(location); @@ -439,12 +473,12 @@ extension $SettingsRouteExtension on SettingsRoute { void replace(BuildContext context) => context.replace(location); } -extension $LibrarySettingsRouteExtension on LibrarySettingsRoute { - static LibrarySettingsRoute _fromState(GoRouterState state) => - const LibrarySettingsRoute(); +extension $GeneralSettingsRouteExtension on GeneralSettingsRoute { + static GeneralSettingsRoute _fromState(GoRouterState state) => + const GeneralSettingsRoute(); String get location => GoRouteData.$location( - '/settings/library', + '/more/settings/general', ); void go(BuildContext context) => context.go(location); @@ -457,12 +491,12 @@ extension $LibrarySettingsRouteExtension on LibrarySettingsRoute { void replace(BuildContext context) => context.replace(location); } -extension $EditCategoriesRouteExtension on EditCategoriesRoute { - static EditCategoriesRoute _fromState(GoRouterState state) => - const EditCategoriesRoute(); +extension $BrowseSettingsRouteExtension on BrowseSettingsRoute { + static BrowseSettingsRoute _fromState(GoRouterState state) => + const BrowseSettingsRoute(); String get location => GoRouteData.$location( - '/settings/library/edit-categories', + '/more/settings/browse', ); void go(BuildContext context) => context.go(location); @@ -475,12 +509,12 @@ extension $EditCategoriesRouteExtension on EditCategoriesRoute { void replace(BuildContext context) => context.replace(location); } -extension $ServerSettingsRouteExtension on ServerSettingsRoute { - static ServerSettingsRoute _fromState(GoRouterState state) => - const ServerSettingsRoute(); +extension $ExtensionRepositoryRouteExtension on ExtensionRepositoryRoute { + static ExtensionRepositoryRoute _fromState(GoRouterState state) => + const ExtensionRepositoryRoute(); String get location => GoRouteData.$location( - '/settings/server', + '/more/settings/browse/repo', ); void go(BuildContext context) => context.go(location); @@ -493,12 +527,11 @@ extension $ServerSettingsRouteExtension on ServerSettingsRoute { void replace(BuildContext context) => context.replace(location); } -extension $ReaderSettingsRouteExtension on ReaderSettingsRoute { - static ReaderSettingsRoute _fromState(GoRouterState state) => - const ReaderSettingsRoute(); +extension $BackupRouteExtension on BackupRoute { + static BackupRoute _fromState(GoRouterState state) => const BackupRoute(); String get location => GoRouteData.$location( - '/settings/reader', + '/more/settings/backup', ); void go(BuildContext context) => context.go(location); @@ -511,12 +544,18 @@ extension $ReaderSettingsRouteExtension on ReaderSettingsRoute { void replace(BuildContext context) => context.replace(location); } -extension $AppearanceSettingsRouteExtension on AppearanceSettingsRoute { - static AppearanceSettingsRoute _fromState(GoRouterState state) => - const AppearanceSettingsRoute(); +extension $MangaRouteExtension on MangaRoute { + static MangaRoute _fromState(GoRouterState state) => MangaRoute( + mangaId: int.parse(state.pathParameters['mangaId']!), + categoryId: _$convertMapValue( + 'category-id', state.uri.queryParameters, int.parse), + ); String get location => GoRouteData.$location( - '/settings/appearance', + '/manga/${Uri.encodeComponent(mangaId.toString())}', + queryParams: { + if (categoryId != null) 'category-id': categoryId!.toString(), + }, ); void go(BuildContext context) => context.go(location); @@ -529,12 +568,31 @@ extension $AppearanceSettingsRouteExtension on AppearanceSettingsRoute { void replace(BuildContext context) => context.replace(location); } -extension $GeneralSettingsRouteExtension on GeneralSettingsRoute { - static GeneralSettingsRoute _fromState(GoRouterState state) => - const GeneralSettingsRoute(); +extension $ReaderRouteExtension on ReaderRoute { + static ReaderRoute _fromState(GoRouterState state) => ReaderRoute( + mangaId: int.parse(state.pathParameters['mangaId']!), + chapterIndex: int.parse(state.pathParameters['chapterIndex']!), + transVertical: _$convertMapValue( + 'trans-vertical', state.uri.queryParameters, _$boolConverter), + toPrev: _$convertMapValue( + 'to-prev', state.uri.queryParameters, _$boolConverter), + showReaderLayoutAnimation: _$convertMapValue( + 'show-reader-layout-animation', + state.uri.queryParameters, + _$boolConverter) ?? + false, + ); String get location => GoRouteData.$location( - '/settings/general', + '/manga/${Uri.encodeComponent(mangaId.toString())}/chapter/${Uri.encodeComponent(chapterIndex.toString())}', + queryParams: { + if (transVertical != null) + 'trans-vertical': transVertical!.toString(), + if (toPrev != null) 'to-prev': toPrev!.toString(), + if (showReaderLayoutAnimation != false) + 'show-reader-layout-animation': + showReaderLayoutAnimation.toString(), + }, ); void go(BuildContext context) => context.go(location); @@ -547,12 +605,12 @@ extension $GeneralSettingsRouteExtension on GeneralSettingsRoute { void replace(BuildContext context) => context.replace(location); } -extension $BrowseSettingsRouteExtension on BrowseSettingsRoute { - static BrowseSettingsRoute _fromState(GoRouterState state) => - const BrowseSettingsRoute(); +extension $UpdateStatusRouteExtension on UpdateStatusRoute { + static UpdateStatusRoute _fromState(GoRouterState state) => + const UpdateStatusRoute(); String get location => GoRouteData.$location( - '/settings/browse', + '/update-status', ); void go(BuildContext context) => context.go(location); @@ -565,11 +623,16 @@ extension $BrowseSettingsRouteExtension on BrowseSettingsRoute { void replace(BuildContext context) => context.replace(location); } -extension $BackupRouteExtension on BackupRoute { - static BackupRoute _fromState(GoRouterState state) => const BackupRoute(); +extension $GlobalSearchRouteExtension on GlobalSearchRoute { + static GlobalSearchRoute _fromState(GoRouterState state) => GlobalSearchRoute( + query: state.uri.queryParameters['query'], + ); String get location => GoRouteData.$location( - '/settings/backup', + '/global-search', + queryParams: { + if (query != null) 'query': query, + }, ); void go(BuildContext context) => context.go(location); @@ -582,6 +645,11 @@ extension $BackupRouteExtension on BackupRoute { void replace(BuildContext context) => context.replace(location); } +extension on Map { + T _$fromName(String value) => + entries.singleWhere((element) => element.value == value).key; +} + T? _$convertMapValue( String key, Map map, @@ -591,11 +659,6 @@ T? _$convertMapValue( return value == null ? null : converter(value); } -extension on Map { - T _$fromName(String value) => - entries.singleWhere((element) => element.value == value).key; -} - bool _$boolConverter(String value) { switch (value) { case 'true': @@ -611,7 +674,7 @@ bool _$boolConverter(String value) { // RiverpodGenerator // ************************************************************************** -String _$routerConfigHash() => r'c9473ad31b2ecd6bf97eb8e0a2a4edf6683e5f6f'; +String _$routerConfigHash() => r'3a0231101ce98d6c94836b9846853185ecab9ef2'; /// See also [routerConfig]. @ProviderFor(routerConfig) diff --git a/lib/src/routes/sub_routes/browser_routes.dart b/lib/src/routes/sub_routes/browser_routes.dart new file mode 100644 index 00000000..9c0b09ba --- /dev/null +++ b/lib/src/routes/sub_routes/browser_routes.dart @@ -0,0 +1,88 @@ +part of '../router_config.dart'; + +class BrowserBranch extends StatefulShellBranchData { + const BrowserBranch(); + static final $initialLocation = const BrowseSourceRoute().location; +} + +class BrowseShellRoute extends StatefulShellRouteData { + const BrowseShellRoute(); + + static final $navigatorKey = _browseNavigatorKey; + + static Widget $navigatorContainerBuilder( + BuildContext context, + StatefulNavigationShell navigationShell, + List children, + ) => + BrowseScreen( + key: const ValueKey('browse'), + currentIndex: navigationShell.currentIndex, + onDestinationSelected: (index) => navigationShell.goBranch( + index, + initialLocation: index == navigationShell.currentIndex, + ), + children: children, + ); + + @override + Widget builder(context, state, navigationShell) => navigationShell; +} + +class BrowseExtensionBranch extends StatefulShellBranchData { + const BrowseExtensionBranch(); + static final $initialLocation = const BrowseExtensionRoute().location; +} + +class BrowseExtensionRoute extends GoRouteData { + const BrowseExtensionRoute(); + + @override + Widget build(context, state) => const ExtensionScreen(); +} + +class BrowseSourceBranch extends StatefulShellBranchData { + const BrowseSourceBranch(); + static final $initialLocation = const BrowseSourceRoute().location; +} + +class BrowseSourceRoute extends GoRouteData { + const BrowseSourceRoute(); + + @override + Widget build(context, state) => const SourceScreen(); +} + +class SourceTypeRoute extends GoRouteData { + const SourceTypeRoute({ + required this.sourceId, + required this.sourceType, + this.query, + this.$extra, + }); + final String sourceId; + final SourceType sourceType; + final String? query; + final List? $extra; + + static final $parentNavigatorKey = _quickOpenNavigatorKey; + + @override + Widget build(context, state) => SourceMangaListScreen( + key: ValueKey('$sourceId-$sourceType'), + sourceId: sourceId, + sourceType: sourceType, + initialQuery: query, + initialFilter: $extra, + ); +} + +class SourcePreferenceRoute extends GoRouteData { + const SourcePreferenceRoute({required this.sourceId}); + + static final $parentNavigatorKey = _quickOpenNavigatorKey; + final String sourceId; + + @override + Widget build(context, state) => SourcePreferenceScreen(sourceId: sourceId); +} diff --git a/lib/src/routes/sub_routes/common_routes.dart b/lib/src/routes/sub_routes/common_routes.dart new file mode 100644 index 00000000..042d532d --- /dev/null +++ b/lib/src/routes/sub_routes/common_routes.dart @@ -0,0 +1,77 @@ +part of '../router_config.dart'; + +// +class MangaRoute extends GoRouteData { + const MangaRoute({required this.mangaId, this.categoryId}); + final int mangaId; + final int? categoryId; + + @override + Widget build(BuildContext context, GoRouterState state) => + MangaDetailsScreen(mangaId: mangaId, categoryId: categoryId); +} + +class UpdateStatusRoute extends GoRouteData { + const UpdateStatusRoute(); + @override + Widget build(BuildContext context, GoRouterState state) => + const UpdateStatusSummaryDialog(); +} + +class ReaderRoute extends GoRouteData { + const ReaderRoute({ + required this.mangaId, + required this.chapterIndex, + this.transVertical, + this.toPrev, + this.showReaderLayoutAnimation = false, + }); + final int mangaId; + final int chapterIndex; + final bool? transVertical; + final bool? toPrev; + final bool showReaderLayoutAnimation; + + static final $parentNavigatorKey = _quickOpenNavigatorKey; + + @override + Page buildPage(context, state) { + return CustomTransitionPage( + key: state.pageKey, + child: ReaderScreen( + mangaId: mangaId, + chapterIndex: chapterIndex, + showReaderLayoutAnimation: showReaderLayoutAnimation, + ), + transitionsBuilder: (context, animation, secondaryAnimation, child) { + Offset offset = Offset.zero; + offset += Offset( + transVertical.ifNull() ? 0 : 1, + transVertical.ifNull() ? 1 : 0, + ); + if (toPrev.ifNull()) { + offset *= -1; + } + + return SlideTransition( + position: Tween( + begin: offset, + end: Offset.zero, + ).animate(animation), + child: child, + ); + }, + ); + } +} + +class GlobalSearchRoute extends GoRouteData { + const GlobalSearchRoute({this.query}); + final String? query; + + static final $parentNavigatorKey = _quickOpenNavigatorKey; + + @override + Widget build(BuildContext context, GoRouterState state) => + GlobalSearchScreen(key: ValueKey(query), initialQuery: query); +} diff --git a/lib/src/routes/sub_routes/downloads_routes.dart b/lib/src/routes/sub_routes/downloads_routes.dart new file mode 100644 index 00000000..af5ef8a6 --- /dev/null +++ b/lib/src/routes/sub_routes/downloads_routes.dart @@ -0,0 +1,11 @@ +part of '../router_config.dart'; + +class DownloadsBranch extends StatefulShellBranchData { + const DownloadsBranch(); +} + +class DownloadsRoute extends GoRouteData { + const DownloadsRoute(); + @override + Widget build(context, state) => const DownloadsScreen(); +} diff --git a/lib/src/routes/sub_routes/library_routes.dart b/lib/src/routes/sub_routes/library_routes.dart new file mode 100644 index 00000000..58349c07 --- /dev/null +++ b/lib/src/routes/sub_routes/library_routes.dart @@ -0,0 +1,14 @@ +part of '../router_config.dart'; + +// Library Branch +class LibraryBranch extends StatefulShellBranchData { + static final $initialLocation = const LibraryRoute(categoryId: 0).location; + const LibraryBranch(); +} + +class LibraryRoute extends GoRouteData { + const LibraryRoute({required this.categoryId}); + final int categoryId; + @override + Widget build(context, state) => LibraryScreen(categoryId: categoryId); +} diff --git a/lib/src/routes/sub_routes/more_routes.dart b/lib/src/routes/sub_routes/more_routes.dart new file mode 100644 index 00000000..2a6a5bf6 --- /dev/null +++ b/lib/src/routes/sub_routes/more_routes.dart @@ -0,0 +1,88 @@ +part of '../router_config.dart'; + +class MoreBranch extends StatefulShellBranchData { + const MoreBranch(); +} + +class MoreRoute extends GoRouteData { + const MoreRoute(); + @override + Page buildPage(context, state) => + const NoTransitionPage(child: MoreScreen()); +} + +class AboutRoute extends GoRouteData { + const AboutRoute(); + + @override + Widget build(context, state) => const AboutScreen(); +} + +class SettingsRoute extends GoRouteData { + const SettingsRoute(); + + @override + Widget build(context, state) => const SettingsScreen(); +} + +class LibrarySettingsRoute extends GoRouteData { + const LibrarySettingsRoute(); + + @override + Widget build(context, state) => const LibrarySettingsScreen(); +} + +class EditCategoriesRoute extends GoRouteData { + const EditCategoriesRoute(); + + @override + Widget build(context, state) => const EditCategoryScreen(); +} + +class ReaderSettingsRoute extends GoRouteData { + const ReaderSettingsRoute(); + + @override + Widget build(context, state) => const ReaderSettingsScreen(); +} + +class AppearanceSettingsRoute extends GoRouteData { + const AppearanceSettingsRoute(); + + @override + Widget build(context, state) => const AppearanceScreen(); +} + +class GeneralSettingsRoute extends GoRouteData { + const GeneralSettingsRoute(); + + @override + Widget build(context, state) => const GeneralScreen(); +} + +class BrowseSettingsRoute extends GoRouteData { + const BrowseSettingsRoute(); + + @override + Widget build(context, state) => const BrowseSettingsScreen(); +} + +class ExtensionRepositoryRoute extends GoRouteData { + const ExtensionRepositoryRoute(); + + @override + Widget build(context, state) => const ExtensionRepositoryScreen(); +} + +class BackupRoute extends GoRouteData { + const BackupRoute(); + @override + Widget build(context, state) => const BackupScreen(); +} + +class ServerSettingsRoute extends GoRouteData { + const ServerSettingsRoute(); + + @override + Widget build(context, state) => const ServerScreen(); +} diff --git a/lib/src/routes/sub_routes/updates_routes.dart b/lib/src/routes/sub_routes/updates_routes.dart new file mode 100644 index 00000000..7e3e0e1d --- /dev/null +++ b/lib/src/routes/sub_routes/updates_routes.dart @@ -0,0 +1,11 @@ +part of '../router_config.dart'; + +class UpdatesBranch extends StatefulShellBranchData { + const UpdatesBranch(); +} + +class UpdatesRoute extends GoRouteData { + const UpdatesRoute(); + @override + Widget build(context, state) => const UpdatesScreen(); +} diff --git a/lib/src/utils/extensions/cache_manager_extensions.dart b/lib/src/utils/extensions/cache_manager_extensions.dart index df46839c..8ba39bd2 100644 --- a/lib/src/utils/extensions/cache_manager_extensions.dart +++ b/lib/src/utils/extensions/cache_manager_extensions.dart @@ -11,9 +11,9 @@ import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../constants/endpoints.dart'; import '../../constants/enum.dart'; +import '../../features/settings/presentation/server/widget/client/server_port_tile/server_port_tile.dart'; +import '../../features/settings/presentation/server/widget/client/server_url_tile/server_url_tile.dart'; import '../../features/settings/presentation/server/widget/credential_popup/credentials_popup.dart'; -import '../../features/settings/widgets/server_port_tile/server_port_tile.dart'; -import '../../features/settings/widgets/server_url_tile/server_url_tile.dart'; import '../../global_providers/global_providers.dart'; import 'custom_extensions.dart'; diff --git a/lib/src/utils/extensions/custom_extensions/async_value_extensions.dart b/lib/src/utils/extensions/custom_extensions/async_value_extensions.dart index e6964038..9ef6eb10 100644 --- a/lib/src/utils/extensions/custom_extensions/async_value_extensions.dart +++ b/lib/src/utils/extensions/custom_extensions/async_value_extensions.dart @@ -20,7 +20,8 @@ extension AsyncValueExtensions on AsyncValue { } } - void showToastOnError(Toast toast, {bool withMicrotask = false}) { + void showToastOnError(Toast? toast, {bool withMicrotask = false}) { + if (toast == null) return; if (withMicrotask) { Future.microtask(() => (this._showToastOnError(toast))); } else { @@ -28,7 +29,7 @@ extension AsyncValueExtensions on AsyncValue { } } - T? valueOrToast(Toast toast, {bool withMicrotask = false}) => + T? valueOrToast(Toast? toast, {bool withMicrotask = false}) => (this..showToastOnError(toast, withMicrotask: withMicrotask)).valueOrNull; Widget showUiWhenData( @@ -48,7 +49,7 @@ extension AsyncValueExtensions on AsyncValue { error: (error, trace) => AppUtils.wrapOn( wrapper, Emoticons( - text: showGenericError + title: showGenericError ? context.l10n.errorSomethingWentWrong : error.toString(), button: refresh != null diff --git a/lib/src/utils/extensions/custom_extensions/ferry_extensions.dart b/lib/src/utils/extensions/custom_extensions/ferry_extensions.dart index a497e604..c89b6161 100644 --- a/lib/src/utils/extensions/custom_extensions/ferry_extensions.dart +++ b/lib/src/utils/extensions/custom_extensions/ferry_extensions.dart @@ -10,6 +10,10 @@ extension FerryExtensions on Client { TData? data = event.data; if (event.hasErrors) { if (event.linkException != null) { + if (event.linkException! is ServerException) { + throw ServerMessageException( + event.linkException! as ServerException); + } throw event.linkException!; } else { throw GraphQlException(event.graphqlErrors!); @@ -25,5 +29,14 @@ class GraphQlException implements Exception { GraphQlException(this.errors); @override - String toString() => "GraphQlExceptions(errors: $errors)"; + String toString() => errors.map((e) => e.message).join(", "); +} + +class ServerMessageException implements Exception { + final ServerException serverException; + + ServerMessageException(this.serverException); + + @override + String toString() => (serverException.parsedResponse?.response).toToastString; } diff --git a/lib/src/utils/extensions/custom_extensions/map_extensions.dart b/lib/src/utils/extensions/custom_extensions/map_extensions.dart index 4884438e..c42ddb06 100644 --- a/lib/src/utils/extensions/custom_extensions/map_extensions.dart +++ b/lib/src/utils/extensions/custom_extensions/map_extensions.dart @@ -29,4 +29,16 @@ extension NullableMapExtensions on Map? { bool get isBlank => isNull || this!.isEmpty; bool get isNotBlank => !isBlank; + + String get toToastString { + String result = ""; + this?.forEach((key, value) { + if (value == null) return; + if (result.isNotBlank) { + result += "\n"; + } + result += value.toString(); + }); + return result; + } } diff --git a/lib/src/utils/extensions/custom_extensions/string_extensions.dart b/lib/src/utils/extensions/custom_extensions/string_extensions.dart index bde395e7..c509d0f5 100644 --- a/lib/src/utils/extensions/custom_extensions/string_extensions.dart +++ b/lib/src/utils/extensions/custom_extensions/string_extensions.dart @@ -75,6 +75,12 @@ extension StringExtensions on String? { r'^(([^<>[\]\\.,;:\s@\"]+(\.[^<>[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$'); } + bool get isUrl { + if (isNull) return false; + return this!.hasMatch( + r'https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)'); + } + bool query([String? query]) { if (isNull) return false; if (query.isBlank) return true; @@ -118,4 +124,7 @@ extension StringExtensions on String? { } return TimeOfDay(hour: timeList.first!, minute: timeList.last!); } + + int getValueOnNullOrNegative([int i = 0]) => + int.tryParse(this ?? '')?.getValueOnNullOrNegative(i) ?? i; } diff --git a/lib/src/utils/misc/app_utils.dart b/lib/src/utils/misc/app_utils.dart index 537622c0..fb84c4bc 100644 --- a/lib/src/utils/misc/app_utils.dart +++ b/lib/src/utils/misc/app_utils.dart @@ -1,8 +1,10 @@ import 'dart:math'; import 'package:flutter/material.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../extensions/custom_extensions.dart'; +import 'toast/toast.dart'; abstract class AppUtils { static String? getPanFromGst(String gst) { @@ -61,4 +63,11 @@ abstract class AppUtils { } return resultParam; } + + static Future guard( + Future Function() future, + Toast? toast, [ + bool Function(Object)? test, + ]) async => + (await AsyncValue.guard(future, test)).valueOrToast(toast); } diff --git a/lib/src/utils/misc/number_range_formatter.dart b/lib/src/utils/misc/number_range_formatter.dart new file mode 100644 index 00000000..ee7dfc1b --- /dev/null +++ b/lib/src/utils/misc/number_range_formatter.dart @@ -0,0 +1,34 @@ +import 'package:flutter/services.dart'; + +class NumberRangeFormatter extends TextInputFormatter { + final int maxValue; + + NumberRangeFormatter({required this.maxValue}); + + @override + TextEditingValue formatEditUpdate( + TextEditingValue oldValue, + TextEditingValue newValue, + ) { + if (newValue.text.isEmpty) { + return const TextEditingValue( + text: "", + selection: TextSelection.collapsed(offset: 0), + ); + } + String truncated = newValue.text; + TextSelection newSelection = newValue.selection; + + int parsedValue = int.tryParse(newValue.text) ?? 0; + if (parsedValue > maxValue) { + truncated = oldValue.text; + newSelection = oldValue.selection; + } + + return TextEditingValue( + text: truncated, + selection: newSelection, + composing: TextRange.empty, + ); + } +} diff --git a/lib/src/utils/misc/toast/toast.dart b/lib/src/utils/misc/toast/toast.dart index e6ed79f2..8cfaa7bf 100644 --- a/lib/src/utils/misc/toast/toast.dart +++ b/lib/src/utils/misc/toast/toast.dart @@ -10,6 +10,7 @@ import 'package:gap/gap.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; import '../../../constants/app_sizes.dart'; +import '../../../routes/router_config.dart'; import '../../extensions/custom_extensions.dart'; part 'toast.g.dart'; @@ -110,4 +111,10 @@ class ToastWidget extends StatelessWidget { } @riverpod -Toast toast(ToastRef ref, BuildContext context) => Toast(context); +Toast? toast(ToastRef ref) { + final context = rootNavigatorKey.currentContext; + if (context == null) { + return null; + } + return Toast(context); +} diff --git a/lib/src/utils/misc/toast/toast.g.dart b/lib/src/utils/misc/toast/toast.g.dart index 7cc4d9f1..2dd35618 100644 --- a/lib/src/utils/misc/toast/toast.g.dart +++ b/lib/src/utils/misc/toast/toast.g.dart @@ -6,152 +6,19 @@ part of 'toast.dart'; // RiverpodGenerator // ************************************************************************** -String _$toastHash() => r'6bc9df511e9180eea4d509e57fdd4eed4c062779'; - -/// Copied from Dart SDK -class _SystemHash { - _SystemHash._(); - - static int combine(int hash, int value) { - // ignore: parameter_assignments - hash = 0x1fffffff & (hash + value); - // ignore: parameter_assignments - hash = 0x1fffffff & (hash + ((0x0007ffff & hash) << 10)); - return hash ^ (hash >> 6); - } - - static int finish(int hash) { - // ignore: parameter_assignments - hash = 0x1fffffff & (hash + ((0x03ffffff & hash) << 3)); - // ignore: parameter_assignments - hash = hash ^ (hash >> 11); - return 0x1fffffff & (hash + ((0x00003fff & hash) << 15)); - } -} +String _$toastHash() => r'c13a87ed8a1ac9c2957350093db525bd4db42e41'; /// See also [toast]. @ProviderFor(toast) -const toastProvider = ToastFamily(); - -/// See also [toast]. -class ToastFamily extends Family { - /// See also [toast]. - const ToastFamily(); - - /// See also [toast]. - ToastProvider call( - BuildContext context, - ) { - return ToastProvider( - context, - ); - } - - @override - ToastProvider getProviderOverride( - covariant ToastProvider provider, - ) { - return call( - provider.context, - ); - } - - static const Iterable? _dependencies = null; - - @override - Iterable? get dependencies => _dependencies; - - static const Iterable? _allTransitiveDependencies = null; - - @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; - - @override - String? get name => r'toastProvider'; -} - -/// See also [toast]. -class ToastProvider extends AutoDisposeProvider { - /// See also [toast]. - ToastProvider( - BuildContext context, - ) : this._internal( - (ref) => toast( - ref as ToastRef, - context, - ), - from: toastProvider, - name: r'toastProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') - ? null - : _$toastHash, - dependencies: ToastFamily._dependencies, - allTransitiveDependencies: ToastFamily._allTransitiveDependencies, - context: context, - ); - - ToastProvider._internal( - super._createNotifier, { - required super.name, - required super.dependencies, - required super.allTransitiveDependencies, - required super.debugGetCreateSourceHash, - required super.from, - required this.context, - }) : super.internal(); - - final BuildContext context; - - @override - Override overrideWith( - Toast Function(ToastRef provider) create, - ) { - return ProviderOverride( - origin: this, - override: ToastProvider._internal( - (ref) => create(ref as ToastRef), - from: from, - name: null, - dependencies: null, - allTransitiveDependencies: null, - debugGetCreateSourceHash: null, - context: context, - ), - ); - } - - @override - AutoDisposeProviderElement createElement() { - return _ToastProviderElement(this); - } - - @override - bool operator ==(Object other) { - return other is ToastProvider && other.context == context; - } - - @override - int get hashCode { - var hash = _SystemHash.combine(0, runtimeType.hashCode); - hash = _SystemHash.combine(hash, context.hashCode); - - return _SystemHash.finish(hash); - } -} - -mixin ToastRef on AutoDisposeProviderRef { - /// The parameter `context` of this provider. - BuildContext get context; -} - -class _ToastProviderElement extends AutoDisposeProviderElement - with ToastRef { - _ToastProviderElement(super.provider); - - @override - BuildContext get context => (origin as ToastProvider).context; -} +final toastProvider = AutoDisposeProvider.internal( + toast, + name: r'toastProvider', + debugGetCreateSourceHash: + const bool.fromEnvironment('dart.vm.product') ? null : _$toastHash, + dependencies: null, + allTransitiveDependencies: null, +); + +typedef ToastRef = AutoDisposeProviderRef; // ignore_for_file: type=lint // ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member diff --git a/lib/src/utils/storage/ferry/network_module.dart b/lib/src/utils/storage/ferry/network_module.dart index 5bf1285a..115cc07c 100644 --- a/lib/src/utils/storage/ferry/network_module.dart +++ b/lib/src/utils/storage/ferry/network_module.dart @@ -1,4 +1,5 @@ import 'dart:convert'; +import 'dart:developer'; import 'package:ferry/ferry.dart'; import 'package:ferry_hive_store/ferry_hive_store.dart'; @@ -15,8 +16,14 @@ part 'network_module.g.dart'; // Must be top-level function FutureOr> httpResponseDecoder( - http.Response httpResponse) async => - await compute(jsonDecode, httpResponse.body) as Map; + http.Response httpResponse) async { + try { + log(httpResponse.body); + return await compute(jsonDecode, httpResponse.body) as Map; + } catch (e) { + return {"response": httpResponse.body}; + } +} class FerryNetworkModule { Client provideFerry({ diff --git a/lib/src/widgets/emoticons.dart b/lib/src/widgets/emoticons.dart index 50900175..c0d1dca2 100644 --- a/lib/src/widgets/emoticons.dart +++ b/lib/src/widgets/emoticons.dart @@ -23,11 +23,13 @@ const errorFaces = [ class Emoticons extends HookWidget { const Emoticons({ super.key, - this.text, + this.title, + this.subTitle, this.button, this.iconData, }); - final String? text; + final String? title; + final String? subTitle; final IconData? iconData; final Widget? button; @@ -49,14 +51,22 @@ class Emoticons extends HookWidget { style: context.textTheme.displayMedium, ), const Gap(16), - if (text.isNotBlank) + if (title.isNotBlank) Text( - text!, + title!, textAlign: TextAlign.center, style: context.textTheme.titleMedium, overflow: TextOverflow.ellipsis, maxLines: 3, ), + if (title.isNotBlank) + Text( + subTitle!, + textAlign: TextAlign.center, + style: context.textTheme.bodySmall, + overflow: TextOverflow.ellipsis, + maxLines: 2, + ), if (button != null) button!, ], ), diff --git a/lib/src/widgets/input_popup/domain/input_popup_type.dart b/lib/src/widgets/input_popup/domain/input_popup_type.dart new file mode 100644 index 00000000..af34a04e --- /dev/null +++ b/lib/src/widgets/input_popup/domain/input_popup_type.dart @@ -0,0 +1,21 @@ +import 'package:freezed_annotation/freezed_annotation.dart'; + +part 'input_popup_type.freezed.dart'; + +@freezed +sealed class InputPopupType with _$InputPopupType { + const factory InputPopupType.textField({ + String? hintText, + }) = TextFieldPopup; + const factory InputPopupType.password({ + String? hintText, + }) = PasswordPopup; + const factory InputPopupType.numberPicker({ + required int min, + required int max, + }) = NumberPickerPopup; + const factory InputPopupType.numberSlider({ + required int min, + required int max, + }) = NumberSliderPopup; +} diff --git a/lib/src/widgets/input_popup/domain/input_popup_type.freezed.dart b/lib/src/widgets/input_popup/domain/input_popup_type.freezed.dart new file mode 100644 index 00000000..d3415b6b --- /dev/null +++ b/lib/src/widgets/input_popup/domain/input_popup_type.freezed.dart @@ -0,0 +1,694 @@ +// coverage:ignore-file +// GENERATED CODE - DO NOT MODIFY BY HAND +// 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 'input_popup_type.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +T _$identity(T value) => value; + +final _privateConstructorUsedError = UnsupportedError( + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); + +/// @nodoc +mixin _$InputPopupType { + @optionalTypeArgs + TResult when({ + required TResult Function(String? hintText) textField, + required TResult Function(String? hintText) password, + required TResult Function(int min, int max) numberPicker, + required TResult Function(int min, int max) numberSlider, + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(String? hintText)? textField, + TResult? Function(String? hintText)? password, + TResult? Function(int min, int max)? numberPicker, + TResult? Function(int min, int max)? numberSlider, + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(String? hintText)? textField, + TResult Function(String? hintText)? password, + TResult Function(int min, int max)? numberPicker, + TResult Function(int min, int max)? numberSlider, + required TResult orElse(), + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult map({ + required TResult Function(TextFieldPopup value) textField, + required TResult Function(PasswordPopup value) password, + required TResult Function(NumberPickerPopup value) numberPicker, + required TResult Function(NumberSliderPopup value) numberSlider, + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(TextFieldPopup value)? textField, + TResult? Function(PasswordPopup value)? password, + TResult? Function(NumberPickerPopup value)? numberPicker, + TResult? Function(NumberSliderPopup value)? numberSlider, + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult maybeMap({ + TResult Function(TextFieldPopup value)? textField, + TResult Function(PasswordPopup value)? password, + TResult Function(NumberPickerPopup value)? numberPicker, + TResult Function(NumberSliderPopup value)? numberSlider, + required TResult orElse(), + }) => + throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class $InputPopupTypeCopyWith<$Res> { + factory $InputPopupTypeCopyWith( + InputPopupType value, $Res Function(InputPopupType) then) = + _$InputPopupTypeCopyWithImpl<$Res, InputPopupType>; +} + +/// @nodoc +class _$InputPopupTypeCopyWithImpl<$Res, $Val extends InputPopupType> + implements $InputPopupTypeCopyWith<$Res> { + _$InputPopupTypeCopyWithImpl(this._value, this._then); + + // ignore: unused_field + final $Val _value; + // ignore: unused_field + final $Res Function($Val) _then; +} + +/// @nodoc +abstract class _$$TextFieldPopupImplCopyWith<$Res> { + factory _$$TextFieldPopupImplCopyWith(_$TextFieldPopupImpl value, + $Res Function(_$TextFieldPopupImpl) then) = + __$$TextFieldPopupImplCopyWithImpl<$Res>; + @useResult + $Res call({String? hintText}); +} + +/// @nodoc +class __$$TextFieldPopupImplCopyWithImpl<$Res> + extends _$InputPopupTypeCopyWithImpl<$Res, _$TextFieldPopupImpl> + implements _$$TextFieldPopupImplCopyWith<$Res> { + __$$TextFieldPopupImplCopyWithImpl( + _$TextFieldPopupImpl _value, $Res Function(_$TextFieldPopupImpl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? hintText = freezed, + }) { + return _then(_$TextFieldPopupImpl( + hintText: freezed == hintText + ? _value.hintText + : hintText // ignore: cast_nullable_to_non_nullable + as String?, + )); + } +} + +/// @nodoc + +class _$TextFieldPopupImpl implements TextFieldPopup { + const _$TextFieldPopupImpl({this.hintText}); + + @override + final String? hintText; + + @override + String toString() { + return 'InputPopupType.textField(hintText: $hintText)'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$TextFieldPopupImpl && + (identical(other.hintText, hintText) || + other.hintText == hintText)); + } + + @override + int get hashCode => Object.hash(runtimeType, hintText); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$TextFieldPopupImplCopyWith<_$TextFieldPopupImpl> get copyWith => + __$$TextFieldPopupImplCopyWithImpl<_$TextFieldPopupImpl>( + this, _$identity); + + @override + @optionalTypeArgs + TResult when({ + required TResult Function(String? hintText) textField, + required TResult Function(String? hintText) password, + required TResult Function(int min, int max) numberPicker, + required TResult Function(int min, int max) numberSlider, + }) { + return textField(hintText); + } + + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(String? hintText)? textField, + TResult? Function(String? hintText)? password, + TResult? Function(int min, int max)? numberPicker, + TResult? Function(int min, int max)? numberSlider, + }) { + return textField?.call(hintText); + } + + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(String? hintText)? textField, + TResult Function(String? hintText)? password, + TResult Function(int min, int max)? numberPicker, + TResult Function(int min, int max)? numberSlider, + required TResult orElse(), + }) { + if (textField != null) { + return textField(hintText); + } + return orElse(); + } + + @override + @optionalTypeArgs + TResult map({ + required TResult Function(TextFieldPopup value) textField, + required TResult Function(PasswordPopup value) password, + required TResult Function(NumberPickerPopup value) numberPicker, + required TResult Function(NumberSliderPopup value) numberSlider, + }) { + return textField(this); + } + + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(TextFieldPopup value)? textField, + TResult? Function(PasswordPopup value)? password, + TResult? Function(NumberPickerPopup value)? numberPicker, + TResult? Function(NumberSliderPopup value)? numberSlider, + }) { + return textField?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(TextFieldPopup value)? textField, + TResult Function(PasswordPopup value)? password, + TResult Function(NumberPickerPopup value)? numberPicker, + TResult Function(NumberSliderPopup value)? numberSlider, + required TResult orElse(), + }) { + if (textField != null) { + return textField(this); + } + return orElse(); + } +} + +abstract class TextFieldPopup implements InputPopupType { + const factory TextFieldPopup({final String? hintText}) = _$TextFieldPopupImpl; + + String? get hintText; + @JsonKey(ignore: true) + _$$TextFieldPopupImplCopyWith<_$TextFieldPopupImpl> get copyWith => + throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class _$$PasswordPopupImplCopyWith<$Res> { + factory _$$PasswordPopupImplCopyWith( + _$PasswordPopupImpl value, $Res Function(_$PasswordPopupImpl) then) = + __$$PasswordPopupImplCopyWithImpl<$Res>; + @useResult + $Res call({String? hintText}); +} + +/// @nodoc +class __$$PasswordPopupImplCopyWithImpl<$Res> + extends _$InputPopupTypeCopyWithImpl<$Res, _$PasswordPopupImpl> + implements _$$PasswordPopupImplCopyWith<$Res> { + __$$PasswordPopupImplCopyWithImpl( + _$PasswordPopupImpl _value, $Res Function(_$PasswordPopupImpl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? hintText = freezed, + }) { + return _then(_$PasswordPopupImpl( + hintText: freezed == hintText + ? _value.hintText + : hintText // ignore: cast_nullable_to_non_nullable + as String?, + )); + } +} + +/// @nodoc + +class _$PasswordPopupImpl implements PasswordPopup { + const _$PasswordPopupImpl({this.hintText}); + + @override + final String? hintText; + + @override + String toString() { + return 'InputPopupType.password(hintText: $hintText)'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$PasswordPopupImpl && + (identical(other.hintText, hintText) || + other.hintText == hintText)); + } + + @override + int get hashCode => Object.hash(runtimeType, hintText); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$PasswordPopupImplCopyWith<_$PasswordPopupImpl> get copyWith => + __$$PasswordPopupImplCopyWithImpl<_$PasswordPopupImpl>(this, _$identity); + + @override + @optionalTypeArgs + TResult when({ + required TResult Function(String? hintText) textField, + required TResult Function(String? hintText) password, + required TResult Function(int min, int max) numberPicker, + required TResult Function(int min, int max) numberSlider, + }) { + return password(hintText); + } + + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(String? hintText)? textField, + TResult? Function(String? hintText)? password, + TResult? Function(int min, int max)? numberPicker, + TResult? Function(int min, int max)? numberSlider, + }) { + return password?.call(hintText); + } + + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(String? hintText)? textField, + TResult Function(String? hintText)? password, + TResult Function(int min, int max)? numberPicker, + TResult Function(int min, int max)? numberSlider, + required TResult orElse(), + }) { + if (password != null) { + return password(hintText); + } + return orElse(); + } + + @override + @optionalTypeArgs + TResult map({ + required TResult Function(TextFieldPopup value) textField, + required TResult Function(PasswordPopup value) password, + required TResult Function(NumberPickerPopup value) numberPicker, + required TResult Function(NumberSliderPopup value) numberSlider, + }) { + return password(this); + } + + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(TextFieldPopup value)? textField, + TResult? Function(PasswordPopup value)? password, + TResult? Function(NumberPickerPopup value)? numberPicker, + TResult? Function(NumberSliderPopup value)? numberSlider, + }) { + return password?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(TextFieldPopup value)? textField, + TResult Function(PasswordPopup value)? password, + TResult Function(NumberPickerPopup value)? numberPicker, + TResult Function(NumberSliderPopup value)? numberSlider, + required TResult orElse(), + }) { + if (password != null) { + return password(this); + } + return orElse(); + } +} + +abstract class PasswordPopup implements InputPopupType { + const factory PasswordPopup({final String? hintText}) = _$PasswordPopupImpl; + + String? get hintText; + @JsonKey(ignore: true) + _$$PasswordPopupImplCopyWith<_$PasswordPopupImpl> get copyWith => + throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class _$$NumberPickerPopupImplCopyWith<$Res> { + factory _$$NumberPickerPopupImplCopyWith(_$NumberPickerPopupImpl value, + $Res Function(_$NumberPickerPopupImpl) then) = + __$$NumberPickerPopupImplCopyWithImpl<$Res>; + @useResult + $Res call({int min, int max}); +} + +/// @nodoc +class __$$NumberPickerPopupImplCopyWithImpl<$Res> + extends _$InputPopupTypeCopyWithImpl<$Res, _$NumberPickerPopupImpl> + implements _$$NumberPickerPopupImplCopyWith<$Res> { + __$$NumberPickerPopupImplCopyWithImpl(_$NumberPickerPopupImpl _value, + $Res Function(_$NumberPickerPopupImpl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? min = null, + Object? max = null, + }) { + return _then(_$NumberPickerPopupImpl( + min: null == min + ? _value.min + : min // ignore: cast_nullable_to_non_nullable + as int, + max: null == max + ? _value.max + : max // ignore: cast_nullable_to_non_nullable + as int, + )); + } +} + +/// @nodoc + +class _$NumberPickerPopupImpl implements NumberPickerPopup { + const _$NumberPickerPopupImpl({required this.min, required this.max}); + + @override + final int min; + @override + final int max; + + @override + String toString() { + return 'InputPopupType.numberPicker(min: $min, max: $max)'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$NumberPickerPopupImpl && + (identical(other.min, min) || other.min == min) && + (identical(other.max, max) || other.max == max)); + } + + @override + int get hashCode => Object.hash(runtimeType, min, max); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$NumberPickerPopupImplCopyWith<_$NumberPickerPopupImpl> get copyWith => + __$$NumberPickerPopupImplCopyWithImpl<_$NumberPickerPopupImpl>( + this, _$identity); + + @override + @optionalTypeArgs + TResult when({ + required TResult Function(String? hintText) textField, + required TResult Function(String? hintText) password, + required TResult Function(int min, int max) numberPicker, + required TResult Function(int min, int max) numberSlider, + }) { + return numberPicker(min, max); + } + + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(String? hintText)? textField, + TResult? Function(String? hintText)? password, + TResult? Function(int min, int max)? numberPicker, + TResult? Function(int min, int max)? numberSlider, + }) { + return numberPicker?.call(min, max); + } + + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(String? hintText)? textField, + TResult Function(String? hintText)? password, + TResult Function(int min, int max)? numberPicker, + TResult Function(int min, int max)? numberSlider, + required TResult orElse(), + }) { + if (numberPicker != null) { + return numberPicker(min, max); + } + return orElse(); + } + + @override + @optionalTypeArgs + TResult map({ + required TResult Function(TextFieldPopup value) textField, + required TResult Function(PasswordPopup value) password, + required TResult Function(NumberPickerPopup value) numberPicker, + required TResult Function(NumberSliderPopup value) numberSlider, + }) { + return numberPicker(this); + } + + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(TextFieldPopup value)? textField, + TResult? Function(PasswordPopup value)? password, + TResult? Function(NumberPickerPopup value)? numberPicker, + TResult? Function(NumberSliderPopup value)? numberSlider, + }) { + return numberPicker?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(TextFieldPopup value)? textField, + TResult Function(PasswordPopup value)? password, + TResult Function(NumberPickerPopup value)? numberPicker, + TResult Function(NumberSliderPopup value)? numberSlider, + required TResult orElse(), + }) { + if (numberPicker != null) { + return numberPicker(this); + } + return orElse(); + } +} + +abstract class NumberPickerPopup implements InputPopupType { + const factory NumberPickerPopup( + {required final int min, + required final int max}) = _$NumberPickerPopupImpl; + + int get min; + int get max; + @JsonKey(ignore: true) + _$$NumberPickerPopupImplCopyWith<_$NumberPickerPopupImpl> get copyWith => + throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class _$$NumberSliderPopupImplCopyWith<$Res> { + factory _$$NumberSliderPopupImplCopyWith(_$NumberSliderPopupImpl value, + $Res Function(_$NumberSliderPopupImpl) then) = + __$$NumberSliderPopupImplCopyWithImpl<$Res>; + @useResult + $Res call({int min, int max}); +} + +/// @nodoc +class __$$NumberSliderPopupImplCopyWithImpl<$Res> + extends _$InputPopupTypeCopyWithImpl<$Res, _$NumberSliderPopupImpl> + implements _$$NumberSliderPopupImplCopyWith<$Res> { + __$$NumberSliderPopupImplCopyWithImpl(_$NumberSliderPopupImpl _value, + $Res Function(_$NumberSliderPopupImpl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? min = null, + Object? max = null, + }) { + return _then(_$NumberSliderPopupImpl( + min: null == min + ? _value.min + : min // ignore: cast_nullable_to_non_nullable + as int, + max: null == max + ? _value.max + : max // ignore: cast_nullable_to_non_nullable + as int, + )); + } +} + +/// @nodoc + +class _$NumberSliderPopupImpl implements NumberSliderPopup { + const _$NumberSliderPopupImpl({required this.min, required this.max}); + + @override + final int min; + @override + final int max; + + @override + String toString() { + return 'InputPopupType.numberSlider(min: $min, max: $max)'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$NumberSliderPopupImpl && + (identical(other.min, min) || other.min == min) && + (identical(other.max, max) || other.max == max)); + } + + @override + int get hashCode => Object.hash(runtimeType, min, max); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$NumberSliderPopupImplCopyWith<_$NumberSliderPopupImpl> get copyWith => + __$$NumberSliderPopupImplCopyWithImpl<_$NumberSliderPopupImpl>( + this, _$identity); + + @override + @optionalTypeArgs + TResult when({ + required TResult Function(String? hintText) textField, + required TResult Function(String? hintText) password, + required TResult Function(int min, int max) numberPicker, + required TResult Function(int min, int max) numberSlider, + }) { + return numberSlider(min, max); + } + + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(String? hintText)? textField, + TResult? Function(String? hintText)? password, + TResult? Function(int min, int max)? numberPicker, + TResult? Function(int min, int max)? numberSlider, + }) { + return numberSlider?.call(min, max); + } + + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(String? hintText)? textField, + TResult Function(String? hintText)? password, + TResult Function(int min, int max)? numberPicker, + TResult Function(int min, int max)? numberSlider, + required TResult orElse(), + }) { + if (numberSlider != null) { + return numberSlider(min, max); + } + return orElse(); + } + + @override + @optionalTypeArgs + TResult map({ + required TResult Function(TextFieldPopup value) textField, + required TResult Function(PasswordPopup value) password, + required TResult Function(NumberPickerPopup value) numberPicker, + required TResult Function(NumberSliderPopup value) numberSlider, + }) { + return numberSlider(this); + } + + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(TextFieldPopup value)? textField, + TResult? Function(PasswordPopup value)? password, + TResult? Function(NumberPickerPopup value)? numberPicker, + TResult? Function(NumberSliderPopup value)? numberSlider, + }) { + return numberSlider?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(TextFieldPopup value)? textField, + TResult Function(PasswordPopup value)? password, + TResult Function(NumberPickerPopup value)? numberPicker, + TResult Function(NumberSliderPopup value)? numberSlider, + required TResult orElse(), + }) { + if (numberSlider != null) { + return numberSlider(this); + } + return orElse(); + } +} + +abstract class NumberSliderPopup implements InputPopupType { + const factory NumberSliderPopup( + {required final int min, + required final int max}) = _$NumberSliderPopupImpl; + + int get min; + int get max; + @JsonKey(ignore: true) + _$$NumberSliderPopupImplCopyWith<_$NumberSliderPopupImpl> get copyWith => + throw _privateConstructorUsedError; +} diff --git a/lib/src/widgets/input_popup/input_popup.dart b/lib/src/widgets/input_popup/input_popup.dart new file mode 100644 index 00000000..f49ddb71 --- /dev/null +++ b/lib/src/widgets/input_popup/input_popup.dart @@ -0,0 +1,134 @@ +import 'package:flutter/material.dart'; +import 'package:flutter_hooks/flutter_hooks.dart'; + +import '../../utils/extensions/custom_extensions.dart'; +import '../../utils/misc/app_utils.dart'; +import '../number_picker/number_picker.dart'; +import '../popup_widgets/slider_popup.dart'; +import 'domain/input_popup_type.dart'; + +class InputPopup extends StatelessWidget { + const InputPopup({ + super.key, + required this.title, + this.subtitle, + this.leading, + this.trailing, + this.onChange, + required this.type, + this.value, + }); + final String title; + final Widget? leading; + final Widget? trailing; + final String? subtitle; + final ValueChanged? onChange; + final InputPopupType type; + final String? value; + @override + Widget build(BuildContext context) { + return ListTile( + leading: leading, + trailing: trailing, + title: Text(title), + subtitle: (subtitle).isNotBlank ? Text(subtitle!) : null, + onTap: AppUtils.returnIf( + onChange != null, + () => showDialog( + context: context, + builder: (context) => InputDialog( + title: title, + onChange: onChange!, + value: value, + type: type, + ), + ), + ), + ); + } +} + +class InputDialog extends HookWidget { + const InputDialog({ + super.key, + required this.title, + required this.onChange, + required this.type, + this.value, + }); + + final String title; + final ValueChanged onChange; + final InputPopupType type; + final String? value; + + @override + Widget build(BuildContext context) { + final controller = useTextEditingController(text: value.ifBlank()); + final isObscured = useState(true); + useListenable(controller); + useEffect(() { + if (value.isNotBlank) { + controller.text = value!; + } + return null; + }, [value]); + return AlertDialog( + title: Text(title), + content: switch (type) { + TextFieldPopup(hintText: String? hintText) => TextField( + controller: controller, + autofocus: true, + decoration: InputDecoration( + hintText: hintText, + border: const OutlineInputBorder(), + ), + ), + PasswordPopup(hintText: String? hintText) => TextField( + controller: controller, + autofocus: true, + obscureText: isObscured.value, + decoration: InputDecoration( + hintText: hintText, + border: const OutlineInputBorder(), + suffixIcon: IconButton( + icon: isObscured.value + ? const Icon(Icons.visibility_rounded) + : const Icon(Icons.visibility_off_rounded), + onPressed: () => isObscured.value = !isObscured.value, + ), + ), + ), + NumberPickerPopup(min: int min, max: int max) => NumberPicker( + max: max, + min: min, + onChanged: (value) => controller.text = value.toString(), + value: int.tryParse(controller.text) ?? + int.tryParse(value.ifBlank()) ?? + min, + ), + NumberSliderPopup(min: int min, max: int max) => NumberSlider( + min: min, + max: max, + onChanged: (value) => controller.text = value.toString(), + value: int.tryParse(controller.text) ?? + int.tryParse(value.ifBlank()) ?? + min, + ), + }, + actions: [ + TextButton( + onPressed: () => Navigator.pop(context), + child: Text(context.l10n.cancel), + ), + TextButton( + onPressed: () { + onChange(controller.text); + Navigator.pop(context); + }, + child: Text(context.l10n.save), + ), + ], + ); + } +} diff --git a/lib/src/widgets/manga_cover/grid/manga_cover_grid_tile.dart b/lib/src/widgets/manga_cover/grid/manga_cover_grid_tile.dart index b7dced7a..928a4dde 100644 --- a/lib/src/widgets/manga_cover/grid/manga_cover_grid_tile.dart +++ b/lib/src/widgets/manga_cover/grid/manga_cover_grid_tile.dart @@ -76,7 +76,7 @@ class MangaCoverGridTile extends StatelessWidget { contentPadding: const EdgeInsets.symmetric(horizontal: 8), dense: true, title: Text( - (manga.title ?? manga.author ?? ""), + manga.title, overflow: TextOverflow.ellipsis, maxLines: 2, ), diff --git a/lib/src/widgets/manga_cover/list/manga_cover_descriptive_list_tile.dart b/lib/src/widgets/manga_cover/list/manga_cover_descriptive_list_tile.dart index b3995da7..b2a01f7d 100644 --- a/lib/src/widgets/manga_cover/list/manga_cover_descriptive_list_tile.dart +++ b/lib/src/widgets/manga_cover/list/manga_cover_descriptive_list_tile.dart @@ -7,8 +7,8 @@ import 'package:flutter/material.dart'; import '../../../constants/app_sizes.dart'; +import '../../../constants/enum.dart'; import '../../../features/manga_book/domain/manga/manga_model.dart'; - import '../../../utils/extensions/custom_extensions.dart'; import '../grid/manga_cover_grid_tile.dart'; import '../widgets/manga_badges.dart'; @@ -65,7 +65,7 @@ class MangaCoverDescriptiveListTile extends StatelessWidget { ? () => onTitleClicked!(manga.title) : null, child: Text( - (manga.title ?? context.l10n.unknownManga), + manga.title, style: context.textTheme.titleLarge, overflow: TextOverflow.ellipsis, maxLines: 2, @@ -83,14 +83,14 @@ class MangaCoverDescriptiveListTile extends StatelessWidget { Wrap( crossAxisAlignment: WrapCrossAlignment.center, children: [ - if (manga.status != null) ...[ + ...[ Icon( - manga.status!.icon, + MangaStatus.fromJson(manga.status.name).icon, size: 16, color: context.textTheme.bodySmall?.color, ), Text( - " ${manga.status!.toLocale(context)}", + " ${MangaStatus.fromJson(manga.status.name).toLocale(context)}", style: context.textTheme.bodySmall, ), ], diff --git a/lib/src/widgets/manga_cover/list/manga_cover_list_tile.dart b/lib/src/widgets/manga_cover/list/manga_cover_list_tile.dart index e8f7f729..eb9a6632 100644 --- a/lib/src/widgets/manga_cover/list/manga_cover_list_tile.dart +++ b/lib/src/widgets/manga_cover/list/manga_cover_list_tile.dart @@ -47,7 +47,7 @@ class MangaCoverListTile extends StatelessWidget { child: Padding( padding: KEdgeInsets.h8.size, child: Text( - (manga.title ?? manga.author ?? ""), + manga.title, overflow: TextOverflow.ellipsis, maxLines: 3, ), diff --git a/lib/src/widgets/number_picker/number_picker.dart b/lib/src/widgets/number_picker/number_picker.dart new file mode 100644 index 00000000..cdacac16 --- /dev/null +++ b/lib/src/widgets/number_picker/number_picker.dart @@ -0,0 +1,96 @@ +import 'dart:math' as math; + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:flutter_hooks/flutter_hooks.dart'; + +import '../../utils/extensions/custom_extensions.dart'; +import '../../utils/misc/app_utils.dart'; +import '../../utils/misc/number_range_formatter.dart'; + +class NumberPicker extends HookWidget { + const NumberPicker({ + super.key, + required this.min, + required this.max, + required this.value, + required this.onChanged, + this.textFieldWidth = 24, + }) : assert(min >= 0); + + final int min; + final int max; + final int value; + final ValueChanged onChanged; + final double textFieldWidth; + + int getValidValue(String? value) { + int intValue = int.tryParse(value.ifNull()).ifNull(); + intValue = math.max(intValue, min); + intValue = math.min(intValue, max); + return (intValue); + } + + @override + Widget build(BuildContext context) { + final controller = useTextEditingController(text: value.toString()); + final focusNode = useFocusNode(); + useListenable(focusNode); + + useEffect(() { + if (!focusNode.hasFocus) { + Future.microtask(() { + final newValue = getValidValue(controller.text); + onChanged(newValue); + controller.text = newValue.toString(); + }); + } + return null; + }, [focusNode.hasFocus]); + useEffect(() { + controller.text = value.toString(); + return null; + }, [value]); + return Card( + shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(24)), + child: Row( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + IconButton( + icon: const Icon(Icons.remove_rounded), + onPressed: + AppUtils.returnIf(value > min, () => onChanged(value - 1)), + ), + Expanded( + child: Container( + padding: const EdgeInsets.only(bottom: 5), + child: Builder(builder: (context) { + return TextField( + controller: controller, + focusNode: focusNode, + inputFormatters: [ + FilteringTextInputFormatter.digitsOnly, + NumberRangeFormatter(maxValue: max) + ], + keyboardType: TextInputType.number, + textAlign: TextAlign.center, + decoration: const InputDecoration( + border: InputBorder.none, + contentPadding: EdgeInsets.zero, + isDense: true, + ), + ); + }), + ), + ), + IconButton( + icon: const Icon(Icons.add_rounded), + onPressed: + AppUtils.returnIf(value < max, () => onChanged(value + 1)), + ), + ], + ), + ); + } +} diff --git a/lib/src/widgets/number_picker/number_picker_with_label.dart b/lib/src/widgets/number_picker/number_picker_with_label.dart new file mode 100644 index 00000000..f155d94e --- /dev/null +++ b/lib/src/widgets/number_picker/number_picker_with_label.dart @@ -0,0 +1,45 @@ +import 'package:flutter/material.dart'; +import 'package:flutter_hooks/flutter_hooks.dart'; + +import 'number_picker.dart'; + +class NumberPickerWithLabel extends HookWidget { + const NumberPickerWithLabel({ + super.key, + required this.label, + required this.min, + required this.max, + required this.value, + required this.onChanged, + this.textFieldWidth = 24, + }); + final String label; + + final int min; + final int max; + final int value; + final ValueChanged onChanged; + final double textFieldWidth; + + @override + Widget build(BuildContext context) { + useEffect(() { + Future.microtask(() => onChanged(value)); + return null; + }, []); + return Row( + children: [ + Expanded( + child: Text(label), + ), + NumberPicker( + value: value, + min: min, + max: max, + onChanged: onChanged, + textFieldWidth: textFieldWidth, + ), + ], + ); + } +} diff --git a/lib/src/widgets/popup_widgets/slider_popup.dart b/lib/src/widgets/popup_widgets/slider_popup.dart index 06538dab..6e1028c8 100644 --- a/lib/src/widgets/popup_widgets/slider_popup.dart +++ b/lib/src/widgets/popup_widgets/slider_popup.dart @@ -31,51 +31,20 @@ class SliderPopup extends HookWidget { return AlertDialog( contentPadding: KEdgeInsets.a16.size, title: Text(title), - content: Padding( - padding: KEdgeInsets.h8.size, - child: Column( - mainAxisSize: MainAxisSize.min, - children: [ - if (subtitle.isNotBlank) ...[ - Padding(padding: KEdgeInsets.v4.size, child: Text(subtitle!)), - const Gap(8), - ], - Text( - slideValue.value.compact(returnNullOnZero: false).ifNull('0'), - style: const TextStyle(fontSize: 22), - ), - Padding( - padding: KEdgeInsets.v8.size, - child: Row( - children: [ - IconButton( - onPressed: () => slideValue.value -= 1, - icon: const Icon(Icons.remove), - ), - Expanded( - child: SliderTheme( - data: const SliderThemeData( - showValueIndicator: ShowValueIndicator.always, - ), - child: Slider( - value: slideValue.value.toDouble(), - onChanged: (value) => slideValue.value = value.toInt(), - min: min.toDouble(), - max: max.toDouble(), - label: slideValue.value.compact(), - secondaryTrackValue: slideValue.value.toDouble(), - ), - ), - ), - IconButton( - onPressed: () => slideValue.value += 1, - icon: const Icon(Icons.add), - ), - ], - ), - ), + content: Column( + mainAxisSize: MainAxisSize.min, + children: [ + if (subtitle.isNotBlank) ...[ + Padding(padding: KEdgeInsets.v4.size, child: Text(subtitle!)), + const Gap(8), ], - ), + NumberSlider( + value: slideValue.value, + onChanged: (value) => slideValue.value = value, + min: min, + max: max, + ), + ], ), actions: [ const PopButton(), @@ -87,3 +56,64 @@ class SliderPopup extends HookWidget { ); } } + +class NumberSlider extends StatelessWidget { + const NumberSlider({ + super.key, + required this.value, + required this.onChanged, + required this.min, + required this.max, + }); + + final int value; + final ValueChanged onChanged; + final int min; + final int max; + + @override + Widget build(BuildContext context) { + return Padding( + padding: KEdgeInsets.h8.size, + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + Text( + value.compact(returnNullOnZero: false).ifNull('0'), + style: const TextStyle(fontSize: 22), + ), + Padding( + padding: KEdgeInsets.v8.size, + child: Row( + children: [ + IconButton( + onPressed: () => onChanged(value - 1), + icon: const Icon(Icons.remove_rounded), + ), + Expanded( + child: SliderTheme( + data: const SliderThemeData( + showValueIndicator: ShowValueIndicator.always, + ), + child: Slider( + value: value.toDouble(), + onChanged: (value) => onChanged(value.toInt()), + min: min.toDouble(), + max: max.toDouble(), + label: value.compact(), + secondaryTrackValue: value.toDouble(), + ), + ), + ), + IconButton( + onPressed: () => onChanged(value + 1), + icon: const Icon(Icons.add_rounded), + ), + ], + ), + ), + ], + ), + ); + } +} diff --git a/lib/src/widgets/search_field.dart b/lib/src/widgets/search_field.dart index b268dfb4..7d4582e3 100644 --- a/lib/src/widgets/search_field.dart +++ b/lib/src/widgets/search_field.dart @@ -8,7 +8,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_hooks/flutter_hooks.dart'; import '../constants/app_sizes.dart'; - import '../utils/extensions/custom_extensions.dart'; class SearchField extends HookWidget { @@ -46,7 +45,7 @@ class SearchField extends HookWidget { return SizedBox( width: context.isLargeTablet ? context.widthScale(scale: .3) : null, child: Padding( - padding: KEdgeInsets.h16v8.size, + padding: KEdgeInsets.h16v4.size, child: TextField( onChanged: onChanged, autofocus: autofocus, diff --git a/lib/src/widgets/section_title.dart b/lib/src/widgets/section_title.dart index 56fc0501..aa935f4d 100644 --- a/lib/src/widgets/section_title.dart +++ b/lib/src/widgets/section_title.dart @@ -9,6 +9,10 @@ class SectionTitle extends StatelessWidget { @override Widget build(BuildContext context) => Padding( padding: KEdgeInsets.h16.size + KEdgeInsets.v4.size, - child: Text(title, style: TextStyle(color: context.theme.primaryColor)), + child: Text( + title, + style: context.textTheme.titleSmall + ?.copyWith(color: context.theme.primaryColor), + ), ); } diff --git a/lib/src/widgets/server_image.dart b/lib/src/widgets/server_image.dart index 130e7586..e0b90833 100644 --- a/lib/src/widgets/server_image.dart +++ b/lib/src/widgets/server_image.dart @@ -15,9 +15,9 @@ import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../constants/app_sizes.dart'; import '../constants/endpoints.dart'; import '../constants/enum.dart'; +import '../features/settings/presentation/server/widget/client/server_port_tile/server_port_tile.dart'; +import '../features/settings/presentation/server/widget/client/server_url_tile/server_url_tile.dart'; import '../features/settings/presentation/server/widget/credential_popup/credentials_popup.dart'; -import '../features/settings/widgets/server_port_tile/server_port_tile.dart'; -import '../features/settings/widgets/server_url_tile/server_url_tile.dart'; import '../global_providers/global_providers.dart'; import '../utils/extensions/custom_extensions.dart'; import '../utils/misc/app_utils.dart'; diff --git a/lib/src/widgets/shell/big_screen_navigation_bar.dart b/lib/src/widgets/shell/big_screen_navigation_bar.dart index f924d141..15a16896 100644 --- a/lib/src/widgets/shell/big_screen_navigation_bar.dart +++ b/lib/src/widgets/shell/big_screen_navigation_bar.dart @@ -12,9 +12,13 @@ import '../../routes/router_config.dart'; import '../../utils/extensions/custom_extensions.dart'; class BigScreenNavigationBar extends StatelessWidget { - const BigScreenNavigationBar({super.key, required this.selectedScreen}); + const BigScreenNavigationBar( + {super.key, + required this.selectedIndex, + required this.onDestinationSelected}); - final String selectedScreen; + final int selectedIndex; + final ValueChanged onDestinationSelected; NavigationRailDestination getNavigationRailDestination( BuildContext context, NavigationBarData data) { @@ -30,7 +34,7 @@ class BigScreenNavigationBar extends StatelessWidget { final Widget leadingIcon; if (context.isDesktop) { leadingIcon = TextButton.icon( - onPressed: () => const AboutRoute().push(context), + onPressed: () => const AboutRoute().go(context), icon: ImageIcon( AssetImage(Assets.icons.darkIcon.path), size: 48, @@ -42,7 +46,7 @@ class BigScreenNavigationBar extends StatelessWidget { ); } else { leadingIcon = IconButton( - onPressed: () => const AboutRoute().push(context), + onPressed: () => const AboutRoute().go(context), icon: ImageIcon( AssetImage(Assets.icons.darkIcon.path), size: 48, @@ -62,9 +66,8 @@ class BigScreenNavigationBar extends StatelessWidget { .map( (e) => getNavigationRailDestination(context, e)) .toList(), - selectedIndex: NavigationBarData.indexWherePathOrZero(selectedScreen), - onDestinationSelected: (value) => - NavigationBarData.navList[value].go(context), + selectedIndex: selectedIndex, + onDestinationSelected: onDestinationSelected, ); } } diff --git a/lib/src/widgets/shell/shell_screen.dart b/lib/src/widgets/shell/navigation_shell_screen.dart similarity index 73% rename from lib/src/widgets/shell/shell_screen.dart rename to lib/src/widgets/shell/navigation_shell_screen.dart index 740d7785..710d022c 100644 --- a/lib/src/widgets/shell/shell_screen.dart +++ b/lib/src/widgets/shell/navigation_shell_screen.dart @@ -6,6 +6,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_hooks/flutter_hooks.dart'; +import 'package:go_router/go_router.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:pub_semver/pub_semver.dart'; @@ -17,21 +18,21 @@ import '../../utils/misc/toast/toast.dart'; import 'big_screen_navigation_bar.dart'; import 'small_screen_navigation_bar.dart'; -class ShellScreen extends HookConsumerWidget { - const ShellScreen({ +class NavigationShellScreen extends HookConsumerWidget { + const NavigationShellScreen({ super.key, required this.child, }); - final Widget child; + final StatefulNavigationShell child; Future checkForUpdate({ required String? title, required BuildContext context, required Future> Function() updateCallback, - required Toast toast, + required Toast? toast, }) async { final AsyncValue versionResult = await updateCallback(); - toast.close(); + toast?.close(); if (!context.mounted) return; versionResult.whenOrNull( data: (version) { @@ -55,7 +56,7 @@ class ShellScreen extends HookConsumerWidget { title: ref.read(packageInfoProvider).appName, context: context, updateCallback: ref.read(aboutRepositoryProvider).checkUpdate, - toast: ref.read(toastProvider(context)), + toast: ref.read(toastProvider), ), ); return; @@ -64,7 +65,13 @@ class ShellScreen extends HookConsumerWidget { return Scaffold( body: Row( children: [ - BigScreenNavigationBar(selectedScreen: context.location), + BigScreenNavigationBar( + selectedIndex: child.currentIndex, + onDestinationSelected: (index) => child.goBranch( + index, + initialLocation: index == child.currentIndex, + ), + ), Expanded(child: child), ], ), @@ -73,8 +80,13 @@ class ShellScreen extends HookConsumerWidget { return Scaffold( body: child, floatingActionButtonLocation: FloatingActionButtonLocation.centerFloat, - bottomNavigationBar: - SmallScreenNavigationBar(selectedScreen: context.location), + bottomNavigationBar: SmallScreenNavigationBar( + selectedIndex: child.currentIndex, + onDestinationSelected: (index) => child.goBranch( + index, + initialLocation: index == child.currentIndex, + ), + ), ); } } diff --git a/lib/src/widgets/shell/small_screen_navigation_bar.dart b/lib/src/widgets/shell/small_screen_navigation_bar.dart index e98a967b..f2da8ae9 100644 --- a/lib/src/widgets/shell/small_screen_navigation_bar.dart +++ b/lib/src/widgets/shell/small_screen_navigation_bar.dart @@ -9,9 +9,14 @@ import 'package:flutter/material.dart'; import '../../constants/navigation_bar_data.dart'; class SmallScreenNavigationBar extends StatelessWidget { - const SmallScreenNavigationBar({super.key, required this.selectedScreen}); + const SmallScreenNavigationBar({ + super.key, + required this.selectedIndex, + required this.onDestinationSelected, + }); - final String selectedScreen; + final int selectedIndex; + final void Function(int) onDestinationSelected; NavigationDestination getNavigationDestination( BuildContext context, NavigationBarData data) { @@ -32,9 +37,8 @@ class SmallScreenNavigationBar extends StatelessWidget { ), ), child: NavigationBar( - selectedIndex: NavigationBarData.indexWherePathOrZero(selectedScreen), - onDestinationSelected: (value) => - NavigationBarData.navList[value].go(context), + selectedIndex: selectedIndex, + onDestinationSelected: onDestinationSelected, destinations: NavigationBarData.navList .map( (e) => getNavigationDestination(context, e), diff --git a/linux/my_application.cc b/linux/my_application.cc index aec1c5ae..587576ce 100644 --- a/linux/my_application.cc +++ b/linux/my_application.cc @@ -40,11 +40,11 @@ static void my_application_activate(GApplication* application) { if (use_header_bar) { GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new()); gtk_widget_show(GTK_WIDGET(header_bar)); - gtk_header_bar_set_title(header_bar, "Tachidesk Sorayomi"); + gtk_header_bar_set_title(header_bar, "Sorayomi"); gtk_header_bar_set_show_close_button(header_bar, TRUE); gtk_window_set_titlebar(window, GTK_WIDGET(header_bar)); } else { - gtk_window_set_title(window, "Tachidesk Sorayomi"); + gtk_window_set_title(window, "Sorayomi"); } gtk_window_set_default_size(window, 1280, 720); diff --git a/macos/Podfile.lock b/macos/Podfile.lock index 0fa5bb8d..23002ff6 100644 --- a/macos/Podfile.lock +++ b/macos/Podfile.lock @@ -43,8 +43,8 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24 - network_info_plus: f4fbc7877ab7b3294500d9441dfa53cd54972d05 - package_info_plus: 02d7a575e80f194102bef286361c6c326e4c29ce + network_info_plus: aeb9c4ed699cae128bc94b9d0f04f2389a414cbb + package_info_plus: fa739dd842b393193c5ca93c26798dff6e3d0e0c path_provider_foundation: 3784922295ac71e43754bd15e0653ccfd36a147c shared_preferences_foundation: b4c3b4cddf1c21f02770737f147a3f5da9d39695 sqflite: 673a0e54cc04b7d6dba8d24fb8095b31c3a99eec diff --git a/macos/Runner.xcodeproj/project.pbxproj b/macos/Runner.xcodeproj/project.pbxproj index 27030f08..1c184f9d 100644 --- a/macos/Runner.xcodeproj/project.pbxproj +++ b/macos/Runner.xcodeproj/project.pbxproj @@ -55,7 +55,7 @@ /* Begin PBXFileReference section */ 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; }; 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; }; - 33CC10ED2044A3C60003C045 /* Tachidesk Sorayomi.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Tachidesk Sorayomi.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 33CC10ED2044A3C60003C045 /* Sorayomi.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Sorayomi.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = ""; }; 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; @@ -112,7 +112,7 @@ 33CC10EE2044A3C60003C045 /* Products */ = { isa = PBXGroup; children = ( - 33CC10ED2044A3C60003C045 /* Tachidesk Sorayomi.app */, + 33CC10ED2044A3C60003C045 /* Sorayomi.app */, ); name = Products; sourceTree = ""; @@ -192,7 +192,7 @@ ); name = Runner; productName = Runner; - productReference = 33CC10ED2044A3C60003C045 /* Tachidesk Sorayomi.app */; + productReference = 33CC10ED2044A3C60003C045 /* Sorayomi.app */; productType = "com.apple.product-type.application"; }; /* End PBXNativeTarget section */ diff --git a/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index 9e9ade05..51785118 100644 --- a/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -15,7 +15,7 @@ @@ -31,7 +31,7 @@ @@ -54,7 +54,7 @@ @@ -71,7 +71,7 @@ diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png index a0df7d3c083365b61ef44f44d3c6fd054ebe8deb..480d6d5be2302619ad1867ea81b5e580a4358158 100644 GIT binary patch literal 61845 zcmXt9cRbbK|3CL4E2EGiuE;1^Wfb8?va(CEN20F1uI);q>|J&t6c=U7C`!o8Uf0MT z*WT{^y|2&r_ZN@H`*qHFjpu8gb6;y~D$~)h(EtGGR8{Wk0zeM^OAe?`L4N``1cLye zQGKSUsO_q&tiYwJq$nwNOHxwky091kDzDS@&<1h4=j3p^)(rXzgKH&8c7cGKr-14= z#mVl=nR&l|t8 zayW4KZ7y~0sKcw10dwXoU(D=>=iruZ@NMZqM3k0FQ%fxd&Z06w&c!&}_QQtaCje_? zUY`DL#qvk6B1ZrRPJP0c&o)mIgQ~Up9s#ZxFu{FxjusZJ3w{ef_{|J{p9jTyU!Tx` zcmV9Yd=K~K;3Kbh94la0Ld*( z-hhQ+9+zKNhGS|efJdZ3Gy~EcVBRTQ`vbUc!hs?uQ#%>geX>l^p8AP=GpFE66&Pq} zOK4A0@43NTnb5_C-dLNMx-|8}u0+9t^$O!t>VMp+Nhv%`DsyD_J5B?@w%`4oa8o{d zZuZ~g?9(|r{MOG81k{=%x7?+59N}9yoE$J}cH)Q4W@h@yoSI?9?)9jABQUHFY;pT0 zH%6#44QaZ(_rtty9w9l?-)sNA&2f>2mUe~L@_nu7beJ6R#-!s!nEwv+l`!JH2Aq?T z?+P2Tf{vXn96YePk#lY23Sthsb3BCR;DF=EE8SD#CC1lS-mDwEuGHq%X!feojk$ZN zC1L99LcsNPMB*`Z9GVUkywYmWET=4Mvup5Qg~7w<4SGBP(tlGZoQ*aHFxrS;_u2&@ zu6{oXDF_4YN!il?e49USoEOh}{}&YicQXU87T=*f{hhg>fj;#+$F~MnxW%cv$kUe_ zZZj&J`iHql^ZtC|oeK{dqzB2%ipkhA&m>PWmVOtzNjEof);MszrCU+ zzw?`l$>Nf9=o!n%LGBJJ)_0NQ+!iY0v6yVGg-~W4?w`M1vf=p(&tptfcs7Jwm~TZG zBM+iSesf)abM)q$vRHiJ7ag)*xI3~c55e~4SEg&Xn>d3BCh-HRo2`^n7E}Hqw_APQ z-3|D?iL}CWi_t#~AF?nG4^c9IZNSFYe9mgdKtexC!ivK{%7cZyA>9H`br~LpVOpj# zeaZO4?nQL8vcY`=#XR0+p3<|`RF9~GUW)zT=Z?$MD&_S)yWiw#DP0n6aIb)G^%Cc$ zbY4?_dM2|tmCN)kvHvt_F7ZZRSEW@&sf?%yW$R_j^)Nn5z0bE4ZQnBfkLnAifGa7c zBAOvuEB3IZ@m~eA^v}?#`_vyU>t@HFRgq(Lsk1s z4{Z^>kbEX__hjDolyi!0*+N-;UCGaEp6%L-EVxxuj|FimC3PkBpynwT<`#ms(5LBM z(FHZDSPEP~UGTY(d%og=$h-R=DgGwC`~5(4;5z#|o3{*a9UmH8-MQ+^64QD%K{`P{ z!9QW{(}Rbu59Ry3KG8n-{E*?ZslMOGdk?>APv=wjp8MRF&+)J(UlQA)i`I?O?$j~M zsxv!&abQLFqebpwTd7k#p&YpAyxmPTLpm+yN}9I|_e z_}tf1bp70h@$e|}#ZEf_3lS&qEb zmx@Zas2ln=augAqqm=qnEle`3IdM4Aw~ZoEBXPIjt-hSTm;Sc?K!Iw%@zS*=`~F9E z+U$=~PNztxw3X)-rW7`Lq}bz_ra%;z8hj+(*r<3E) z#j_m!GHx=yE^h9BJnWplEoD!NH|96xH!eJ~VYhkjnzkvy`cXZ)?QD`q604ql?weeP z4DYst8Mf8xp0dB&St&IsqlH8Ey<>l5fBJns)DTW#Z!u|<#oyUl+clVS{xhAHo09uu zGkQ+M)Wh_#>0vFW*4I?N^nOwM-y=;%6SZwV=F)Pq)(0I6WOBdc;2GW-A$1??xN)*| zJpTRu@BAr`(hp@0+K!|4>LHK#;Q z%dse&rlxz0aEWtlVBKKfx4JQEb1k`>rIjj;#gP3#^bg;C&i*rzuR5u4jQ)-v_wO(K zDW?jZP__%LL_E9jj&H%kcZtXzE?Rr^+?mK&v)C)et39Xt)g{hNo6T}$)RBPaea|m?ejZ*U9Z;Y3fb2q zX4uW_)yCc4dq3ZfY%gtZZ6}kkkXSMLQ(iE#@m?}($2%>+q)q?0@N-4o5Z`cr{TSM3 zlRk)pMP?iyzx=IC(DM
^PMp=b5QSQMKjdv*P+|5&9mTI*+eluwQi<&F}5>A9Pu z-DpvL{TFI`UC9Ve6=|oL6pZ6=%1Sc2%*pU7{f|2{-}!MLeSN02=ihfUjyAUA-UU=_ zQ!S}@3HC_WyB7#$*=NeWuf@-YXQgqNawykT5dHCD(^l@y5>b!RGt&fQ*Z2Ruh?~xR zlAE5UDKFdmZq#e{{?R*>iH=FFjbdlIJgeL4{R*?)md)|GD3i5sPFvi&mLt3s>V>jc zS!I8x<4KhwBgZA{-L{oSx3O+p8cQ`kZ zZ|`~RtgxbKR_~9Rct?2_9n}pVFH#;bEC!SkN~{~~C-%%6%sU$&GvMi|L(&QH#J?ev zJ<5NS`*`m0L`0<_5bShpwHr@5;wE#yrr@UXsavP zP5pv~%D5=cQ^dFp@$ExJKGoG1UuYC{7#Z&{XA7JXy$4sJmI&0gQn_?F`_I07{gwQb z_V^o{sW&#g>P;DJ&^LT`nwOVT=XPbZ7MRHcLDQoTWramD;#K`4WlsmZEBiI5-QAl_ zvF^H=a{JAt|LTQyw^Qr(ttKy0m>4hBeV;S=I%m&MK5$@n>6=F9g~Sf*cEJxX7?}SZ zg7wp$$tdY9D>K@w*ezdk4_j!YmlH|-D@_R7G&7nW{&Li;zCm;#mJgc@;n2+q*g_{< z$tcGomX0&odPZ+x$kT4a2a4cjJMT(j-ma^C%27#|@t0I5pXZ z(c>PJs#nse)mLhd!@Lz3U@RBj*Vpi?AVgnX%4C>45cLpXW}u;n*>%mJR3GD6UeZ@F zh&?vU%)v5P{R~oKFAW$LQ_0nTxK4y4Wds1YfcZ5X6tk>OJxLN)Uks^{yoM`(BwQupds`)CJfh;ZT=yg^)K9SKVb!5n^U9Hc zX+O|FnPe;rp;PCEm#{)k_Wp$FflWmHg>1d>Kyqm$40Kgr+UGH5ue!rNGaR|!zwRVo zBWLejHFRx&f1eTnfsUugANdA`*goC0%zGg;{$Rgrd%@JBImy_kyDUlSX5Ei?G7KEB zh1UoS-aaV7YWzl^J?v9aGL?zf4x4(DAqhWSi^03vuYY_qR(v7JG3Cn{a!K!r#{=mt zhzyUFDy}rc{*LLu>bo%Denp-?fPa9my1b^J|7hj37z$60wO%Gm$^4b(0{~`FAe>Rf zPWZY08d!P6Ljm3uO9?o~>oKu*dCXRRy;&-q1!RbK|A<>NjiRE)k-&J4wxGyp>yBTGpuk%cz=ZS?t)#u-!-6 z%zgoo$v2u}^3|nrU(0Fb{J<-H&wE#X7b_v470(^BI8KE+;lD7@n1} zJFq@>_1k#2>Y0X;qFCtdQPT?lbq5BNoE@*1Kg8L@r;Olkq{a=8`v2O2unBmtF7vI) zV>A5YWK21-^#ZmpGFd`CR{p#8ott~e0yb@FnDbKF!zG8!I1-jKyB~V!{c-q{X5GF$ zW>YhrfXx|F0!9ijkmBsf8I+)YV6Ps_$hvhSd>xV>^i$(M4&EKWy05qlWDrYaOj)w^ z9ACM+^it9QgXUVD`yL^kf)%j=t~dGJ9c^K%^3WRX)Gy~~N4vm)u=7eAHXtBO#$QS$ zmvHXhlTdjYKqp)uj8nxPhoKPE_&@tn!Y8K9B!9gff=pPBwU*kllg7IZ%n`rJ_;;3# z45}5E=m1;oRgKKAE+e~sKg-fStug(O=YEE)`yxF=jnSoG_t)+Y9XW#?QV1kYZoDLVG-r@6^in2Jgxt&o+H)JPiC$Qf z`C(+|Bx(CR1KYp$Ayqpj0|Z$!s=Yf9E~%FOg>upW_tsj?wS_o!3B~pzq~SH!!Xk^W-#DCGi)W? zyjKAQoXj33ZZ-kX3)@w`HO@g8C~Nd+x!U;Am6c(HNu6_%jQ=H-+;r;Ae|fSr zKx~%4cv#tJ-P*p*Fo%9em5muWCh^mMtEcRiFmdm_jK73R?zuyHs+sqIQE}gkP@aR! z!EQ6GGz|^Op5PitT2)Q&W7AeQVgk_3s35ni)3^BIAwmCC%9kIHO&(%b&JbD@C(Kv z0mUwmY5Sg+(L>SoW1B0XlS72MCqKa=?feWRB5XCv5{<4LFEde)&iZ{s+Sl``l%$B; zib~SveTJU=TXkg5-I&2`mjLn|%5~lWLI$dRGVR?zQaDCF2}iGpB@uo5IEXS(V1q~> zK%~wh1dh?kIT}=OfWrY4H9)Aa(df|#mSe@`y%wb2+c=m6Hx1ydWIZ~K-b+W-D#~1G zA^ARL{%aaM-R)NQK9oCLao@$EDW=3f(|?I;BQ(U^m#zvidnenmw}lNG`@5CO_)Dwg zCLYk|>1czzm?MRNib_f8(zsYsr~+%>U1IM3v?*cF@~Jdlh==g|Vd|^JX9&L-pF08f zsxA>t{(~=IQMYp{SpJng#+CLiUT`X7K5EZKzLmW0Y~qtjsxRKR{)oy{Dzr z2wT3lpk++hI)gqkj@I;JRCr=bNrAcQEMhvcIF*ErpqqI)dAfw8NK7=#E7*h7;y+II zU)plyIJ5OSA9`Q6i-aRtDp{AGtvVH=#suZx9rDn?PoM?PoHP7kDWywXbooTG=WMa& zn~OByl8Zpgo;Lev7R-CH)wjDiU>n^`A9IAEuA^ z{wY&7>2SXvty#;ccAqXBjtm~9T^B`H{w%ATOcjm)O4JWGaP6s;-dTz!`rsQojwGZ~xo9?<-B^yD&uv?W_; zj(j2|1Nn!@dst;j)Jx}h?W(eS=IB>I_A+UGXt z%I31kI;#_dR_p9X=+xXfRH>s{GoFF;$XZT3`bIq($1UD%pUE2n!kI8@Dmyg17NE>)DjRlR$PmlacYMAqH(h6L4W|T z3-p=1xI$m=R%m2xLt`*c@-*;9w_EdBtw~Muj0->ILa*%P&j<1XptP~pT+=Ot-2_EH zX_t^e3TS{$;pe^{dcXmFYwQ{1MoWzFPlC)qa?(^Fx3ZCLs_I0Ln_t+gq-sVT45KxV zd(fgf3b8dXpTJ7R6qLq)qJsFsuPCYNi$!|Tnq%`aZ}T!iw2k83yC>lUZ2xenF{?Bd zfeKiuLwY_M0U(falrceH&v@d;pf^t8jJY+ma#H3zj;#(%m{K8JLsFVtNr!{&-yg|F zr(Ei%Av~JmzVG#RsTTRb?mLH=U5W1_oRFNczJ;?dAM=6go_U$`W^CnP!hij+s?jli zgzrR3ZQQlp!-zJDD5{?PcXdJQ?=R7URaUtnj#ZDs5WE5D7$EWYZ<&v=rl&0=WII~4 ztlx>@)vufI%m+4<`d<$a-g?4HOiap$)`qrm|2>z9+d6gof89jBrd? zL9x6QE!wBQOWNapWuumfOcVMV=?Kj4665t;Vf4}6XibW`p!|>3BH$)*VOSh@=Y#|9 zHkV%m#)ne4zz2FJtl(^+{aj_^Bj4r|MTLGVs=Vmp4@uaC=IYa}AnpFu;^L#dNKy<0 zjO;k~s(+gh4wRwgiYDhE_UuYs!Uz)kkre+Clw*#Hj5VtsK^_m;xwy{+)^Pmcpt^Ak zTekN<8kt1B@oAT~mhEy`a}$z^ey{G~@<#n5Pxy;(bZJd7j`V_JM&UNceS^hMV8VEH zIHoS>w^hw7L?HuE6>N}rD{?&%4ZTmzN--+pp9 zcoYu(kA+tjx8^m3`O}!Q_0*vwJ{g$xQ zg6y>@6K(nPBbZ1Zgz`f$s#cBYaP}nTBbC+C8M;QwmW;995c&%XHSbTp(SSAV$D$6C zj-c6v#s0MPiBu7p1>e@W2I?k;1A^Jr-J3p;I2sw_sM8sj3Sp-u(PU~SR0vF13)|E} zg?RdD`AjDz$fMJLV^^JOTZcD_zTr4e$Y2Rca)wy%pf;1;(@=pid5RhP8`7|2Rk?Z# zF2Q6o>Lkkm?GHV8-YE3S^?^Er2&W%s7vRVbWh*?ZPIn&T{#2i^k8z1di|lU-htxvV z;nP?{5o4dKw_Keipz)}RDbH#HmI>y!7;8_luzQ3Nx|MpqRV?V6-Rtg zYb?`TCfLaE(KqHQ>C{)%jZ%L9d1}L~+Av~G-XzioifTf6mPp>$4ahonqUv(ph~6z&Bb>Xa)6g^`c1R< z{`>d>QJIR~g_75bOtcC!NDa_&sBfBjQeh$RZ1u#|!K8o?$JkIAt?^;T^I*MecnZv2 z)Cdy27ZqFg`aj!Ds4pzc^9t`CdqL;_d5E#fRxwHG)bS2lHl6R~k;>nJxWgN}4GGEXh# z6G1462@jUAst_|Gt*{eE{>VXz_^otJ;=27k|dRP;aF^r`CU(ybRH8Q?s z^Nv)baY+-a@+4BOQ*YD>v~`Ov|IDCD7y$-yD)Hy`FMUR{Uj@Z4>^0j z9+@bp>#OObeOjB$Op5$aDWqPu_xOZg&qqfNJ7#XTHW{F>*|>P>LCqOplb2mZJo(yW zu&zElWC#*(5c8gw{CikSa_psLde(=Bb0-9hdaPBW`^gYs^x6@+VP`;wll|cb&X)hV zV6|?qF^0o9Wp&uSFFgCxi41WvzB%)bT%=(gR5N`HaJ{wFNpgrng!alAz+WXX(i+giEJR&c>DD8iOLD*`sR$0f18zIw% znrC{Lpm~mmgr;fx8NjN)K6=7$Z&rY_(8CC(M>!`Us+%LS@YhK(1M;kLt5OdHq0I1f zkRRJmg>f}j*I)Q=Rg+$H^jQw!7X!<~RoG+YL3!z||JgM4VH3~K)&SDpm{&c{8)i=B zZH2@eP*4AIKkKs?+&mfOSALN9!Q;-!@tKobX!~lEJoRRFp8!ZT>CJlc+56;6SE$@) z0ajpF14qBD?4$gj0=j;e%L)3&ww0ivCW`;ZL5xKd5U^aWSNX5Ni72eRvknajr7XhLx6ttiTOO+ZbE6!-iZAfWK1wg{KsN;}8 zBp(-S9SIVqAbP7rSH$u#LhzRAc?!(m@&hWUzeE-qe5uE+R!ts`_BAImn=(oMY@|^{ zjG0Mq@KhBI*#=tU)m>++cT(%m!$5@flGmo&{z>K>eW=Ipe#EsKaHeY=4jz1O@b7`e zxi)v~tFyJpwU$lV2G$AneD_hK)adYQe*>4)ohaeYVVygKLW=gB^hLRV*tYMTbWlYw zlV00%1}ImSYlK9Rg2>D7v&#rk9kv?^i^G3J{d<4CQVJyaNB#f|+Ze5KloyG6A|2kAUz${AW;P8msZq(Q zNV-SY=~wr(aBD|CN4`CF{P8~#Ie_%Ful?-$#`h$Yj*U%Ly3`{8Cc@xHz@C3kbYN9Y z;pM~7upg+tkMB>9=u02Zk8)g0kt|-5T?lLzfNHNFF5xp%P?))M3uoLy1<>w#MMA_I z>X6e)n=2kf$=*y_W7VIfTnw&FFN~JRt9KjLsVaJWXJSmL#}NVf#AYe?6=t#s*-XjId|FF0oNNt-iDR!+e(-@Dx`AdvSJ11Gz8I7*O5>5;oJ7?fQnw1hW> zQ<+WT+xqEm9`=q7*nMiKjZ$&^HZ3IyFj~!gh9ezNy&cPkOELyd@=spKgbQpR0w89y zxi9a56yBG*e2lbbAI)jqy6;B(&HjjT&fV`Znhe7ZLF>7B2z$Ls)PkbGsTI(IX zMdqx%C$lmx^r-lT{^{ZsiVGK@CiV{vNJ`wG<7FY`<>OI{&K;tT9aLO8Thm6S9f;*S z;z#E$6Ogy<4NeP$pY|k@Enq2g(C55pX@NFNoJr(3R85Zy?y#$Iz??!+Egr;RC>l@A z?J4G11dYnb(C)+BbJwKov%EBAu2!TpC=4in+h$ni1Hd`X2|xM$sb3l2OgY)N!ok1s zhTvvFQ!^R(@N~oTnaF^&JNE)5o05f8VBp9<52oLhk^eSD<~~vb@IfT*cSJQVb!J{d z7z|SInnR$zntH)ZQ`&g3KNvcuk_LZ;>|o{|MS&^L@uWxr3jlIu8UBbxmmR3{wwDkS z@gQ%wIdD)x)Pg3@+OCxMV?7XUqyC`G0)IoYFt1p@p{+<2E&ET357^#a$;FYyw+&?s z4Og%lfjyP=GcfS!hcqtN@BZT7lxzeB5xkoo)0jj1QC(19tzuMA=RYr z4GkAs%g4+Y=E)xSG9XI_4|R4Obe}(W=xzwHQPpbS=3oKhS8JXHwD)s9_)Z1beUQq~ zNb>1aM~}acit4LlEL7eH!CtB1u#1@y%uZSD;DCX?(t1?=>OAZxGuXi`3qrbLq)!m1Jl-&=m4^&-%EoA)LrUqn8YB;SfuzM+^B?by;xC`60XW4R;@EgSY1u?t(5)h%nPLSfL@lHalo1el;LI9|pAJ z+YjD(FcEExytn#kK-^V2O2GDpm!QXB5h)Mid1NHGVp7DuY&kv;Ap_@V6 zvR|c^0@^vR z5L$44)#bnx8o}B94Y7Yl4$wrHczJKHF$~iL#oYJB?i0>>*$j_VKQa?1*2W>K-sAOX9`Trk{k_O5~`OS zj}KG|mDM#)+rgoMH4Q9?^4~{_(c|K+DPNLGtiO2qO2*)v{{}oS0;12ylp*v^EpKH( zJy7Km0~nO9(ZA@Px%FLbA=zv{@)T&Ts9Tcp{u?md3c)4xJ;y7xW{pb_sN#QN*=4I| z?vWkMP(SPcOJe4F!4es(1l;_Ij2Rim^X4>p{v!rbCA`1P_64ehgW*NB4-LzPN$QD= zq$N#T_|WHLi1)7nDlSRB@R*OwN|4J@g_vk1%c$FAT$Po0IohQ5kDNT=mbvQmyx&Vg4pMD+~@E;T4^eysW@ z|89!|DjJp^pUE_0C3!1Un03}qL8u#i5W)lA!U30Iq^tp(Sa=Nqy1V;=ir3H@@p-Ye zDdVS12E071TkWKm_uLY87C7>%^z?pO+&(b9SA>lpH{cc8(>9EaIfwOVE)%Y3 zA@}~vf%~d0bsC-JO%~8-iUjpB{n0_lu@d zz`*zyEy-)(bO#}cRumwhGCbpUWH5ozG3D}J;}|d6*j0hDvWc(<3-nlEiD;_Rw`2a% z8|YFvUH9{d<-*uHc59*s+3EXM@N9wL=_k1&JyLg0vz((UU4i5M4ZNM}NE*i8d7cYI zxejs5!R0$=V7BH^8DXDwmmlHWr5RfvAeA)X7}wQIDWU%YkvKUPD;-ejMmR?}o>aOp zwuTjVt=j5kdqWm_!6$+f^2?7tXNVi7xNcy3(qFvIm&~jMLHTXx2KE} z9ue%fkP*kil*>oELVxmB(vbBg>0LhWd>>-E;cM-t0ckQbAIS%&Fy$&-;DOO< zk5uN`!Yc~Qow7&@WRSFZY-#gN>FG6_xF^IH-&HyKGoI9&UhK#DXRrs@@5F`^9PeZ< zCDoXDzY=1Yj4?T+$30?`Qm9^$BZ+@{B@&p^B0(Se7qxB?=VfAE8r|&jh$unJF0M;S zCVE*a`L&Sh@du@YpQp@FK0H~7dY<;9XdQT-m`@rV`{gv(+VjZXmNgTbT(>9p4j}Q?BLfCvfdbLEQWajKDC${ zdDwq5uipBMQ-^ve$W^ydW46S0Gz?&hhiHi9J@OpS9yIb%6Q$59Pw+eNoG_;T3x({GDU*0ZW+MuJv zpl^r|cRlE29cY%|fJ)D7VEigGIQaXRQd?~HFzaIC7Jm+rQ^2Is!ACCEziH$r&)K1; z4&FDiHd$3@-(AJ%77GK6(@;FoodV1f$@2cZ<5!ifIgErmPsaMEbQ0x*vT0w%EoarG zN#0yAT%DE~r*`{(gmEX+zUbq(wIJk&eOP^cMTQNmCys4L!2zaq@HWv^D=t}Os+eV8 z=J-+7-TBlN&)Q5e4UV_JC0%!agzFZ~DxVUCENrO+Qs~{kyDc2lWGjXFDU)-h+tC1M zO3gAqpq%V~8eLp$y?^UCiOzh+-&{|5TWfKQP!(mb9C)F8oE>$_Tz%OPHDGMS)X;wl zdh~SpEISME_Bl;~ytpE%FKv6hMP4#V>p-tId&z@uf$~ksWF*|oODxNg7=DOx_A%rBLOp-@p$Np~Edang7&(&oXg7tJf3HK$F__VW z2u-;W!eQRK@|57V)2DOn4YO-FHz3|^halenT5&}l(9_}H#Yhtr#sQw~X{8it~e4a=SuYWnLRv{M!^b%`zy*G_x%^|v#+cUiysAQg*o z`0^2z8<9!anlaJ_?^BL*wZZ%i9b5X4lO{ z4!Ofka~ZXFm(eKN{b72TeDx5t!BN}nQ7{}SMdIOwR+_-JrKq+^8$Th*QP4#EMH9mI zL9jdAe_#Jz?jM`)4b=lVw<;3w52X$w$uVX_&xmQzP{(rx-F%A8zH4MBIIbf*bpMF7*w@+k#%xa?o%NgXED8NRGdM5DB+vdS1}kCu0BWr*73fK9`L9MmeEOy5ieIV!8q&I^tVdiXQDfd|bx$8j_V z>h_LL#HS@_VD3TOper=F5Oj^8nZfhSDp!YbL|VD@nR&g{vBP2KUME=Zz2_=D5)14i z)?3@bLsv2QXzhH3GZT;Mlg2$s!1+`Z!U8Jo$$M)!$6Pj#RS44}RO0!MlODGF{nVZRS5Qr3)ZzN-m%D9?)|9xBY41WWPIfL zh7k#j?X%V1?8i(wtcf<_vxw#MjHn$S83!6380H|cbo>beP6y<{Q#Q3W5Uzp3IQ?o{ z^2TG>-I00DDh{$$PyVj;q9>n0oua}mXo)p_E@2Egseu5VMTL_ zfy?wG{e6M+gG~p(`PV8y%C<#<`B@q0rPr520;Gj2@}0y4>K=O8^Q#P8bu>$4;TcTx z!F^N7%u>uSjCXP+bfvWDrHi{s+}d#TB=(TFwe* zpy$TRaOjy&XPV~RRfiWyN^}CJd8Ir?+TFZ9`$cWeW_ss*>+aigjDo@34ZB6V9Ml*m zw`qMQZIOgkeutQc@cbG8H&RQ@Bz+QUtxlOcp!J$vTRQxlhyGX7_NYk%k#4APTWLDU_H zJKFxk12o4F)mBd7BZ{8?QDF;g}bcX!XVJ-Rr|>;VhWt_cx$_cdtdnPZ^$hJFO5j zwCW)*wnK4wybsMhn9S9c{q$M?-SOwJOxeS&cA>L_2T|b;#=mSazrWT|DgmzY0w_G9 z8G)Mk%K7}@A(?L0`2ij{N4-!`AvF8wsk!XF{-unKcsdKl9mNe8AIUBxz@2YwGd@d^ ztII+vlR9GSp`1rdS+J=OP*c{_m_4$(32Apq;xP^Bb>A4c5 zN`Pe=OR`Obsb5dtx(IFCcEH_uN{1X+{-Ob6&~u4QDjz(b#(BjJ#KSw8-Dx>haZrTe zI?ZI{f+D-`C*75Xx2Ys3>Aa^h_ls|yg}TLt{%uPdz(^@`+MRWP+Rgt%D=!g;i0|H) z5zV9lKRlZEUUHhocij;YW#fu1aJ2M`@B5rH)CsLbHpfCgYu@3Yz|ap`20(55e$6eq(=|nv|?sXPf+Cwj+aLoj!oJY9mb3!|io6#GPlzuupyi)Vt>to@M96~0}L3kBVDsl(U68gzi zGcGx{F00|y3#65ddgqre1n?}gAAmrf9hXk;#!gFqFD%0J$oR9H^)UJ}7`C9mm_jd~ zimBNZ2L7aOs5rL}t;w!edtR<*1)*<@n)%&uKVH%Y#9V>J^yI4^Y&GX(9Q8m8B`qj` zgBV=L<)3o4zn`yiU%MozS{| zD`;+@%eQ)MMf^pF`UCPnJ_+@&eAl77gbxK!8|_*V(J&6nN{QYX}p%XbajTbHB;&g)@mank!~$maS#)gVTDkaKOjA{%`U z3WOLJs4dxhN;{kC!JL-xn`-Mn7Y-xGRKAlIegD%hTP}cM)W-Nx?bo`9ZRbHw#!zza z3MBL38{%amfg-S4QdMy0$!}MXtaCe;31%j?kkwx)nYC zS^c(PGvR&t9GlFPW<6F4jQ9GQgR0+V0y61adpy9~m1b>w`Fp3}RWPrf%9@PR!OWmh z#NyBxn%Su(V5F<;;Gai36g|Mp<*75&9K-zY{W5GWW6=F`C3T&SoX}vSEAQ0cw5XXMHpC{jBD;*Uu)qdHhUzkjwV1x zVT&lFb!t(+;J0b=28<7GI`~~WM?wBP5)O?}Z8DOLs3`rR5GQyH_d}g_3;mY9y`pWZlP*AC|NxV4K}H;ztcI(9reibZY>Eu&RD1(fx>OCg!eC` zgvOBi;@Dp_b3`*QajuNK+VY~KGr;s1-{yXAVRANEEMoyk*!b}+$;hr%lFm`WpU+G5 z_sgcXn!nwf48dGpAZrsnzYGnRk@s_6U6%NOx<}cbL#3^^V{C+b)?xgt+ma*?^y@cm zp}&zI|7xRz_lYYzD7Rj7{R2wyU=}L9+DC-4R_3(H^RD<{3mM!`($pgK9xIa#8i1?u z`6+iB7;nhC_Oh+~&46sq7zs^L3~xIZ9vsO!W$2LSU070lY_>RTM3Rbw1|SFRR+H@y zLx!PPG3xwTqB`d@6n}vG$DAtF@8iP90oSHw;(uBCUFjzS3XtNc^wdRWj|Yr1S(t7t z4wGK^=cSwDv(HA^EPn|y6eyq+J$(GEAUI(BsKu$gVWt+rzF+}^*%$MAo6>UXY9Wzt#tQG_;vjJ+n%m+8;JxwNB?UzihZi8M zme^1L?`|Y7G(|nsdNLmnarzlesrhwBBLM0l%4ibh_7*LvwTDt{#1(+dkvn#dC9+-U zzT(6|`i&1#9MblsCDh}LrB)Jt46>l{h~?s?)uPasrRVO|{0k6hB0pRTCp|j2`<4afk(So27p_?(%uZqMC$bb&`}H?k9C=L# zx|4HXY(9TrMt1s;5;T2}W4b`C&D6j9Mee*28Ql6k=_hLkVs`tF$o%3+@ZK|*Mn)JQ z{v22i;AUjba(O^ycMh9`@!~);nwgHPi@W@Q3^awaz)t;XwVi~N-Fs^(>~Y5O&wUbe z!4Pwwvgjdw^ik04@Ikya{jK>wroJ*P%5dxYnE@mPr4*$kMFpf|C>5kbQ0b5mknV=T zLPcq$Lje&%knT{V86UK3J)U#k>-)hEFQ2+=@3q!m_dSu33zApUET~bRn)Xfm zIS-Dv;L_je0x-F#VR@|^yZw8yzPMP{_dj%%Iq&px)F1j4rW`@?kuh-1gl!=OzjgL%$+i7{h--05dM1JidMGWAS8!Je z!hhd^hBSz7utl6aB0)>ml9tLtWx@I{qh`tw%J1c){Mn!Tj|P4%K$F+uN__$Q^dD&n ztCtsIl#f$>Sr<2MF2Mi6cFgxMgB_NWdr~}?^{2=!uTXrM4iXBN|J+YZ^^)t!LeoGi-*B5A{JDje`B|Mil=FnKcoEru@^}*|v z@E;EH7OtDY&{f}(wH7N4Jt|>hG{1*~U|OKM{7ceL{!R+OgBvL_mgElG44`BSx!pZU z&(#a>DJR9fVQVahVrKyj6Eqxlat=oP`QZ2<_f*WG`YO$wkD1p23OsHuCCZO}1=0EW zT$00f4{cccm8}}DLc1g80`Zo`jxO^w-{XH@xEXBdxd@k+w8^szS<2n6)mJ;q?7Ho% zXS~u_39DR|yxP%33-3S?Z+|c3JbYq})tY*+5>l?jh5g7a6!3<+lfpvS)^v{g zPA3cQn?T+l{Lv(>#9ng+XY&~R5lI!PbST7X;VZ9cnZs-8S8)}p94Ho;M_=A?`IOg^ zMEqETnKa`ClST4tvLZX9{-V_HQ?ei9Bg$*W@Int@@X26wZ}b|nalHP^Aa_IzgR49N zECFG$`;|*3e+&$M40OM^ zv!q|Q&aIu}LO*RyR$lyL=obwAuK@Z>?4A0IT(+!t&MhYde&{5z#911s=Hnnt+gpN) zsbw-b>~&qHu6=LbP9O#o3=7f8{vnB@KAjh)!ehp0+2;FCOGGGhaAQ zfC%!?9+RHK-F)WC2;D@*Bwa_W`dMbdYeX+jK^%UwXh!JBcRE=4xNENC)d`r2xrNxW z4rnc1k2GH)@4n1-?_;$`Coq(Cq$G%yN)tUBdn7E&i-rm5DJ$(GFd=`g0o2+b%Xv*( zaM?sO2O#!WoQy)O;j%f{6YD4ERY*8NIScas9aKJt!{L)DuRAp4K4G^nB6{E)uu zOvM-cz-0QS_s|(XzV%_0|D1fii`6hchwtk5ZP6aOS3?Uf)q#SJ_s%ARoS$RM$-n_& zeD}8zA_OV^qMXNJSYnr|{Hs#~pXkXJ@n?rJC_gG-FDm zIfQ3O7O(21{OuoyrSkC#?y6ga`ytH7k7WuQ_sP)+Qe-(3`*hncISZjl>w0lY2BH?X zP;~GE*i&*c^j0Qvf6X0=a@5OE0_xi8016Co=6f<`5mN%yTFTT%b3JMPLLP7Ry!S#_ zjwu8E1w%?<@x5On#IU?f%^mw#FO^ zYrhtzF+fYqum?~hAjfn><+om(3~%8y6N2P#uCtY#%8A`#rz60MLkQiPEedtssinM; znozpK0G88_-`~_ziTg2Xp;{kyC2Vo!RkT2w`UqoHV=FRP{mDyL+w^9kYpV(PE#OqC z%+qQM0pqQ6dD*`5lxF>zMK#knmjgc0={U-THYcr*uG(zfkyN;3@sTie6=wP?os{1F zx7r_I$v=G#HnygZlbTw+9@Kwn@GETa_2EJdb$h1pAAfl*%Wi1$Eb8kqZT!o=H(^us z)}Q91^0Ip-T|B)#BkOO$T`q}ZF_P!lVo5aqbFJKMRH{_>h`ir<{;xEFm4NccGSVZR!0?gO_}memcXS&=G^y9N6LpO@ zK3#;*y!#rB{O-C^kW}Vln0sl((4Frd_n*hi$)DxYA+a z(%r%~TC1<-;xPRLA5(C$|Fob@Lt0I{;WI`2zhKX$Vm_cCXYAZnpPK7{wMOn1~u+G{L~kp z@EGG}_cho;Z=C7>np8WE+-2Z1U-j+=bk*56kgCJS1S(?aOI-VRilpY$9YC?rpyh{? zJGxeCSYKqx1Ps1;cLL2T7+;RR`#Znb^ok7K+!L0@%LsGw2POy?&iH}gfx&Imfi*3} z_Ri(pb(&Q3ZC_pE&HYLUKvB3}ZMknEH%}S(kZigOcBClG+Q$4Sclg3=qB|GN@}U|3 zjI=z1LPiDsjZ_i$E!^yU5mD-{{HUAiHTrU#q;WrI^}z#J80?T0cIkvhJ@E6*Nl#9% zbf$n$SjPdd3BwQWw4nR@A#Bg*B3Yg{pE|=E*`)Q3hm`aL^`iD(_Wi8#@*$7&GGktj zBDDC|61G$=C6_TIsaDV}ya!7&n8&-spj?HKienc@M-Nmdb*!Fs#qbz@(l++H=TNf; z-rL5D4px)jo_ViU?`(Dj91DyrIkm;`4h$FD1Rs}I`|R9TRt`QzPXF=Jt>@+=-S2J* zd2d=R7xk%K5OYqia9jLf-pelb@_WT8lj^op9BwTmboND2-;%E`CTPOmBbX(=WJ{dv z<(H$|B`so>VmCpE5#KmIShX1{uoyBQlPVDoIQH#G5aIPHG9Mp)Oh8%?n$2DK-n-89Z*PnMC~+T;DD0q@PZaBd=%*y}eit5t>DgJu-VaHWcXO#Oa+Gfqk&Kq;Gc zMQ`2t&y;-+?UWcyiks=INqdnZn~Ha^VM(4U`u4l@-c)3~fMv+>@lNd`)5)&9yQlvo zdF5D3sP}tgl8e=AgJz)?3G?H%wWlZ;a}*;vtoJwP#W%ZeNy-!b=znlz7_gY}bA`44 z^p%%ecRuIEx4^<5yuy$7{np~0yJ^ahtq}1qrVS)V)4TyKCDKRp>fW0@@`d%gst;ED z)AF~7awNBYXjQCKEdHqW@$j1wNa=ZY&gkQV`saJ(6dzxfy4#rQ*J%#9Sor;1T!n1; z&-}O7bR#5(*ZeB`ByIYyNgnV18NwXQ4H7c>rmp($ zR1UeXeI>LcMft3hXO@h)>yN)f-7_0Ouly8BYm(k%P;BqkmQx91VBRN>SD~pe4`dun zn)H!L%a>cT%{>n0t@&t~>~*_K>L6#PGbua9*nh~wDt~9<3B|*aUp}j!1v*7=CQv8g)P0!wFOo^~8m)n~IQ0a6&>@#lX>nx1{$ zv^|gcl=kIe-92r?43{oR?UbV>OTQreyA5&N#Dx$ z*iZ3MzRBaMVd?z@eG@TzSWs zd{K^JrEsOzx9t&!JcodTks$)SgUttw*B6@PM%Xr&pIsx;5&Zw3HR?8dkrfafY-!Ur z@{;4NTDvJcS&C^ZQAn|?585r8dmrq2ave~D;xHVur04pQ9dNFjjAd9Yq_Q~=E z$HTu(2jqlA4fk$QihH2akXH}8BDWr_dN)ICuY`zM@eeot{hcc^OK!O$edZpt(__>r zi1wOJs*p{8PC|X?KA*!c3Dp!S!}0z8QrF|XS$N>bL9r2bx0Q;GBVD;Qd^KEMDJ9 z(npWpiw1jEI(gpA>@uU4QOw~z0Gf3NNr2F5wLf=kV6HTo{K@*(oC#V=C&IG6#*V!9 z^lT~jo~@14f%t`ynA*eXrN7F?`w_DW*w#d0(X75%fIL?HLB%!Kf>A7wp_TDEG8vvw zB74-ivLb!BRzD;=9&v(;q#LtcI}Efe&94x@gYBQXmPykX>QokJ)mcAXS!!ri*NTvDW%6i&mVYJCqb9g+z#j8~fYylrhs%(EuvD7j{ z0H}sv&cf78o_qrR!US)>X>m|7a=1)$^}c!O)WNbtK=z1zCAUuu)8&ER4Z&MOUH-zA zXQtLBtE^dT&J$>`>=(UYh6lWTYh-X&>FZcPs%hI>?lz8tysGtA$-e6?OZ~o~66*@? z(f-WWN^XB|IA@%*m|GblhdQedEePMT{_Ic*@}dIP4Z1*2P3kdPCco@}BFb)Mv>evO z!xG7zQI{b!)~P>t!T|w4KiwN@*t6{{X5TMy9Cz^FxX7(r z@ZG~xroVEvCVSO)7PDAFg#UZ4AW+e8-Tk@0KHrj9fz-;9C8P~=2qmsdg$b)fzv~T^ zd4~ArF(h?YmAA*e7rCpCwnv82I>rMayl%}(pNN5u^nRgNnfK?AWyu zV^Q%m@LEHm6b}qKKK#jZJ}*4CxZ#&omiBiLaErv>r!(zwk%rL$zpA|Ar2}e=e3pf{ z^@^I|6MJk)TGa#gwfv4ZQg#?fG)jU?6z4`xfI_KsH_1JPa3VEm!(En?!^ugh3?TNqpO3m02;qNPvEpr34$HkqPRSCBRS#7evn4m=ae3(G zwqK4JSz*$NZ|*^!u|yPpBzurU8U+0Q;9H@VWas4=<%d5fp3ol4aqd;f8K->w zc-iG)z(|SRL(EB+^vN}!ot0vSvuovAnQAS7O{V(w9aN8rrUcF$Tf4u}csW=Xjiq~^ z7arpE=eHf_jWCdU4#b83JYjwE$iibN1W8{6u2kT&V?R`E6SG(0FfQeycCt2Eud*Fj z+l|IDTEBe#x`=_GIcm-JfhN~f!P48Mk~Gnj5I47WjNiLuHX=AR#l$%LaS7EfVT|(q z{x1yZT};x1v2}Z?)1TXYvFe#P3)W8CY0fy8AN#r<)YuOg*ZNn-%`Li2HJ=^fL)Cu3m=%>< z#PM7F>olE^?kPT{$FZ1K;Zh6-$rCdd2J3Cn?!{Ir4Wg_OoF*rqn-}rNyIYQZR;xJ^ zgzX}hM@rj57%;Z-X!Kjg=&ULxmCx3<{nz{ygCj!y zWdD8Z`H|ARM&N8Uqc${nODk=_QK^KUf}?CNxndft{q8$D1B=~eB$Xc~~ zsTNHq_V%PVPZV@#OE_zg>wK@=2lW&lK0dyZKL~0*-X=F6K3SBZKIf$+StJJo>0<2e z20=+Ab2IMMG_4Mpz>RVP{#tQ4%E5t;cUZHGYin{0%6sAM%=bR){e-vwq5VOWL1%LN zI>&PYYGguxc)I?&nxx&=XFAc`#QdjIS_-g@--gB3{7C)DoZ_IR*q#>y3ipAW>!#!P;tjT_v z>x)fsbIh~)`BWps(TH!hiqi=3;my3>#Dph>ubHHcE{NFMVosgWu&-Pe zjz?Hbwyx1!sV3(rSc_zAY+U1m4&q+HsA)IY@{F9tW?S(h)wFAid9@`B1VlvMRWpFZ zVwQ#qM?%n^s>M@$9VMU+S)1CDF+sE#FMoIH-o$2^0e>b*-q}P&57af?f~OZz2*pRE z>WU(V@n7y_b=fsl!m^KSp=;tdi+lLipO4!@tbrIdo~7O4j;_^UF?jaFf9Jcd4u#)zM|PDM4mr4=3<{e#LoBf@e?4sMDV93TegfJGQbh!9+-h3 zmL$Z);c7|ZE#IDzPH%KcmogBp=~sJiMF`ss4~C$2Wiu0r*MG9VGPE{*O~&*dUVb?? zW!ZS%soeabn-Qz1zO3xi*Nl>SH3usgG1nK{o!H6>*LfC)+M|-?^Vlwx>}1uN;W|F7 z>%7k1rtS#W8GMKUB6>ZN5{4})!Dol|Sczw^8deltGpxA#>Hg`@<#iC89wzC|>N(&H&a(#pH$NVwHNd_=bkPh8yF7*ddcU5(0bbC!yd zl8uW?k&=q)#CLOcGh1tZQMbtI4xPZm*RG5G9q#mXufpYSP47{SI!AFdwypv4T6?3x zQEIKkc&%3RW#P#hFK|^65j?W<*XvZKCg{cYI%9ZK;+l=)Vi%tprT~9cYKdU)NTc#j znpjMWynD3xT4hvVebG`j*Py&Tt=9f_lBm;7h`A46;RR7J2{)jQJ`p?y{Fq>R)75oz zobh6TMH@%)qo4fRN7cK(gJ*`NnRQNIWn$@KQvZEkM(_O9dU+U$g9|@qPD@KJoqCqC zFjSaXel}G-1r9O7XE%%NIZ%QtOke`>_Jzi)L(CgpH%!^hm&A%XVF zW;qbxynUYv%tU*fz>JvBc8-^;NT8ISsHpemM=n|`)QuB84?2S~$FF8Xn?ku-nIVFY zekd#qZJi3_%zHb^4cf;VYP=JMOR~vF&{>9paNq zqveImmr>cb-(1lAtS6LZP+o91OS6IgYxm0xVT&K!JK8l1R78=7?Y+y}del9$DVsVs z4Gcz8LKzvle@9E@=jVU8oJxS^radfvky=Tz85?};q8*|*mrIbeWD_VC%u93S?)6&U ziq^cQORlp7vxkATKDDwhB>ca-lLYngK@rQ74*rbEbA=VP)>B<&bW2X^1Lo5e@(4$( zyb1+v2gCj#bgt9%$IQ3L({W3F`dhyd2`-TAy z?+U|{VVgXmt9$!%Q;{@g2rASJneXd*oX!SIs}2UVa(MK1h6qDn>)JlE z&}-)U=cfhqv!A@o8QJ)&oru9x{=4W*!!HZ%SInLF?xzGClnO)T^NOY@scvX@^j27J;rhPBS{s_N1r-&Tut+KiWbEVuZC`O zOejerj!2`7wHeuIUWm}E@AmG+d(Zyqqxh=Ixhj5VAk(PY`vdcuc27^w2hr39Y^zhyVD@AAEU9)p|zjzQK720V27$rK=2o~e?` zrDqW;aVBHF_c~*e-PaOD`=jIBBMcf&ZV>vp;Yfyj2}C0jtNj;0&V0B;SPcR!BI_#o z-2(IU*1V2h(~oT7L72JVV@cL7PlQmi?R)7JD_pcnO%aZgx65?A&Y-1*V1w=;*xBjy zdc#lf?)!n7e=}1IHd6)xMBeqtV89(c>s&t7P(Tf3Xe8G&U*(11 zh#BVDt@-!yA)jjvY%#=W$jYAg-yK3H4s#QfA5##~29YyF08VRT3OKw3TqHV8J~W>5 z$`z%~L^0Oc&ZI~fL8o$q8REUR6|N(v5PGq6ldq38KWbd!x}Osp#ii9K0jxd>*tgo1 zyB|&d){-L`O19OcD}Hpy=;inQ);Ep`k5 zTW)EI8=S z0)(XuTtv^(WVhKvm|0z47fnShQ_DD}Lhohig)i%8Ih9YTx-X*r6-$@9;)Rs&f7WBi zc&tP*VB8gaeXEvrvWCArc;XesNYl+Clc|=Jt{lVjHWDS%dOMmloE>AE>3EqzfAPEz z<_+Zp9l%Smtxv;h6IMSro&r&;J6-Wj+IdQ$uvl7LT<`bq!#veu+N+zoUrYkYE()tW zC!=ElN#n(`4zecVw(;y$*&JTj6$Ufh#DO_GJM{(@aQUtT-r={sjaiGozZ>{H*Gvk> zq&2Kk9!vUcH>ZV4U8xVEh*6h5`mss&;>Co$CPMyIhs*7C{^SkZ#|S1W-4kdW#HP)Y zoIqNgo{lko3uI~}A z+2E-aJ5MVW{tVb#pDsz;{UOif#|BDSc1<#-{RhZu4!bEa8F#*#B(66=-?$++jBsgy`>5kmV=^h~y_gJwt3OYVI7zx2+ej&t7f2ANn3gPM< zkZl^S#GAFcu!Ni0AN2u(&i-~Gb4&!4UpbUf(i{}$k~AHUl~FOe>n7Mk(B}Ewmvo3J zC`uWKWxklUM~O4oK+h3E&skEpTVevu?#-&xP2gtVI*7Eb0G93KoudB!X=(%fH4Q@f z+h&CeYN$0y1_3+OFG=6towupK6&qhCP_XeiD*l(;WlKCYe#Z$Jj+3ldQK$E120R-y zh_7ms3SP*t+N8$o;>kb*^P&r;0$ooE5>E&dZ*m@|_^!WPJ|7}%(MsKtAd+WI zPK4C_sI~n_CVG%t1Y;;cUYb;0NPoQdxv3!I5C)lua2+r%|%Wi=lKlv4s)N8 zpV`_mFzJCCGRMvhwm_`Hv*x?sG&=53l!WgOV^ff8z%@clpRKAU^%dbPbDfU>R2B3y zKxAuaNUP>(Tc1liH*xtg^7v^;(u|=w0lS>|%m)N}?LC6cX^U)gM>k#2VEN&WkF)@K zH_t79;iEk2(tri)|C?48H4`=Rh(zll?3i~kl1DxKNy=MgVt=YRS+WuukEVZv zXuS)z7vDbiN?2xFgX2!agrf8E;WlsDKZnv2_}+MR(`_+!O=~`S3Urd*MG_~68^8jI z90k!TPeQ7>5N1*sVVm_?xF^nl$67lIc8YPn2n{V|xWrr*F+L!5a_Hi`=GAr6)A|j&Y56Hurf{h9Su2!@&es(O+*J0x%C<3q0vD|NghAIq-f=)u83X&<>cZ7{+1gn$43J$qk% zuFLu_tDxWyLD?Tnv(4f4OM*SC#m&tM5XwXM;xQif8`RfyG)T_z9L{R{4aT9G#vPrA66a^F<~apYC#TX?=Jd#bY>J^-d6eC*XC zq`S%9dWqEKR2CBhW@l)e#xY-1b zlQ6I8xakicycs(i(Q5DXi=p{fplm2IQXTHL*#9{)h{<1c?5EY3X{}`!qrg{5#|iAx zNNLv+WA`}W*z>$d|FO4up}9+os(8E7dTZT{!TUM7g)?0#UC~!#sJS#{NocN^*W3s0 zLTzqeHhC&bulQ5LckFCzepGM*qM2^yNP;x8!JkC#B}KXvE$p8;a_sZd7h8d$+sP9X zRp3qJxn8YdJl$=1u)U1KxMH4bsd05iUYko*Qi`_v9sJ9895b$`zU47|w10LkO`gEM zVxGfA>xr<<4;Iu!>3OY;*LrgSI@)!$*S`cMKZJ}?X+IW*$`zi0AZ`{9n3 zztXZ2P#0d5KV0VYCmkRRWG2ZZ^Uf6Mad$Fv?Dn1RKfL>MPN*@O?sP?}LS-3JG&XWR zc0u7i1g7uj>2)D6t$i7B9#%t`g(xI9!^DE6e0LooT%`2feg&{7->XO)yG=GXn4iW) zf~cjNed^*JR72s@l0a@Q=4uWUs%v>p&hRK#>!O6`m*vY?q2cTsDMN*p2?_YgUNdxF zP>Hf@LLYzddv^wR3rO}ePc1XA+9(m3BG!Lu8@B+jHyVlb*Ib|P>IXTlYR|QX^-y>|TeuZn+G7fMSqn)pON|FyX68TFr`zo05qjmkp3w@o z?0Mjl-#&X86kL8w@HYE8tvm-9UnS=LYW{JaR30!7HNae(rZT zVw;e;&9mwD%o+z7GcuokN~RH1I@$g0<*T?#lB}%kARJWN42CR6sCMO z;)Fo~4&WDlj7?jx?YJ3+;E;>}Da&)c1Hj_tg5bo!_R;-ENu;_|__+UpssYcr z$N=VGSHcb`-YcOH#!Ryuk4^x1GOt_0i2+1QRXgKrmlrZ)V9hEiD1+))kaj&;%)X9|%Khu~RP#;Sl2XP8HbKNx}Z+5R1B+#K! zhm@tU%9zhbSc-Y4cpy|tz)9GA+&ek(uzg@sM|OqA>~k#lAi65QeD#W7|Cox33IfsN zeyC6LLXy|~VsZn*9CCtt@`Q+~sp%99Z~>&6I3b(2DoNt^I+HU5s3+JK2l7M$c({Ok zZoqRT0$Fvi0|phYErPTMz#_~WUeOeow^06r6*@>SoXvXoqsCWvGJMKLJ*+(LOGG2o zHbHH%>C;frJ}i!uMov=Sh(Ha@26GCTU;=@{&();*0x$8zS#U7Ch2d-iC2JaH=EE)H zgjc9F-hIpS$b5KlHK zsb3IIjY@0=cyKbMU6Ty<@>_}i;Rl$fR5V=Bz4kz4cBTM_2eL-DH_~2%yxN;LvY!d{ z4MGY=!GWE5FMs5#8H9UiBcE422pE?eXB??uU2#fO;@&L%`j$135g?)u55{}amI|@iofk&(QppY zq`VpA?5Q#DIA+(f^W)z6gnCunn9#SoYDL6ID-xM_r<5j7r-(QtLy66(GYP|~sHj+C zhH@;c^4b^N8T?W+<^Q5-v2q1R}mL2gz{7%1R<0O4b z_Ph{BZRle=c^QPOLqf#jb;l$JtbO(K4*Xo@8O%G#w*c#=W1M)wTYJbd?z{2kno-rD zI~#&Z1)^WV%8WIL>~lv4{jX)BU4-~gfub~ns@ASln>;-raAeR&Sf>SaC0!@qw8V@V zEBmECg8#ogA0$Fo=a3}s)|xndvXGsp(sbOHsh+TSfYkNH3tF2(S0>Y-9k+W)U7 zG+Oht|M&_fa`N%@82t2@>%J7nXZ9Qd^h=w4WVam@LVFDQ4E=vP4q=v=dvpw$x&5cF zcSrz4u!q^w$gU=^>*<*U2dGOzz#~Cq-sW$SY|kmx8uevb?hWJ_^GY9WM(V<$IQrng zYNx@jQI5H_l#w=rzZE)X79qw$*6VuJ%w;-iGk3@9&(Dk`sK<>eESB=_&-O-VpKAW_Vv(O@7;dX;y5wu={R zEzy(pK?wtBWWpB0McsRd6Kw;=0e1I0Ll`9=CCeCd;rq&QX2KEdwnGJ)Rh~{Na3Y>xyKa`$9`x*4T;3(4G8_G1bPTVtuw39(eXXrtG}ve7D3BUz4TR>`#G-IlDLz1|8xAZD1s%!b+lAE#G|(Xtx;SBwnO|cgM$w? z5~Y!ydmwRve$O>vfZ9AN&d93TN9aupYQ*b4ZG z&7+d1rGYikOZ$(iY{OD((DesdO30Wq30Itgda~m3aB&78t%n79>ftPMw(^@5Q6%TQ zM`eQP_tS5OQqG02_?`5~dr;A1+}r5|aNJ1DITdp{m-)?ck&bft07m=NLzPKceM|?{_ zFfDhwN*q5-cu19yS0n{Fl~F(EOwzSCtv705hPOi3w7Ul+l{vm;YQ8WQQ3E2rmdZtp zd(P1M$$A^FGL&)c;8>>F2mcL+v7^k*Rx$RHSF`CP&8qWdgn)pgY4C zk}m&~6a%kSI8Hu>72A`uzPP35T}+G2_FNR&#IZa<>t0z9$!-;5nCs+dx!9b0+(`)k z7Y8XlBNbbo&z;FiZgM9v?}xghMR)2Ae#=gJE&Oh~6F7?=$M&E!1SXAF<=hisuM!j? zLWm^(o)zOl(x3jfF%J^%yb5U;Qp2{3!lbJD+jwyuDs&Jlm?Mk+K7`eI2>*268S_v+ zKHRey{PJKXRt9v-e@X`{dJP-fy;Q;~N@eEq4?0r$Km|np)rZ{$57&f%TK^++NQOWH z)|l;vfpwbnU0;L16bU({4JQs0kkS@0oR*=bS2rJyV8L}zK*U6{Xvyu&sq?(S#y!~$ zMxK)dg=0)ICcXOjA5;@KAa=)q;+$ZE&jdwZoLaDKh44>44z`KW`u?9-xbxj{_X_)+ zs-68eIA9ON({kkk;hEi{GpVIswu4`8G=?%c*pqh~p@wD7U{6HjQVEcfO5hK#Dg$Fi^i8Bcz4sT&mwzv%#a^mXcn3b}6aOjEl5!32xHvae1 z6D7b)!pfjtkc7;O1sqo$f-w?4!0~+bZH+t>_q|V1qt0#Iy=n3k*8MqgfEtb`sm(q| zF^E3Gp#DLAPB3Gj<;CkyAx#*-6*zq7PKJ=XLAdX`uHitG1wtelgZN#L=gl#+*c0AY z=(?YqBz0^?=gWcsA!RxUUvf1)x=4bAoMU2ghz~@`=((15gU87>m!cgi&Q9fsJ#>bvcjfnKsEcHbc=^&5`&1cxj3K>A_NDh`cZGW^;_SF{IbH(o=J2? zDd}L*xG(_s6qqY=X{2JsU|Yya_su$x?U?^Gz7cqXSLwcd1!{#Q3~-!UDUPuPvcd;Z zQktGx!O0Au>K#VWqH{NiKWb*Y8lrIoWnlzW6m%Gb+sTt zJtLvv7a_Dt!Gf?g6heT{ctHb?5qROsA6hJR13R0Nr?9vzX6(gT)^=K>>UB~?LXH&m zm_CXS{($i5evO$qu{tsAuy!f8{8g~PM@Kjozl@iUYfmy(WU?0Q6yiae|);v=69BSW z;!3h?uE_HP9Qq#3NPa(VHbgVY>*}_W-^3V6A+=lQPK}@z;F2Kd8?rsd+ zBtk|#u3zhQ$G0?93HgVt4MV72PDpJ9?2FwVe=3Hapa4Gvj&}nhr`0Wd_y#f{dbBq~ zIRiSwxrxCe_F=lnFVD1jMKrS+Ih&@aa(GA!3Wq%pOikt1HD4ZOGB_~7^Ae>Bm2B#x%;a5TZp|>_509W(|Q6kN5a{E^lABQ{#R0zdN zdH${OC*8siVy7HO>`E1JwI5OB@pn*qEkK~|1z~Cr93b3O94cY|yekBvR5sVR`uM~q zaQJjQ`3Z~20Q^MPS}aaW1N_ucZ0H?*E)i!Anc3mu;Zeg0>?2M{D6X=m*9!~+cIX*$ z=GE+f60{%Hc}2}-in%aBKU0ATK^a)g8jTQ71mT8h_Pre^B9Uv+_Lkpm;chvY%-F=^ zSDiSm$7`x3_UF&>#9|TzLI(dp^lhAmKv4Ix=<-bp#2gLs za!Ad5ciG(PVDik4UXj&<&gn;Hb)@Hb21BSeSHQLG1%BrYDCgoNV(Z@Ym(X46IY!lb z{keu$S8EP(fhso9Qz4HpfTA4=5W`bR;RStd6kCI{?3hrik8{ z2TUvM@d2z^^*Q@Zjg9fQts&18GMrwEgCgTlnN!*(s9#3@dlqpLUIp{_(D(^Q=csgD z(GpPVn7Cn_d}dxfK(d%*eOxJIsh zsbTgbyCAGQHMiam6><2)t6Cpa@)T9iQpbXXe-q z$PQoW@AN(o-2Wx3PKN))?xmQmyd%dsOZ9Lu(0RrF60@A0EYT9}oKdEhLn}fMoQ8@W ze^NO}6pt`!GPrUJ*#$ubD5G)Q1Nr)IikSP-`JFU8u3hN1_7yhCPw9UAK>Ex8FbQ4c z6(~^(4`~R5^@nXQca1~KkhrsJzBw%jvSSR`B$UBaoMAJNixc%R5ypM@{3W{%^8${P zamCb2)=O-#6r&SGoxTOlBPUKE_TvZ_4pgnw9N5P}h3je1M)~Wy!bmUsR@ZCf|K>~Q zkX5*^7cgVSnG+P(wQDNC(K!Lk2pEev{IbPFjCZ47{j$uxdIXA}!Kdt_0Jpt$i^BC< z>pl)9HvGd8sI*ytnmFSH+hlM$t!9o6-$*{v^}sf|pwK|~bvxMJ+r|8qrs5+?v=FI# zCAPXQx9Y%JeHr{v#SBe7EUc^78yPTId} zZ@&(YLZQZY4?Ln0SPY_-Zsx>Hg%cV}md}>we^{pOycI1zG5>Z8s-5iyOs1ojFQa(e=TroAZmyVjQT;c^#A%8pu6(S)y{4o?#hq)cf$Q{X{ z8gb6p_YOE~rS|dacn@9UTBIkeam5Zr#bL%VcakR90?LXt`2n>S7m*ztq8=@C!dYBK z!X<9zE%uQgi;Oxx!R4zQHt*rOK)jBm8Kg=%@8?oqW~g;R76x6U$T?xIUxvPJA%2RG zACyOaUYFF%3Oo=6y{jPrz=dAOrRoaLy=DOepZ!BMNuuqtBW%Lc}!MBnVGD z3zIV>P2UDknSC;l%$ARL(#(OoJJ0vByEOSlOt)6s&vrop5sFhTU@c5|_#A*k7)YiE zY)`IwY3xAk>is(&Tx69-g{kJ0x)k`8NL8mj>2s;PPkX~8a>+J80>XQzPm5A>Rq^4z)E zEwbUFJjcmzGymKgyv9Zg{hzPmlCSlYWj$yzxOI5nf7#?th7t`<^n=3A4v_i>7)p8t z(n!z=Yq`)hhwE)KWfT+mO{V22=6nC^aR>QzlXc^P5%``sdSI+)=H_rCh3t)~Z4ty4yc5WOXm^z_uR2&|X8NLRCMM za4xi1CRJL>Z6RttEH6Mkz$ieibal2hx=o_OuvFvS&6&iSV@#n%+rv}K6~6~fBsx0uZ z{knF7@S`8i?riw^4d>!Mq+j9r<&NIvJ2podec?$~!#0;)wfu{h zA|+U8LW(U^W7kg+Xg@fnIDDga*;OdKrFLgNKh%D#B4e*>E*y)496&Fovh!;A8|Wrd zq;@Cp`bww32q8Sq`>WzKzQS23r(b({gQEcU3m0(k-C=9j)qjl=4c->-CY}Z31k?vf zhMQF#bQK&L?sK|SXr)5BnOTI5Y%6I`*Eok0WF3gSCISiDcisvM6PSdDR0m#zWR=rn zqd-Cf4vWB>=DK$y1i4k5@V~11oOfLr)h)3dGQ}uqbhFZe3g}`}>5jAP;M9o61KHZV zE*OF}b;tzK#Wn-2wI@do_G{RIBhTBR9QpexEV+m*Efm)Jm&9aI%rshRW$D%rMz|24 zO>aI)`6}3`F>>eevi7O1$2`Ac9O=`FBOcDZXd*Zq$F!8iOqSIXV1V;yO4*dUzQ z#p5q@uwq53d}K+HYwyz)ntsW^ag{RthZS1s{-^EH3SWN*S8)&-;q0(GuLSmX7?wBl zA`5c>9}jPSh9~r9sx$3@y@CDGrLVV$&t3+1jU|aHP*9P8&aL~Db&)d-{Cn!*+j8Cc zB4M~vv=E=*rjqJi7FE47iQB8=yx^k9I|N@h7-XX}lf7FFi06rg9{mV|4Ku%%@I5y= zL@c0I$hfz|;yCv+-8&=mSa-k-1zEq4ff&Um9)1d&WxDhR>>BV3ud&c;iclLchyH}; z(b%=S1MBfQ9M7&q^ok!@#N$IvZjte1r~ae^2m|aZWrZsvVTaI2$P<~bhfHhm1GCK) z-_xg7*>X=+D6Iz#bj?Pj+e?+?UlIigu1!^B%)B$azEtXHQ>z6cpZ4*X_veXNKC||} zj{zXB9Rz33siHz9w`0rs9pUjt2S&1v-T74V%3ANt?3r;UhDDz5FQ&R|FwZvF0zBVf zmLj^=hse>MpaC4Hi0pwWZ8(I|6$eYp0l`-vFWv=1KRtox)=%w@5X7FePTJZ53lXpt z>?9pK7A3Z10+TiQK~_lY6$TeP-R~HIf|YJ35+p130u@Wj5IM>-&VFa0uukRJPdyh=3}Jf@oP2ec0$S3Og%vPU*kT^8?}7_jnOns|7|JHe3pTEfkN(0}SLYD&!hg z_HTw*;fT2C8f#316%xi$jgn~^mH9V`twl8bw0>97p1E7}R~z!_zxqN{>RlkpxD6an zgM#$;wpdwM+B-vW1bO1?la8kpyV=J6dvZ8@>i&j|Ny^~nE!`oxQ`b+_8AOmeJlKt5 zM8hHw!qHOAetr}Dx=)QS`i*&vgT#Vg4A5B-$Y;(&BA}GOSK1C%Yk47YMkY)8v_kY| z=X!bj-Y%10ZFd?1Dt!zNH;w9`(jU(7T|m&kz_gouHiel|ZD2gA%1veJ7bT>~7sgh(Mo^xib1Mb>?`O+?-x9u@%E6nyaD!TM^z$;gsg z_iJOnt>|S1$1tcOwc>yycw-}B!$KG3w8D>#pNg@taeaTci|QeUIE>5tL#1`!2WKb(K=4Wam7RMvv!Zv! zbvRMOfmjrmcTQgiYF+O6_x-YtBf`zHGE^w96m|KM%S=1p8#X(k!ly2CIxkxSuDHJb zY-aaw41dv5vhXrGw#59jBSejgK*6)m`WTp4Ng8vUS`i_Br6+c(HMkRavJ*DFKR;gk>8~c)}t8B9)dD zYeLh=bXzrX#`-zfpl=Nxw##0iYQAy0s+OfP@>?OL+-jdfM5Kv}* z$`6?^Ve;DypXUhx+&6M(jRIoS+yBSZTgOH5e(%GxEFle&(jo#%NsFK?0)k3ebSX%e zbnhC7h#;Y&w1SFCBb|bjbVws1s7QCS&l%sJ@9*{SFS9fE+;Przu5+C;N`5N?krQ`z z#@^c2fNyZgeu%ve(jjXIB3D36e-W5K=f=DAf7rtS(RS1TrdbMWU7!$3i|f+=LT*nQe9n!5MelS+zXQ8at35S?lf|vI>T>3 z$~bG>!=iy7hn$lgl^Udca=9sfeBCDYb|DNr=*jl_m8c2zf!9vQE{vav6YyHyCLS^0 zQl6j75pf!t;cZWkAVNv*MYP&#UijR#Y*PiJeCx14(6qf%uF11%bkewY``@9*6dp>g zM@W;ix`v!yG~+*dI??(vfF8MTM~pwqwJ@pnRSd;y#{!#?d*wXeA#YB3muHZMH%5gY zid5ZhZLn|EtWP8<|~cJ`vb5z9F9FB?#7`O0P3tq5{(Ev%1t1ocOk!Zx!7g2 z)rbg**5Nx*kq}>Bgp81LqZ{e`71;CC9s=V99p?(TDOisS3dYwCK%hPib-0Bv(7J7W zO&st$tKyAeQ;$&f>G`SHx{KWf%&^OXpianh3%^kMyOn!oiN0*wqPS8+ZRwnU$O3t1 z6@uafR3Y^)G^C|I@}p&X|1*ch7|4=cW2X8ihc!yI;uj>^m$YUHFDZegs<_{%cG3c5 z;Z~K=dn;?Aw-w1qlH_!EfhTJ_IS7;+Y*0?mtJi>K8J6Vw0R1}L(S)CF1?$CIR)dOM znGa!KKSm@f*Fd7$bkE?=>Z_vr6}bQIUH?h_HqY{q?b|7=Nc)ytiv<7WqRfETEwO23+~;Lvg0=)z3k`d zsAICSyM1>+;6y^K6|y9nv;_i)@_diqIz6YT572~yjjS}(TzE5AcUA=jltL<^ZAzE3 z?&#@=Bhn2chb4g*8on|PC4-XNx)lFY+H0JDqv>5$dG*=eP5D3cae+po-V9rcX7l~; z49mU~!-SHf{-KTsqMZfvXFjMmJcq;}b0tct#hdadxIg%Ts9X>t8k07GuvcM)nUxhp zTT+^h=M#y#_aon8BrG42FP`?&Pxl2J%H{Zr3`o2VNcw-;0}m?SzrzhlIBx;#E8z8v zzO<559t$QO?5{K(d)fp--051fAJ+HV(8%X8vcJ0t4CWD;RT6YN8*(f`PIxKut@0x! zH#U=UgueTEHd=avYUZ|o#|r5VMUv9{0YF3(Q6R0AHQR>ztv8=tMu(WM1@FuVf!DPH z8*@s-Ztbt;7S&+>1fbDdBT>MX^9><5Zmkx)$u>Q zA7TNn4|+c#bmduT*!N~cqZu%nQ0nu>q{3IzAB_N+2@Z+&4Ee2<6uO4)rNc1bWE4K0 zYM*>-V-2~Bbe$ae1jvj(;gr`2-kq0km!-%64y5G)B@_7e(`bPBPxJ=$eW;oYil$-I z$NcwxqU1EH>;Y2KsZr%*^3zFaG3_uJ;{8ova5vSGUen_^#E&megc3b=*6e{pdx>VD zq(Gd5a)I-jOZi+1?k^KKKOaICGj4o(p>VRN+{bl$GF)N`fKSn}FBEjV=R^TBy#Eg?d_)Aw|n+ zN&~m^=M9$_M?e1fctd1Z@?I@y9)+EUK1*&k?l5kb~ z$vx!?DDSA4{rX{w(csGPiNtVFiHV&%XD)7DVW+=jb?a8EkyWL?me4+As?%nE(C_u2 zu*`Y5sF3@ZUC6_Smmp~~4dwLR5a4Y?`gJgbsb+F=G96Dmu-VjrDrcugO8+yzZo)p| zR>YbE=>Ac-q!^vd?N^|yy)r9ButFkzZoA|E_MTW>-&+1@Gh3BB(eJnoi1zqD-_I0` zYC%>~h@wGA2tc41oDfS6g`7pB=u{PILjf>h%2qON=w;y3q+0@$}RCJ^7f=_ z*m}*;_<{=C*FY;1^fx~6q;t;!xacD}nIkEnZh4cIrtRZ4{}n&^70R(lEjs?pj`ibp zh)065_f`qzE5F(t7v4R6^eC5`4Bz$Pno#M?yM!s|R1ycEyC1wrGkVVNQt+H2;~glF zPv%BuZq3n1K*jE2csN^F>SXdssEK`+y#HNn=i9XV{(P6mwn3How&XZv*-++ilxyWW z#I#ZOq;7wESuhFNZ@EQAF3Lkn{??x$5P#Q6tvGOyf;nSD{%?g`f15|6`q0|a655*g zYiDvn3)+`RO%^!)!o)?g?f1AT(4DaW?gr5VUN@ zX#N%T7${R&^s@$f+txwQqJ5OTN_~^)`6s)MW!CvUjsc+PV$W>5X~oQYF*QLht(bGS z&pT64QlW?l)MYO{4hY3F&+(|RdY;`a)`bmDQWaW$_s)-tq%l?HzBOc3i>ydlxPP9a z)1qjkn>YskgR@JLe|u#>XTt6&FVoDm2Jgq?dO&y0jFuNyEY(tjrK*`xO9OBV`k&af z%JV+dGmAH&;nWo9Q@|i#0e~Ebyok&`&p79q29-0OnKWAnR5v%Qc=7v;sjSP3UA!I~ zr0$CGoeUFd6-TlU?iHhI8!0$_l+@G(++;?n#d3C-aX3yk1~ouEUZ!VMejmi+X#mNv zkuO&!Z0^=UU-RNztZ%xU3A5IpUDbz#%co5i?hag5P9X|fKlN`xl~a5>o&@19Y_=M zqyhoZ1`3^15dd8obL7UaBXLg(x%nSKRCNIj9?9ZX`T~#xGuI+YK}x zM-|aFjtYB?kR(>c)P%qI+Px=XCUf`UQ#dECNlIc@D{>*}@M2Hl)aHZBLoCzS9s^)^ zPk=l*1||GKYXDW`yxrf&L6x8h_0LWkcgfK6h}PN<6}w6V?W{%b?+&)lN&uZ;UfE#Un?x#~W@Y_JurvrolDu9c-g^#;z-=eXBK#vZ-K37)iSbHva z>tj?<4z;((0KEVj2|iyQx(RuDD5C{%&h^H3dGeh~>cS!4zaQRDfo`+t*imkOCQuT0 zfVzQ>Ky&kd%?K3nDgqWf0EooZ%3O70ns2DW`99;H6_-4H4iz&BFJa3jKiNLIi~kG9 zb8psyC`HD9)|~XWF>ovMhcFtAr(hT38ov_Ixm^^q5OUw-4m_1^_02C%tB9Nb(2UU! zXi4@e%*@m@5#rNRmCAvTG%K>I`2vXiwtk#OB-aVBNM-Y+53%Xg3JZ+U9dp5>sP|ATz!A_R@1FD5W^#4L(feN!U#&@*H3cxF}!% zS))WT0kwr4)u})g*vh(gb{S9DCC>w4_VqiVzl%XL0}W69HpDp| zFrbWGCk_=H0~TgDvkj$69n)Yipgl~mFc6}sD$Q@^ZJhPq*0TG`)WzZGC{b|b!2j4P zUZ_dkwjlqrL1bA=CU8S*kwzDe%-dRzJonm;7dR}bIH-QPM>Y*QOc`~;fMMC%d23+9 ze`WjdiL8C=GI6cEffD2Yl(|BG(D=s;_(bn&$?c9)4Yj#okmgF6g<_;@Avcu3oi?mi z2O!XR=<8+9O0T(rE^lVTca7&k3=eW)k_W5^kg5N28*tObOkuES3%*+Z<7ekSEk-m4@oP*^)IcU*!z6~uC)}m+D zVs)z7O7Y=XPaYK+f#wzs4N#yp+2L_&?jD@DvKY0Z3qqIHmAJ@qpYQ-mQ=Y|n7orj^}egtUr@k?|;iz zNby!Q%ikr39hTt2lyvImJ<#rH{U<;ezdf`$0cq%bZmfy`oQ!uWmVn3F+GGFW?R)or zEL%q-GhR)qH55PQxmz6>gh9tDUWB_nkW3m~@<5HUqd^==0JtLp5LL>@pSXnO zoxFPqk5}HEla`i50_V~8Bv5JkuW}QlV6bErXr)++a`ilW@a0B9jhIH^%mZ5nD+@y) z95&P&1v)V=NjTMC3uw%#OZu8R@TFn}gi$0!?=YNkzD!@o- zLt)J&Mm~a_bP+U{Z1AQT*F|+WuwR=1mrer{TFfoPHxo&1{o_rzc!S%K*TY1wR_cEv zO$vuLQBNQI&rh3D{vjRuJc}}K{iH6S2k_>yj`p?$*R<)}h-7y|OB#>0KhF)!Cj<{m zbk_1p{SHgIsC6*<<-ZO}?QVO|G?#0Ou5E?Lca&IX&NFPq%0(Ijm*V-SQw4g)*@J)l z0Qou;%xZv2-$jusihtBAy%B@THzIiHyie44ADbsCkV4i2&Eg7#E(#ad2K}4^_+pp9iwt^vjE%`bh{ISUXUY zIE|ECnf&?FxpBo&_w4$!`9s08v2`Q6aBuO>Jn?Y^AQsKVW?ufVW_s=g=?7*=d)nw^ z_0C@rKS-iZgF^?7<4BZx^kW8lTTJ=HE267h2YT>SBvAJ-4egrg~iJ;N2lQ(1YW;>{VOn=hngKS*ti;+HPOeo66hXw5t>8aElE{QQ{H`z5BMQq!6-O4nn| z5FI8U3iMy#Ar3EvTs+DQ79CSL@cCg;{vijg=V7i%bN}5ghGGM7FyD?nRpN&=FXV3S z`mDD*4!jrS#+)^lFOMbl&Ck{DDW`clQJ;pg{?jdQ7S$K3?n6ti-u=|eJSXiH$*x}e zq%UR!Eh=VCDMMx%lrqMs6mz`huGD`OZaJktBNeTI5M61N?r4JCiF4x}(X%AI5E2&= zZM(C|&7Sl~T{0kgq0d+hbbE1M1Nv!6G^dEPyorGfn>Xe(e7UkvVH_fd6X5Nh3&bPa zBe1BB*<0lhT7V+1LMMkhQN})IhBh^X0HvM7kyEG5$~>ciorSfI3s$Q8TRqG^TzeB1 z+HWnncQVBJ{Sy7rquowVFPm1FM!x%`g`P(+tY%OyF8WU~biz&v`i;KZ`df3xMP8p64{0IyI2r+ZegZ5`{QE*?YKTmWV2m4ivGkDhmgB+<7N2;N{iliUFT5Z*n zqshC_PPE@!pgO&O7c$cU-4M+7jB?`sex?uGAZLfF=b5LBG@mJ&ApV{qiy`wo=pf~8 zA)$j{z1?f&v*wkeB^$#P+toio7p2m<%8@YEF+_|QE2kug#qNi5{UYvM<28rvDd>6@}!|Y zjcQ{1*}_pfSFey3WAWbhX}Ptg!mvt|k-yvxib+(pW^cI(yJ9GEN)v5ng)+uquZ2N% zpO1E<0yYHYBwIkzF@?&rv@c=XfLs;&S6Nq=Q}_cmtBL0>aV-QgTpu90`n!9#`zMoH zZNae4q{jIHG6rO4bI~=D?9X>IVB%h^&-TN9Kja@|0D_RV$J1z{RFRJ16qJje1TnC5 zed9l&CD+p~5eAJX>^GrgJ;D9KTYPbS!F~F6aE9$gD?-sWv>8g}cg>KyD#d>`Ky{bs zI0j<5BdH)K9P}0y`CLFm)8QW8z&Wk_Iw=9|LZEArA5EvaMBcn$HpjYJ2O=HX-MIqmYS}(EI3SudHM-@HkF=0 z!{mP%`O|JNX%HtJ8SYX#Z?IE%^o{w`Eg(qIP9Dx0B==sJ-|z?S12W|9}LD#)u7aBqjF5};Q` za`67nt0W9s{jBYF+yVhiptgIk zGN5?g5MKs~%G;A)!+vd%zoXsD9&shc&T}N$X6UQH dDC(T-kT}0>?yk{jCd%KriwqfhA zGw$o5guLQ?Wz%j&SrnnhFeR*zioc_$ITJvH)>-IjZW~<*%G6#&37u zD&YsF}0QVyv!&;PIlqa$YM1cK?4GJ1|J~ZG+^7&DE+=-)_j4*WPE2D;{ zT!OQ`@K9}fQP4QpIB`%OJ=$|L@>sq{Ep9i+;{`q-I)#@%REM73mZc^8V3?gn^AHE3 zNjI!Nof+$U^W=*v@%_ML3FVO#BV?ct2s#rI0iLHl9~lu%-YNXdP-3kE6< zXxYZ-chT@esaH=DK`$p(5MC0JA=M!I9fNfwvUG4DPWz#xuQ3E`KiA}@35v3Iej_Da z7t_N{^qW3OhY-GbC&>=T!hZe=xfWshQP0?|Dhbd`IT_*HAOR-^VqJ*yF24|sHWe@4 z_5jB}oZn7h*)Gz{n5SFW?!Z?~C$jReAt(RdD?P_%bm^wmH9m9$7$parP32;J@1Beo z`mIZC-KtmRiV*(h-Wzq{&Ci`bC&r*_&^F$Uzc}}|Izsy{I>ITVm9VC9Gc()h(^maE zD+gzul3_s3Xj3$AQKV8*a+QiRmV{Cji!@8GTm%|*D&(VK5#RV4?jDn=5TySmZ~bAu zsda;@e8<)5D&I{Q!>c}5=9#g6FV^Ot;nr;1SBu#S5ctf4S5D^A^uFND4g85dXSXDb z-eH*jcghirrN6G8>8tNv?7u-x@?p5eiyz9>3VX(EhpS@-z7v(7dL@zlcWuMFQ#)(k zNf$}{#KQMSHc!}K;CmyVvXkm-@yCaI*&|i&lD>iW@!v9vZfQ^RFuUiZ$|s+-YQ(^R z5IA}}U&fAQGdJkH&HY5g`?bS~X@1Z z%$mY5#-c_G*6krSUq+FTs^I^(N8np3j~T;*j9xL>5aViLLk%!#oY1>36wH7R~75 zDBOLJ1}~E!sWBBU6t*@+mc{ImK;q|8Dq%Z+i3zHaKl@v~m5^{9|BG+lM4B~WB2W=_a)N$+}5kD z_4lf!x?moy(F+ADMcn^NR@6LyYyx-EO!{eabuX@-1G#2X)=u(>h89T=_p;MfPG&2M zxg!Giv5&s_7w=cH^OPCZ%rlQ}-oCL55ylq7bVUWqt>aH$Bev9i$EP#EFFQP3AEC45 z`*so?!r`YMh_~}6#~PmDzI7tFodKRK+vJRnh2(7Mi>GuW1BTM<-$p*Q=ep*T)*7aF@CeoWGda(fqtC>8`x}uLOqTf8nZ#$r9B{ z&jjJ>J6^+q7B;f(@B=yT&yoUBSK-Dk^hzh)*VQZ7U#M35R2wrk$<78Uq$_K~^^-Qu z7c8nse^ z)WNB}Id`yjK#&TZiN`qFR19HA^7gx?uF%!UZ_h`gFPx4ExTUrb)Z+;4>30K-%`{lP%JT`?lkkJOMJF8Rw@ zAQLs=ShA>m7=74794%P6A*p~WO{-YVlpioF=g{Y+e&pcraQ{MaewmkrlWAyxA>*hF zq8G3bWH=Rn*>Cv?34E*z(UVowVQrAOlJ|)yCrIi5+qjo!c0=6cX#TD^+=%l3zuPV; zI8(vUzBSzYzf0du=;n%9J`i-Kn)-O83M^JU%!S(gdk?Ii7ZxsUK(`u0h6+5l{71at z%HZpYmlss3LkAz?s%qX4;M%_t&#Oi%9!x4r>F*80r+u%Wmo{j#Ds1%Zm~{4d3C{d? z-N!ryA)$`LkBP$5du}v`dckgGILqzNe#=>^OyYu5en#E5ODIf`DeXf;7kbNMX4{*t2(CxNfg zz2UUom2!!l6}^g%{w00J9T^0vyGMw&x`IQH$MS!zEP|^N)rtIIm1}JN`(M|8{{!D* zA^u8ZnOA}J04tYLGpfa-PO*WVlL8=^=Xjvf5Kvn|cNN zjnbo7h;r|+xhxzAEh)giw*vPHR19oDxp=Jl8wu^#88a zI5-t=f;p*Do#I4)2q9?dTTr{2*S^8C+=PP^Gyt1g6dr#@I{0H#n8r#iSK;0UfgiO# zg)`4tg13yD*pK<6>r96O@g|aVL|J|6Wu5vzpSLrWfV`(!nT|U6cfHjCxrGiMEYK~E zgjz{10v+79>{d@>cIh*=nM<9EGq0~<{T4N0zY&Hy!Sfx}Pms#apm}$I9esm=Su1P0 zHpZl|qGz5d@+BVWA)(aq1XO}NFa9}P>-*+v=2nW7G*>z14>K*2swh!)V&%hqHUH(= zt4ET3e+E(NSVN0SzRC*upxvBVneI;?jHae3vkQ=0Pal&De?3coM+6r#SR;J;F3c)l zP(|_QEqYVi=v#0az1>JU#b8#CI-MC@8|2sE(qc-zx>gu4PHLggs|#)|iibjH&G{$i z^~bOT7p(p&>oLIPuaohrQ=R+&Sz?E*<`C>#`p7g&FxypWg4}QcyGa`@cVi^!XoFLB>^)~!VLwPjuVjXHR?q~4xDMoQw2sykY^5k zrqN81%!7VWvs&G4tA;RR431j6Id7hSs*_|V#B{>|8x!Vp!XiY9R zI4>_-a98n0RwB<%0!|R_ZxT`$SA1%M`A9(5NT+HqQbO0&ElE8h_XAPx7l~eEAHvvy5bxXkKDkakD_?5wQ+j{PDt+|7*ytMD{nm1eeAnKCKI zE2l3n8KLv^x4_xK`8~(=i&jkV1tdoF+UfRaCt5@8s^Cv!Ysdd>kyQVUq(3bhZP^7G zM^TGyi14dmkw=G3u=;V4loiVggPw_+i}U_v?c_+5yWDOoM`y-ik%JW9dN@%Z;g#Q5 zZ@%aD%4kY1?;_3M(B08GH1)G%E5C80l^n3o!?rU_th+fpA_r^|Os~$4c?tgaBe}o! z(Tir{-QgBFAD5MmC@DmRrL0U3sGtX|%igZFIns5QF=GFtLwktTNhJEsdCbW#3pdK; z>O=_+-HYpYq)GfXEG^oHp2G~L2Cm9)Nm)N$@;7%L*`&V?jw1DNV9GjT+PSzsSb#0{ zs+8!T*MK?HE0fpXabL+K^e;OU0EW>!7cPc8$6=8S=02>OYIT3V1eNv8G>Kw38gO;R z9KS_&yza7vm;RoFDM#dMoq-c!27kM zN{w+T;%QqxZ$21VuSvsJyBY!8%)XlQC~Qp{fsfkNWAr)e(-{|&D?CJ{;e|)bt;+z` z>Fp_kt#WQ9O??9v==)OKZ}qAJb#mtK@5UBCXixNMf1yODCrQyEW^5(?i(?@c?3E!U z3J{QwH^1D9o+(g|JpJ-+2(`DQZJ^FMrEjtOJKbPeoVo@QW6#B|@r|z!Qo`POVr_LC zVS%lf@#6Ow!=O)YQz|A~`oooEnpcOLj!}@iA1u(Uz|U6Ms6X{Tv=TtR=MHfov>f+M zZAp3`?D8;{Zcs%hn}&Fwr|@M99BTaQYhv&^MH3Y}WJaTZJ^V`Co@c_Sl`>z8Y2 zkkp}tU_J2bN8C!@jBO^wZLJI$>n1D3T%bXEQI958UcY2K7o`pUhLP|QOyqSFtJo%{ zoJWa199VjTwcUf>G90mNFiE{OE2J%!nU&M`;l{f0$v`AAw!i0&pCQC>; zW;flWIECC%uU>R?7lp2uh4<tEm#cvQCf_d!d+(-6u!#?^L`I=`E zBa%u=8=)|`?5w!r>l}eaEdaJg0qiMPrXkA@dY_GEn(Mc|#J=vqZa4GX9q~kz=@HEs z$;;T%aqPspjCkf&v1DX~7jhbw{SmbZqfhmhIT{AG9qAIkFbOMtzm;E-Bk)Doi%Stc zL8W-vYX??!kMYCnO%11!TX)G32B9M9nry|ex%^}I<4$*`d@+e|VmXA|DgMriuLy3q z&q8c5cxc6m++j4t*7zim5#)G$wP4NvIZ#SD>SC(B>Ex=BQxD+0er;xI2|6NYBE0wW zUEam?gFApF2ZkIRk<2^rL+=Hy6Yird{AY#btW+spj9G9s1*L4QwCC-aB7Ah>@vKdC zj;~gD6~Un1M!wP&19D#CIFDMSbVw2b?ZyxVJx zMmHD@!4Njs*XLdx1y*W*+il&L6q6H`M4}cKrdrHG(H-DW=3FJwFERNMFKV>xYQ>hK z_~h z{@_K(!7sbJCo1R~Vpxc-+W%Qhr0k0rf;;>qg+G5+ho53jm5DEM&GuH$6?|oD+<&h4 z%Fc>nl~QH$31Z&udLjk2T7$NC5+z|_yALs3JVT9;`K}$0zTCkwXvIdZawlCmwzO@6 z!P84@IwE0!Zr!Num_qjFBbvUNQ%pN0Qv<=h!2B*e&ymH<8n5$*)9m0gCj z?nL@urCv)mm6C`$#+GNshdlcmGgI}%xb6nguwW9uZX7+KThdO7V=N&a^ zuls(t5Z;ST{h+`V4mT{+KRX3yC6&~NhV7pjVt$d=XCqe=wCfLKhq44>H~XBWD)Hdl z=8n(>h&=g_!(lCnmAmX}C%v*UT2WU1rRCrWs_1Im-LnMjb|?f#8%zl|o8 z73Qk&oB@dDN5TJXN2w8W33um*U#=bg(_xpk_Us%J$#$1Z)n20t_&2?T3!)pqFPN_D zGK(C%+MpL0^>;+Jz~t+ZTi`?f+hPpQnRh&Py7Fo|zgy6XwYE(5+ zcD1$|Uvd3-D1fyFJIn45pX*xe^@`+yhpzx0F%W#grv~X1TS=xlh!}Z$0HZxh^0vf$#mZ;Y__-l@Bl_Ze|mrP zH~yOfK>_b1@VV;~ zuqmIy#Vlg~Tk)Gtj4ye1Rs+1OO3u~PEBdaCGs5k!_qTZjZqK+ctm@Lj92TXTokF6# z+ggF^BGV>3Tej{U%4J+iGdsKe^u8S_l97pG4&x|^z0#=^y37sw-gvJ*q^Y!>1oym? zRP(5A@MqB|Ua^kmtN?%a(O`Ih+AQz@GzqE`DQ5rC5vaa}WY>EV7(&^gPwcYpOEJQrJSiZ~sSuNzc zMT;C^Zv$KSEgtDNKiVD3FL`4ng3zK&Gqth}qh)?rTTO1bj1QDA#N#0x0~^# zI>G32Ua;ZFrg7f^gwK}Y0lcgVM6KwffEzRm_Bu8UL}VL&Pt_ir1t1vw12+^zJZphp zguZt+1N#R>->S1V=n?+edF3oxWR`qxPMi(Nll(;%U7*Xl-3z$a;hqqE4)xc7y0~M- z)Ki16&ssm7f5n2Nt6O>Ki2L@(3d!qj^@EiG9DQW{GfeeYjg}$2GxWe<@Q09Eh?YM^ z@r58Rt21S_H&N)m&}?d#OgRIP&?Ekg~#~3rH06pn8?* zZR*`Z)1}`B2k}<*#H|k;*8myv1;bMQX{ZR{-&7WKpEj@~>5bp(*nQt3`(k?PkNMq- zz;vPe{sm?N4DxbqL{}T%l|TNh8=vf9*WSRF@6aQ|Lmx4nBBiv^iXb^-f zU$DlR{*h@wh^8)8b^P<{v*RDP?_SW+nV)a@sTy!f1j)$%WV01x*7iMk3YaxB`o}VI zrLf~G07>hm5A!l?x7YLU7x^SnntmJOS@OTuv6o3m94UAzWU#31aVX;%;HvFkp?5Ra zjM{kpyuahE(wau;QHyif7g(2PlbdO3;!2mTQ@&(U6WTiNy5iIG_=G5&*_vL~DJk4S z3P>Ql17I>;pk_WYV7wNtx0M#cLQKg#>^Cmi{|eEhc}k8D4ximiY|2ZqNx(U2r%-#i zC(|Uk)L+u6Dyx*Br=34qS)6tRVFuL|C{;b8+hChUA?URH*hE+$FR&`}w{8n4Dcb~P?%^rUGoBGtPJPGCAH~8Sl z69>Ws7GjaeQ?XWRq@L>D^9_isaDGnfH%+*f{)VgVY~Geb&e(R)a#x#I8(Li%peeC+ zWu;ehMu~NUj+GU)l8?IAoRh(HRt8F^ zdM)E@$obmlE)l(`)nCA?8|v@n7>ljE&&!s^LrU+H%%T>|Ehz-NiCwy)YueFQ3yfVWI@D**tDF5x(kk zP8(sCASRajIO~@BoG(eJ`A`{Dx}KWsKF4Q6!B^$fQZ@UFRLa45Hb8ji3OO1aA2)TR zK;Gm{vl3FPT<*s;yL8r7>0Bd;q5~$)rP2Zg#{Qdc7zy1|De^h6E!%EgWY}1b^TCU!tGi}8JzqA zam?!*Lp~CWGZ$|@q-v5UO&-cvPUa!KsXG4T9KZbh&t{`m1{~&HPIEK9o$W}W&Jgn+ z^KQl|kpo`;3)Wp%(U;Dl<3ui>IKW(gGTP$1i{&5ND{CSgw36d)Pp4Q&ICtAgtBxNE z`o7zjoeWXNL!>rf3ty~e9cZC-FzFshIG0$gbMD$M7A%gL0V>N`C z@l9WLyGU{CQz?!;UYYwrL6mz3lOw;v%Pr_@D|aO+_^ zXR1IeSm9;Mc#?~2BkmUYm$81D;rkILEW6Bmk1()xxY>SiP$19y@-Ih-x&#%Bih)Hs zUR0dt%(7M4qUOKuoTl(mFHYCi{#N*L&Y)7~*GGkH?O}y7WG7mzLZy)xg+xOngR1O{D`SlzAu0a88K_jXb^*+4=<#F$y-ks|jjt$y*L^C5ImHYl+cjIkky2(V9@wF{I z594h0-OvOz{h6PW?{NB4N=6^m_oyta?>02xip2gX?%?PD;NRVszk5A*a*TDmp#A`< z5#zir>KbI_f#u7{aa@ry8m4m7Wi!Im*j%%Dh<(3kD%xE@5rOn3izlxdCxmBlyA<+8&oK)Jz-~6J$n~=;GO(ha;=GM*u;j#X zJ@Heq-b_*#KO09zfk9>IL= z$}GKU8WgQbtOA6Ie7_xnzgE!1dm(i8JA$k5DkZPkYtvA9Ekc4NVC9x>mE#bc?BJH~ zj#KpSF}EaGWak#L{qwFEOB^lVFQ;-`xT~3PzN#_=L4tU zJnuM!@VhV8@u!^8oSKV82leK5eYI?YMe;bzgYb**8{xxMR-edmdKPi3QiG-bzJ{{k z@AC)yF0&e#@kzN+pf_GIoNzVR&1!DFfk&EUG#mq~=M{%K5W8(YplSI&ECf7Af;&&= zO%msi@aI5+fD(E3^Zv%-pA1ZH8wCdU=JNux+e|5cz})#`U?JE=_WGRUgLbxPcg0U1K+sN=egXn2j9oX;gt2!M499b}aIN z`7@7b=TKGNezms@wni(ij~u~TA@=J_9{iO7VS%f&{6YS!n{-I`H!5PHgw!5oG|MMb zTP(uz*^j(tE%Klchz6Pn50Ph#0HA?p1nkG`m@>3S0;xAru$T(y*5aE|%427$a{BcR2@FxO*oh6hM)Q1-t<* zvYTEYU#-4OpW1hpc!8ZQ=%V%FD8%9f5&bRsOvdKOJFxIyuUw=h6c+~>v{aEyzsDjM z`~2UAg^*xU%QBb7dWBaSs~=GBV~{i5Dq_5UKVnYV5Bo?qkrCRQUe_E1sY_Wf&J2fM zfKW z3#KQ-a3W<@y`f4t-!gC33E`vcv#;nMRQ4W14*i{VHy7NE_C-qAVPBe~>|#dPkv8a)BI1omVqwI1$Z!9X3Q}R2Dh2WlawI<5aordht4XR*o?rAPj|ctgB;h z%E@bFBD6Vziu_$?)gbME)0h)ez9{P66=!%1!8tpYHjc6RL0FeriXN&5LpI)3-xqqy zcb%1FVpDacaW0t{RUJ zE^Rsb@akz|$7LfpzjcryxwM=NW2;e`PkHza0@bbG--Rcohq4^Z$~}7G%O6OJsMQ@* zxhUE^Nyl_9Uo-^Cz#FU0+5(#XdY9Rk3m491 z4Wst5_-l)`?d-%C6Qb(tR~Y2+O4I7Z&%6{?g=zL^9-asUS!SD}2rbGO>&Yo^BSRcI zc8$v=W*6>Ly~0>JvDSPU4Q7V#oX7s4tt(>S@-{9pN8mSiddhOgsDG;4wBAVq1;NLA zXL9OgkOS{w9}hT5*AtzO`u=Xp#kdWY@+;=+AO!Z@T72CFFnX-^hCg9BGrUHB5M8O9 z5l?psOuaI4Jwl9q>;2vt%zIu5_uiW~j}dHuG`3IrMV#P|mXs)gfpzMq(-Mwwq}a{n zw^g5lOzFqPY08^(RRv9CwqZ_V2{6&$@@lIgb8EzH(Vo1BKE+Hwz*TXoAb>a~Hq}Gz zfSSarxaM>3L*rOuIg!*_C*}EaUYe&85LGUoeaV9Gaby|nI?EE_Je5BO$N1Ox(Pl;8 z9GTe*2~ToDo}c-!98v;7_43k^$HdQrfbhU=4^fUosWPH}DUge+fvkAi6`Cv9JEp)orQg$_Nn6@KM8Jd7Kfy+*OgDMS>xy;$@jNdXVC_B z77@Rt9!738Z%h{D7LrtXztgOq2h%Z7ONBSFT>H>p`|Bvemwd(|U@<7`yRzt-OnobI zO0N3zeR2XiC6ldvR3*P(FKunT<`?2Q4sfLnNo6(aT6EM(ViAXKrjM%IT`MJgcdAc7 zBqBsCk0gfCK|ZzI&>LvO$K`aghy3+1)M))Iyxne4?XHrh>-JB+RJFKg1dZ-`^ac+t1~ zJ>F~LdGKx$DeQlB4p+9_i*I2uo;sM0O;qdcVsSfz&Lo@4tUQ~4j;?%{t{o-y&n@I* z_|PY|>$HCG-kci0i6FA+J);{u)PH9mXIEWzMh4nmLwlz`V7i=_gMx1O-fS6er2l^U ze7aB0k~0ShZo)WcMP4?%LSA=jTR!m}7I70^Dl2O_n7FEAcFA}BC z^e*J4cVAqXhw}TUBPS8hZ;yk+zdNd%`^G-s#UMv>dctREuTE{?vo8HR7TT~j4|r@Y zZ3iN_h}@t?USFq{VL8R|65a5%8SW}=RirRu{UjcI`!28hb6zA@EFkMoVB%Uy-&Dlg z#G+m>{@z$%HW6Xd;XzE1c}<+Mkd(DVwE1@2F%A;Vw7z=~E{TuWe%i>)X zllHI?-(xII=msvyV85NFKvMMwhcLPo`P1{@<=W33A8~OjPoCJdJH!`eOns1et}!l$ z+3!wZ$y;z5(pZdaPG%oHB&bdH@j-Blb{a(5w9E<7+ruK4tZDBSl~WIhVN;a# zr^b&0Wi{4KlX`;S;3&2wFZVcb?M}(rlr}p^nyy@UzS=x3ha`7xsaeHIbpSEbpIPJY zcb+{9#fPABoI4$5M3V8OsAtqReAbgBM-cfj};A@6kf2d zV%=VBebYpN2$*cLwagz|h?u;r-i-np8~;~xj{aMv*~)sv93>Y}1PVOU=H!((N{hw2 zCY`mUy_ZD(*lA42^ieK__C2~niG`pb#W<$HUg7Rsed`5{iOOxKJPJfpI%k-!#?jcL znyo(Wu>(1wRHMxC-=68t{4|Jl9@M(0%Pk<~8|PMhFL)R|H*!=?7gP*r@0G~X53w!J z6SE34ihqTfeJI{tViTig8~OPSw1ii|b&qMRKY!zdJn7!Dh)`inhL1a~<=q-6ic9F; z5A|;HmL2fZEAhQa48E!QTKB-4G~rHXf$e~BuASm;>i#@cR;H$_*p$iRjXf5h1P9kf zx%nU2-&~z&sJFa0)%CMjx5tlVw__1Kx`5I7veN2HKVN55nOdW0*d-`fvZng!-$W36 zV7ccV0Kgn>5V6jx@XsndmLSD8O@mk!V?dCC{-s_f8|BCAKC_VQ{^zrrTdajJO7^N zJolXQY@g@c^W5v}!bIikh}886alELzUvsk`hivTw_u@b^G1!zFlIZps`HL7;4Le}^ z{1L0y#v>aB1JY$UI1rzJKRhdAE;791>nNG7dRU~c&pc!&Mzh~5+oFyRcf+?aR7U8( zV)F>FGkDH&E{XmzvOE}c2w)4i(e+5@-c(AV3YY+>sqF_xaB#zak`3Cxr6-(Cy$o;0 zv@AM4@Qj3UF0)tAtsuEcjW^t3?SDDLGe&PUlR+cgy^UBRu0)y(wgY?n=~R10N8lC_`vylZJWPQ9$a&S%_A!B{*!@Jv zftSrDV;83u_kxo=xHp_QTTkAsoc~mBGgG!D$-2)O~&=g!Z4fnN8uh!COuU?vU3lQi~s}tW~)8N|TDCrv`tXrp> zyQ^2caLmV0y=xBBFFsPGUPmV+9 zive5(L1C|gH}^iLYZN%`+wBb$;_qy>2$i*Yg%m-CyYcR_*kAmER7OH;#tkC`4DP=; zm+&(~+bcOMFae~Km7Ujf%=(;dj$zd(FlDUJzaZ?7FU;l#<67qDB2@)cF~{4l9^?k+ zp{MhOVwTzw(is2k3ykMP^K<~VK)XiIUSUoz*QQ>7<)cI{B5c7H28!UG}i9{4R>=4Pay~A0y8;+$5fh_vvF4S&w5{7 zz`$VZMPiFxVJLcY0(@H;QizI34)aX*e$!no+mb~nCPDJ652}ASm%ROT$m}ypbYzhN zlR*uw*YbQXq8O?g;*@GKgA>tI7mT|%3NSseQ`biORj-($CMxxU0MCWk?YomEQ>vf< z_d*Gl+_LeV^d>rfpK_#yh{B9IRSje03tz$nO}WUGfAf_Q?M)v%6pk3RX`xme||Wd zZd!0b1DXpe@Xl$HERYs(NrB9i!8N}9;M^D_`-jPDb#4eP+i`Gn7N~{Xb;K~ky1d0# zF)7?bq;BGvC)lQ;+))071yt!S0s9o0Mz3WT9?`9j%|J;fT{s5K@hn&dh-CF2r7COo zm7!9@NzU{(TL{-tTl}Aa+2w?Kkw7hnz<3}J%vD?0vb;&1D(T;%6o%K>09XgopHoW1 z^;^1cc_MIX(1f0AMci;ccJk3ge7Kz=0=iw>A)m>9Mbpm9;GlnsuDL$({WTo26^qC~ zneGS|9P6Aw$FJIGy=;3=8Py(06Nn!Q>%2 zA0NJgXU*86&PV8I!1^VMj(=k)VV^*&5Z%(ZL%_gf)4<$}X`cQ?lqpQ~FzD^@!jb-+ z8INS;{&=Rw-*R+aRHYHkJlq2sTh(KkQzHd6H?Y46#d!KA>70-nghRG4U~erE%{qgY8uiA7+{>a4~JI zPUzmZY{Z7wZ33CZ5K6J?6^Jfh#q(z^fVN4HLK0iHcD+4@6@B%GLM0E=*8S;v!lVxE zaTO2>l6eOhRq7t?G)C8-h3k+WU2Ej`7f9#aHwT-_tFxOu(m%N{yS4WfJPAl@1WAAF zlcbZ84pO>>4NE7{@q@g$u*!_kJ6B&=H9b`duoQ5(oKZbGoXI7(UTr4Dg%<+ChdhOy^O3?e zx!z8$E~x_VLwR)DhIKk`2avotmI1U+!~;xnUddf}%6=vMz8(BPNGX}VK#uB;04sU? z%oRAG|ANMxOTf{DJ=Ra{yVAi%+(iK$p~x9AewAAJ!B?@{+)NyD{Cxu8w?kS1mX0R> z|G@htYCKDByI&HatlJje+ZB3%^p_pfAmE%Qpir0QOzqexE{iQrU)~dbAY)ycP)wF_m?W^qMzSS*zZpz^%R_B*#`{*kpbv;k^?0$bt=to9= zh*0aZOaY^^oQy}Rd5=rh^VNGlO^=YI&PpJl-5sd+Bw%1B5_B78MMLS!+fJ|XFk2PE z?cVdpNVfUdK^8+PUL6BzUNV+P$7>l&G+*7KvTC?T5KW-$>TZO6xAnAaZ+L^OI7NLz zdR!S$8Av2E`(BMnm&x#b)|~NaZ3d^L=Nc%ilXAg8RjI})$H0;Fyg%uV-n7liQ|sP! zDQl5ba>b;6l$<%KGa4m|7g`8kC`fGiSM`$gm#&QDoH9<<8g`I;vhNbRw!>FZA1{)E zU%77`lPory-L(H}61ZUm=8qST{Pt`j4>9gWFE5!o+70R)VJOWThlcK=b>Kt%(C9!1=9MO2uQL6 zHF^N-tiHq~w#|DjxTH69ArebF$ruu(qf~pQ?vNJuX_LhLH$3si-MFF#Q z^*?@=HCtjl@!iX$4t&f9v>X@TM+X;=0Z->17c?mq3{(oLv1LzT=n~0x*MB>( z{sb8{cbFsoJZ=A(DdF!oUs_u4Zs~`sF)SXDFWZkgmkcwThe=xwthzI%=mLebxZ)do zZn?JISF!AYC`DvNhYzrEO?oJ~lk#cLKR7l(MhP@IX{L zr$TMDe6jzW^}PFmljuiOQM}<8`7h7eBUUzI^Gk>`yR$$k2$YgJ=Cyy(I=c0U1?#o- zc=h?|@NK&h&|$|~1rSMI>>0{tdm#c9HA{=uLRy=yDcZf06W&C2^XQUq6qAIBAMtgU zixXR-I-6fB$0Z4`;hdLp-$UwqF*WpGAM&$}!bl7#?C@&i(-G&AtjQ590@o!k|1mry z2ws>8cz;iRZ+|BL6w4kv%|twqZMpnV6#wCC#k<3J7bUEo5>JN{{B5Q9C%I0;RMqs(B{i_u}&ZVRwsA zrS~h=KV&u|4f?jI%)96dQk-I zq=vT7u3s~kun>~xT>Bl6tGwhrL3E3ah>BBWI_w)-R<31&uwsSe+pq|0q}MLp7)0u` z`B6<0Wka`ABjW$lLO}a3*FFId@Zp{wS1!R3SFrskRPp@v zt3V^QQ=)qbmB?|23M-h7K#9iklJ9TkVylcq86aGkF5CCn0Gp9mxs}u;j(DwmV-DZo z$iM^Ix;F&BdFx!Z0d=4(>Vm!B*)U)a`?G56CIw3Q#-e^uI4Gs~rWGnf5W07{+Rr9p zHSDw5IK)jePOm5e!YcANukHjsGf6whfMt(ay!lK9aE9c*=~v$3ys<{PUw^SVH%t^y zZQ%#=0qU7yG^;7w?)?%I)}}6Lh=b+UkyFw%P>Ko4JYVR0$_%rtpihFB*<5t>!R;JW zU^Rh-#2Ts3(m;8%;2SLs%&Kt-F11Q!e zL5;~3hAegJNuPk);}Oz|S|rF}=St}1SnbasVZ+5zPkh*shE`K-dj)g_($3h`ksIsfBClNzO9N@I5&C| zf%HA#cJXI*h>6Y54q&HoSR;jUK#8J&bsZ{kN;w&uqCx2-FRSne!x=(%S(9 zAtFOvZPUH~ZK{)MM`*u1@VN83Ne~T;#w*Pw)b=j^r1g80YdqNF5v`dywC$W{T@R?C z1%FnmbbsG@28_2swlg_ZO+?J1D(}9>Ci3sspUymy2jig)*65`~Z0~USP>?wbjX?kC zdv*BPXG$B`M~g9jik35QJd4D+y&mm59A^gpTyq z10x>uMKraLHwS(LkRT!UT&PE;=mCZPS4S45)OSwX4?Y;fS7_+plBkvC7P?huI(9pI znh8gM+TidsGAWTzX`LH_UFZM(tt6uP8%v(rPFk4cxeKf*$MTa>$1g-YcAsnY!Am22 z&!AQ}1(5J7u;<8OsBxCvo#e!pMP}$*CxbH%*$?Oki|i#`+G;P{T7Z#QoWqUc;mjX1 zAj3tE{LGpm8O9b(Bxg8&uyu}G_ZgHOo4@D(7jz7{R8a$R_zi^0Ov*?3UN(*? zgO>Nf%UEy#CFOpj<9%XLN5#Ndj{wqoK8CtO)6>?Bz5w+Cb;um!*G0ECUjcyEZR4&K zZxijUJ;x96D{Fnqn;--Dyr3auFbzj^G}6A}77#;zk;SSzxAleyTr#6@kScWN6lpNf zK@AK)DzeCwrxiyx**%Yb^SHuevCg6Yis-3<_>DWa0XB~gy!%dh-*dMlkAwXBw!F{g ziNr~}d`HdUi&1zk1H3PfCI96b=>0tgy!f5z^hCTi=u;?i9H2Y2KW3$5oN|~MIDuSM zd!Ye@5fCExkH!x&j&Y%&*xXT{$7XSh=|#0F0l=>`JAI5QS#Np|6!hHXZtffnF#JBv zny=V(VXuQ+f2T~xtf>AMiH_#GE9G=zQG5-4D^orN9k-}G(C@H8d|=rj#s@nIW}9+k zYLsyA!NG=V%X-;)qFcV}?JZ7Uzd5#dHP>nTeYKQ)htdqP9#^`P@&L?z*Sq2C9iI-V zJiU3l^{3dq1~=D@Qz_8{lbf&Fi@C@zJTB6AIH@?LGBWd7e9W-*vnFpY?(?Zp@n3fQL<)@%jFL&+pgs^wcx&d(XY+bRPfNY4!3*11x0=~6E_?df+qYG99K$!-&vW!QlkcT3ij7Qmef1!9P*sL< zZ~zbz^N_4APvj`~!E`I*0no;&~n=XX0xx6Jum1XT;b=B319-?x_uj)K;iUsxqjuBsc9X8@_BM)+-Msv_Th>=9@7p0 zV^o!KVwG^Bx&Em2?W%@EFOgCN#FL?Cl~#3a@VN8uha*uBJ5aW*xvQ_KE?-ExC=T$} zKH^_1dfxXW?oRCQWlA9Av1cbbp)j;#^;ZSj-o!KwKU*=nN@w)WGyEap6P^~4bBGD> zhxV#HGT%J!6FrLr;Ev(LEuCL}eQyT~^A;@(+>&;18B*;%V>eKtwg6RRbbM<^`TMg{ z)5DirZ~?+_0>=IE&LGK0v}4Gpa5{^{NF2FodlXz!M1tI$EmNZ3QnRxbX?c-LskRvn zN2e^5dg)qR?)#wZ?c?XQ_UgL+A(TF(9O*IKy|ua0X*L(>8@&qY)|tP2LpQJ+Sz&N! zTLZyG6?~Bk&{tH%{EIP2=IB2HbqlkfVzie;+;<6kOEr>aK;M20)7JqoGX*}LRSP&? z2v(!89C~PyR`2D#r#**NV)#z5UV}uQ`Q|1vEby_37{VcUOi4=7Q-wQHR2j?|!*+l_ z_O_x~%1q5<}g3^3z)+$myZ~=;aY{H>5T~9IysQ*J?f?$JBr0gM>aM|9X?Qm@Oee z9^Ov}$E!}$iv#Vv5H@1KFFN=c@H~`A6j_W-j~=Anw+6yUZCWlM6jxP_&Y30pRIuvo zLr_uCO=5#YYkaZKO-$(m?uhCQB%t}pvHyK!u^1OcIt$5Yzls)q)PEX(za3!SKdBgW zHp*B@+lDJ(I^TNfUcfyS?cUc)Rn6^yKHvV*qN7c%m zo^yA1CaH-^_}F8B3%oeKPa;J>#!@t2?eF47(U1~8&W1Wz2@}}?RFayGQ`QAk27e#o z_t6o~)Gn_qF2fHYfBi7;E}M%}K30C@G+r!iUX0Dzl0-HQDt=@x6e}a zi4}?9<+fcNjOstm>Ld=Xr{DJ^?l@8`dye|Q2HHF>RJkn(yft=%)Hlrne@(KO;$Y37 zr5ED@ry|k%XS5Gi0*uFRA-+GvyL>{hQhn!JY;eTEv0!Nj8!CZlLi@2Ik`QBtH+FV@VY?DyZ#Hjgd8|MLrN0WYa3Zh-&$MLC=J=J@CRKOabgK_O^dk_ zasWp#M->CA2>GW2uqqP|wr!HjYf)S$2@Z@DK#lY>XG29u}1p}9O*90&b z+~D2c1C0ibKYK&%(r(|;ci;v)%*+(B;8_mWW%kKQgk?WyTpmC8De1(H7kK1ARhNgT zjz8Eu=IiB4yo@KxXu&Zug?%s;JpU8qJ_LR3wErzwEvnBSt=-tL@&Ml_4rIe#kSW9P z6;ZdVZQ{t@Cf*>|7Hl_P(V5spQ@)_IHTsobPjpZR-$dd+9xQ?nu{Co%8RP{boPnX_ z^Ibm5IPG(!bhjyeD#g1gkU0U;0TvZ>^zkYZAY)04 z*jN>1C`p+C=&$Rp>EneY5U0C=P{nrIzXL1_Qn!iV_IoW(ya$V1 z)Ak*n$<}F;?+j?r;f$~aQHAS?1OKrTeDpb$QD$67BV0)wG#T&mJ##+bshV)KS=pF| z^_ec>`X~_cnyo^wh5aXL?Ud8YX9vH6cXzgnsRBz8+C81PzyI;0cDttHkB|cmJrdy>7{?lWy7^YwyZF@_FD^eJ zs3kh2NV(eI2d)HsZqO05aR=Wn0rpeLscfsa_77OUb3LMXt+tdMWx@oq>&pJO zsLA*=(#Y|>=<2oaYKQcYNk6d%i+}~)N8RP!CHDpxS>tH&f<^xhxScp-KKG;_*=QieWK-wn%~L?fbuIHnX-+grFsrc$AWp%!5IN1IuE4g zSg12pQ1y>SfRNp674P@z=!5YX#lU;)_%0|Jwog%22Zs?8Xt?-3a_qjB#6V|{4KFPID4Pv-{7m$_}GQ-_9oJ^rr`Y_~^CWskS3B9peu$hZF6 zv|^$;iw~iHv-@ufLVJH0_rKF8TM|d3y+Mm-Cufijn5)xF_j-eqSrwc}6+YRXkUj|h zg~)EUb(d27GE6!2Fe`~1d$gF()jxyFZvSVM?tj^#^(qaqa>jCldN%UcPh~U*gG+2S zGJ5^xj2HEQo;_fb+s?)d9-@4~x1alzP-sLj`UcW_!IvJ~f5dwkWm`synhfmOF?#>M z!NDt@ThH=mw?W)VLsUPc#2^3|>19R|CYbOOwB#2A9OW1M2|Jt^-tVRaEtP&bLi>)K z)`7bLDyZ!0cZjJkw#aJTBNB3+|Jj7xH)0-x<}})~CowmpR#jrlvr5pPQRDHmjNkU(F3@mWkOloIwYZ z6mOr60|Ant{JQf3NBhRXZ>SgNZ(pJt07Ba{=%xP*OJqj;`{|wWU4`h@?^gjM@%sPd z8Og4V8PwRkgWqs-VZuKNB0t*W1NcbnEdR#rxebT#Qf#Z)&-|EGC({(>4Z`au*#0p4 zhaNVEBt$fiX7xA7j(|_#bW!vxq7!v_&F<#P|-&ghh306z%#?k*=$3`}9xu+wL_mcOq(2B5t_xEjvW^_@ao|fC7(- zvTXo5x;4`+zk!EM+tcdK;IYFZ9iVPxBpnNjq}^;8c1-P4zVipC@5tRW=HKZhIPKKY zR}_HdPEk(ycnZ4Lz!-Ak(XNz8ZeUjShR8`|0k%&?X3-lZCf^eif3eg(Bgz_|`G#|z z9hxPy-MukJ+~}+bQ#CFoyk-Hccg@n*yMUS#V7t1X{TpWYtm?`qFT6%$=6;{rx^xpA znKZ?N80>Uic}ECybgDLPPNhq9<=_S=*QS12?OjIvW{3|w<9LnfV!wSk?o{y`d%&Eu zm2{&*+#^NYT2VB2AWzSGeYsOcc<2WmpnuV0(CyPbLWOZ;0exxbCR2Y}y45q$pxZ0= zUmRx|PU-qQC0}frw!S;qd8V!OH4|V}OWg#Ne67jSXD1D(#C26AT~&7-In_ue_5I|a z;}z04@wTknGVRb1@nQoL73R}I*{bNqwdzhT05uxbzo0qwRX6n{Q`xc^6}=g0tJ#{) zm-u05+TmL@QA^P!O^@(rGa(aovBTr&N$Ri093lQF#?`8{c$q0Kj~{Uek8%{O`k;!`q?k}8w3vB8 zs8*k2Ewdz zSHfaww_-XEuOjaYl4Tsfd9}tTsQ>A43}1R2-bD>i4|U9(TF7Q0rqtRd$fQ^?S`gS3 zwbFU7U)fRQCOVvLr;8e%*LZ>OpVnCC^7ugks9#mL=DA5Pd8tp_LROPr-lC(%|I54Q zpT-lzeL|^&h5vm8?e7PCmda|DN`Lf`vg>TMNCfKFW<({s@iUGgV7s=B7Rz4_hRJCk zCg;cvk5M8LAH9J6c!Rh!9`J3X&GAU%gP|WZKu85Ty*(uz2JkU=6g9in@P~Hq_Bv8X zkyLo!!hCjhE%o!O^%$F!-Vs-B4v=Kplc&M4U5Jo?sJ8ZFsy-rJmvy(1LT@YlfA^>e zo_y!iHLdZC8^tUC2PbcT`FdYfvq=!b&S5%OP=-6bQSx$b->5tmqE7lo z-bH{h9pNd@OWltZnD9kp1*q9yO51KlGoNf3@dw@avab|n3ZaF^7ClpU!U(S!K%_0- zl;_8nfQq7_={1qdZdE7=kF*)OF(p!=O`Y~^)7{RZu+-6EF~@<4tD?{yaX}Boaf4Px zkgr)A4aVTqV>S?N`(lCV$=JPR~AGlk(eGB@_q3Y@lZc}9%kb9?5fCvv9z^|?^ zo{RT?^7~^#4IgH|fBr+oNQ?AY$&3F;RjTUIWuc7VerotYJS;QbdBaY!N#O79*4aj? zBR{@Q27O*L8sCy>H)L~ z)IS-?oQYOpXb@F1$`#(^$aIZF&xHWmDVu8BMcg3K2vHpgVC{}~(xzdjKi8j)1hf<6 zxDY|=YbPT{OsAyJ!$K>?N`J$>hk41S1r7Pxl~he$xJQ)j&b@#%KCwlINdG-SJE9Ur z3rZHSiIthAVDTi99`ptE_t#YU7%)PO6!(cQ%+$-*jF2A@9bQ$oo4-mKevR!>V&x(` zl!2Da8o!;kIc4ZopW#Aw1CGRVjsvHM#oMrofK}R&mqrD;enu4L)}0i&QPs0$A;B`Wnw+_J*|k zVLljCzdr5;%5}mJ)Obbv8G(4*W#wH2rmx?A{gh?Oi)46E)Rr?`c#nWPF~z-m^$v)! zzi512nTt{u0t3a_5ssGrS76sEIGAcade(7t9Kz&s-&_t)#SI*J`2o0e-$rvV5(l{n z7Vsf1^(pM`N_EDuqzsb(NS}ts^Ai_HR62ba^%p98ygS<-L{l{5NPCs1lYI3RF)O~8 z6nKNe^H%(dci(mJ8rZXZ5+UwS9JuD#dCl})Nu-hONiIlhg`#Ob^ zo?kiwv&e!f${4HKKKxZzd1)7kiR_mcYhNKGBb`f)2TEHg!U!L>CmRpaw70TWN7*uf zV4BZ+NMMvVuV8wWy%L_W4e41=oCgGtI%(0Q7)tl56yAgr6Sd(G)r!8Gevg2LWt<-R z6YYYesb`x_A-7X2^V@dc_ky8}Ood)!Z+``}lphsO7coq4XR|yK3{<*2v+#EgE2~`U>mgepznDIK?$Y1b|Og*;1g;hurVP z-wCdVmXQGd;lHrM8O^+$jj$|tWFmDlW8od#b=(Dpd<6~Y`|uBcX49Uis9GPbdUKic zV3AD|M0GR{-18iBnRQc!&H)THw$YaC`_3+lscVV2Ls%EybZ>w4b42t>Y_*vSVk7~k z@dGaJcNraIuUf9`c>g&>(djXcDmPvxP~enZK-gfX)JAGjY?9p-ing`VOqHoXwNnrE z%x{HK*JyY0u}*GviU@rE4RBF4{=|Xn)4wNE#-CEqrxzfbD=6;vVngw4ZijefK4 zDhl)&4!EfgSKM@C5K$ke>MJsp;tZ;LL7$*K)w*qXRtct*sMR^J0p$?>_#Dm?r~ZKo z`Z0mmZ$sbJnd10+M|gLRS26N-b%rk_n{Rd`Urm)SOyIKDnKPdLiVKQ*?im$2v-GvH z=<~wGgpu$L89sI4Vs&Bph^tm9SeZQM_j!dHKf2Nv2AN0;Nzu8*uilT|;}3Tq zrnvK|79o@t(^*KMsU}l}9l8oUt>YsH*V^V;Cxp!Vrg7!@&Mb{RvuEaY;`&tM+V!L> zm5WN24gFV62A=Uw!76g%aC@x+L_0qtEyvCEzYPf^BMF`J8VT}FUakXK&*=7B&nPWS zd;Oxf+h(18j&?CY;oJMVL0@;yG}YniXV0BFW3(*W`93*jQ{iljLiuzPJ8klw5r4@i z{JV+dHCo%PfW%Agiejp$J%Oi?)OsFBzOm}#QXW~uG!1C&OFyU*D^RWyDTFc z$r%`9I!U`8Au6X;O7bY8245166JFh;M*&HPL^6$F{vW>ah$@UVUz*42daAtL(oB#^ zRj6GHuV~Bgw=tZpsgh*ohWm0))YS)ZWmFl*@%Ec*1_tj3k6P3s992-@j!}Ar2&@R& zCBD1Bd-?eTo}~r71#>A><}q*Gg@$^Dip4#`^mM{#R0r8~eD-f;r|i00+HT3@BwD;n zdoRz%gt!w*ycLhtaT36{&;mT;Km`pR`q1;^2d7pw?nuU8x&5GSRdR&LwxgOXtGLYK z_>bJq*DZX5i~%^axXg~COE&-_-~LbR5yBfP($+}`Q7~tAw=Tu>QZL%usPoE{gi<|f z_l>E#YCMfg^Hg)&vSC4|x9QW%y0kBaIXYU zdQE(Z?W4mW4Tj-nF`Av|58sdAgtXi`(1kaY(0ma++e>Uj`k3e|)IGi*I@q1Pc8Nhd z=u}Sp(f*7N(BclS1+TXL(T-pE1+Y4*8o(jB#(CX-Mu&&o2Cw zSi?8on{DYGwu3+$&dsJ{&DJ8GmY@8j;=v^6$mNCr)UD27d&^Lz2NCs>ND_L+PPCgv z@2QRUVP*MlqCYt<{fi=BtTKJu!7iMFbzsL_iai8Sm>m!I#jG%p!~{nhQdfCgF5{4|D0HY1>#u7dbE5dVWukQz5AqLh<_5Rh!)#+@mWsOHH0yBJL8^LjzZau zJ@qa0IK0_80xzU7EApNN?qe=Tbr*VkAB+YXX%&a6J$k^W{rsCU)aap(C({+D@QqTdO6VFC55us(o-oGt)!@tvA=kL&O>-IT(x`j>n4|^U?^U;cRXEoo zs|tp?j{l{p?vv=tsy9a~L!&_vHLE5JN=vd6M6h#X(u^fNzQwqQL9dqh5_N*4y?=nUGu)vQ0jp}dTVzQ5)PHD*G9=`p(N$#7cDxfJ5tQfbO(p-^F z;NPr}cQ60_O(BjP3&9W6cA^DPT?)h(FWS`zMgHLbd7R`CIEtLqnHzmEa*-7~S=wz| z&t?bxTKq=bdP7+3vG5ZfizB#T_g0RBz!dI3clt0Tck#L+FU-WPvXXcr!P;GOc8OtV zk#6EkWs%a>t;Py+nDc}6uGb$1%kUchT>!Pv?cS z&$T=wlMhG#J^c9}UHDo($3Dj;PnR{-{wgyiujzm(Oc*;1$W0#wL}`|VQYkzX-9OO8 zV7P?c>T6I$TNmXgCMK_2>Q!0bpA5x!CnDw(0`P~i6Jz3)SNH@WH(InR2F%I-=vZIv z_uwg(V%7Kq7pw55U%?xkEfshH+cn_D?5-F(ky=z=mS`*{(;D`i8Q&B;A|sMr?B3P% z%DPJZ4C*RnEIigKA-knRmFUQ#*njIR!>Q(>)7p1#uP-DyvRNl>8c z)O&z?j4>kgK$T3#L#(JxrKdLcZtp86PTRRw6j&UEDTXA;PZ3VEu8Qu^crTkJa@%IK zDqk~l$=lG|^DTuR!^~^6AXqYl{P^G2j*pR7xOmc)3S+P|d`%$Je8HjfwwSlKQ&~x? z;yb@(O|)6*^pV+k_AGeSqfkhi6Nv*DS-7D28op{zSw(OI=DDn*8-)@^7gfF8?3I$u z#_RAZ`OAZLU4{&x?j0{uWs#*WYH=rRJM5a4!Pc8fi4RjGP_u{^B^*Qk&D;=o`#MVF z!h2LL!knSn0)vXaM#~y3OiQ}?etNbqw9}Ff9w>cfFEUB7c)k12*0?iU(XHEXYQF`?4a-+k4wP5N`JV zTwj8nSCD#4RYXT2ci(Z=b2|dnTFxH440u!y4QwhA7H!M~7;$l}E!?A5X$(x|Y{=lM zM84P_mLf^JKQ9w{7TI3ozvL{xnL2?ktH<&Ks_IL443CNC3g5Z@339qwLZv5w8vDTR zOLoVeZpvs@(@gmkDFO7J`p6n>*-j1a2XF$+Zy4#^xv|2>Kr$u2D$dvB!lKi&36U`CRUb$NT=P*N7P zmcZ~E9;j+MPR*&gJ0i+SH zl-@@R>?1Mle_w0Ou56ss@O#q@K0YA4m=colP-&~8xRAvp1PF|0+LLkQs>hx1DnfU6 z?LL*;m{EcId+X}ZHuMnR(Pp#$!^0XG80v=(eaBysuVYlz0T1f{tOC$qk#XLt;pCUT z7bQZP7Js~(c&Ypq6{fIU{#<6FNZU-)TXDqohDttI8*oa{ItJ*4q2s;2)VZeOa{Xu5 zla9_mN@mv)Nds9Y;(Gf1uFR1?30l=*FW*}5dG!5fXPeU_sE$1s;X1kMt#6^5O~$Av zq;+6B?GNuFLE0|%R?JLR7YTVqZKR6r`g?sg;FBIqU1i@9bQDrnW)dD2l{jzDVIm0uK zGErw?9o&j(Lt>RVCe$>l!@M~6Y_(J<9rg9(XihxdlI)`7WF$J&bewGCx#7O|c=r>m z$A)R$nx|8jGc9~Bf@tl3sNC%3k4>9b!7EOlz*MK|hP^5E@ZhD%t0!wbja#2O1ygYt z4?Dn!H`MvoY@?(h!`O!@+33CfmD>>I7k^Uws6fdT7%}=@{2A=FbA|*{0aRA#Ohk{M zZd@4SddZTsrBv9Id^A$Tdl)N@Io$z(iS3MlM*Q`a<;WNfD*HU=zGW8hA{>1_oB%@m z*PNu-pRgSUr;>)|=_rwt&a;Jw~ zPd%ri(t|agFGbmjZ@2@Il5qc38|&+}x6Aht7#%;HqEV2?n)sUIbELE-A$&@a5NTE@zK!jT(@fb@?DaOXyh=3%1Sxv8HruZXa$ zqt(npCp)wA%4`4{iu7g{8k4+Rl;W5;W&xs-KK`joRmkL@EU&hpNWv|ssJ4SI-*m>U z9uv1skd%@uTFb?DRNjLcabJRkL}30 zDUL{QO0aMK=YV(!$`+o;VJ%nL=HHQq-{xTb~9Xh0C?f3$1bIez$^@`Iy% zK^ac_;VRUe>hBc@P7EIl-BpC=z@&84 zgItpkFMt_?v7f@jnIDzp^tA#<9VOm*%H8MNN!|qgx&BwC9@nW?Qx0A657bHNY@ zj^16hVV^&P;m<@~^w1 z)>8eEQ?C&)H$k!#j@0fwz`~*r^BTihhW(dkVy^o-pGc zLJmoW;3|&(J!hAi(9&nc^!C2gyD96c%4RrB{4rdy_pXxDXB0M7D{EE9XeUKiAfO zTyqKoV8U+ll+NVZNrGZ(-`YdMfEX-tFtB>V^)_E|p2E)lkq+60wpom?l!rcYtu#L&~fVkNG*~)$Bw`4I7lcraEI-5fe!W@Awj9 zOLZquE-gAAD!~8@+HIQ`-kGEb!*euxG3N!mfC)cA=dLmh+2{6bFj8 z9VVkLtw4CIT`ps)7rY9F!UFIr@L7e5C@q=hC1n}vCQaIsN484&FnJDq!n zX%2@zD-`Bs8B*0N5jQ+7I=H|*egSv#9l;2UBgEo+rr>nJ_rqg9(?za z2Yuavf0TtgU0&Z5{}>Q+1bXIsFdgu#N=*CK^8gC)yX*C4re0@wV6`P4EU84h$+yv5 zLA{wzg(06hJq!)RJs+#BUH!biwU~A01)`ZjL~=iS6x!b}TzQ`S4Y5abc+soh|G|uy z(rD^3-hTt?(TQdz5oO;+5vUb<3KD^Tu8q?#k?6j!6}VF!jI!%jILBmMCyUSPU$c=q z4d2{Q!@so!wbwSq=wX_$=XZG^Tm8T@s}y{U?<_6FDUplf1Tg&zJNYIn5jHRexWhx4 z5_mi7Oz^Wu{iV1idgx0)&6x3C>c;#AXGLx;mj8$i6KH0)11JQPIH^_kMeAdfY=!JQ zKPcM3pYw0vR_UABMQq9^5pb*QH<4gP@=NwS{in9I0*iuq6udRFPvCmn8R4A6p5*Z7 zl?r@<5nO!8#^url0~lW!Jx%-hy4(ad1}G`7tIX$}W>GlFe;&O?ufbh-z8kX ztkyis-$pd-B(a!0bxuOQ?L0oO&&@{a4-*brUF{?ADU24Zh_>>YDj#u#c+FLEZp<|P zhWvj@`dFz%w!tWk8s0pXbRqhNkthKcS5)xTP$OjHiBh7zR$K|0dsT&KcvA*$uZq=n z?(USnie7T(RSmq$Y)AOBQA{zV5Z$^kti${{ljg};$57}fP>~}EzdG<%`6iKiAovtS zBGC=qHcWPXoZ!UwR~qVycIe>q&+a3ai>RW0B}g`(%iha`D`Viw<%c=LiC_OVl=2*# zOU`@cMXDTzqOz7sor+%0qWFgs=g-zP+jY&j$JBSdd;?=}5d74J z<(@F+?uE31q16FnD1K`AoMyuEkM>uAMd^^4RoNE4)(FUd-Ou6LuDBhK=iL0Mc|)D9 zzbF^0RMha@*~Fw`Z}wK;g+J!QubKCqABA-sXoTKQMMqnT-eU(70S3gXiK9k0=%kF!RJws{3V-EMowLoC3*)RsL9#kYy7GG z%~I@1{F@){W_b-eLg_atAwh=?Z@c0}Z?#nVh^V@RE6q~m`CyTtm{_XV1h7$gS zH0P~Tu%i@pZqD9*Jzk#EZ`v;ooX!2v<=RH+@1Tl$)x^-@u{m9We|vsvw(Lv^Y%9e? z?(YQ`ROUOSouD_QYL*h&Du?Cg2yiwTfuEV{R87x@sw(c4Fmhs=BGa*&i50uo-Y@hZ z-Jvem_Do9MkrD@en*Si?GJd{;p?|*Ti_<<#eZv(ge%USlN@*fj(c@?zBj(+2GL&5e zGQv)|!u)yq(@kAZkKLtU8cEzqD$r>Ye~}5!qUdf0LQKV5q@O`d|NS3KPnbwvOjS34 zN6&WC_pYe-nlIeuO}I_lJcbM*v!<>Eh5Z585HTBh%FeVjG5~+}6vs`)+YBi0&wT1> zrECdlZ|Mlk@GV*3&$$b==vzi@RSVWuFb_kJ#+JA>BA_Glktt1>d3oJ zrDImTw*h?Jfwz^q{|Q=;hPCyIN|ScPorD;_il0?2=v6-Fk@CCCG*ud&F(y@w*VyFZkWPT+F3l3xjlgH zUf$A}PnY0yDqyQk5N_6hrtUg4b<(?=QJp4HA<=$K zSp(=rX-05qZ9ItYVRN*If3DN=pykf$lu?nxJ91BmpHGHiZVkCqE$?%H+=$$Qk1_gq=6u-ERq)c7y?pGcX-Bddpe%IuxPwnlu~aAn>b4>RxP|1eMBvzGB(`d#zv z5V4^}a&!Tgr5+>df5W0Ckbz6aBZFD$4=XSB_icwOnEP_qPNyD=xyYI$v}tlT)SC$X z5Q33%3@kjY=jKh6kI0?VYS{eS%Y(U>5sX`@=P0!8I9>6t=8*T)TZ8?nogJA44?*<8 zGyh8t8#PzjWGB(LmPaZiEUJMz2-y2EOHM*ON*$XX0CmM+PGN!UzgCb9uU5 zyKljO3sd&xFe}rvRvNeIg-{~0{kh{{(d|=~xMuK5&F1|i*y2-Ws{WMfUTMnp%H`-tm zi(=~|Ua3tMmD1PTk`KE+YmkhME1f+{IW8C`*(Cb)RON>i`K@;-@2-U57SN$GOV_H7 zxXgSEN;j|a&$@v;|09$}Hp5b>&3{5VGWe9iO+{^9)c$A9kB3afwZeFQt;(V79Ox4k zyUp_+yfE|I(5u)Sus14yoIB#b=h*x4=16jw{2ZDYz3*b`-f>eJYU+L$9sZj4UyD$h z3vpBF(fRU4)ewsJP|EuPJTuZy8h6y5&eMZCwcO6-<6@)5R{NX&Bq2HDAE8Z+ZHG&i zO6T2YQ)A}r&G+Kw!|@>{C8tu&om_cu))}^{A;BqF-WdPUfjj$e{bk1xk#1sUXF9R> z28&z@-O0xoExC;-kA=REw*)59k)_U~?A+0h`>kSTZP0t~mdcjpnRumtV^uIoPAB4f z#O~5)^Mq0>Qp4w&C6Ct4ALY?h7w`S^MclU5-CXn8ay&;iC#`beW(kYK$|d3w5<7xt z4|89=)obGR8htS*H^Q$vILvuNZ8i>jnEJvAWvbJ#B@i`qZ8!T`|9q>ba*C-kB1r`* zXZL&O%2|$m51any>;0E}gF~JD=8e6#$AdPK`G_jV1U21xnOTG3^&qx|P9v)}__(V< zAatUEz2|giuW{6_xi4aR6@XCP-ZNU&qpjMsh$TDb_JtTfn`iSvc&(2Jyvy$XC6fms5q{~SCsdv=lvvzM5ZNn| z+b{Ys8u}+cd1qlwr3gpt#choGue~32=V8!JaHC7Xj=1V0*nYVhHd}Gh2D5&GbnfHT z#-X#i6F)qR+h1uQULOr1dyaT1H^+#1@*cn57zgCM*V{ixxtRn}MLp94H&4ghRDnKZ z``7jbj+px}zW8#@cp%Zdm7Inqs#5H%V4`o0sXtqtK6rKF(sg*i+;|zaFT-_zy54QJ znnKHWKCVZ(-@U`WX@~jBTZ$6 zGNqPt8Ivsj6w!0S*WqERma_sJ=ie*(XN$G5w?{6Hj#m1Wp+B^3nizj{e!556Za`BE zR#q+2ce#pO>A#-LwOO>*?q!n579lkP(ivR5;l$7`M$71&0g-{Si7tc)ss2^6oEX9yeE13ZJ}h;_BPEXBBVa0@xVsa?TfEg{?7Rb8Z_Za$_(9Dw38KIATR6LXLb8Nn z+Iv5OvoZurr7iy&jTcYC=TGz7g6fK0>C%R0tFptF5)O%cst@rs{^T5no$rBU%%MTY zNs-su(AlZ#F{R8$zLc`aZ)4hI*Is?rjE}3Jc4bl&AC{8OWIlB5Xbx(V=Wc5mB@qsX z+3eWJJ3-fRq4qlIHY`1+48|v^XVs%;pif>Otz2uBA;}Zjh4r-;kRpc2>Y@Vo#er_D z5JnXSoZ^=^UPOOs#R`qv5VEGqi-)JBkMcu{SJIo727{pQYwI(Qp~dsbqe7!&mkHAe zYjkUO6)b%=7VjyqB5a4B&>SkbR|{Xw2NzUnWayHgLE}U(C3YQNw+_uUAG-HlCxJ`m zpYY4MoKsc_(~I7HtA55=gV?MU^uaL}C z;_X+PcbCed-`I~acT*2RqvZbTP=rYJ65sc=z`30Jew6$F3>coIgj_~U$Z1ElSd{YUnd}6-F?GQZNn?fKKu?E$9-Wgn!9u9Bbll}Ykq?`T0y7x&$E z!I`7+O?d=P43Dqi`)|HB@$*8bpEv>+c#$$B<#k@Yo^jl3cL}D=$)&CGdk(N>$KKZw zi{Uv4-q-w(5lnp+c5->Pdp)6NV1SwHk~^&VJyD6R>%h5;)f^K04ZVSB5Tfp+u_LRX zhsnyPcz8Q@llgEE)Fme4UB#dhzl5})cT6;Nv`kzn#H~?t=PF_mWW+H4m?XaBvBPz> z*KJo0=b+#_(=$*{eym%XDzh^6&kHJ(zrS_%o#ZZE$ZIx%D;P<~d+<`R#y;PTb6Bdm zSnYB5X`Smh_cFY;JsR9Z<>bCRC;jB#n(VObZ!D|I<@dKpVdU+w0fJi^1-7}4OP9@{C@NndIr)lx^o&o{V zFoQhsLJAiIN8sH9o5~3;@P(2`37g=P=N-+3Aog9kmdf#Ntx~0nMS~P?);kVz#U1)C zQV8Vp{C&au=b~etNuTS4@iM$7I12O1^lXFVdHR~RHE|q|#?cZ_7clu@#$n`z@Tt0JZZ|Ia^k7D0H+Jq3l***nZsPZ>r@*5OMy(r@d}PBz9HQ>LjI6@R z%3=DJXFS0XEy=^0cC9{H$@EgqFGM60wm5ntP%!3BDt*50$*aKsi}P2dRA6%(j^xJc z_UlqsEx12bG8t+~kGelUp)^2eIFyWT<-1l|8*L9!wDvvK0=IBf|z2k&+5&ZUzAmM(<%-q(5M=+fuR^F{ss?RjN zkCdFtb(KXn2JtDb`hWK6l&F??wX{q|jI)z)JP=Sn;0e#Ds@;wdssA^&N zcN2yT<1!wrx0SZXo}QAhehtr0bLWR)O&Tn2!jFu^Ma;w^V z>jqSf{Zha@tD~h{3yTN2w<_uCNV-6l5va@!t= znADmr{Q9)P_V*A-W=fQR;jVzrqDAs3Y&`L}*YWZ3?n;ZUf2BVz?kwU<^U%IMr)|C) zzTk}T){M%0%K7E;LqDM@N}mVLRl(Z6!b{(cm|}ZvwW5+Xl@X!4u18k3{zKs4Jk7Yp zw@1KO&6{SZTm|}Dnli%!AdpH@U!Sr(oxzpx?Wx^~bR4d3&o#(9*{ztd0O7dmmnXz+^qO_yXp zyAWB%oy>x%zrPqiH;&lftOu##k&^uaPAYHlvjbkb_U!GWM0QL?_MH76i15>Q%wtB+ zSmZE$>@Ot?k~050>gPw;yYpzrK_TE%)$L@J{Okp?47a&Uefj~3Q?2j{E#RLgR&Fpu zXCPzqN2(w}!_8RVs*zaOwCsuo_8}u4Lm4?5nC#cTzW-q2yDczr-_K4fY>!vJ2x4hp zNU49+zZ3GS-<2lC1@%QT1>%j44>Gw}U&FvzKunKR2OF;j#O5Egqy1F4VwO{Bf3+dE z;mA<|#U|U+A5f z-7J}i=1^35L3@+tpi$*ezt7ySdb&MnLFAJzLuI9X%NLDcmiGsL@g083_U1Lm_e-3H z|IU<_C}NTDvFGQ`wt03uWaO}xE1YWII0O~`D>UG1zv^moxhP~hdUlA74nsUX^DGed zI|v^m^puT9_ornZb|`I?(Y)tG>ojdz;oaT8zbO6ir{AhDb&Qm1ts=O@Ao5J9nOh|o zD1|4Ft6M+$@nJ&aqt3_ei?0W+6nSn;&pl%{LkY>|?;w%gr+xLU(c}2=gZ+lT(|7_c ze&n|I`lrs)vnvOC66ME`OZC#Yk}!qz`t2iXQ*Lt?0!y(3tqA5Lw@Ei#JCw44s~8xX z`xO5p>Tsin*W3*k+aLGk-a1g)DUlf+DdpMS@!2T}7^U>PSpcqb`_^8@!=EPdh(iI3 zmt8?gXQ~%0Ll@K!Bsy+^%2$yS9dh6ihLr*c;eBPR&#ljUiZ(i@F;~meH5ef!Mgd%u3W-z#Jc-s?3)H$y` z{-{iHwg~&&+t%WO>)cL`y~Y#K3mD`}*Qz3(zHBh+NC_8=Cg#tCtg-I!C-ZVl5K zUO`lyMH`CTSVLYr)zd11^H6^Hlk?J`>SG=msS49j|m@4Vi5q>kfVMbo{vfC{A&U+ z=eHW4J*%1ar1c&>m1by)lVe|=PG8d2j@aCEYi?=^O-tik^H7|Awfk-P>_M4nxr;%y z*TeVv>Cby%wCj|#{k>f4ws@_a8=o?4d$O1aqZrlO+&=}|-?(>^r(B!-MIj2W?W637 zLFVt7Q*<{93JZC7c^gd^`to9+%nepK4wdN#vnrhmtyK%6u(?`jtuxn|`V=_Q^@@iJ zXM{|OLf5BSw7|q5~7##6#00HWo=*>L| z2?-t%kYxb5SK;^svZ1uhu88^3R0wYd4R3Ivt z^2+Ua1TpM1 zwYAM%;xl~(fBm)c2p_SZgR1dq=Nv#l@t+PsLMp{xiu2kUess4jUTS@JAx}GmRmnb( zn7!UMw>1+9?ZV$!qYY`g+-08Vv1e7i6CdyhUFbcTEe}TGbUqch3 zxc*|v8M%<35#PnBFh@KV<*OsvH*!*0qvtj)JV*6LDtnDFvwap~Q(hSvLy$#<ot1m6_ zXj${>c!TkN%$@EGt>0@NtpZ4-R9oD0Y!UXEc9JKLH1t@M$j74n0wG_l*Zy{$uZ`y~;w|L7t)+#9pXSEMgi z)Z$4-b~c`d%WC!-PTFBmb8C6nA&`hY{ND29XKVnKt=J9MWszS{12}@=Py5PhmMBaY zDlYgw!8khaZrbjEI_bH)(izI3W(C`=yX=7_J{2Y^;uYEyz8z!Clbp#y5EXp{N8pbt z#roSFRS+3;r$Amg43%}gE`KUf>An=sZ02!p#A`uFOH(r+OM|0GDetLb#Os$a%E_Sb zVxPGM-y{&C5q`fLp>uwkSF?Kww*GyE*P$6Y$H=Kquxn{)m8fCpFyZ&rgBCOBQw%4E zD3Fnhs`;y~RL-PH4tb==_VQcrWibW5-xCw)-7$o!Va};xkV6Y1)w%5gBsVlHjAPV~ zP`xC2e(5>Z_mY&{JROi!O{Y_2{@C>Iq>60K`pIu)%UgV z$#N1W*@cDM-T9DumN$rYD($f3)=2(OcWw#`Mr16RX$Bu$SNyzpd|zdZOdi87Bh%-8 zfB5Qe#^f5RxuBoG=6noxi zm2tFBd4E;SbMbQ{x0qO$yDU#c{2LpT|-HjveQWm#2UQ(A5F^*a%&I0UcMZMlMW;0T%6EFLPz4T z-A-hxR+?j&b3>=Qr^g|XfeDy{P#`T^wAY{c0h*~qD;t{x!e3yJ5v{G4RlwjwX%JSv_=DdU z3WrZ00x3-z^4S`$-IFva?a$80h$VHrfB(bcNHu8M%E9EYCuW}=F^-W*K$>G9pT`q#k^`5nofHCa;e*f5+%b^M@RXy%}9D2-g z8#A!G$lCq?>UU0vc+EY)3?J{T_I^~Ttx83NOR&{_n9}LaD13p2M&$||^11lq0xUzm zwq(M-jVsf^fK75S=;PBxVZUn+|A@HS<{?WboqKd-;?j^Y_4unkv3C_H*{lBjWyL&; z5%JI>n3$3iz3Ra%whD}OrfP3;OVF0RJ8zW79Ca z;iSlV(wWr;ia}4;eJ=IaqDeg<`}@kd&4w<8B6e;DPtDW4Bt6S0W zM4l{7S9Eb!#*vI&cPo-cK4VGG)4@xePE+X*Mv(n9okcgQO(5b{z!t0-v2@KYE-qHv ztK;jyr+&sx;N30gxP0a=$W!c$bOzwDR2vnjEqg-)^SXHe-lAC7$r!NN~8!Doo)YQ;A*cietz=z zzg2(c%%D3-Zf|PU5(Tnt2R?p@8e*#5c+U~crcH9>M?K-%dQ%z;Yks7vFbx~}=4MlO zfl7?!t<+|}XKv0BvlDfSYaG_hUNC#*z6lYPR$kcad%4H_$5p=il*DN{Q zJ|~#5LI&5Y6c_?dP$JH``by}Fxne(9)a*{7s@dGp5!1-(ec5Yk8RD(KiotC)KJ2_; zb@LT)h&!+p%E^k+@41%k9~vDV&N(nJP||>$Z(o~eyjzFE6hP(zpUQ4(8$9(7Q0T(U z2MquM*Xsh%6{Ac#3A7Zp&CSi>5e@mabC z^x`-hmaA^nZKK=MCbClwuMhI&ZL=T$5?ah2)eF@iLaP{gGh!J7F2fG6_q!#L~A9=DpI}M2B zFIgC0;!ucXqKkG5{~j%LGeajq zxM!DI%(1-?dI0y-`P-EWldW$+!G2q{|07L5^q>bcI(k=8o@R}Q~ zt^NA#f$~XY=sD0;_KZ1qOQja@RQ5HxySrPX3H9~o@fH~Rg&>idQ0VRN&8jP4k0G_^ zfS%Hc0~?##UYiJqca1V0AaKnukGVZ38k$_ltCb#&f$y*L;e&I@>*xj9@98EhJDdt~ zfEbSQ-l7D$R{sG`sygFYw>Mcj34=7m;{m2r6ciB8Lkzp09fEzLqbBC_J1=P;6F}xr zHBjngj<-M%-={=KVmh&%)?+OkE>^-O_%ftOe&ya0$kt5~*CQ0aKY{B^8*M<4Er7>1 z{MKK>NeeLKa-r|64| zGm+d}%d&uGf$Pk78dWaLG#45EooBNPFeK?~SVRQZ%a@9>z*0i!2h4863%~F2wrS*P zNxCWp`n4YnKV$s`u4h6}b{?o!0VHCKE8O1OQkQ@M0z0V`%Y~a*2KD-3=*N-$1kz-(MSnN^?ylTF9tQWG>CT^iM~um>Swlzi-WX`XXVL0Mdc; zi$+<($~Kssc81EB_%fsr{pL60S59#nnwh<|?SHg7b}mlZA-){exI-XmT>&5=JO}&h z-fl+8Mzo(f(gdP+OnL2OwVX&WOdSfsQZ2A-q$x}?PuLcM#`=1m7$;FsP+%X36E%=~ zZrUQ?;wlTou>FGT#-A*+C-9UC)}TSh7w!W$mwB`A79@gr9J?6kLUQG)$FM`Q_Xm>y z{vy&cb3x~BO$6O{x3{Hlr;=ry-Xk{Rh1PE_$4hEWx5im2(;~W3fZ^OJD7cOq&3I}2 zcS|Q6#Yfz7+F4WsgqQkjU1xL$z$<*bJC|MHv33X89tAOEiHfmA^-Vi30nwfP?;4%o z(o#^7)3AhgDDSl@&h-`Udu1hy`5;6*931E7d*53sPzQvOye;xX+Q5?QpWah{MYvJXTqkp1t1koo}SHa#63sq~#q76PbztvCD-K5d;`-iDZO?YR>ga{&VB|Ik;iW(-q+Ywe{)J}xZ>ed)kb>+pq)5vKRxC@UUT(-VyN~c z*cR?6pE>irN}bf=R|ylTi>s@S{#a{{nS9p-AR%ksQ0YItbF9E~#q+%XE{Z)P!55tn z2N%?Jgz$t)7zi&kYxsVgc!nO)A3;Lo*{fC%p9qhM+1ilvL)sxzcV4(^_54l)+u?0x z02`T-P9vuGe|_A^xwsb>^7M1)*3Y;nPnYHS+Ty$$L{{icxO*QYL&Q(=nSZkHu9olq zng-AWF~Ua$>L=$E_RPU?6u;NWUOxXJ=gAE?36ccV64|Rw5n5xWuzI*Of}6%00^9ER z{aqYLoFZrG{IpXs`|;ZQ@ZNX&YJ;UtA|RJZ1o>10U%0FAHD%*QS?2_q$z*4aq*tWs zBgVM{4Uu6T=h;pU*H(65LM(EfNn|#!LTwIdgfwUSs!WRSTh9cT?G`Whe@;L90dW^2 z%m1%Jte)0$T(g77kZ8=?xjv!81R19iECZc52>(ZAhHigvmU0|2ikGspE?L{i7&s{u zJNvW5;U-X9%vT>|l^M>QSdDOOyajAT(5%Wx+HvS!`|Ny=G}1mN7Kc@EkNxHc>BCG= zeoEBfG$4EEuo9BI8&B@Lad*@E3|2Y)`eI4oZ{Y|bnUcfOx~v%4?P-077qh(t0s z50gRqnj0w0Uh0JIhE^wdYz@E3=+!IT7L1LRByw)>3ek(Au7TE{vrWNCl)_o#jUz>mZog?-NRdy(U!}x0C%@3Yi2(Wtm&uXv)=4I zbKjjzxgOd&RtF;)ug!a|!)`q~(;lh@2H|r2kOZu*w9eLi7G2Wd%=TaDVq`-5U5ORb zrG!gjB@MV_sM=N_I!&Lg4esmiGC_tkc<;~ttaxaL3Y&^xok~^`*PDJbk-DHefa0tF z-O<%Lo$m>gt$emuo81{#f1()f>kImIXjloHILAHmF<*c#5li^e7FejQML03b@3BXS zka|7e^PHrJ)BisgX|6n)sexdmMixL%)$V)_7?yecG^DtYqBU!G_manZOQkLoZ)7h0 z{BZp)tgPu+RoGxWsG{)#A!1jMZ+E9y{{Q}zXbN(b!I^J;q3QU2Hs5WFfoktkz#}A~ z(n~CIE*Z8bJn#;s&7cbk-l}wun*W)Dr#XsaqhT(vUwbvgLbH}cVzb_VYN?H*Mv&v8 zMi3gbwXRgbt!7*$LBSXpz@aF2e@$Nn(%b)52=UlcL0Ze0YEGFzHQ?Qsr33S-v?fMQ zivwaggT^G|q-fapZ8=o4Jpo9xe0_PWZ4y~Jo^q4~6A+wEYJ%LZ^#1>v-#mF{Lg$nQ zWTxKkuu0wvT@po%t{55d&CSh;Lt4;4nMS7_Uxu z5(+W&&fSB7H=j*9isZ(`$Ma|FC6{2ykeI<*zgpW9?~a|1mvIu-Q{Kq{ZF>}&_+hOi zCBidDQO8*$>I~pAu_r-?G0Dj984+$_YGx+E`ZnS$U2*ds7*f`cZ%6T8pIq@HRL)@y zQqPmVeEIS-7LHx?1t7)F*_(Uo=0CX(!yaH|Wz__3uwc6Sn{cR3+R4g3lik`P#Q>q> zHZhT_2<5;1PoD~u$>5WTlq>Y2#Ln||;OX%K(-(aMTaSegWaLjv`3RiB0s0mN3&y$n z-8;UBGDwIIfO2;}l8LB&^T<7@umi`PVSVChpf$Lv!<^Pv4`_W;0CS`_>M(VNgS_l= zas!Jbooi`MH9J|G3w<3d60d@TOR%hTZ)KsPl0Yq@S3B)BcdQcJ#Gj}v_!Ye8%N!}t zNvvIPe~*-nJ)yD>Bn@CYb%huMsJdN@v@WOW$@!NdnQBG&H>^s7_TxXp%n>?16N(dJ zcLLB1qV?kxU7A@an@jn)d}p+L7`pdGj*V0EC#D0*?uP08wK6ID(k~pTMXapy4GT!&Zy^ zpFuEVet$hD8d}em=)|%t*_Ha>TP0ko6wo$i#Kj#n5E4_^5>|snwk{xnXjL35N468)0BnQVA*tA2ML7bZi4y8XbUOlM~y7E3N z2~GZ49>yoO{QQnHHa0G4c;*Yl~ZyZ8G zz6s=>d%;H#dN?9jwGNfMU^&tx3x~^3ow$DNhj95M!$7{pQ&jT-adOF-(*V5nw${xO z2Yh_?At1Lb{lVqoN{2wQ$T+YwjB9i{`XT}da8fxUZC?s}6NFFOtxCT264 zi!-E?O>7c{Nhs?%XXDP~W?QgxxlopZjfo%pnjHa1_+4qZ&xnE@ux{NIwk` zM!(YCp>UQ(-tFDxIPq`pvKBcYC%Ay=9$(lF1>E!Hs5xX{U&9VQZ-v`~-jKj`X;Ada ziq7U&RqlQhBebzijxU~l4E94!vk0Bmi&E^f1$%iNeeT3-@2;FfGqXK$d!P^&VRemc zhsr*qv1zZ(Sq>0pH+NUyn_ukA;+O&3y&p)*(1izfU31wxnzyvai9EVNFpb(-8jT)uxZlrmK1OeV!Bx;uS8oM*xa&41x znQRIZe@#PyMIA$kbv6C|7Buz!v{R&3#2Kx}iYhVmzV7+$e?Z8q1Epas;aD8!b$&n) zK1PJV%-GlyM}s>a>#eHRu- zCkjLbrM64Xrl0P7d({mx^ai6}XUaLSng6&Rj?T{(o|LdA5tCC>Yyc)5O zG@;|5j|!1Ms=G~D{t1!RcCVT;nFrwx-Wdcc4Hq1KA!mzyVCuKiVlK+o;UG<;{4FcR-P!akBt?(# zr$6B8;HF-OxXsbiX851l3Pv&!tj5M~y?kg(#G;rtt(&LA-90Ec>9Ik=~6Q!Hs#qK*}TpU1I<( zHaV0ItNS4V0ZuN)`^5gxUTXySyZ_FD5uWskRFde$gmPSQ-*u?!bXW89M zligQWdf!K&{Yp`bx(HxELfka+M7#06GJx5v=B#Ck&NE541fNC<)fGu{^2Z=k)U*iH z2=E#peExs@zVaL9CJq6N4v&oFhV>Z%wu_dFOTkh;OPAd53cgO>b+o0(b(p_5;7M-Z zOb+Tw*O1W1@L75Zsy4>`o$Jv6@lVM$gWQ>i_83z2BVC+m6m-lL@xluX$H1m43wHdp z1O%bnePu)l)sj)25d`tJ*L$2TQQpJtY|P9yOnYAFpifquMXm2a#>F6}y9`gWW#1>r zKjg;}o@xe3SLFA|t&x&)2W?9&RjvUzx~aS~c`Q!SHhjpr;b?el>^%iRWQH@sR}MsQ z@HMj!IE(E-AoWq?4Af)RN^-eOgwup?p8_>6yF6OZ_)ai|J)|W-J`zBcjjF1ul*SaD zJz$Wwxc~w*BhKh#fMehS?Q3i^ITHh++O}+l^LFF&NGMH*o zMWFu5St4a{tES6n$H)R*ViCw3e8GU`jaw;U=8f>HYI0{>K6adkAb)}L|MKQkaHRXa=yf>DC(I z-C~Pmv)#RtIZpx@@ZeG}4nG?8=>`(x30h8D7>&?*+lEVZ2@q^ZNY|!S+6-0PTP(DG zM0dLf?_G@48Dx?uF@1iJ144EEcJ7lEadE=RnXj^`4AV)gO?)4I@jY{_t%c}sTc#T` z&avm$1ZMX$6UF8PJdZeTIGBWBrGj0b-Hu)_B%|w zx|RoDrdb{<);q7R4%veG_`ePivm^ICv`HEh_1*U<2P9wx1PX2KL0w-yfsxu4mKi5u z6W^6(X!_vUQYhUQrsO+u1|O;(cJo&2oUT7=LiIrv%74vyfv;p0u0F<__R{M@Lu z-rR@npUP((eS=#|>TEE3fi3M*nEEn?RD%LO^#X~~9oUPs8u((+H3U%sf~v}UxxDdm zHsWgspr^on$ppn-v19%zd;GUT&a7>Y3aA4qMQ=RP2g;<_)Cz9ixyO@P-UOp*z{8%n(c@QnM>zXX@yql96XC9g!okAtR<=ReD+x76Pl{h) zeY|>ZXFew{BPE4hm7dcS_E`sGymf1=MNP*;{v&jn8!krs-kCo1l3Qf^(7z9xvr-Lh zyD4qEpEMQObg-Tjy^VWJIM{-x%m-29cPEdWqyP;wN~C7Hev!lj00We+&pI5bhsgCeCpaz!e571n!fTO#>x8rHZ$DjOBp_7CsTU(#@`w>IB|0TY| z@nVj2P5B!Zr%!XLSzBkBx)0o)W|8~x3&LJJ!otFQekH-jQRAX*?Fnp%U_uSwIbKr5 z)jDEptFgs_!l!@DE?9LA!O`cLor$Mck3n4%5xALg|1N|;;P-#>j_fI|pF58CN4}JL zZ#nkp975O(o`WokNI?fBJ6N$Dt|*qH6m?%TD&)f1Vzz~rj$X+#Q;JjcEbuh{{yp5f zzI<)(9%97bR*q45VDp^t7n=nK%GeI*ulp~t zTsS=)OE@0`^%x%?-)-a^H3>bb2_yF~kY)gz&A3)rAm3Dls=$toN-o zuI1clb7v`QIw?Yo2w!r7qwh{Pv7bVkWRuiCs6@)w?qAQmbQ~nZ&sd%_w;uky z-kqvO-kc~`80F^+?WDCm1O%2A7~;8Ywv8hIq?CVeT$nW=)m{0>sX6jx)GZR+7NPe6 zF@nw$(cO3;en^|As2`g~-lb-~{jjqS%r;wvOP6zQmgYtZ7`ESk4&b!;tx_dA8wxA! z3`z&V4}00ylER;uts=6?R|jL3C=HtaPRTBHWDgEY4>%1YcIrRm!dfpMRL4Hrda0=2 z?@q}sx%n;Ek8o%$Mf-PlfB*z)FnG)0)btR-+Ey2n6& zh8^;1ASvbKKZ!eRjNR{WCmU5}AulZe=KPo@a@gpi8=0wV=YSp-$}V~1BlCOXW_L=& z!fn)Ns~K3|z=*@ZpFVRZvK6_3TaSkCp1SCD`GN{qp(R{jI5xNH!9TitxW5CfGxhv4 zNU26_pFl$SKNb7a!E{?^e?`za-1{{@q0@RElfj8=B@xKEE{S2Z3GRcPP?G*tvD)yK zq3*-X;W;ol5GC0dDSQpJ)DP=IEdQeB|bTeM&fq%&MbK2Rfqx5RcdsW=-rH{hxvguTWq= zAie`{Lym#2fkF54ZZbcu#tNN09M2)od*D>==`x@@ez_GB(1NN+FdlQ3H3S^5rk#bq z;Noz>t|`LusO5smJlB_(97i;oa*lWhh&w!FwS7pm8B}>Zh?9T#Ax`GWiLX0^-XtrY zBdKuYX=o7f`o%%xM6PF_pg?+F&*ZQ4}hYs!=JYN`gGHw@rz$m1aFA3 zT*&kHbMlQT*WMdUQ+t5G)>`Zg4pAwVisqk0o-_%4a|$ZW9br}Ku2b;fCGWjC8bAT7 zuzlYA0)O-!y0LHDwGqp;J64LW$k=T*zx~f~!hX}OC-M5LGQ?!mp%5Gy45oM4UCFem z^WIu^$bC-S3$ym%Qock>d~>u=!jkL@i>N_{MtYw!$~Iv5@&i|-NaDH zBeg)(!$ITAMKnXyjq2)R_3DO?A2L+YB<|0s5SpX>McodYV1^p3urJi%7u*u+cKq1y zz{)NT#-D0#cPUcU`G?-UH_MFXMi4<;dx zm9mSD6fqx>e1T4u;UCcHCKB|p#0dQzc!ee!Auk!5>=d3!%+cgpnw^cpAJ}+|`^pcP z8}_@wiQZb|1SNoZE-*UKAIu;IAUbNG(53})tk%=SFj3Rt&TUkJ?s>*53CJL|>gIsQ z`M|dI^<@4}pZw7&=T4K)W*OEzXcaYY-5NS8z9)=7N4EeYm^>XSgeo*q@Flc}ZiyJF>BEDuK0=GXeLJu;4Lb(GmnG6UIluWRHt#F)~QqeKFNzB3M zeVw%4ZXtIAUv`4TL*F%AmK>?vq$~mS+IJcMyzt@Dpj1|=5;MB>bmF;DT@%np6DoaZ zJh>=;`g~ppDlwpJ&7CEnGm#sAgypi`{r_D*{KCg=06}PG%=H%m?DCR{F$Txl19#iL z+@z%w!6_2_te%tfuH3hwXqHUWafUQnp0Y#>)aK$q4}2c=48dO$eGUoqr8_ImALoZF zOKpj&;NXOkbavuhu^9=6%AF_Z5omN?g-k(1ZbGhz!P@^^I*P z(_`&-76#Wl)t-c>ehNR%xa_EP`En8VNHnUaW*u3bPH-9we!}jcXW@A5gIi3*uU^#` zUGT%*VxQz34wGjp!>e2zq=PZ+MVsIJnnF1WV7N;{lxjI#=%#dGd>oes4PM_A)tp^m zlsG;{1xp>+zX=1zaW^^1s82vRpj*q1!|YJRKmL>joY6J@pqEjAA-@kiBW8E+49VBvOdE^SWl= z?if3mqti`SA3v^I(xeFebsqN4(_h`HCsv<7UzOd@)=b?mxhi|3UJHL@%zC#wF9(=f zn?&F4(rE3dJGT`&d)Gi|O*V^N12`QC(%Yr;=bt1hHq#CmZLGJ5B%D!&M1{S^IUIv7 zY??ElGW|uN;jG4Pq-*w=*e?;C*EFnvz&L+Tww}yPGA)>;3JmA1R>!^=HP^126KPHraxH+R(l8y}CAgji#NtTfAuESQd zcHhQWL*^1B7ELE)EWc9^07Wbxr0tr3rxF7bW&OeQQuBRzA}Cge3{LX6vzTTALQ2UP z3Kqyf@Ds^$Qve;4Gs%9@Fv!(hWZPq}aXuEp?mvfyQgo02 zjh75Ot@?59OM}e;M~+Pb3Wt|X1QH|{>L|$xXKqN1sj}u0v?G3Xs>Z_P<#wyN@Vb=_ z6si`&VuDK@@58*`m=ihh0X#6XA69JF_XE)0T}b)5{9QE0f2QN8xLysIro{4V032DP z300!4dJVE<`B-xLl(t^9nt7gejt=lKCB&Q=Udxt}q&ovIL76-_k-+htb|+}VPsG6; zj>MNjWpY%&fB;(St6H<+#;@!B5hCWwC!xPvwI>d^N5-bw)N4oa^FZkEuC(gwPD=#( z{qH`!#ogHwY9Ga56$3ap1x6zU#2a znHv#PAs(KKXvpZss$P=(-S$%pKP`8=YXKlgRI_bYLdVjEsbKrY7sl`!!(Sa2_yHL> zVTZw@FvtWHQ1QNk`3!AX@U6=ss0-nq7@I9cD?*4#DVCs9hi79Z!St#qw}W=Cce^&G zorT!Bib`Y)Qqa>y-I<&n@aM(yD z92jHGM4r|I%{CJ{wfOyBzTjb_Uk_yz*m^QFY>M5<>R-T;TDTUzL=s#YWQovEfe}DC z_AF`-ESwg&+EzE`q_2Ksb(oDV=Eq9ud4xv?dz&j=9nWgnH1lA_Ca!X>(5m^40_9-? z>Ni8uDGG?)&F9o7?SaN-@ zzlNo=0?8d)=4?tae&cz}hmY79-HMG%ISfBs154QStIFXTt?P{{I2~!)hD3uXErfO8 zes{)8+s%5K5(2rZoi%$a?7n?z2j=pe*d@mHZw?53W}iP`uGT~3rGdd+S+CQ!Qc)ghy5G?nnht5Y#B#8fAX6YDj*zeNLKRU#v zmEdZR0zG(P}H@Uw! zVE{%7${f#<_+QzD<2|Op7c9XNTdcxC6PKP*9?t-69JR**9A;!>aL36$NJDF|Y0t~m zu0eHXxlpoCVg3{_j@&d*adq-?NCdNH*K0n<5n;sq!MFFx9;ynwPu%pr8R zlJ!$JnI#oNr(Zhko^WzLvyYf)F7p`Sp(x9pn^5`gLY}D`Ch7`{S=zHV%$bBu`A|_1 zo`;6rNz*5egueg(%&YcqsK4r$JT>kDLucnN-s$d0m1jwM9gmxr2h5pdqB+_0Iu7X8 zR%9ge!MK^X-nwY%S6~o6=kx@wz)M4E5uu9i`s6EnXqGok6MJ`cCOypX=kDlbU5?ApOI9v`vEf{@ zuY}HVT7v?ODaqc0tXC(go10T3Ar3ph4}r)%b~Hp)|Pmz&Yu{5t|ntd8h^y} zyq!fI(J3U~@{ls@6s{hvZ*I3TEdW;3*=PsVPi3nCx(|?h~>I3x-WuM9QY|0^4=zgJNO)hvGac!v3vTl z_?#|lhV*1xg5eq6#C!3Gme%FDXH7T^aqF!WRrT4Zbny4W!ANM7+m@*kj27`G$Nf zvHtnf2$c6InGp||FM%EkpSRQhfSGdi?eBd*)pk*<6Ms7qoKj)Ti{AI=v$qZQrJA$7 ztGajZKgSHB<6}R7Beo@tyik%qmIh0g`q_mhz^+ZET*g2p-(SrRUXm5lCcL&m;S_aW zkI6H1wH0dF-L7MRXKK^Pia#>MA*?&NxTXcPiTvfQ2Z!cQLGb(m5Ml}*W+9-uUoZo4 z5)vXyCtlnEJQxkpEEo{dx!cTOM$M^{=hqe|k-c;xH@lefC=SslZh-SR@)tHwhAj?} zIcu4Pz2Q}K(a;Sh>d&Y|-0sED_^a99>(A$?9eMF0?P5?o#vipD}TdZqQ@qf!#?3~k9*>t>}eWP=6pv;kCQ+Bt#+Fv!ei}2~p zH&cj8mJ&7Ba>$VBqlqYZ z28CGO`KhKbHJD+yRCsP@>rl{Vo}RzU#(v-22yoBeB-tsyoF5hn&o;h&)2cSVU_EqK zfuiV2BB1?p8ppZrOqA1qFw7GMqEm_`78CY6+@Frdp{|A{#%rHqT))E27Ef>bX+-2f z)js(pJF_}*c)BYK<(xwE1rG%giHNeSrn8iceC+7b|An#WDu1O{_8GA4V~_*11HG$CG~XBUs?IhS zTm*FJR*pv0bKPofNA|-w({BAJ^ss+PA`OhN)=Ewv8Lpk!1CH~%3mOs36x>mW&OsA; zC0u2{vc1c;L~fff-}^)*3(~CY(>?;-+P2E&GFpmCBvB*#o8Oxed9SK zx9m5iC;Y!D7@E$9Uu}(n1{{A=b9ZY+1Z>6M6?N=$TVQgj0ZYwkTlsiMe%a3S(?bk- z3I>_k_KeVckB4sYQubtigMiYj0;)PK@w-2)+GplJ;~?qOAN*8uHunu0-C-FnpL+&a(DgwcW-*YmZpF(GOSAmI;?+s}d) zSi*I#J$b9ocK+X}8!5$muw7cfVmpiK#YGPI8zoMojtb%Fw&^9P)CKw{NE^1}^uz7K zRRmbtH|yZcqdH@2VFtjTl?YL zb0FI+@u~J-`($z*^(z4s#ej{651ugcB6$Z%O?v{ZLFOmr`6AW1`PyG4xTmWTwCx3Z zv{3cF5lrK}n*?a5Y?yIZ=Yq0n$iXSj-<Mia5!AOoYK!;+?0I;e_SJK-`;X7CL!?n4ac+J|de6>f8!u#XF{jbad! z;Xu#rg4%lBk?P+Y7a9|lM8*_HTaVk0z97Gx(oZ@@>7}L$w6k?!2*kx^NQq9tVXh^X z7kQLMb8=GTr)q)9mrNkP(Cnr)c{c=z&O+}Ah0~`7gRP>ZE&s?yw_jG>1%X?);=tU_ zq|O4~f@k>E3+fSgv`g(YI&_>v!Jdlck9;%#SvJwuOhCc&zs z2wNNck2Wgjk0ZKieTQ?pf+T@I32xmc(sI&-k6#8n8lFgeG7>R3bYzwEzr&1M=>2eA z8;yzWz(K2M_>n0&myul!d<&bJ77*zm-69(-{S_UUoym+b15K=?KbTQJ^HNkeI!hHi zZgTlhkJl&5PKZjD4)$)3-syH3gzkhprpy57O(yIfYxXF|jsw8`_8Klc)gvqDtRS4k zG<123EL1*8Ev*oP%4pM;Ux|`1;%>87to^N!2*T5pV!<(0c+#eTbxpr9jo@~Y+lbvg zGBxz!vtPE8mBG~LT}X4U10qVudGDqMTz_6S zY)(1%v^AMci8ZAXqsSVvWMmO0=W4yN@%ifc!1ni}Os1e=yF1aZ`+K zp-fsNKy*8{umwE~sQd?&>b+s#y`^=C!o+Fq05*((K=v2+4C=0lYZZluw6oQBz3lLryNp z@KN&x4yDmNksb7iSX7~f`1&z?7%nztW(vlvg`jlBpu=WY^^|!2uctQ;g!=g($7k0W z3b{(IsK^l=Qp9dKOYZv?NywEu$1WX65z3XKA|yF-CC?mmCBulMKs z`*UaKIrEr#+>d$8JYWFEzo#P&zTNQINFvSuOn;ZBk}Puh_aKiKtRvu6XM>BfHf!)_ zF+1!tEdI_t65H}Z+M;Win-*F+tP)arSfJ8<=sfLS_~PxOZ=@)S90rA&cZSLfXr~hX z$3$+;nq@?^V~juBNCk zc?et8aCOqpcIOR!HF#?fFRK3YN9Akxo)=ZLmp5Rb-ic;ZyknrnrKc=QU@R)_a#Ynk z3V)WCOSwRQ2zqvhb$8oj3H`CY20?2Rr_GM2(4Gf)r}pp`VP!4DgC+z_>;FL^AgFsh zdZO|hT%pCYiA0&4n!7&!Y2f#@idJ}GzdZzAO1kaOC~a3~O*8AyI{zval+~f}ChaCC z&8C4*h@4BLeEGrd^&TchYSYp%1!AGly9zH!&^*m@N6O@<>ZJsD(w8>Q+EO{;BeX-V zELush71tZm1@zFVAO4p=04<$0xohl5fXNnLhQOC*e-5>XPigZxYS9OA1^C%mJT!BE zKwZ-gE@yN&tHg6}FJnF{413*Ab<9j`l7gO2vfZymA^gyc^?}-ls+fBMv){bBv=Hkr zSX|xAfrl`k!fIz)Gk@(Koy?}`?o3AbRi8UK01bWTC9j1CQO)y+;1N%y=zM`qXc9Q2 zynfTy@o>FJQB6O_k1`KW@7ui!p$&f(UYyuTR}StC`Spr*fkkX2Jk!}@bD=JbW-!oB zp9daWeKbGq(_Hy_TGr_O^$UnR%6tWfY~!ZhVYGd9@k=VSXA_}DKCyr-Kuo^Okb>^w zCt9rU1~T1v5Z2>7&RUIhYr7d2n4tKeJ+Vy+yJ&`fpNv#jIo;O_u}(d35u>J$fzOcd z&SPkqgS6Zywmn67K|(;u|K~Y|jdu@g&eLtYODucwY1p|np|NIR`e&*UycBmFs$_ZL zk)}dnP&^JZXr9q-T|9bw;6%?n9X#|Gh5G#{;_Tv64C6mj_x?aN@Q6$h7Ol9mVc?vd z3_0;BOC_xHP#I~Pzt$OgDW$6ovF86j69*vq`fsjG(SgJ9FuLpGlq1C653g6yP9mmA zzoE9GiJ8N@%e{`OFzS&6p-CN47dXlican+BK=&Ex(mMjIDNKBCP#|ESMs=e12n@s| zS6-O?GA6G4co4n6 zk3!u=+Tn?1>e)=$9YqOaPo^*MNvn2TP8iV~Fz4SJs+BIGS9LS0SBD&6Q)eY=xNuKM zf0kF=Pl0sv$Ey%efN$yK^H)~M60Th`!g#$;ik7A@shc5X=NYVN6zh!Kh`+J}ZM;{W zdiR{#@-8r<(Ev}FDZ@F&?u(K7+L^}f1>fHF%Gh^S9WwOg7q*HVUhnimwrL9i>BL`t zS9EyTY$$#I*Dt5rS*^tR^Q&*6HKLAN_p;SF{Za6W>^!f~>W?Ju8{0TJ-Qxq0Tj1Nm z!?T}HiY^}cU92mMZ1?=nd=i9JdizaXSo^395Xj~*HzfuRZa96;#PjtG=~Q=d?>86D zE;!SKCIBL)e!~ra37M~SRO}+rr(l7erOi!&cyZUxF9*J*II0BAK2HwE!%7U9j;%sF ze{=O!8C1;>LMm-gShC5hkWN#Lb|yj$9J)Fj`CreE^M}cNmkN~27#XbLvtq;UyXbgD zlfWp3?+E$-ClG))KMiv@Xbgtjf0K_`2BS|w_i3rzk-Zv3@bHQMKTQZLJ7it@67v;z zxjW6sO|QNYB8gIGcgnCpfcnn9otFc^12A4PX}0`=K7KxX(>k@ zvnX>{S)Ht)?d1dQFYVA1(}4)@rGE=O2DQk|m+F#Z-|x%Z_P%BHm;HD@yqbY6b*YRm zKn}m%4+`YNC7@IE+p(2D{&6;}%5t@W;V!&9f}bhbO))#D3%$j2p*wb!KVWvrO&EZ^ z_mQfeb>*s%*HQe_*@20I@6C#5kH$G`Zn%?9ADKRIReRmsTPgX%`Z$#gfAYtPKU`dR>7=y_&iJMjGH9PW|J zVy^r#j%)~V)zg=fT~#XV-=D1D0`A9=vM47DhtprtXh8Qf^2AJWd2$l-oklX6B99>; zzDh5S-6cNP`Xo@ESoxBWSxFPKPVP*Q0dZzC&bCxlBB^z~OpF84p~&vjR8i=dvNy5C zB>tGMSySCdqr<=4o0~r{!t%P0X6KNZ)^a0o1D;s_?wIEp*om*J}QerA9- z`gvjEMd6n<*>k0)^bU}+8Xo;m=c7^$?#cf>mGQiz9li<&?p#xuj!(0CICz4a2C2FT zBRmgSFyGGCina>Uzs0={`xKpObA9uE9|I(;x=~12v?L0DY0}lKz|--8LP>|4{~O4q z=6Bl{M1R$l&i>URH?{$eb0@V-E31jl_opg82#%vR`kYQ>XN`WEs(OVc;^-Y<;z&bM zLA4rm5K3;AziObQz!&eZYJ%EZTD4;jk`eviY5H!eB9CY=9o{L^+S9mnNj3bxv97-^ zyFxiA36BKik8(Idh_-H5Z2#qq&tDtRJ$Rg$wZUKbQL^0i=-x$O*&vDcm)*VJq8zX$ zx1RwCxGv*}J58-?{^!A|KGodXQ;+Hc%sL_g}^^7*EZg@yJ0 z_~e^~U2;=WfBw4%SFnRW1SvzGjh^iyED{Nxh3(s`IrEo86}j^GE3V$|HY|7^j(^ik z`?AXk7T`HI{Iw0&a+<_Wg0I2QdUdRd#0u9^c^Gn6X+y!v98xMMwtL$>M_vfrX9O!5 zCw@7I*qeKug^S7i;#Q_hu6QNNLUX140TtRur0R)hZjI=Rf-3UiW=88~lR2*V&gSn;Hk?@bIP+VTp1`!_MW z{(qe-Q}o2WxkUuXW8$=4B4?Tq>5w3dD)J4|p=Ox762o6Dm^t=G+D_K6`~v%w{@(T` zUi2JfxMCPmSl)3yDz7m!+eYa10;e7`)+27qqxX-=%m;@fqlf*IW2{ZE*k}0Me?)^P ztNzCfYTich%Q9a~NJ(D{d|m_bpn)@GYO92ll=n`^{ss04xOHzhxD*ob?;`(oHGu?IqxHw5MH|Aruyo{37Wd9puvo0hw-`U!ERMgi_x>P7 z3*i8}ytvsWmof9gm@JE!s07eW!OjoKGt->1O41I|cFChHqSeK`o0w7-fdBV`Qj4A zvnFo_j0$^C{JVm;b*b@R_BN7v9rgl(`)@T^p|9(!!p1d8YPUdp7w&cpEcxfRxSvzA zM#5n>p+xgcX|K)%SGJw76x@gvK_6`ypQHEc-qbICOKF@J~WciLH8_X>xVnaa&8=d0Nj0pfJ`fYZIj&9vMijA|W ztK%gE_}o$g;6;+%&VOBb5SIgtzG?uxs+#^9WhN|G-0>RHL8VjbYghp;%?SzJnCRXS zV4H~oplY?fO-vVa+~N9-K{vSM4-)Ps)z+(H!ey2!+i1lT0PkVrWzrBi<|2g^W=4VB zgo-iKn0$pK<;R@yNz|N+e4RWf;Oo|t7IJb>`v4DmBOIbaGH|4ztdcrVqIp`>a5ZDf z(&ZO}uQ~wgTJ5(FC`&jDbU|bsG-Q58c?)TR0}VQHvnhkVhWkTHf?}F*`W&!gMZ`^Vac&n%1Rs+#rU&|^F`r^d4XvEo9 zHQ3Ho+$YKActB)h*vo|v$ltju!A6%A&} z3e$xlMV>fF=_Q5PRn_q}4<|Ib7nUA`Tphad%hI}3ch&B(?t?VBsION>YFyqf(wuDvfejy5d}8d$`sUUypSm60NLPU zVv;ecNqyr(1hY7F&= z2^gLl$Tm-n27 z3LEwMoV|N~M;yW%Y$$B^ozRO}wX}X)x`Anr#@E566Wm7+dQbXsE{D8}*0kUs+g^6h zZ5C4KAEiL>cD&?4-RQ4 zT(XGi8|AvPEg3jB8|C&1N&vYMfB2~6wT5)bWx^L-`XAatd;rC*9_}TMbS` zg6|VP?7ib>)_F0ur_y}imTa4#ub^JXW*GDYLDIx7h-Ps2Y(c|u!$@~f%OhA6X zPZT#L+P(4DIN%fiS&69E6#)%C+h>CEBH(9yF9ms+_5FqfSEn~W^Bb-bc3VR{=!~0S zQ7aMSwu@$JA!Jp~wxlHGgYPFa8K~o|uB&E|P~d%-_|a2#;U86>WY#_aK>0#FzQXD>?;pb}8EBM%~5M~xLWIH>J)@PvUh2&2a6NJ02Wg(~NjALbB z%~(4{Sz@B_>AbvzrViqk%uW)1KCXo*AIypdKUPTZEf;WBBMFG)HEpC@fHC(NT)N4% zj*cp6;ydxQVPjq1!rB}mBy`!5ysizIo3incr|bfJ$A%(x63YCggef`f=1sWAm%t60RH^&IBcs}+q=PL74x!N1w=vU2tANLooVSI;96)~Z65(8fkK zus~;WY{!6GTomTg;Da336F4D@1wU@){}lk2~f~LUASat zu%(4(U7b8XV#t+lh-}uN8wto#nFjG(WH*9!aoveIt>UkrR@Q3E#aTiZ< zWEu(AeCFjV@aZ9RL6A3gqt-u32Op~!HAjK_Q%A;PNu)^8BpI3DV?Uh+y~9oEK}o}bT;iJ2@&8O-_5iT>qi{F!8;;}7Kw5`7 zK0M(f17Pe=?ua2xoa7v5X}k8aod53;*`LIBOr#*x^?;EyOM!rlS}L6*lsK31;n1MD zyw&I<`s+f^0~e8--h+?tg^=TAinscU&8xZt2k6ieBdZlXL`y*`ljh)d#*|RKeHT5) zqk6uMr=$tZ>#rFvk2{y1Y;vTjvW0cG)rv@q{ou*_b+caL1ka~k_UFcAt1b5X?sr-7 zL}5m&0$%T4Cr)AI-^X0_&xPq`guWHZuuHtm@4wygQG}LadXbgPrwf+MfUN@Y)00s_ZccRI zY(Fq+(rhrXc6ofbIKba1o;rE7Uc{CBv2O3liSYWBt_e?k*<+}{0b_;`kh|H%y3sfm zM@pkJ=sc zAAtL=Ytt_pkG9RPmfN_k);c}__4d0H%4MX4N$UN46LQW)2DwXf5PQ0_40~368a3PP zSMZnrkWy`GPml4gZ0|X(_Q@Wk2lxNI9qT3DXSZ6ybV5q$w&F(Qo^_`QA&bM_ zJ8`0;>&+)_&`HG*cHEVzQ>)RW)tJwL<0=s#Gi_-|KSpfHl{>a-kGaMbX*WU-v^@maFI1vg87cXXuQ{ zG#VBDOV`m#{3gbL!s0@w!YxBQ%0j8C(ByO}v#+uTY|1F`gym@cvsU8U%^;4IfoUg5 zG5gT?QN{UU%k(X+&np3~xC=8|>|&Y#yi;SAdr(4J;DV$z7fm9wmRz9NUxr1-rOf(> z516>As^V~9-Dgvb^(`ErKKH8ZMg~TSxB>MocZ}+r!&B+2=E}d!FLK&pBx2$OXPjAm zryq&Ctq$(-t2@X%X!?GF2XVIHE%vv8oV~$}A#ccPhHSsCXeBgq{y#%bfN-bmJubfBg2i;Y}ACS~sjxNW74P z9xNJ=;_${~-0E;sN2MtgQfF?O0$_JZoQMm{TD>D@yQL*D_(Y_>7ucW2nA^lukS+gV zHcq(ixT(l>(Zd%~l7BrVwXv%$RQU{uz2UocXFsW#@|l#cN{^D8`((;rCX_!8mUdRbk;>48&@FIZ^M1V#+pXndslNa4p zyTLz%J&t5Ny|DhRL=$BUMSA~~o$S*Kt2&&K0wVN>;IqMtNN|aFwYTVK#gMu6-RBt! zY}I-rR&L}`rC**mvnbTOHr(76d*^c|Fe{&FyM%?c5f>skJ%ijE+757`pFEI0HKHH4 z@W@i2)=2r&MOW#qp@9$J5bw(h-G-|HPToBl4-u`ajmQsi(Nk4ba7%g49tK(C;15#& z-0f2wX=E@;p~jF|PLdxpJtSTNiLojFa=Cn6aKCxYdQb#7WE}A6WfZ1L++nl#b}#vL zo2G^&bs3s9a~Ut7aKB<%h=y0UhQ@bksr_~%Z=A#S|EBMF}Dq$bv8D53+Uu>+s1jAAO3_2YE7Zlof)+Ko8Z zt>iQ+>ZjN;isKBh7lNer?ILH!rQ;6P{}f8nhUj#y3_OQV5I42mR!817ePqF_(7d+v z&C-0zxgJ+eB;-cJlnj&vxkZb?KnpssA*<<81TwbalM+-^KmH60t$dalZ#O}4t!~~g zA@zrUJ38}%W(ai%eQHjWA0fM3GovWD$NonoXf_TV5Z<^msLr{pq(aQ3Y%_g%b1KTRE3=z4)0YFkC@;)D7UX{^Y2>*lCux5A*6McTkSOp;y;QgS zy9w5fqx^(&sLxv1dz%h!$02d|$;|w%bBY1FAq)te$=In>2WX@VvQw@kI4due_2jRNeOW*S@{%sx=E*?5%N+(yb z(SN&UG`+aQJ6M{Xt}ZNdD*Q>3@W)S$%|eD7pPBPkGH%!OhRqH`+F}cL&jH7v@HRs3 zUTvsGB#52&9{}l(hZ#%Lm@E(1%W0eK>fz2gl)cSpgl314o+f#3k_P<2p>i5Qd4x`5 zL~W^EQRBA9=`%ymnlYXmrL0f?Axg>q#yGt)}k)HXMql)!t7rB=P{KFrwekbvyznc83g;@3aL91P2H)E}Y|C9hi=5%wgY5 zc^i`FgCJoazhvO%T2yAb8q^w6`PA=>8bXnHWyvrf4dr%vrGHyp0kjGKWD&1*vI@LdxPsVy= z=Tm0`M?6ESp&(JcBMDmO=5U!zr}o~|0q(*b^WB}KD6TH={_W{ny3slxA?BJ}p5b7m z+EW##+kW4?pd>S&k$%jgS1+!AnSDe5e1Ty56CRL+0?N;J(ZeITUDQ1$u_m5d8`!fP zq|x_Hi=$1i?g=rIf0sn*2|sUKHD&I6q|~R=fLL&P|9+HWx+1kTTWn0WBU7T9O`$ll zr@zAr=8O=OgzaD(30hs$g<8()^u^StdQl^kS2?m3D^ttpf3 zf-Vu8+Rr9$s0wF&!?pEB6{g$4jpHnFXT>IA*ijpQ2%%EMSDsHUknN8GN_WV|k%1I9 z++4-ep&!wCG1beX*+R}W_CF=Vk0x&|Bi-*dF9fUhUP_ZK&dNy0y1M-?U-Z;Y7}S6o z^&4gvbD&wD9DDv63d@3i0G_|utaSVNm9T!DcPzF1S|$$*d3L>-NVmtz!1$Zpw2%1F zWV5o;V8L_nQ@`1Y5em}B)NY8I0JczP2+4pE{<~S9pLQFBXOO%a5{^5?G5WJH2zdGf^8g%Vx%>R;)pla0pD58U)x8|RFCs#$X{8JdLwyu$qo z4zs%7!rx{~?ebAh5vw*i327-7GadfIl2G$YWkglZ%t0o6l6F`&4l3qJZ7cNFuriTQ zEAH?!!Hu!L)c$XHbd!51@3j2mZX@C7#c$#F`PrwwPtl9`;Cbhq^Uw8ti6o{$wl-OH%ETO=LZ}lNW{Dv}T@bV3L zaNljvaa*CR$=$IbfWHE%RxD>_vh=jOB;-v>khU#$gWjxq&5gpS`vHezGeu;66M{k; zaG#!5Zl*>tRj3V@mDN!$Io|ao{+!$mLk^?!R>n#%5`VI`3GI_3PI;npNlZUBV1Vua zi3oer&yed1wm!>4X=9%T`vZ}Hr&d*3{VXi+siWo9N^$A}uY2q^*(XB(CAtBShA|4o5Vnz;q`~LKFfd}^@JLbr$@%Z8onN9Pv@r@re zI0^50SGC5=^MsUmH$GDczqT-E+p6WbVI(e%oP7%icpO-PzH%Gxg3G zT#DP#a2Lu82pqh}VO74T{W)Z7L&I_NqKfmIxb`j2pX*=3Y!3V7eI0{-)<;XDEiEv$ zjCwY8#7_#w`}&7-@6`EvG(>wozAyof0$=yKv7-dL&a!jSVK6L#Bh)~VaJ_X(nXw3( ztj9(v$Xbdfb3XS1$`_#ONP)Iqc-hL5k-ReO*y8 zEdf4Ueuv2<-ujj1Y=;8+>eFEgFnFR-v$zSvmOoxRM(l<;y(tAyI@^1!yQ5le)roO{ z4^yw1)`$M58X^GLmExgVm1~gOjt3F=@hmSdnv8}q)Ni~cjCyF=;}2#@FMFOXdo9w-Rz1= z7UW$`>Z8R4p^t0SPac2yLug+;vAvo>m(8 zo?~ar9Juuz^1%1WBV+!C0E|GJOm;bz)Y=Z$lc`VpC&$mQK5~?^c+3aRT`JB)J#v03 zn1W(7ty?A3@_?b^Ko<>tPl%m`YP|-gG0xLT@D0lpD@khM7nLzxM!C+C#nI~u^DOu; zqjZNZQZK;Z%1 zdmu|(EAgg%N@*-x$k-|;)8g{Q1NO#QL5tn<>s*fDQ5RW;;=CV}&(qy@U}MYI#&Hz; zUTw&zRd5(E><9qgC3&b^WzcJXV!mz+#n8-~nzRfzQ>9>_AHXdlCwks9nl#NSW_$N` zgOy!!B#3}#0XM#23P)V{Gqg14ZhG(0(kUQ@u;bg{NFCN7O@iYRLWd<96>b z0Be#>M4E<R()M*Pq@G{Lkq< z2Xc~@W@+bG=w}LzNto)3#Id>;3cGanOzS#2(@QA1c?0~3FTlv~UHyoEG^wRp)ZgL+ zGl0i9B+pk-7myD%7*-&diesq%$syuSm;3TB`ubJP>!FKpVGuU%!pC4%;UhDP7pzdm<8QYDdd<<3w{*3=v^t_CJdDc6nWCbgLz4!2(-5f#3+ViFaA8> z!Iw*)+e^oQmbK|IcSv<9eUAB}b$7#r=+if*nm#X7!rnG6#8eNAK8eovZ9cHy5&~BM zo*`T0Z`-tb%?blNdmE2hJ$)I}TU$Ov{1h~$5fd5^)~weR_^eTxoFZ7huGc-Xui!?d zJpCq|sXu`3o1bO}Q+xFXz5?Lm%7EHi;##Fv%yEJz<*mxpG8jjVtDOD{F)o+s|8a{i z&Gr|8L1Zd-lLrB>EXqzSb3Ti}Zwm<*-^mjJhXe~gQO%HZL@E!|u=e#%>op41ztHe( zB{2eztCPc=Um?6YR6PGH0@w#;f5WXOMQIndW*|VqTFI!j9Co~SOecyE=H1Y5-f(jH zaepxTWgvG6^4bl@h8?phPn3kly|7oOovm*pxDqcQ*LM(T(}Bl{Ti?Rg*T`XtDl32a zCbl1<>P4<`b@%9Lr0(p4q8vEs;?Oeq>J26FIK5Bp>k)*PO?JQ5yzKDIR? zPRtq?^S6~`2KS)IgR$Q#nRDQsTdXefa2uoq9|0iy>aura0@H>E?DSW&A&jN-F^&4qqt$Zr$Qhf+ztO_@IMJ#&It-+#>%%FJdyP`?ehn69fZ`+@C>KQun=Ep zmp+E;G2p}nUT+|!$N>!l$z8XnLyOxJ?P{ppx{EBUjk=S(e9&hEjAJ?h6BQF#3Ys-u zI4gSl{<0(zruYOg!EG&{3fO917lM?%`zK-n-Skl3lxM)uabl=vbboLhIkaO|j%2Bh z>^k!k<}ow@`ehuIsoLn?WM>TI5KQfgCMq{~{}Hjepr9~Z$B3BjJtOLQPR9Dbw|U@w zX7!L|XU@2f(gBwMcV?w-NDMnDaW9ln`rvng4M;lD0)nU7mUE`U#Rd3^_dIs?zJc7= zy$uTk?Lpmo?PQ>FMZCKt))e^e8UV)Yu0kZwu^-FAMV?_FGv&Y!1;1=$Aj*wu^qXBS zqU6BfiXS)lS>1`F9!CSV56!0TtaM#l_yA$P;_cV`%vT7dQ)ct$C(L%cmyZFld|4@A ziFBsR*9{8Wld|2>&UW!*!bf5Pw}mHj_C2|1$-&a2SR(5OOK$6}k0}F7KPsVQ__9@EN;AB(s1D zq>sH)3j4(~G^&?R7fYc;IccwNGoYWm?WK2xf?!X`|AjDKFuU*Z#i^?!*E19kfUei~ zqkkbbK;!pD4=T^DerSxty9LFmohGY^Mm;jf|2w7_udt+Tv!`%JI^a4m9=hc7R(Bf_ ze^m&)HihvXS)(X3+loaB6zG9%^K0Xb0sI}vbrBeTQmFrSeDFc+Z1i~dE}q|>cGZg%Ze{^w@DfMS6};rjs&52&;;P0Q+hJX5B4 zNgm?+ejQ}q__)fh_tR=jii(=iXQ6+eaq3w)8@bO+Lm*5GGJ+>7-2?Q76@(d@#R`P> zxM^)EOOV;zRF%Hv%L7vGqB<4w>UURlb_$%vLPbZ(X;HOXMc447DRt@aX-%=Pt+uF0 zAsM*LCm%hWFWNAGtFBm)b;e9?7rV_MGY`Z$QdnSh?%ldRRu;wUc(0h?5!$d8e5Ate zh0+Odd+z;?opv7zd+Q|znA}Aklh2RD9C&hJt0iiB`BfozQK)^X4yHK}`gAZj<>Ah~ zyM4)gGzHkB)UR7rv4cUX^hp#repS2N`P7iEG6VJROqAGx=>E{YCMjZRvf9^ruN2#v zoc!G*ucHJ1#z!6TjOnk*uJJ};nI5OS@)ZQf@;EQMzqy6C5ikMZp|&!EhxO~R_u60U zaX~H(G3?R(Zrf4W+U4x@59oT%)VAntck@s-kBAD{9`i@uVa0DlZ3jzREa@YE?o;>`<_)O~Yf2 zc-)Zk;}F1Tb%d`iCe4u9jrLXEVi z+JzIxQhI(8Rb<4|Q=$U>eHsQgIoYWv#$GN*DT7BA=W*y~@As>>3qY_E&XuK_&m?jq zfbH{+Df{(g(}Oh&MNyQDml>u-^S|JE+SKLCmIiWmSpBjU`&*otb;p9YDi6hHuZ0dq zBK=%J-<8dlP$ImN%grpqx_0J3zj&4z7@J8x>R!Fu#z*~Qk!`epYv8P>ZROCXpvw z1nSfLb? z@b0_~pz<66=Yq)tv#{1EcqLT=$>|LW+tup=INb&PXdU0(4*!l)GzgQDfGIB)(<;^Iau9fyB=?8+1&CsU z?S};OSeANzA54$dgl@NuYB^%ynJ5Jbul}~pw zHje+-`MT@+OBzHkx^0z}dYii{a44*1Eo^|6&gSk6VRn}n9E)M6E#3aYrrRt|8%KxV zb*P{<)B~4o`)ZXXis!5w=-d^CnL%)lH%6W~RU9D($s(Yz6G-CbZCQ@gE{_P>qMTfO zFu2{)cxI5Wfl(|@Aw1jKKeLY+CIe=hY|r5guYqUsb>bGGoP0Dp4W_!7?r9_9^Z!N< z+|td4JF3WO|E(kp{=sOwcRbX>3`y)ljoUE)vEvI^rtUn;LXQ!w6s1sW*77M3S@X0R8mnv7``8k|0cYjx4qF`?+_hzR zL0j4WREc2N3gnUx@V+(6Ch19Xfvj81i7^tqBkY;BVdAt6PkCc9ZL02s#^0F??BM*)%9 z5Gm}u=l&mY^zc7J>5{+cHRdCU;Tui$5V_M}4zhzH{zxgrfsNF> z;y+WnAaVLpt3FhdZc=y}cjI-hdz=-1uZ`%aLPR^ZC;rEZ#Z8ak@*kZ6x3lH1z+QmY zF{EV+UI}{+g`0^H7Pe^oDw3zXbh!<&)>HJxbWQ@c#7Vu1b_n4t|XV0wW5TPt`2CBio+0stMAU76Bn3puRT~ft!2GN?IL>Wj@ z6XT%Q^_yw*^nG!i>>^Ig$2?tMHfIAQd<$^GqoA>^fc z5q{ydaq85WyC`geQ}-3HM_ZLfQ!X#ks>KLe|6Id=ij6tc6S*IvB*QP5QWkVH@Oge^ z{C>Fm9GRnw{;)f^_o?ki=${zmW){TYT_rqiF`3`0EUT2e+Th*F9Y`*7`#Mc%s0NRF zEVswhSA`!VyeO>EJew9xFknrdJd{FUed+5)KRLr;gYR*f?oT=2>{jiLq3YQh-I-=Q zQXz5IYo$qNSLJ7OBcHjz&$lUyVAI7@8M?Y)uxrxKxDgqq2R;%WO4t(+g@j*R8t>LKOZ`o|?bcSl_8}CuOP-=<7H5DP`7UpWh)HY2#E60! zEDOr@X+@bw%yuh5mbUe``^?`x;Fk*Kpt}Y--}KUb>fJPRNF?*L;p+ zj~>P*ZSe+fz}@;T<0iD4vpc&Vg^kN%^0-#OGRvAt6V8u@Cm#MOVLClQ50uXj@QJLA zf<`SnEfF}=^N;mikYgt^Mh}9GuM-E8zQwW_)1>Edsa$FA20Pq7u$x7Chwe5z%=(HE z1@LuJnQX8ff$bkFWl#*S3Lspa&Pn8CxPl0W3L3L+Tt@YY`0dChgUn+Elc!)n69Bq5 zZB>mX$l5+|tv8V|+#iAkMy@r-J2x7iHOZ5?%ZfE&nhG{JNXK3=YqXgFn=Wt`qyW_@Mn7GJE?CmYHiSloHDvz`}YIRZy%8S zKuScD8R67tc>>;anjmvrz}VbVmxVcowv)GXp7GpmG>AmL!k7hcY#&nNF6GCrLb>%W z-|un}p7^%xVJhuEZVPJ6i!?gj^ZTTOVb*@Vz2x7BOqiT-6b1k<$#7Wdo6jX z&4^h3&%-#cebAiD|9q?9i)dyrO+X#eZS>{s8^Nu>Kdjvbbi8wDBz3N~ctwac znJqFL*fW>vvT6}VBj8_$ZW#IDwoSrAsoyn$oLafkc{xh>G5Cju_GNiIY=x6Quxw`3 zg~3k%-1SN93aEMxH_94sm;-iBD9wTyqG3{M>Re&3y4s_c0G{oC;G{q}`gth^axY56|xjULryxClx24>KKW%2b<_nikWF!VKa* z7_z$e+Eq}z-<0#K?Z#)48CD?lnwv%zb=oGD8Q4TealtE}6vv1}@NPbh1pqb98z4 zSomzaVHcmT`{u+4WjJ?Ckpt$Qm!_&3+_P`kuTfS)iHP(!2VWlSai)3TRA2a)^_BU#WxJ)3Kts}3aGlx?F-Sc zRI2@AKfh_e)yMD<1AFEzdpZC3d4JD$%9$JHGhS4Z{^y#;LO005^ggsxiV0wk|EvM$ zKF>rNz(lI|7G`Xve=5cdJ1wtvlJ$e_hEb3V1%HU!cULbpmuiHh#+>Qog~tP8FN3we z`WE!i4KdIcoMrp$BFqF1ITgf+bwA$e6<%I(_Hl3Nd(O_Q0{}ys(1D+qs=OliirwYE z{-GRxPn8(jVmd<)G9}-;uJ1mtFI28mN-%m}Zs&hg_8hiG3y`N_MAJD2}Yw`WZXPyaI_1urMUTB(Urh7U4rr RyA1@cs_UwKx?&&k{{gmiGQ0o) diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png index ff2f5be923b69b7db82e157949b446613a6ed547..7aabadeadbcaa7263c4b5a9aeed08161c646e36d 100644 GIT binary patch literal 9515 zcmV+`CDhu9P)StO&>uS)ve<0AYj> z5AR{$W90N^4L=L-RlQUJ&DC0@ZjPh;=*jPLSYvv5M~MFBAl0-BNIsH15C~g000{K(ZT*WKal6< z?_01!^k@7iDG<<3=fuAC~28EsPoqkpK{9G%|Vj z005J}`Hw&=0RYXHq~ibpyyzHQsFW8>#s~laM4*8xut5h5!4#~(4xGUqyucR%VFpA% z3?#rj5JCpzfE)^;7?wd9RKPme1hudO8lVxH;SjXJF*pt9;1XPc>u?taU>Kgl7`%oF z1VP9M6Ja4bh!J9r*dopd7nzO(B4J20l7OTj>4+3jBE`sZqynizYLQ(?Bl0bB6giDt zK>Co|$RIL`{EECsF_eL_Q3KQhbwIhO9~z3rpmWi5G!I>XmZEFX8nhlgfVQHi(M#xc zbO3#dj$?q)F%D*o*1Pf{>6$SWH+$s3q(pv=X`qR|$iJF~TPzlc-O$C3+J1#CT#lv5;6stS0Uu9wDA3 zUMCI{Uz12A4#|?_P6{CkNG+sOq(0IRX`DyT~9-sA|ffUF>wk++Z! zkWZ5P$;0Hg6gtI-;!FvmBvPc55=u2?Kjj3apE5$3psG>Lsh-pbs)#zDT1jo7c2F-< zhp7`Zb($s3n-)XMq%EV>(3)vyY4>O^>2$gY-Gd%Qm(Z8eYv>2*=jns=cMJ`N4THx> zVkjAF8G9M07`GWOnM|ey)0dgZR4~^v8<}UA514ONSSt1^d=-((5|uiYR+WC0=c-gy zb5%dpd8!Lkt5pxHURHgkMpd&=fR^vEcAI*_=wwAG z2sV%zY%w@v@XU~7=xdm1xY6*0;iwVIXu6TaXrs|dqbIl~?uTdNHFy_3W~^@g_pF#!K2~{F^;XxcN!DEJEbDF7S8PxlSDOr*I-AS3sI8l= z#CDr)-xT5$k15hA^;2%zG3@;83hbKf2JJcaVfH2VZT8O{%p4LO);n}Nd~$Sk%yw*W zyz8XlG{dRHsl(}4XB%gsbDi@w7p6;)%MzD%mlsoQr;4X;pL)xc% z+^yMd)ZNTI#eJ*$O)i@o$z8)e??LqN_gLa_%;TM>o2SC_kmoO6c3xRt`@J4dvz#WL z)-Y|z+r(Soy~}%GIzByR`p)SCKE^%*pL(B%zNWq+-#xw~e%5}Oeh2)X`#bu}{g3#+ z;d$~F@lFL`0l@*~0lk45fwKc^10MvL1f>Tx1&sx}1}_Xg6+#RN4Ot&@lW)Km@*DYM zGu&q^n$Z=?2%QyL8~QNJCQKgI5srq>2;UHXZ>IT7>CCnWh~P(Th`1kV8JQRPeH1Aw zGO8}>QM6NZadh`A)~w`N`)9q5@sFvDxjWlxwsLl7tZHmhY-8-3xPZ8-xPf?w_(k!T z5_A(J3GIpG#Ms0=iQ{tu=WLoYoaCBRmULsT<=mpV7v|~C%bs^USv6UZd^m-e5|^?+ z<%1wXP%juy<)>~<9TW0|n}ttBzM_qyQL(qUN<5P0omQ3hINdvaL;7fjPeygdGYL;p zD|wL_lDQ-EO;$wK-mK5raoH_7l$?~Dqf!lNmb5F^Ft;eTPi8AClMUo~=55LwlZVRp z zxOiFd;3B_8yA~shQx|tGF!j;$toK>JuS&gYLDkTP@C~gS@r~shUu{a>bfJ1`^^VQ7&C1OKHDNXFTgC{M|V%fo{xK_dk6MK@9S!GZ*1JJzrV5xZBjOk9!NTH<(q(S+MDf~ceQX@ zDh|Ry<-sT4rhI$jQ0Sq~!`#Eo-%($2E^vo}is5J@NVEf|KK?WT&2;PCq@=ncR8zO#GQ^T~S@VXG71PKNocF zOt)Y6$@AXlk6rM*aP%VgV%sIRORYVwJx6|U{ozQjTW{-S_si{9Jg#)~P3t?+@6&(! zYQWWV*Z9{iU7vZq@5byKw{9lg9JnRA_4s!7?H6|n?o8ZWdXIRo{Jz@#>IeD{>VLHU zv1Pz*;P_y`V9&!@5AO~Mho1hF|I>%z(nrik)gwkDjgOrl9~%uCz4Bzvli{bbrxVZ0 zepdf^>vOB;-~HnIOV3#R*zgPai_gEVd8zYq@2jb=I>#f&AH2?aJ@KaetJNRCodHT?tfG)%yR= z1(Zoa6h$C$O7SULrj_YGHBoWs)qA~^CN+oBe}lcIWrGd=vwE#nS^3OHhibiSTA33V zuB@lxSR$IJs8CFTAfpV*J^%gN2MiU?*@wH&y%)N_wa(%Kci8v)erNCR`}ViL&s$Yh zvI6OOrNIZYiU+3UlticJmG#Ifs)#H;ThlqOxH5$OyM0#CS^rwQ>c<|pWtTU*yx3){ zd%4o!accmCY;W*89@nz#JiDsBY)WNhi2qskxHK%-uPE5RO@3rZKvwUtb|<65gVF{> z1|R4h*1p(^fqBb%qtj(oZNJ_7+qk5Ixf7F8b4M1IRrh6TY)wjZ1R%6mgWvJkr|xke zyAde!bOryV{^td#{MGi3fo+e(#&q2pJD}^PTZeSp+^L;!wTyu|On{`+oS5ZXjy}MY zKb3uv;QA5suk3;2(Bx<J7SeEM*Dhq#{KNNZ%|ao##iI7Sr|7c;+N*UqiF(U6qJX| z{V4gh!~;3^5?`m;9j|zl?tE~WD=8U8lP3HtX~Ot{;VYKU8un!O(7+-y?_!DoD}PL% z@Zic_A6HbL54&U_9=HnH&1Yjbbd^>E(e59i$QytkLl(8V((KzY@i@{ zPh3!nZPicd3z_SEWx|5kX@R~z=k#8sO8};PAEx}TnDTGF@F5=Mw*V-F8%#GOHnkiyNdT<*+O+RMi-pQb5YKdZY~|b$&o%ax zMhWoY4@W1|8GIhJWMH{gRbsk)W<=l4$+JiIxy(Dbi~!8f@A$~-Js%US{kou@2Q3(I z6IHT7r?CUV2Xqe&ENuAi%LsrVPet{)unRBtpcR0*h*jsppxcB6V`nw|&qV}4csKDt z&J680kMdg$>Tcx31KBf}j+ZtJ8(&0#1)uNxKjMKNkMdh56dQER2r#++FBb@ql$tXz zCG*S#*9^=9=Rl>Dj58ClgIm9gc!2=Rw;cW7i+A-}5p3*BwF@K)^dk!JXW!b3$j_I^ zt1hZtYbUC#Vn1t%$}8D*mZ+?P$Zpqv-xdc1@>B)e_ly8@@fS{jx@3;2?4Q))r+;tu zmAZB!3S(E7jzl5BM8WOM8??xjDk&o>EGEh?BFZ~Wlv_Y_?z}bQb|RRrS-qN|5x8oq6bqI(ea>q!(E;vAP1#ER&mT{m3Krp_}&hfio% zm6QxECqbp8gSitf5FjZvca)1qB#w@3q8j`cqCVZVwcJ$z;XpiGAj7dtqMv`&Na6NS zF6i7F*}H}1)zK~jx6`h;+XI6^MwL2s09vhn*>!-QdP3EU)Sd-FqW-+pRbG z+XWB}zgoNF-A(bA0^mVHYC zhycR&yn<*CbGP>%a!Z#Ix@Sv3Sx;9FrhbDK(ieHDuKV>cvo93t8td+*}2HC~Wx%s1h%JUU{ubd&`M_EK}+G5~jcMi_dqN0th{V5j&zY z^SieZ)##?`IR((YcimY%*CHs8=&v^sg#sMzJA{ z3R38KX4~bTQ|W6qi?1$FX=iye&qKgSjAygKcR#p1ki>M~0h3^RmyQDA+P{t_^7k|S z(l&}pcXw3i;V>Hw3b5Xg?d+q_JT_m>>!MKVS(V<-Q)%^Sm1MqML?3-kSaMO%l;5r!NOS&L;pj_(q$W_Qx_SWmPYQ zx=J$ctivy2_=Frf-E4DFA}sZXy?JFzA}e%z`y8C!Ui8)x`pAez!kE& zdlf%V&L*ww?vjzDZ5)BgHCwpOM5dJJRVX+5(G;?nF?WwabXR*>0$ zHW1mZsp3`#oAm_1mafpQo=Piw+IZNtwE|1ps$MpVPq!NzhL9O#x96axW3rY2Nah$C zBlOhg!r|k$Ugg(g3bP3gomFU2j=+;4yR?&9in>LxmH^1)@iG1g`1x@4{w%jKdlNAOog{aiY=qpg+gD z-xToOR~9fA(P$}vEFsfE`Q?JGApr9B4eowy=`QK+x+vfI^XDl&J)QRN-%p1Q9irpM zk5g7w7Uk#XQ&m+J`S|!yL_`E#b=6gL+ikbeh!G>$SCUWGCEXQ@IiQm6N`TLWOuyeD z{qyA$04H_?*8bU{ic`0A%gf6tIXRhr`spYBbNBAuR92?H@dASU_~VcC)?05;TwEM| z_St6?5+XN&3Nn}#s?vJ}22X@c|GQ862_*Rhz~Kmk6FbP{c{;+{yT7=&n0D^m$rTPI z?%A`4&Yf%iCQCv>0!^Jdl{RnQEPW<;CPJYVr|tTgMUW|EyFX3pXUiu*KjSQOq;bj0 zia?#cXb2_44w$t zx-|iU+G*~e9+>5i96nj7uCAt`Lx)mDg>z2eU|En&0APL?BS3+HM*!JE#u9S|5=NlDc&1!VSCj?c0-=mlxI4)KEb|0p;fA zQg(JW<>lp3X=y112M5y~cicfkh76Ja1?n)J$wrp|0A%cz1mKl9LUo^l44>OVsET>jW_6-FM&Z#E~_Pp@EvLbnO5GS(||z0wC=R{;3XdL|gont{j{?C3fWM zl~-P&yY9M+#}cp~01p73KuJjnUozksz(ats36G&$w{Fz0Uq5bW$_8WvS*2C!JPERf z%q66Y$squWFdF#((dN&7It)zl2;D-ddN_ReFolPQbC*vP2nP=yJecmh^G>?|{`
  • PLUITYXslfnXK*%RVq)miPd}wmqekgI5AAc!D8K$S`}XbQ*Ro~H zIMHMoltQwC%-x0nD8Fg|ROWCtu*LiF#~(Z8bLPyMLtD0Nk@9{*vJ#NF2;>kzpk5!! zvRDo5@nZ*Y-MV%B!qo08AP|KeNJI=Bg(fS5_1#O(i9R_5@H0MP9&FJGL6qn~kPTn?{o+P2%x^PMtdOjUu1A zS_W_pVK8Q9W^#8CZenO?DBW_)E#&7X$JKGBvn+=IwZ@4TCC%8o`2F|aY3|&)+`>LD zY4gJfn95hJTE!JSZ{9qf6X?^RkOjzqO(x_ZScRe*0sme=<|2?ofJ!~5RRikqnFU-p ztn1DOmKj74aUn7Efd?MozP{{yz@|{93K)R`G8ciQ8NgV(D8guVa+^MVI#0+Hjp$hc z@nY`kJ^uLPoD^1~P^8+FfXqc8hX81^VgOX&Gz&!M;9Fxo#*}OXUteDy z(mi@F~Zena$k4 ze}CG$cQ0R$zxwK{%l?lT{jg!f_^uzqvY&kN34Qd@N6q^%0U!tQop;`$6)RTIf&~lc zvBw_c#FGgjS(O{hTm*6mfRgB{etEPb4iFZW_?KUP$*q3`dd{3V!xKQ@b|D@Q!wmT1 zi!b;TErQOSJM$3kQ%^lb$BrE{JtkQH*hz%J_}+W((df~mO}|G|Fq9Q!U1pRtAO<-E zK>Bq_xz@X<383&YYVSI-BZydgQ}K4p4%pHaO$Eo@ixWSSCr_r=UVDvRe)(m7BFHR2 zo-t#_aBl_ggB?Rh02x76y7m%eEvayXyf{GN8C?Qke;b9DM_G^+v~=lGzVlZrXc&P+ zSWeZ`Fy$*>Ym#*7aUU?-~Anb=Ho_KmUf^z;8QgsH%{*$?7_i4bd-iOaFku3p zA+Vv;oUvgxLG*Iw%$cTN|Gh|YNr?rf4@kfIqNBL_#lkoS+f zbnV);+z>R24jnr1soLmlAN+iL1_Dv@=g&9&S+GOkDk5SycI;T;*FiSPMz$SfoNIKF zR2=dMfR37Isup+(|r!@4ruvKKdw~JuB{iV=v>|Z@=Z=K?IPEAu`M@c}9>+fb`$BCW<;! zES3Q@TR^>i5g-JMEni0>dsx#QArWQ+cnCM%cq0!s;e@a#5S0`GWRhHA;Qqn?hm0jc zE&+;5wa%G(Cxn?W(P;zC7DNCy?Yr;3<5Mw?f13q-bi@dJ%=9H_0>}hLaS6l_uty<+ zu3ftdJr6Q5+$(`>i;e2Zn1lR$0QAu{I3m898L`hts1zw!BLGo5oa{lIAB7r3fwlYX zx8LR@k_EVr*b~640xKU`KurNbA(3S#yGCn0V@QC*^7A0%6Cmw`R@+V|XARrki*rElWb0sy7$INS1#k&*-VcTua`CWn zgjzmG2X_YWnb=Qw_~D27k^q7tE-`T6Ku%J`9E@sOznfaM2B}AK#3}OdxXOb19K( zs$7;9!8!uu7iulk4Qd9SW^2KW&`k@n-;$P7p(<~ z!O0<%N?pV(;TQfS6~oa?N~ojQ`C3he7Q$Krl$I0iN!41Y8vq0t;HT0*I<{^Sd{d}( z5)(?0h3rb@Wd1Y->ko$PJ)|uI21N~!1aZ%CJ9Y7~@g6&^5!*_&4q`%W+jl+Gc{FmMNlbP~MMfC|;NzD4u!36?X4-_|y=xi7p0MJ?u z-L=qQX-W&X39#l1H;x2OW=SmsX#h?D@X|T$W6}F2o-G9(j59;A9H6@v8Z5Q6*0BIw zJyWe?fioqR_6KSNb`Su&7|v-Rjh?vQ{lM&jIH8&X5FEN|?PTlc%3joBTFaa|r}Ef_ z=IRNK8E5?<8|U>625Lb7e4^Z=EqW*})4u56Vud@1Z!XmuETPAaySJDz-98?uzcGrP z+BqCJS5E-v0$HtSf`m@u0&V30bk{AAUG31u!(G1MUNe{SwW`_S&b)}3nX)3t^W|Ynkt!7KJI)d zKg(sOpDVqiIt5f@o_0>Nh0Bng&&=fSH4>Ppd4t&%J$BG$1)Vm~Y(ZuZ0udajQ0bjh zS|*QSGDl;mU-Mma=W{^!m;vM_nVH3@LZUAc7zsubg_t`x2En7v3Oa3|*#deI+!kV8 zMRMfrBXxUqfl50sBycw4vtaGJX3f78rQTt|enl>u0qTK*hif(wjUTRU9+`!rb=tu7 zP^O)(XJi-`q!nI9?cL@cNX0=-oYli|Eu7fdQQpv{YbMFy=fl-=uC?DNnC{Pb2m7~i zUHOfM;OpU5tv?=8%bQsR3kt&N8tsIQ$_p=}_HHy=VS4&%MHo?s52e`Zt8t-zQAw?4 zXy&jr9q03LL>s4cFZSUbm{}0sMTF0JK^{Xu_ui2q0dh|oI0~db{hmuSZn$9Ed3`{E zsJnY{?OoB}r=+C>8#{>YJ14v=4CvmwcUZds5Lm`s~$s88%=Q{%E z-g`h~@BvcXZ3<|BvI@;;LJRfl2Wp#1ZaP%1cqDM{OmVyE{&J{x=$Qr%IDmqqXwDux?sg~}$F*=tZt83`pmY4>1c)0Lv2jgu#yppf$Sfdm z^wGtI+C(T%gEVyBzRseV0j?a*=V#;)rDwWBAg6g?VA)A)t%mMeA;B6!%+3(F!x5mujDz(YA=_NJ#Ti@$FE3lktwXwP z#$!%^PVIcF*&o(?y({y6*A7hru)BtydJX&P+3I@ipv_94zcxc4AE7?jggYCtc^tq* z1x^%Ugz@QyuA9SP#J+V%)aTGSe!bve&mGfe+1I->@8gk^mN*OO!CrSaOYFMcVxcH1 z)AhgWf4x9}*qHDGgQ7ZYO35gi=$3H-4EnXSEJi(vq$&YwCza#%d37m{;c(*^T29Mzp>Y1=(Mr_HM!6F;hY6boqQ!|8J52-d;8}VL|M)xL1<`wjVuZT znHGV*KIhmQ{DYBTHJb^hI^!Iv2M(f6MY!{!eCSZ`>4vE`><@MvV>ZFl z#0^6a5!@CE*|Fwh+Sj}D>mihDg*RF`cf`U`{la!UxN_IW71ig$JS1=<)Ttt%t#{ti z8Q0C6F|v1~247<^m28JM9`%>7{&PP{el77p&b`byv}qjh5W#ie2D%*qJox#Ixq5mq zoo$H^NLVm-c0x+_vIU>-Ta=P{W+Eek;vs^w!EbvNv3-PhFOBetqS@)T_&|0|PD;&* zS-$1y1K;lbZECGu4fd=I7NSnJ$lbVgNYona>NVWhX$~CDx5fb2HTQH`)qF;RaY+Yr zCnlxljw~#%?n@qn(Q#;IoV{bawnvc0g-jkKbJXwWI|^wD_ZZOZ(S6q8!td#MrNIZY ziU+3UlticJmG#Ujs)#5)Thk@4xDvJG+hrD1_%mLhmr5Jb3REDE3!!I)T4x9v*(GX& z$0*DJ7p;cc6jKnB+9u=|$70M`jBG@KCCB+9G#jyn{0Sg3{38s)TCVzveArd0kB7i@j{F)vl zff&K4uoo~R_&@|3Dp4Xp^--UI_aJO9uBQMARCpjIKxO5_)K3_A-b7{lz^`ZWVY86 z0H#^R;!mJV+%B~AU#pjt&s_%TnH-shV zrwUtu6QF$b8?}G|N$e}NZcfyST`ijtr8gmJ(#XC+3!xMi6Xh2W<^E1|`Yh3@JfbUC zoq28-!IO3Z9zjy@9|Yo5`A~3|_Cy^snesC#Ms_rSbec347d{)nOmUi#;8+gPq5mT) zD31O-p(bnCbbSbg)CwbBU%xFq9 zasW~Drm=pK=zyi6|Mh|ltAF&|vH(Lc$#c_x-|oz)>Z`|h#`Mx+r9YGhD9_UF`a*$_3nI}{~lCT%St`o7qtHHA!nB{gM5 zD*}Wb$cUZUf@tLiqRUqz{UohO^2Axav{a%$4JArXi|qZ(mAQ#2dSY{f{*rD`tGar= z6NodIJ<{MbgI;8|UG5c={+G?-3-V0bR1)EN2pEYI*le(5UCaYXnEPWt10Y=cry)cs z4Q#))u3^%B%?x^?m5+Kibe_m9k`0>DlGtU?&I=~JecGf2XHB|n+PrsD#;Wn71ql#h zjv-=8fHoOKV}~(KCfj;j665aV41=a;`lwyK*vw!(Qw;h?XM<+8HEDK^NgrXGz>YDvMuO9O~MmMwjY*D@01I{Tnu5E}wu+8=9A`OVmq&h22(gywp@1Kqfe5psE!L0{#Y z^w=?z@>Dkslaqw~v*1MQn1#Xbf>tWy!z*t<~jks;_Vvb@gA*H?` z!IvvsbrIbqz^DPru3kN6;V)oD)_9Lj`7(g8GZ=AuG+>^}VLz3scnXjWWVCd>00my2_H4#If?U`tnNSI?w*oqas)T3dl7ZGIOY zO*rJ28-|b>WVdCPqtE0l0g%kmucy*W|ECRn{MxJhAjUJBVD|-sW}Q@cF=V&zs7O(F z2+k4!nLNqzTfonUt9Pvc-*sb&No$HEFNEwML+lEuU@4?hYr#9?b~Vh?%j0w@L@V};soX9=F-KB7b!V8nKCmo>H6!hr*Y%P(ZGQN z*;mp});S#w>iL^VmMa173z@F@N&Efv696Z66xRL+GYnU^bW2J~Xye9>^urH7@SmGE zZ>Hj6>x~x>#n?Lde$B1W0Qn+&?QY%O5#>x^U^zCF<9&ADut%&IueW z3%UsaOl`#okSFm7AX~^-W6pqH0{mNhsquGXs-ZQ3GbJU39)9>?dh^XUwSA@)I(6#g z$mc>Pkj-W*9z(W}vBt9ndI```?)pt^uJw)_vu4er4I4J_bzX+Lb?Z{+&Yig;+qP{> zEnBwahF#;vjj2wZI&}H+Wy;ITqf@6&QBF<{oj!eN zdMjTJyadR|k^lf??KuLplm|!#xt!>cpPx^6-gzgjTUT=&ecH5X^wLW&(e&xlU41Sq z2pLI|Kon%H3Vj4Xtl9!t|8Y>$O}zg4>tU4-AclY?qeF)dbl-jVx%gz^(JxiV%F+&y z$l4C{5CCak@J}s(BiibxboJoO8MPxvS42&2UR&$55^GiqRpN9YzxwZh)L zd#O#EHr(Y?1;W97`}U=K?zx8^dE^mpSLgy{Wk~=dQ20_qKu8Y(Qsvr3aR#^1vu98G z{PWLg@ZiCguS4rKJIW8fXWO=I{CfA@cRA5?8I(%0g3LWb0F+;q0F^o12DW%V`Q#H< z?(@(?57FASYqflylB^VDt^z#-P^j03vMf#md;Hh|T)K2Azc97C1q7n71Br-Xv=FkA ztnYR7)JW7r0GxG~pov2@9U=5pt5(tS<;&^YZ@=ZPUo3!~$CD>dY9TTKF`FuW_IB_D~cH3<{KG3{*bG}iO9H?ag*ANC{c6K&*7vUymWMt6Tv16%013j*e zo6fQx0+h)UFA5{ryEuOQI6eC4quj#2s%i5>22ADi=g;Q~o-$<$&k0NpDP#dMV3P?s z2u|Vm%L@Lzg3MK*hXAEkPOAXw@Yw}iIIQb#1Ir8|h`5j#`q*QSabI6|K43T$n+ist zg3MK*X$FvM7eyHDPHvMXP2vfesu4XWfSiEmpMRca&z{X)y{Dgknv=pw zgk%yYa8kvlRgk#~^bp|u1?fu;N0`mrqeluSG8jJ|*W{(RRDVcE|< z`;0#R_~XcKrU2w1zVpsI^y#Oc(zDM#OHV!Z6epfeD9NfsE^`&=AplCEo7Uyg_D4Zj zSmIxO^%b}N5$HL0?i^15f!l?6JPb2n;lhP{idI337A<%P_qpeuqk{(z+I}Wj|JX@{ z!T7-kAJC8?Lu`LWI7np$Sr^Na2GpR307$82482IoL6b29ObCWoa)#)|v`O=!*m7 zpR*(Y_P0@Zd9VXnL38KMG1~X=y1xr#Exv zOzx)H!5w$p!J~FH0ek!pKKLMw88e2@5ZF+PKrAbR=00}t4K{~DFzk{Sz4>mvY~ zDk3^%5u-*`43u0)Aw@etMh=d8A@3ifbn)WF+z_;jrcImjsakfn4}L!Gfk4#MsZ(v= z3w8)xMMMloj2NN(KFDUH%(jD!PsvV_szV&krrn4n?2*ZnC-aRf)ja~pMry*I*4w>Q?`9BM zrdbdG_$<%l_4ZYOLmW7bgEc!^z*ZPPe!T7XfiTOKEu#-V{E(h}@=3aILEZnxUdA`y ze8azk3LqOPj@euCWY9~1L&rrEMT;pG%K(}!px(X;5Q4>)Z#0oTtm)B^2(tk^gj;U8 zg$J8(LRb}uN~!=d*?3;!{=xr;j5R_p0Sbyl=S-^;!c3Uxw1H*|DuA1|WXTdf7327~ zUBE|2j3C)gUxF||CNPRiAclZF3Kg_&-CF5&kco7!1hOrV)swLY{rLdsqboTgzJM9A zFJ_w5R_uFs3%}JySa38TJfLR4rKC*zq0YM>^WhdvdXgwn( zz+U}%5c&zQ?}(^vXOXjp?e5tpO?t1Bx;KEWSY!Yp){oP`R!Jc@-EqC-{;8f+8-_t5+{hQp6l& zI9SS-Llv(MGA-5Lq1>62Fm%yIJsS&S5RS~$Y?D@I*^dlj2XN4!LHzOpva+&xd?6B` z&yaNcAI2YK>HwS}0E`v5E1j&veya*h`jV}EcU_~k0?}VcsmT;%=}=pG=aND<{U)ke zNUC7|jg0{G*m0_EfLC$mvS==)Qcac1(jhoUfZTl1LS0fb@GM&k{(6{=geIM6m zQvZ5Hv9lOtnCskG2WQj5fBaRnK#`mrLaEeQ%o3h?jZ_RrGbyExVpq$A3>}2C1Sl#Y z+Oku$P?rD%_>TrA{dcq4O@c-FqLY|Xf-GcLq$l$y9GpKGvURsu1|&rdkOXo6VL!D@ z_VFG&wGkVNL3CRjmZlyqxNnVTVXoa z7eyFRhYzLLg4MWCzo@WG7@8;9nvV1NIHHYHx|MzSC}tLfcM;)pG03BWBr*OyWKkpa z>G&z4kpmRl&RYWtMBUxWwRctLJWX=J#tvfpE`@jPKr8{0;tsAO?;O!TmlOS=2hoi^ zMT?Yp1orc>rHfrX7dCe6f-eDvmqvdmPyk`eE;e+JiZpX|G}S-SZj1lXgHjz@S1GZ8TEG*#jIv!BI4~pB?govTz6P%mTHM0SO40-1rM!4J(D% z#4M0deyxQmR>M$KB0!~Cz;1Fw0^UWyxC>qTgQyl{=d%EofQ0UA5zK09e-PCO0EYNX zg?e=f#18_>uW3TBahnb6gjrkM!UXtaUUlscBJ4hEus1O$LA->C6Q~9&reErK85=ZRH7B1YhO1XNV6e2KcGsWzcTVMTsif(V|44dnw$xmNff z?63JNc?Ss+cm^S=fa0yz{Hm~(Z08FEiprM+ZX6ONh!9Jd<-2>TqdpY2vn_+O0d(&- z5=4j{#IVPIktjZhh|_IrBtpe=CEx@?WE-vGgNQocI+O@_KDdmPcN7zhhzh}xWd!!| zDR3Z7lSs8C+#8j)4-8HSfRiGG1c~UPH7cZJR8q98&rziKe>uKV|E!(&lK=n!07*qo IM6N<$f?a^*9smFU diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png index 809a51cd3a104a84910a116d6d067c6ff8d976bd..fdd6596892f6d6a426ef3fd3769c81688bebb934 100644 GIT binary patch delta 3232 zcmV;R3}5q?1fv;{BYz4>X+uL$b5ch_AW20-HZeIiHZ3wPF#rHaiJen-Sd;e_KHv9c z4^~3h@UfR{fdC>StO&>uS)ve<0AYj>5y@A0LT~suv4>S3ILP<0Bm`DLLvaF4FK%)Nj?Pt*r}7;7Xa9z9H|HZjR63e zC`Tj$K)V27Reym}ECRs70HCZuA}$2Lt^t5qwlYTofV~9(c8*w(4?ti5fSE!p%m5%b z0suoE6U_r4Oaq`W(!b!TUvP!ENC5!A%azTSOVTqGxRuZvck=My;vwR~Y_URN7by^C z3FIQ2mzyIKNaq7g&I|wm8u`(|{y0C7=jP<$=4R(??|<~gqW){}Zz4V+@!$Tui~3=fuAC~28EsPoqkpK{9G%|Vj005J}`Hw&=0RYXHq~ibpyyzHQsFW8> z#s~laM4*8xut5h5!4#~(4xGUqyucR%VFpA%41XlRJP<+#?5=ix(HVZ zgM=}{CnA%mPqZa^68XeSVKGG0roJ=O`kZsA{w~!BzPm=q|!{oOVI>m_MObMbSQlyj; zN;PFaO^>2$gY-Gd%Qm(Z8eYv>2*=jns=cMJ`N4THx>VkjAF8G9M07`GWOnM|ey)0dgZ zR4~^v8<}UA514ONSSt1^d=-((5|uiYR+WC0=c-gyb5%dpd8!Lkt5pxHURHgkMpd&= zyOjAR1s%ETak!GFdam@h^#)@rS0t$wXH+Irf)+G6c;?H29p+V6F6oj{!|o%K3xI`?%6x_>shQM!e? z+jY>uuIoY)~6ln+%&eo6EMSt(&dHcAIVA6yg+*DbgwRQ*PQZ z?ELHs?3(Nb?K$>g_9gah_Rk&691!jf{!+)v7sl(}4XB%gs zbDi@w7p6;)%MzD%mlsoQr;4X;pL)xc%+^yMd)ZNTI#eJ*$O)i@o z$z8)e??LqN_gLa_%;TM>o2SC_kmoO6c3xRt`@J4dvz#WL)-Y|z+r(Soy~}%GIzByR z`p)SCKE^%*pL(B%zJI2^BHul}BYxI?nSKZSp8Grc%l(h|zu|fE7V%C6U;)7a8@mESk|3$_SkmS{wQ> z%qC18))9_|&j{ZTes8AvOzF(F2#DZEY>2oYX&IRp`F#{ADt|JnF6vRVQ*?23_bk?| zG6C?@kiR8rC#65}Q za{}jVnlqf_npBo_W3J`gqPZ95>CVfZcRX1&S&)1jenw1vA4KNJd);}R+aWR-8+3l`e=qvMs>zB2~Schd65~Cxg+yURz%j` ztk2nT*)2JgoRplSQVnUAv@6#zwiHuJf);$ekbkgHxUjR>xOiFd;3B_8yA~sh zQx|tGF!j;$toK>J zuS&gYL4VcIhVTuo8}W_h8((co-gKdQYW0rIw9U%R12tha?OV*YtlRRTHly}>oqt`+ zR{gE3x4zjX+Sb3_cYE^=gB=w+-tUy`ytONMS8KgRef4hA?t0jufM;t32jm~jUGrkaDU~SfN$EH?V5MBa9S!3!a?Q1C*P)g zd*e{(q0YnH!_D8Bf4B7r>qvPk(mKC&tSzH$pgp0z@92!9ogH2sN4~fJe(y2kV|B+h zk5`_cohUu=`Q(C=R&z?UQbnZ;IU-!xL-sg{9 z@PE8;^dk3S+apRi!(|`JEz}0it_}4C7 zpLxCS#_SunZYJFvxFx#v_;&W~7k3KoOx#_1k9e>AzS{lj2l@}{f3*IwWx#FV_+Y?b z&%;>{?+yuvp8k~o(}&^GN6bgnBSs^QkAIyX9~%uCz4Bzvli{bbrxVZ0epdf^>vOB; z-~HnIOV3#R*zgPai_gEVd8zYq@2jb=I>#f&AH2?aJ@KaetCen<+t6PVA;?njPP=9AAqQJn9%Aa?H+4<;SW>mQgY##yMOajA$=K1$M zaDEBg{OWvVBP^qDTPeZwehx!38rDVu_baoLvib5 zj#w;)a=DCDDuqNM0k79W_T16xhk%Ya%A`nv1w3mi# za5|mHWHN}y;|K=z^PGunff+d7JDhkHRFRGf73$wv5C@ zWmraP24NX326w3v delta 510 zcmVBv=qgJa0gf~@8AXcf`Z?;lovst>`F3o0>N~IDI zyYz4>p4>%68y;IIXGynhq07*qoM6N<$f<~?R AIRF3v diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png index ae9bbd6d54c3bbe354423e001348e221dd62f967..34983cb65272c07192b1d0c28a9bcf93cb2a5691 100644 GIT binary patch literal 17055 zcmW(+Wmr{B7d`jVAl+RO3J56O-Q9>tmvlE=QjnGq=?r z=VIsO;$r#ufgJ#3!qe5=b>eRbgjR0MFtx@>`5~2%zEt1L738!*Emza9L~uw8dvk5ue8=YGvM1-+ z`qZ9Ai27{hxg`<|4`3;cp3EC;ZOy`b}QRPgwV^UHT%^Fzw6iB=LN4*z%fPScNr`<=*iK@&aGT6 zdS?(`jNR^LhxWNI#Q!P!-S|33eV&bKaT3&j6W4L}{6C&iCOx6V zyQ2f8p~^6&I;7e`8<^iQ2poZ-GvNk^_+79>lAy%_SQZ=~J#PRYzWpvngb4%;|H|6{ zfR^$f@t2kc*4jc#(4T&;3iCRKY;6?k9agC_?!my2_=V(Td z34ce!(-_Hc{DkCD?SH_%wh&F+YvtyV?{xkX# z`CZa5T!)0dkHBP0hf^zt(}Y}y+YO%-mSJ>){1zMm!97I&8jRIx6BrvSt)rkLUPO0D zTZ7Yttc?;B%-+dB6JMlUL+6Ea*X?1_0(PXV<7GzlR)boTUu&mM)=nrCT|1NJLS3ydte#O8(@Q^3pK zuUftZQkvB&8^tJ71SQkO z|E0-|P>-OGc(cH<2(whqd@D0A^DELv}}s&w#*%u&1GnyKmKm9!RbLLWL|1dW?ag#Y_@1EU}S9daUrie zuV=IE-Ee|+ih0v`&7{lFP(Slx>0IgG!)V^=H0unbwtp=Pk5M7{l4(715nK^{N%KiQ zg9u5ANjIg*T0&Z$T31@LrLr?$4ww&YXS8ipNVQYnr1GT>))kedmUX+O+OFWOs{8e!l|s2XjXq z(A$ttNYLzlWDicLR|uTxmHEA`pp9llu#MJl#_zWu(qqO0|NY=o%x(Lc=Q+Wd5`rP9 z1GEKd4Il}qhO>sFg#QhnkHm=(h0u)1`bG#}>kdq6KrxIQ{@~ zI{s(Ud$u8Z1&SH$=+IH*6)Zpdf;)x1p*rNSRcV{B21+a9--LI*c<S^os*kI={FlS89 zcF%PShHp57cWhEVrER8YB)OQBZ!P9D5^nE}3}(0s=yK}D`tXD#J}oG%ve zZ9){rb8FPfRWJw?Sc{lE^oaC48f02!K2LpGF@N5_qeTlO@M(>Osx&~W=Nde8&sJ&L zC7TIoBh(4qKd|eoHJN%?olf`;S`JnvJ*lkgsA-;m^ISZSRtuWQ&lhJ3)aFPmPWU@$ zSAO}q(FETp(Ny!~+plRoE&um~i3X((rA6hpP^pIPb!{bsX`d@k+xhurx%z>l1DS)o z1G~~2-S!H()^DQIW1*+$Wu#|OTcifIa?38+Uf-^whiirhhT%AkIFIy(>Pi>Rv$=Aw zz0&>l2eqEcO6uGG(a+DcFS&bPU<8rl^Dmzy9JbUld1za=O8Q>eO&kX<#gG`2Hnng2 zEj38HEB9o?c;|Z~T}z%Ed~>n4S*&PpuR^g^n?2IC*fqTJ+rRz_`9Q{#X@alawUi~-HcK$O^<+0PH=X<|xpZ6oi{ArTrY9)?_O5><`Rt29LA_%3UrM5BSGVCjIZf!KR&O zZ)ZQ~XL`1t^d6Gd+tDwPHPAI(-MU>L5xS!uD=g}J#duUaw#`57Bi&=}``0{In!#*W zZw+CFqg}d~Cm1N-GoBM(Ccm#uNDoO*(@N1s#iUbGlA@Eeo|}%uuN77m;*JjZX}x$J zIG60KJgq;-kLoloVI+_0jfGwv2cRo)tWnjV$<{G@LZ8^tDp{ zW_%QRR=F6zH|Z-JQ@#<}@p*n^y$QZ}V3Fn-1pppwSqV`M571#cijT(hRp02Klo$>U zSXT#^3K<0%qzjJ?&dH&%vn(sC3d85lt4*DMw$>{vdoKHt_@@lt`o$Ga5&>US*Hl#m zS&zoM69)%J45up2Z29GJc~Arb|8vOq;yAT&Wpu}vK7MO>c!;;%`=oIvgEa4e?+#4- zPqL#2e>%MyZJ_CVI-KLjP9H|YZJ(-7?FJJKZ6RZ6UJiX^yWOBRqXG4mw#pN}ia)}6 ze)`qN;}fRM?jCJ@+LhUZ_LD#D-wrDF?@NAE{3xpHNVE!PPkeMGHpur$eA^>M*41OM z!{8dp(`i8Y!;bW4Y7(CMM#xK_Q{bVUh`fDb&Np%&5rb=wKn> z5)8wjY^7ncKkSS`n)r7neg2&zcI9!^`QH5K(4G-5hu6#`;L!~8*u!fRFCoUB3WrnR z$6Tiv^tzXN=~rRlTV@MU#>&F7VR1Q-p~cC_Y?;pz3`00@OiA3wb#gqhg2{AELGO*Z zH+g3u#F{|3!c0`B&lnn8apyx0EsRs7jRHp}U!s!03U-LzZ zX;hmBMKH|v?wniusOO3~qGP@|H~vNNA!W+lW8b0kcm}k90P(&vb$iq;O;*3N%DdC& zX_FdQ!yoCjZI_ZJfElyx_l#CM2y)ZY`B9*CkWt_tR#paFqrh4cy%7Z}sWu!lq?g2Y zBxVvfn0&%RuWelH;uhBgyJw%m$-8!h9p&fM)%)JsSLd32C4}Jr_7p5^tGa*Z_P9`F z)IGDb$Al-O*rggk(C>E|WK~h#n8@GdzCBEKwQxBV?7M6eH46{fxy3%bjj7y!ip;Fz zy@K2D9n-`!ShGl@h6gdjyGQyu{T&wI^vDQVEzX+@bF#1LWCFwX-HuKOZGI0L&}W6hg@Q`8VUf%n(=QkIskqsFKd?X)iUXS#ass z`ze}CRp)*qVy9{@4LZMY-UEk^)TKHVVvQ2Z+S#Y9BfoKi9lrB1&=y*b{a8^*{!636 zvY!}?0*v0|&fO7K8Rus{mw%<)#JYNq8q)6Q#Q`HfsLA`jb7P3zpgKhXM-7IJWWq+; zgVX(C#r7meS|b%I9=*hauSZ~Bbw!yec0-CJ)r*h+KQaLV!0mZtF{`4%$amy6z{w{> zjH-|vmEZV4(vU1dq@2P1N(Pv_+i0LR$k=#94e3-{bv_j&2w-OhOY3=OYN3fdrM;lp z$*jyQi)X9UP~1}Z#7Y{vSUV$prUS0VpE0A>$zDrw?H9tKRU4!UWOJ6lu@C^I7be9q z1|Bx@FIw3uVMuNLLU*V!@CEf8%2_>N$Xm+V*9Oao1d-S1(3q|)3fONK{rc<_L4X27 z%QXA?IdiR0h4FB^v{dwZ_(f4Z@*mqPvh7p6Bh1kNuIvBcX{)x^iW(vTy*MbWoBR%q zdFB?Rqb_R{?Rd3tyE^+q``4%7<0Brb735+T6CUag@xAJaEM!o$9?9gA2Xr*)XYBV} z+jCw4Bt}niOZ%{ocl{4RdGTl6u9&}@C`g1Z^WK=^iZ%P2`#U@}V+DlMkb=t5HUU?c z^B=Epth#vmi-2Ib&s5?+h`F?H5Rh=eg!gm8@IB1MV&!T0$BNSJ)!p-E3m5{w9q9ICv+llO33?f;tVu~w}B{|qL5_$`+0 zfLf@90RC4+UYnGvMJaer|*_Gf`)la`` zeed^GqjOYWqVKLU=Le;H`1_K>Ct-Y+Zh_bY-v=btMb5*kP+?waV7qMo)79mttw*&9 z`e4Qnp^VwI{CxZ#{4)o)7>84z545e>*3itI!z{g@SAy792ZW_G2Gajl8s`W+H)Vw( zY?vN=)my`#t1nE~1_r0GEDOFzjW7f?1W=CP z0~&Y3@0i<%lC+LY?CL=~d zDw>rE_~?MwJ*f9*PhSYr{@%Yt#{9y68xK{J+z8JW$jd}+Qkc~9?qQ4(J%%Tu&3fA# zM0Eu41{NS4O9981uiQa!1|8f*#2uLZvqkBhAy zR9DCfsskULetb}m^G6HYYiOO|MHDA-USeRwWet7Y;n{;pVxHc0|%OCsgCw zD}Ss+(fZ#p%J-V6NV%!9@%wW(lWr1WO)FD=`vK|nixdbvmeBX$sPm#7k8X9V?f8o1=n z*waA-f}_VQo4l$08aW0nt1n^;w6VRq$Jnia?MUbnmC1 z8owx(e{vTMM-xvZW4Hxc)h{$dBubrjS0kUP-=S5tUkam`F|3t#YkpR=hIRa?VU$SE?jufsI_ZG0s42v0e?6lkIB={jm|lx{5(2Wrt1 zR`yb9f)Nh3F%I3yIlRi03h$V~_IOatr2Xrb_Wn7E39Y_s38oqEm#Z!KN+UHZ8@A{Y zsTAu+E-dVh*rg#|?Dx%8Qq}=|+I!J!EWfOR;9qwj8U%ecCu0xTT zuV#JWjh^2D4t_qT$jF`nA`@0_fxRP?BJ3RlXQZ^rA%+Ao$OTnc0_i1_&H|i8XHtQv z82TM9hR-3of{E7Q`;X68 zbv;BAj;sO^+vCL9KLVvD0Dw0*o%KPezwkDii&=Yiw&_=2KOAOocrVz+@%d-Y_(KSv zU~I0QFbkU$*oG7>={_DA{vigSsze(1D}nP{JfL;lp%jE;)Iz@z+@6UhiQ2%p4|w8h z)iXV_1nL6r!C@%3()rm~FW7+1R;@=d=D{7SQ-!eL*Q^lm zC2TpSL>k+-X`pE~7RdyD^3Xj7%H{{De1YB zi#}+D@K(OV)yOI#bM7b*0DgW6bx@?LuR)&W6V73m|2x^--zaTm*;N5_UBA37IXD(2 zKUKT(S@lTK&JE426(Dco|7dR~gTE^W426XQ{RocsBi7w*jjE*f#s}_>jK6&WuC|J2 zUHM(#SJ9NMkn=pZEBkP&_7j0_mmBc+1=*LXaK46j@cGVYmmLkl^5aO#PNZFqln9Ub ztU7i;q=780?cK@8cSN8zVnBkJRU@zx5+UyTc|to^$u{9)P^^M2YUUa(i>YnaDgr;m z-%uV}%$ds4(AavrjGX1oP#v0y@aCKRrKTJp`S5o{kRc$y6aSrrb~SP-YyB#Mp*qq< z7zSD8>h|@T9y^c_+DlT7Alh!UCL!OrV_%qN@R@2z{sBkdDg+r;V5n#BE1{vua{HgL zI^>L&`S%UxX2uKJ)?;**ek*dG#a@l>r3+ApK&n@xb{b_XenAcr$x&85Ln6yRPxF`j z@q%}Fia-T6ICC*{DTt`kM15W~G=bKpKlCimQht8@HD^~G)v{t&h%V!o@ z-u8+>RagOP$6ydt^pMEKQc!dU6?Ph6?x-x9mE70dI-T^@05S8Z`R}5Yy}Rn~q8u8i z=vnEJC*6o$eZ@P~xFvkqEgs)z z;UmXQqy$pGv`6iF6laloA?={RpbfYX2H9d@3bdKJ}<*q(sWl)|+8h|eToL8SaqEH$us*t-93>njDIZo5#IUsBPQa@>3(L?Z0hLXD%eUipD!m$lCt9=m9;nRU*H1KAZ z_E3u_XTd;eudJjb_vztgl6%ER+Y=DEGIuW$}G^y1BfXHJH>k z@HOKR2t8W{SMa;+s-y_}3+cN~Yku|CSN4P@BQ`MBONsOWdLhHd!kc%k%)P{5Du?5k z<@PApTbgD^{>ML>CA)*H?RnEB+N93z{2h231*vv9t_L&Y5D=V=t-N!9B8-b-2>Z1q zr8od6I0WZv|HGyhiYVXG#_2}W;NW1?9e?NrlXf`=#gW@>FRW%Y!~2-MfI=x8WhiWN z_ixvSffD?&uXD^c^=ij(lADB(<)sjoC&3BXT&(Yx&tU_!_Zh!`%cgSKegwNB&mGOz zM*R7+$@QN5V77w006tebrmp$jFgOn_xmGwj8(VawiC|f zK0L2g*h`*=$IFdJfTFsp>h*;_81|Q0ziEmc448LYUrLlm3`ial1RuQzokHB!Br4g( z>^SptTg+N9DFkG4rJ|~uiIbq-H+IdbV>BuXcy%AOyGv2)&`3Wda(_~>1MSjT-c}rN z$glScCk-KDkjd!P*;F>a>+JZLH<{cs32D6hFlvkGk4d_mMps}&KvfSQzrW^vADFIi z-ujFwc!@Qf%-(fuj$Ek6eP+R_gKmSsRsC6_51mvCJcf!Ts<_LzsWrK=>E_2~Hh`D% z$pXW6sp*x2B5&OvRMa=4l&#y<{hp>7d4{0Nw~$a(0B>ChK0ey#?zvb;wsiS(i;9X~ z&gj{XoBh(4GBaB)VaCP65(x+hz{AIvBhG7Kt(|Rk`7RK&(HBE1AJx;-(;M5y zyVrU9&`04N*&9u6ebsJ=5^uuM#JV7<*#xlyY9nK!w(YiAk7CRSJe zQCV&0#t7w*+P93$6kvnM*txip?yryJTfJ`zy1OMdI>!X4sRP#6*Nc1~u0yfDgr%gA z3=9r_Di{BbF}~LIJu2~sNnbQE4X6?l`^9BklEZObVt>WJW?ai2oEmV{qW^Z)JX{X= ztW>WgX6LLP`6+E>xWRG5a-%n@x0fXEoa+}9$|ff(%e%FU%uLU~Kx$xelYtx<6okG8 z3vn?p*y$xghCotY0&V`GZsI{O#>JHG(5chuYu%Fo;4(|*UaUNX9+OI-tLv0C1#^REpVs5*_N-Uh7j>Rq8eY0qGlg zL#PSr01iAdqr|s8C-vdxZSC9?zzw0~K5cXJR0#UV^N%P0D3Mq?pXs(Ju%?4al+bf}(dM zU3-6CL*qhUDF0cak?aG8JX(PcUUF%ly6!5Mt_y{qiqGcAsNNv6t>1T1K8yH29T@n2 zgj0PB&420>XhE?dsbl%)xPFcT$vSLTjT5t@<%}R?}fZKUr?Qyqr`< zvr9h#^t>k3K>*a24j`nGQrNVU3AT>`RxfW>{QXPP+o}DZFEXRHB*FsLzbNS8#9~tQ z*GbZ30ur8IA22yzCOdukfv{JSxWw{9n!+=fUNI#vFgPlfpuAGCv1n$}2LRQvklevj zl?V0J6K!v_3S;T-;!Xzq`sx*);d3sVeRG8$TCG@i<`NMKED%I}0b|We^%u842`bYh zP?)|@kG6BVKBlh6D+^@{KcB_)`Z6&wMPVa4Jv%!)qjz+KQZcixcZTNw{E4%HjUVOU zfIJ@5bo%oYFU(bH^KAIZW&wwoX3?{MQ zjx}8biOXu0>KJ`#zn`v%T#6y`6qz#Zsd)#=WfA52fZ7P3<(m+@&^>Tvpeto*S;THH z&C6aWb*g%K8H6dsRzMjh{CNJWy{1_ugK-Nsxpwdaz2Dv_Hd_Z4F2tq?Rq5~S}uPh+tKus92y&;;9Jl`vab zF1|#00A8a88(S(iWMV=smzl`zF1vnobhN%%_AAH}VWH0UlN-xGFxJAv=77q7#$=#n z(ej&mNyFRJ^mJPuelO3olAQ!+Kr%i){UtT-4wnqi#m$SCrb|#N*U>Dc^n1tOS zVN%$*e;T2d3bsXoI>z4Z&QC%d<-Y7$sJbZ;Kcwn|{|c=B5w69qhu$Ew zrlW=W$)9xckw#BVt_P9%%m%=qBc|{po8awgQ0QcRLIi8uT%eXGCH2DxgyUtrfG^@>2OF9A52E1BqO;2|=j_m)oC-w$rzBYRN5 zr=?Wo4tU$MZNqrNcZ6T=VrIWiqS*Ya>d_hTUJqx8B>H=~HyMQ;Kl#s74OS$T{>Fvk zhnzrLk1Qd$tV#PD*f9B_!vAS74DRu!{iXKM6*_{!5IAP|wD^un=~dx|>LYN!n=1ul zW0d(2Z~XyU{QeCfz*$1msDzw!Fj<7lCTv`|sHMa)Chz@Wth)7TMo%hnxiG^^ZnrfK z{bo!YlQ=qPJTyM7oqBE#j@sk;pT*v5J%US)edN&**fuPLD(J{l#qUHW@qVE;DhB-0 z0xwcgK)l?%vQ zo+QZw(Z5jNwIrKtG@|hUaOz;wk?dF`rK6>K`%K3$M0n8MInPg0i!-AopWU(S-jVv= zoUQ-JHRaQ;v>4`#!$l_=>)6W6v->N1FFf_;{)K=>Kvau~#oT?KJ#+@5<_Z~AjRHo* z%@VOdbMHk_g`Bn>Js8SoV&meB$kL1?GdeK+PT^?lU)mmyKLrDmgf|6b_CYV0`LGqw z9rF8E2*?H@qF3dU6B?%?rv}<;4>-Taij@ao<1{fb$SXP@w6pT_S64@wDq1FTb;Q&g zE(n3>)4&UA#_tp!&yRPV1{IAq^EH2qfZ*xCK1%;Z9zhxUnO`V#ricqkZ|>lM;-3_# zKoS_cmV6a<0fIJKb_SzpXqZM-QZAc%ET!m~(Zm#Qg6a#jsHGSEp!o z-LUOU^!^Z3cGXCfa~Qr72s{dgCdR+j-lurRCZ1157#Qmpqr%)H1L76LmS1U~Izo4;(DFK6v^w2na0dxJi((Mw5!Sit&rEYix>S6`}qtgQ^)5Lg}cH zt8C-?82};>GBSKQ-c`2l8?H$zqVI`tOdb31@L7$oY5X^(vnCRTvjq%kqzxv07$%bW z%9%oSHAeYiw~RJTDpA0PH#vC>1A-s0+v)ek*nb{Ud6e%jD;u@$q~AU6Wp~ThlUfV(G&6L2?7g(Z&)G zosfE+Z_Ep5yAp57p5b^AsOn)CB2*Wi;Yy#@w}?ShP0s^N6=REy&Mat`>F8chzYP5T zZHSO0VX|umBpVul_bI$cyAf2_@Jiry=&ul=)YO{;y7&4@ARgvz%l@Y_zR`vpBq7h zOb_hQAXYI#N(m$ag}vhK#D>B zjp*a>#R3F1hd+JYJBS61jEu6`EBc^clSl$ydDLYuslAR@H$f5}dsD{)#4wwCGW_Q7 zpZLp#@Qe7U@JowX1!w`gGl16k*aUQrDxy?Q1bTgEu2L#wLyJc5Jr-mx`-hFkPnmqu zbr-j0!HGrW{@cMOq_?O~kE$-98dW7*hXYDH7aa?%27DPkF~WZJ;Z`2&1Ch%>9NNJ= zAJI7jk2N}5n9!m}SN%i@o5+)mZ@EvITMA1An_@k0bGNf^?`s7qNR}#4Im-UuRUa(0 zIuWQz`yrQ;+ZVPjxIhRjGg1)%Alq;7hu2+oTJX1~z_{ahVt5MLIU*L31SzxwnSopn zeVe+auly46drYUt7T8Hd#RzFP7_#)4azH`$)prFuxEX6-Jc3iV$q{F zvtn`o%`pY8p%DoqkEY>9O`P86s1S(-U~Y7a;6 zc86f-&gEVq9-Lt6ca1zAgu)l1lS~{&;#YKs#17??$IuL`6zwG)^vwV>^y~xRU>**5 z6g3(VnxBl{^!WsxC00)<>zH`Y(SSci$NUmgC8>S&10`l5JE|~Wl$ioVS^}u!hLi~( z#4yQbr;lH4}ZXIjN0I-htPmy;7hn1ftwiSJR~#K z!j>6^j&TQTy481IGJD&f)n{$XLAKRJ>A8uWBH&pyO4bk_Bos?kma+fM!l#CvvB(!xv@-T4;G=coykT-=~k5>f;tgdUSOjD21`i>qlMt5?>3J8oV83*!7Y?02yS6G{)YwG4+p?!72vgtOugRK}b{Vu=Ew-yYwW8IiSll1%zbq5)kYe+9LsEVZ%MSd3l$HyX{SZEyE`LNi>r9wOK z8qx=mx?+vs0H&HpBiL1nL_WHICjHS|nz{nh15xih+f@o#<>1L5&<#_6T0EymRl@_N zD^gSZszcvHuP({b%OmN3pli{rD&x)UUW!DE>`0$rF1Qel;6hA#wsGX`*_|!m;Vq6Q ztwbs5famU@2L!}tz~(&pwwkQ0*AooPm}Ako6BaBpK3$&V@-1y;#Rub+?bv2qx9YuZ zxcRQghh>2(;`nYnTCh_K-VhmcyTMY!6u5e$PO~~_s=deYX@PF!4rEiQQ(omT-1Ga@ zp)K`(e6R~Ybv^&ugylI!dfT3Kk{yBC9MXiZ{Q`?aeWv3iNu8v{^)svy4EZQe>V_4i zfa^9mjK4jxS|XST+|pD#yUbJFhl$T+!Errtgg7GrHUk_N;2Z$~sZvl8v4d!0poS)dab8~UJH9cDV1?c?zE_GOWS?VRYb=OK1x8AQ6%Pnxq8$sdsn}@J-3ZUdO_~8;^4!5 z3rRXha(U9J#5Q<+x+!wh6~IxM1X;Z+=JbB9)#4EjeTK3i9bMTYy0*~)hA&1rktgAZ z`N-{8?gDva@q6oWA^=@5BX%qb{9`%v+Z?8$I+TU7>*f`h%Mw$(TK$cI7S*+Cx!C+) zE_E}3{gNc)d_dke>>3U8w(&0$hwT7T0HEXUl&jzHMIu5AXNg_aLjW+1V#womOKia+--DW;wae!&9rK8F8OrNw0&j>J6PW(sGXTU75nnZG^J zzpQ^7b*yRCRR_8JYI=*JeD1ih-sX6QI+^4XuMS>KB^%+MBE9Ss4Dwxjk--vaXG|m{4h?v{E=J z-KT%~SvhKbiULe+7=GfH@vW7iDpFgWYQ5dGwzh&Alk=Gts1+Eyb08kyED19iklxY34z>;Ym+VxCH*?{3It3;seXU5mJ1v3<@i82F#71*S$h$yNqmUgE&jJ2w@)FT}7LcCf>YRcKBC$ne>H z+N=|U-1dWKEy+`$G`untOJT2QoH>K!^6X3^M=+7EwOjnj6XE#&k?XNtXQxjs^F`tz zbsZia_FFn7EN?{e^55*X09#pwJ6IW=(Ly@eJHgVfEka5XOK}Igql}$I^0vPy>y>=o zN%FOJq#vK-&Uu^1Z_u_968k;JZBCNOQ3E6V<74l&Y&n9&OupkH%tQS~JFA=0EU*01 z^iFb8=dE3E(K^tN{yJ6$e#=;36|&1{z6J67_Y|Y^b3IYc4cGg$3g_L_1^>)?73R^j zM}asHM?8a&v;L?os4S!eklUT$VH@y;#4627;3|e;WR>KEd4&$VL*&)uV_~7bZ;>dJ z>_KH)oR&ilt-i0LF6p2qK$_XwQ>Xn^d?LlBk5lL#G>S8F(yZsD7ex&`7MWJE z$1<_`qm1{9O1x@UDF`ib?4;c|Rj=7|xMS8x`4HkFLMyQ@F=_WZ*4dH~vT6OR;JQ5N zH;kI~nR)d7{Y5(nYh#*xxAXQ74Yn;~iSiWh5?jnyX`bYh+(^Rrcem#3n4{zGgc*xX zBr=wcVhQkqA)qa?wX+*Wy+ZgMxNs@!!Ttt?{Rn|d+$_vGEi>d`}WD%56?Z-_r;Agx|>gbNC}Sbp!Bsyx|2%%|(2!r!Mdkmcg; zCq5ja=X2=B1Eoo9CX7QW0>4rsxvrNAQSz1#^6w(8JxJ-Ec1L4-zbdYNCa`nkzG02y z3Fb7LB8{}OaF2M5|M{`nE)z3t;=mS%U+TCcml_ZtycH^h`n0qvI#Inw>6h<=EgewD zW1l5#yVI3Qc`!KzESDOBcAFI_`tN=D>`P>RppSOGmfI^v;ny%3N$_T}{rXoci4uq>!(&dk7pTqeN#R42Kx$lSH}z*ZeYLU8mGWD+I@OXYW2je$Z| z0Xy@fqX8{!-xD>xlLN%ULO_JC->_q1C4C{bMyyi%0ay8@=l#hQ#mT4QQ3}gCWQxsa<17_aBNB zVp!k?n5P-gjNtD}$%TW*Hp7MI5eW2PgvEJJ322da`Gk-qZ|79UjN0EGRU=R_{INZ4 zdew{%YA~zNKoO&@50ox=)uORKL5R8~uq7qWFEE%FzVgUQ&njc?IObr?C%O-nR-Uw9 zU6F$xu0P*;be*JEvkAWHi(3d^+FPrmtV&QfZV})}p$Kn@Qi||Can#8p(xZh(kKy2Q zw=tron*7ar;F#jkS;s-wGeub~R5YYau>9ED2IcKkh_uVJ{G}-QOGhS;MD^WUG=)ys zSyiIwlkiQx3roUsT|Mjh<4*?O#b4K#PA@OsBdt3^J1Hj0mw$SSwzK8GeU5q9bdp`5 zQFNEmNBoHR5&oN?jbdUXHLvb#LN;#Thi+`vySwl~x~pL;k5Br5%-H0oiKac>J#+FX zd!5ZxH)6a(yep_Ar;QGjG1N{|gw-EeQeqa_k3IyyplB4_5ulA#(K`7Bi9``0}& z6SOH@Ydd1ve^kdyzk=H{N)Ka0!Q@zyoWIs@+n&?lk>r1qrIf`i%Ip^^>ynhc=WJc3 zGYPzR+j+_!{k!X`G)##_=)eRq!im%z7aP=;nY6a8JzjXHm?+62&1bKPaw!vQfN!1* z-<3OyZ`tVDS~kN8L=+nq70>#iltI1`2zR~3u^WX^etGhi89cBhK7E=hZ~7T;Haxo` z7N@@YQK55HcIO!&5yH0|gdiGn?LU7cb`q}Tr58>}a?pktt&^~Zi#6Nkt%;=CCuf5( zCeFY3o>1dmbSozz;j_KLwP>Jx7?hn~viyaP4#^<*`=Wb0vbWq}5AOuL*4_OsBchr# z#n-)T=eZ3&G51e#)$T$`eP0t&`pvhlGMX+n5^94qv@7MWRKtkX@?*05P0>kYpSTS^ z4S!(Xia={%g0VSDn|lqcjD7QkE+E+gl6U`JIyL{q7(D(96;{`Me1q%WkTouzH*M&y zl2}ley?C3u#Ou4>86~_hJsV|2#8S+%Y}AzMntwE z?JojW>PLQm(5aYcHK7@c?i}sUKm6Q`ifvrcW3UaAbs&EJ!W_EN^BVFppEOq^zT9?l z4-e1Uumy-&z5CC=QXKa_mOwT>`;hWngEK)F&!B~n-Y^8Eh4F*w(WgkaTaGH~=asCE z*_P_ZKXj#ye@=Vii(n;e0e;Cav_s%cE_F=Ai~9rxhX;3B%p312K8;n3_r`%JU%sOp zo|mp316`JZi-#-ngsTq1Of=P+IW)LcD3=}ZL+hPyM;Ln9j5byd>&2|`*Ek+p!{=OT zi^hg5z44cDcfa^b^sieaLr;HV3GT;GpK!ZS(WMP$@Gh3AUgB<&`|~o zMZwm#-HXPY#~{o^+fp^4q7gC@)P$Cl=XKePp~H~91Wqsjups=*XYZCJuR`lFkpM+ui==$6a>)I=qR6^dOuSG*F#HCR^+qcs%tDbJJK^$J>iAcvW^F&@c9Csx79p3)i3%`E#23#RGyPfiZz_ zb$Fc83%;*XubEt@HP`Y_TSTht6dfqvjGsbPX(M3T=;7eHbP> zNE3C^Tzw7Y#*T{Jc_Xo`P0S2Hfu<}%92@;-t`SCXuAE`0>S`n89;0?WFfapWBsgM4KA*8_wc8yNW z6=6DC&eg?OS56Ia zZvei~0Y=cU$N`~pbvcY7WoE(kGz{Sxn1c?Ba#7AfWTTuZM}}>9G7Scij&d4et01)| zC}@y19gk!==*fg)B}qa89;;2tiXaKp8@Ie{MUF=ZdZA`Xjt7WEY_(uA=8}Nt5p?CA xg}|o~Qz%bDQ6Xx`;?6e0z<&TVJftT_r*}jcTl6^2+sqH5@w5}-_zgAy`1anubs>4Cue7i>)L<+ zm_gHqAQGs9zECcpDxu(j!@?j6#}8vXiHc4-PHtnv8L574f#s-6%LAG4fKk8Ii!3<9 ztF_D0NE|brhq2qPXY!(_?(ogeGmW3jAJb4FEvGX)@SWy>WRiM&n zI}S$*tK{uF3x}As5(p?UB6hgmDI~4EdCtboy-~vVx2x*i57ow-CPc7;lTf z>Yn0H+wAvXY13=8zf-~RCkBMYC31=fgkJs8-PW44Aq#)so`jG}kMxNiNj$yL8LZyC zC1TSz7Zz!!7;--Ii~EKHl7$Y&?aH994d6gv6(FP5652gDF4={NoG({ z!*8{`37@DM;qiQ2v~e@g_-Mrhvs7JirviOcI2i*lYS1p1rvbCm4!s=twCXARfxOd`kG-JaH`ceHE8lVBq1gl$J&b3ucK+p?Up7e8J28cO-mre5~AWT$i;8{D`}^~(iCF&+G1%#7 z?h20j&ucYOGH1d*5N2jb90h_~FZ}aGxLJnXvY)+Zr!57Z3L%KI1moHFQuoufV{kcT zFgt1elsf_3UVoOEICYftdMNl$_a3bPcE1qDp#;h{<<%|~-%Qak;=635cZ9J0XN4_n zjE$P#z)J7I@+fqOp#5a;aJ-mV+5c*!I78}C46xh9uMqMIKm!v&`DYPXy8wdkB7I;=W*hqr zkJc$WQAPA9vez*JKRVZZ)!c~)x=_+iXWWb}=roD|7YlnI6XVE!ERm0&Ak<`ck%I|$ z&KZ&4VNNNQ9q;I11_HHy`Z;AVd?b&FbO*0ZUf}iY9d7 zzV_XEnqtRjYlk28fvqG$Q3OzXA%OGY>Qzj&EObjkhf-1?rzGOf_i`}*@#%dWIK&t? z#lag5mIcbd96jNnwAMZQr(r6l*>llkS&D;zo5ZGvL~u|xP^F%QFpj3qvHZom_r~mS zFj`K*pXW>uxt=rOyF)hhnmFnngFj>IuZ!fHWfck$1PVb+ib&vR7X{ke;1Ncqx25zS zz!u~!V^qe$=@p<={SPP5>1oN2SRGkl$Tr9i6EkX{-~x%|2!gRCS4c)O3GT<^N&HfV z;emrCq3rL7Hx)4V=uIajGfNEmJOooiQ?ZN=_B7_I)btNBnDII@`kE<>t9Ox_LR3m5 z5oW?t6uCmn-1Ok5;wiXj>d7_EICUcOE6Syxs;iB|&T&0twu5=&rrS{auWR8xjof+|lP}OKpHKi~fUCvM5$#J=+Hx>J+Nt z(2aMUh*a4yWlbbG1`jQfHHxyKifK;!m`KZpan%xXicPg;J8)U)xls7rH%5N!gW(Z! z44#(-uLjrMtQRJQb@lS|JDWt3UZqwuvlfzx-XkwQ|CETK34l{BAtN>*Tm z>2DVI$FcNUy6)k+1Z+UqAJ+vzzt}Zo%|zwp$qY(*T9GStyjl>~jjS z=okCVg>EJ^I;!VVf-LjL9%S|cFJ}(Kw?i!fL5LIJj_S#hSKwWb%ZDi8Eqx>^;l7?JDF~I28QpG7pM(hd=kj*tVKpLf;h4|;YSfqcB$&t3 zLGLnWO>3d^Qq!+UYERq?tBsox1kMKU(08;xYXqC#-tvYhRLjm5*~wBJ+v}K85EH|c z%3V?hFDzJ6fJfkU!9~Qiin1sT#q+Uh7e^W6^ZOQ;fD`!z1R&SHrPKe`_qo2o*C6)j+Ge#w!^=f-hJHspsK z9U0IN53;uupmiOS%xfRoOGhACpzHkctbeV)yn1&9T`b_S{QkQY~^`=bT*HO*jZ05T(=2M z6@?QBBAFjrCHzZ7x1F73zCKXOkPm6}5MXv`@2r+oY?N5)ISgf2Mg0VC7^5>I-o(Lo z0-06y<&QOeU|9bA-1i2-+jEk(J=ta8bbty;t}bf5e1%E1scIsEpT{+Z4czqcyrKeS zgAh30wVoXNX&hjy0-N(APZ`${X*XR?OAULn*!P?v!oPL;b|n(I_3Xz}8!oj$02IT& zp_bR3?ypYw7(QMtwxRi#*98-X!dM$*DzCnwkA?Ef82VZTUXuF$pv?ex@S7Y$w!qSw z%EKqlIqvR955?mp;lVqhUtI>QnPz`a+G+2ZJp^DI~XR6Qk59i{GLCZx!tb-1MHT$q-F6k+6MZLriU^bUsPQtSQ{+4| za7GBd5)N87FZ&a84@iuQ3pKJRO7f8f)I;=@7}C)(%$( zE>bzV%*aI&UwvOk1JwM4f-0w#+>}nTt7|Vl6Uu=~)ZUs<VLkByUbJ}JvjG+E zOC@j{>d2a8hmWWt-5qGIq0xOo!J-g^Wr}!PjAe<<9*qBxo;}&w-QBvh^}}wVjcIXQ zs^6O}Blo>NjKrmvGu!U}qM)L3b^FSOq8603bW>CsWwN+;t`@A-xkrja0U}v8TrSI4 zs#E)?vOMwJ6Nx|H=t@6Zs{g)K{P9xDVWArFW#c5DfR|eheQ$g?AL4TVtE`+Qx_}o+ za|YE#7^C|B4JSW#Qb%HeVZ-7W|0Uw0+Tu?i8SmVTNkbi-PsYt&8+q~KUFSPPRSpZ> zLknt|Uv-k8coJ{=aRuif3$7q~TUyKN)6C16H z4q_Pp`75$n+UUU4z#wW&{2qha{}i<9cOo{lLHfrJam{a7(2Zoams#AO`tB>u<%TcZHVt-jIjJ;CCbd5KiM^!g>sKiU9{eYPF$vaibi#uF3Sd5n}9^dgj5rUK5Z4kIfp5XldnA&9}a z0C!$qaQ3c@I>Y-08b@7pC`GL;qGi5P({wG?e*M*Ivp2_|c zVJz30vjMR%(rH!7d?P#Gg2hp_0+sYnud;l=2eV}t_d5A*S2Mcz0qC)tUgj?+WIRfe z>-g|NjY0kUbc_$qPAQFC#w(|5v_e9pV-nAz?2YSS0wUizeI^zbRFyPdNdp72#Rlj2 z*)l`JpRJ>llm{4bRAP2)d{iP{!)X8Bvk?Dn4_XgK=5*bZX$XSoHqx$i46opROTjAu z)$WXl>@25PP7}h8jq{EEE_xwp5~@6Df0pHOZaG70I}PX1>*eLnq5oiMnG^KiDVtLaHq++H(#(?lOAxW`}#O0J-~?l1U{kOuIx!pWI$=kerpx zptb`BLU>J)8QHtq>Sws-4$s0!<9D<}MK*l{#}qMDCeA?)POXF<-s*I4gp=p3&+0 zdd$qY23^2#eySk8-%g4dn-4L^UY;ensk$uq8|>ZF43hkU42i9FxMNQRLEyb_OW=?w zbWWKK;F@BT9<(Y?z`wP_OJVJy!D|2#*i+x?AQrO#nG7f}+s*UZ9?VE=YH~%d3nP2^WOTey#pVz?hgIVE|N;AwCoG>}eo*k1&WwDr)gtvU!{=;PpQx~U^ zGUXm^-#~Vqdu?wb&$X9OSFaA)h<1Eh1>0P@_NVcg*G;aztJ$D<1i-7vY5FA$6 zqV;P&nD0;j5?0hh?=~duDxhPIZJ>gNI1b5)f%+Y&;f!*h{V!itlLxp7pY};S;bM#5 zD^NbkxHFn9f-tJn8_>aNSvu^Duy=d-G^BmxbzY@--xt@bt!o@k?%Xo*+E#~>gwL^tL zJRLrq^5`5$d!@%qV2!#?TW>YAKbCop?}ee_KeQ#i=EdcoF-p;1{@3h537W=)tMmxbKZ}PXJL)41ibl!YHzcK^X||&g|z+S z+bY-8B1S-EGidK<`p(}zT*>&PlD{#QzM5@uzd$3O zL19`6T$%s9&$p(VL;fTC(m>HNIxBp|o4UHX`k^hBOhLbEPO+m0mTpPJW)RlozH1At|;f2s^P?QaMnI2exdZ$I#<;ailrQK59(X(QCPQ~E8>zkZH9C9rI}(RX=| z8#HEXJo`f$xg_^L#Mh@~kVFZ+)%))f4js1mS_G)rryS=iK^MDY4PAHG5)b1BgJ=jw zarb`(+9UmroBG`DK5<+2;}9PY`sE)se{1y9Lb5}J%J>VaY&Q2)X$m#qv5K~YUfn$3 zuRWL2S9hU=#~6oF1zc+QzreN6*n7q5h|ELoPR2ZlHkMU2InoAHl&)oAvdr6ND7?Ng zorcNRe!p_Uq&%C&N;Lfbw72!q^!aYi_5P^Aa0(`q(~+>wUN}AY_>y15aH!o-BfD!) zCfgz3`uExFhwWFWTMskl^cqg9=GGe=LAOJV&rkPda@6Ko&AUTB(}=5?4;1MC;ne!| z6?2zGb#&o=wH@1+jZS(siO1TjO(v>(=G{x07%7_GdIECJX*>WG^(#Kr4$!DGf&#lR zkHy5#@#ji^&OGr)HoYCxl}dUg==Euod{?+l6+9anrlrOI-3JbG#~M!bdAh0y`gols zX?C<&H|w@K7WCxKD$gBo=fP@$CTysx7-4rg0KG~G5}ghetVq`I#zaympo^bGtrHyhYNHjEgFi8I_ydOuW>IDv?{((@T%TD`JD z4JPwIh77j=T+ZP05M;j4aZede{e47>54$o-fh|E2jf z+VlY|u;QV$?glxCV(>tqv+_k#7wAKKd7W3vvx2aOkt?%TZg;cemz0(p_8(Z`gF!9+4Pg%07iFskW11a2AXyr|R$?QElgPS2i zr=ir1oj;>`{pA1 zIfl)!UZLHqwB>HUMCSy73BAd`$Sn{WrE(^;kCHCVOCPS!Xok?_8i$Tf zg^8mluxZyBA9zWBa7mM-r@?HVNa|?FHH{B^fBT08FhaAO^|ArRkk|j_vX(c3Z*PxD z&=aFGd}X@JT172lHf~nD*N&EEt&WSfQ6(L|b!o-FTaaxunV+;J6;X~a(MD39#)q}! zL0@KD<+KGjB~gRe?kG6U?T_`II#hnBji83Br$cLrl8dpXsrV7Wrgwe6KmyMcWQ1PdDLh(T^N?hG84OrU@rGqbw)vz_F z@P((%R?`ppd|W2EC%glt|ENX^QPI|O=uN_F&tX%P{OUL)BL*^q(9q&G%FIf;lR6cc zbH}kFJ9W*VqCrbJN&5&f%IA3KPVJ}g$1s;0UGwU4Co4=POpnbYV;-0th1KK%>(Ba= z__D4IC~F#E%jA^3tXwC8j#b!Hfy#v?OI%z=+G6F{w;?xWJQME~PaWQlDgQ@UHg-Jz zE{g)Osee`Bi3<6m>su*s0)N>&8t_6!P^5qQjG^G*_JnM8VAQF;uQww$JI>n`Zb_$Y zM_@(M_n6Z2g&)UyuLTeXJsy~rGOPv(qZCV9f=L!{Yt zd5DB|F7>Gl?-i*+Iu7qlpU#Pgv&5F_WK2B;_a$z(6J1|THv0GfLhB8?$D46 zx1mFgL-J6#^04ce1S>^rSY`^z$Q#4@;VY}IsV=X-1I)ea52jyLhU8R0X4PRAKLyn^ z*|;!USlB%?k=YLR<{i)mt4+O-|N1`NpR~und^mqRzQkHKU6<>|lSAP7FkC78e9F3% z<%e2Al$vaIrv7r1js3Elz!_ZkjL=|JdS>mW{{wwuCfc zW@&d|^;Z8F8TZO(0N~p_L72(vx`5ZN!Y^cIqA8frrsQe{tts%^oBx`NJ z`LH<(D8WUou45%|d3F$zjm9a$-pr#>TImFflw3s+AUVr_-(cPj5rC|d>MQy!o+={N z7tRL%21DzQzR&^DXv&AoToXg#xirUH))nIX;In3{xsG6jvq>e6+qQ}<wRf~C2GwZ8`fx51+-_|ZnV65z+nuDodh?Cga7O#yPxmO=ex)NbhK`v zI{Lz_UG;HC?9``v&q*q<>(8swk7j3BK#6M>`TF3N^v<{SaIVSS`i)Ve`oOG#YC7*V*n?iOpE8bH z0FCf_n$LA511RU{bt9r6SsfzGVHuJnV`as*DiRpuf;p3yOI zI^Pg(F(tRM2!{7VXqWP<9+Q=WDFmD{rdh_Ox^B_wzB+`}mk92ochs*~_=uUlRr3O?NE%L*buXeim94^JVtY|%T8CKhJVMNXmF{z3aD;VTIJi=_q`*I7R( zaznyV*L9j0@X}am!rt?AT23BhBShoKg{5XLvtfQh+DDU=M|)D5{hyTcZG!h~m+GRG}JkvDAVRW-lE8qRBq`Mh9&Fpulgi zN>gzC7zB8aSD8GX^-(u08V$TAA`|x)%<|bpHF|mDX_oIIFX!}NYQ%g!Zn;o(SovMo zIcGL`(zKhENc7}B)*pJ$82c2)PY#680!wfp{MDAYaK<4qnuN&QiV+L}`*!{J4O_#q z1!2ESkG%tb#!HL*RSpyR z?xu7aN?IRwaWFtM2lc?#c5Td)CzeY|1bEWe0Jli>!w06oml9^^zWyJ}Tyabx5b>!z zrnGodWfd_*-_Ud>JL9!**2RK>t+`>8^*KzP;UN0EUckU_bgDOW(IJ{#cSCPx4R_b{ z(J>hX!IkFeDNrn{9hK!|VNIk5xiG(Y54cx4=iDFC>vLJXp01V9rluxlcJ}&=EaYIf zM3v{K$FlZpW_5-p&s4gB{kD%6fAuL7Z%AExcBel}^|OQ?KEbe~Z8yyI`v%>^--l*E z3W*`|K%No;OSKq4{6gu0z8zRFIX8w`npJk|z>q$97UIFrP3rcSSwuduQaa!yPBX#d>K?)4V3yfT6@-~U` z+u1vN{GIqfwLj)~b2{(Uhl9c(DsERLm@3{RZx(S+?a5F7fjkLEZWu%hh$95Z8Q=*}xe4}HTo({|< z6@Oloawnq68|0yY_C}RWCy9ex>o7JX_sdtEgh0K%K@%>CfYBnOgqSS{=2KlE5scF< zs6H~OI$kgz6Ul5!%^0E!^zW;98AA;+`XXdIvp~BqV~zvL75l=nvn*?DShd6DrVywbFeF$5d=)jzr)Ft_cPNY-ASVUEOy2cKzTM|Mb{T@YevZVv2>c# zxz83MIq-wU8IV&ZZ}^$dZJlUMsi$Vi_wBj+`#m*7beBzzG#3Tsc21IHP2I+`7_g1dcdEzJ`h+-4MyW_TB90a`Dhf~I=8v{ zML0_B1YHhqc-L(O(U_h77j)uXe$z$0h?mjGDToaRdv8C|ji)UnK1@<&@eLhFj8gsk z*3awy_GQdn>pit4v~iPXy%*mEAnB@VHT-Gp@OrFST( zg@6oQ$1-DwidOzELjUm;l6b>F4|#x$OhSQdhnl#!b9c-pGFt>fH8=SGp^+%+QN<8w=IJzMy9XqyLlysFRyrJ0ec!Glacrm3ZASI4jG2-&3Up7$&B*6Q*IXC1REhpYB{ryfhU*t<*onq-G;ZJ4yK5LkvdLW>SN_-N_( zozAj~po$E_*vx10bSJyrp4}EI$^g)V^gZ}Sn&mb@t z)?L<%;DeQT2ud>gvnl)OusOcOp~WT@Ez*eR*2HTU+jw~oiEjuL)pu8Zm$xq4L662c zMf2%!t(YDHpbM=cd97ZSW~w&>N+24xE#em}?@oWCL5#q|U57J%_Dmag*7?YEoq2Xs zv!3x>*F$kjSqhuJyk~z1xoFj00~M&&ilBY$3FZ;~40P?$r_3yLP)eap;yKu4V?wO1R8Z-QqipQe#S-^~3@cHbBO+u~%@dwETO;O=|BM4zZ! z1;MUE>5jut+!!^)g6N3#KOP9bXd}_0hLnc~1kPeeJcu*RTK*+&)wCoN2BKnN9E)ADb|Ja+NpqTaO1P4$t=c1Aav;73jV z2@=zqCI~&m!$*%paHbaEg6mzfi)Ek8ElduLn5Ut6VCAsuVci8egSD7|Or95gg}qqD zOt>>jp#@3$3`JvOT`;-yp{JTr^~ocpIE3YAbH_97*3!|oJ~$m6e;90 z%g=RqJgI^wB6JYzOqcT(?)5||{Ds1KLR39{J(D7>kMCVu<2?k|tjRgN&QWc7ut~!h zMz--BP$Urs#c4KA&e~K__d~d!e324-V zNobnj`o%`17_D$^H~J+(&JTwL%tIlwXh4k)?JX~kj^O@9j%wBn@z<^2Eu91f_VZeR z^n-O8m18po0tSb^U=N?wHMzsmpA(U{%5lVt0ryfaZ!6|VcHEl>wSl7tOlxQM(}(nq zeo)74Xz<^2)mO9A-Kjhs#jzc)(qY`jqvY5-xG+jZ#Mc{nXhs&fT-7j}VNNp}Q?>#p zN%|EU@!j~@Jr@a83iL7@fW!c_88QW)O{pNto1EY9s#Zr2rr5h#x(28N|1Zv32@81* zR=+hgfNU1zjIY|(TTpWPM&N`{8K96w@7yeG))+Y_TiY|J&-5Lk?7%2lI}cYF5!laCfXy#uhj=A!tVyf;Kax~g}F zIBGt&vGQ$L*R?%Bv5fn-@Z^%r+lWBpQ-H47(l0gsMGhT&Zn||z#z=87m)SFc6Ts{6 z>fWhKt!{JlHQ3A?sq}#-VtoD9?hE+x2n%D+3eKoZz?Cz#OIcTPU4J}F8W11JU$ecp zwk-wwrHjy#r$_R%$aY<#!YV?yx3VJM%IshPEtL4?{OYRS`k<+mW4_JU9s&qX!4gPK z)R}QE)@IU=i0MO1*`eNN!VQU!2RW!<%B(3WBBd%#=LVll<>A?-w`R9(!TSN_b|^48 z5D6(K`Y7?n0^*^;GGlifR*K9!6`Z|O<;^OP{3z|cp5v!mGCs~?|6e)9fD8xXUMfu3 z1v8_<)9}!=W;;a)AxhGhEMeB*;kQ`AcBi6nfj;Tzg$(7Y?lEq2UmzGhhmAHflJ}>J zR~oV+A?vD|SubthmTNn)EPfoLg@lHH7(5~Umghx%$+$2feNk`?kK-HvvGB0{GNE=F zJ^z3OcrL7gG?yS<+ePp;~HVx^nL z=l%}zA$I6vx;%vwfnu3X^Y3@LQ3AY+1V_YydDCDT z|7tyBpYlgnShVwiGJs5_vgmT|ZnUvj3n-QY{U=ymH`5__nijZA^o1AdM1pzARG>x6 zWA63%><5G}vL+xCW87w%X;5~I|1Pn{tEh+!k%Ukdkt|k@tC;UHV#oiW1`VbS{UE1} zY_~gSL-5nhrQo7(vzY6u=#RWEH5DH9K#%*3l?yv3s+!FC& z0WJ~aj?F!D4BOCltbSb~YbvHK}Acz&PURH9>o=yIe-~g z@%7^D8r(Ycs{KK!tJUz|$v+Cji|;EmcJ7Pl8xa2Pd7eFk%qzZZSCo#%zWfLPD9WnJ JluMa~{15Vy!0!M6 diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png index b2da70c2688229c28707a089d6fea9c4879c030a..f6c802f1600bb57624e595a8f30768e058217844 100644 GIT binary patch literal 4064 zcmV<64StO&>uS)ve<0AYj> z5AR{$W90N^4L=L-RlQUJ&DC0@ZjPh;=*jPLSYvv5M~MFBAl0-BNIsH15C~g000{K(ZT*WKal6< z?_01!^k@7iDG<<3=fuAC~28EsPoqkpK{9G%|Vj z005J}`Hw&=0RYXHq~ibpyyzHQsFW8>#s~laM4*8xut5h5!4#~(4xGUqyucR%VFpA% z3?#rj5JCpzfE)^;7?wd9RKPme1hudO8lVxH;SjXJF*pt9;1XPc>u?taU>Kgl7`%oF z1VP9M6Ja4bh!J9r*dopd7nzO(B4J20l7OTj>4+3jBE`sZqynizYLQ(?Bl0bB6giDt zK>Co|$RIL`{EECsF_eL_Q3KQhbwIhO9~z3rpmWi5G!I>XmZEFX8nhlgfVQHi(M#xc zbO3#dj$?q)F%D*o*1Pf{>6$SWH+$s3q(pv=X`qR|$iJF~TPzlc-O$C3+J1#CT#lv5;6stS0Uu9wDA3 zUMCI{Uz12A4#|?_P6{CkNG+sOq(0IRX`DyT~9-sA|ffUF>wk++Z! zkWZ5P$;0Hg6gtI-;!FvmBvPc55=u2?Kjj3apE5$3psG>Lsh-pbs)#zDT1jo7c2F-< zhp7`Zb($s3n-)XMq%EV>(3)vyY4>O^>2$gY-Gd%Qm(Z8eYv>2*=jns=cMJ`N4THx> zVkjAF8G9M07`GWOnM|ey)0dgZR4~^v8<}UA514ONSSt1^d=-((5|uiYR+WC0=c-gy zb5%dpd8!Lkt5pxHURHgkMpd&=fR^vEcAI*_=wwAG z2sV%zY%w@v@XU~7=xdm1xY6*0;iwVIXu6TaXrs|dqbIl~?uTdNHFy_3W~^@g_pF#!K2~{F^;XxcN!DEJEbDF7S8PxlSDOr*I-AS3sI8l= z#CDr)-xT5$k15hA^;2%zG3@;83hbKf2JJcaVfH2VZT8O{%p4LO);n}Nd~$Sk%yw*W zyz8XlG{dRHsl(}4XB%gsbDi@w7p6;)%MzD%mlsoQr;4X;pL)xc% z+^yMd)ZNTI#eJ*$O)i@o$z8)e??LqN_gLa_%;TM>o2SC_kmoO6c3xRt`@J4dvz#WL z)-Y|z+r(Soy~}%GIzByR`p)SCKE^%*pL(B%zNWq+-#xw~e%5}Oeh2)X`#bu}{g3#+ z;d$~F@lFL`0l@*~0lk45fwKc^10MvL1f>Tx1&sx}1}_Xg6+#RN4Ot&@lW)Km@*DYM zGu&q^n$Z=?2%QyL8~QNJCQKgI5srq>2;UHXZ>IT7>CCnWh~P(Th`1kV8JQRPeH1Aw zGO8}>QM6NZadh`A)~w`N`)9q5@sFvDxjWlxwsLl7tZHmhY-8-3xPZ8-xPf?w_(k!T z5_A(J3GIpG#Ms0=iQ{tu=WLoYoaCBRmULsT<=mpV7v|~C%bs^USv6UZd^m-e5|^?+ z<%1wXP%juy<)>~<9TW0|n}ttBzM_qyQL(qUN<5P0omQ3hINdvaL;7fjPeygdGYL;p zD|wL_lDQ-EO;$wK-mK5raoH_7l$?~Dqf!lNmb5F^Ft;eTPi8AClMUo~=55LwlZVRp z zxOiFd;3B_8yA~shQx|tGF!j;$toK>JuS&gYLDkTP@C~gS@r~shUu{a>bfJ1`^^VQ7&C1OKHDNXFTgC{M|V%fo{xK_dk6MK@9S!GZ*1JJzrV5xZBjOk9!NTH<(q(S+MDf~ceQX@ zDh|Ry<-sT4rhI$jQ0Sq~!`#Eo-%($2E^vo}is5J@NVEf|KK?WT&2;PCq@=ncR8zO#GQ^T~S@VXG71PKNocF zOt)Y6$@AXlk6rM*aP%VgV%sIRORYVwJx6|U{ozQjTW{-S_si{9Jg#)~P3t?+@6&(! zYQWWV*Z9{iU7vZq@5byKw{9lg9JnRA_4s!7?H6|n?o8ZWdXIRo{Jz@#>IeD{>VLHU zv1Pz*;P_y`V9&!@5AO~Mho1hF|I>%z(nrik)gwkDjgOrl9~%uCz4Bzvli{bbrxVZ0 zepdf^>vOB;-~HnIOV3#R*zgPai_gEVd8zYq@2jb=I>#f&AH2?aJ@Kaet|%0j z=$6KO3qx$qX2qDBT<6Q2Ug!1YKAqq5+^%5+&+Rim{5JLa_`Stc`F?oArH090CiiPULSR)1F*#$S!sgPB9=cWdQex-(xzAsc z?~go6isys%*SiJpefG!wRR@Pv%}mAPf7rATaj`%&)cH^d2rVLu}`*Ny)_LR+-?M@!KQ3ZFT> z3i`BJQX=sgAns`(!mR(cvMN_w0Pfm>$E!iX@KMvY!h{Rz#Iy0h$#me@5g;VQSjXi8 z?%W54#(?Pu0RT;)ZAG#@ZBM-ek|xPD)-ia0S91T7srwl zfuy6r_+P-aL12BuFEni{68>1f8s>1IC=ZAi6)D$(LqPQr6JCp!AeelU)g}M`yaarF zUxn=XmRG7#EUHuX9;zPa0Yq+F~$IRtOV`L7T zyeSyp*bE~<+blz4REAxQM~LwsQ%!g!I{5N@OB_8W*UG;|Ct`K1t2c~PO~wu|;TS>* zYlqx?KgK=6GwsR1JCiOQ>-R~c#55^JhqY{%kn))ug?(*p4a393=jfaMYq}#f7{hywmj{5p~dBqNb(>Hk(aL zx(gRBV19lcDJdyh=*Py!P+D4w6DLlfwY3#lSy?`iQ)|B1dpkf@gWlWOUOjn`pP#S2 zpF4L>GtP4B=;%O3Mh4EGKackIcC93{v$N6E)P%~)N==^_gAQNpy&WK>N|>3o?Cor? z40}OA0eX9Ty=v9f)mrUS+S=MsTwIKbiV93mPiy_4tgK8+N@Cd8p))1113ExHC#4Fj zkyzNM_J3GD8d2^1C*R8q-G`DQ^Akr6xvp}t8rZldN&}SlhJmt+I~gCZ>MdAi{d5O)wWi%|6U~d z)@hTrwMN7p?K|1kp73&ND7^Wu<&?r7xT|ej&(k=!Z~n{moTbKWXTlk+=l=l4Hf`@$ SQ~$~U0000=BYy;~NklyVmyMpLK5hQL(HwC*X6_K=qEmau*KoI*QwJk%ZBRba15aMVY z^X7i{zV}Qr`K1p1B<3Z#?>pz7ch33FwcGD~p~HYKuJ}Q{_ zMO0XiN`t21t1u3WM{P>++r$T(;e}lphhhBkhSvv8*n$is ze*!oRE?-v;_`X!yu|nZ?%T#qU3bfX^T62t0*ynD>2i zUp=A}QAq6ocWxMWiH-S7ZMf%2ohx+6_ZGxU!&gT-K7ad5N4TgE_*ig!9Y`68)DAH0 z!njiy|E^rahwkhX^%LRfEs?7YztM^7itGM^92{W6F@z$lvtsAD7&pOt{H4IBdr`&p z^Ip=#Ozr@)U4)d+JXzQykq9<7H?gv^g6-{X1cO2Nd_MH{_KMps*Yn;lk2D0H8Jyq# zkc9)RbAOf^RKg`QphS%$r*K2EQ=<4c1K|w*>dU6Dw>57xw&(AVA zz$PQ=oTbKWPsGsB5Sp8tv9+}Yr_+hn)>h=_=fAqp06EAdOO)KdKg{5Or%=AJ&J#vY|}lfYG(sUQM`ME({C|AP@-1q???a#PRVl%F4=Q=y!H@(AL(5%F0Si zPk&FNrluy2@=+w7JG}!`HK^VmH8h)OXlRh{-QC^NILmEzb{17tRp{&MgWvC$C0Scr zi?OjW^z`(|_2gI&$8)E5fRZZ0%&cW^XM1JX8yg$3yu55J>+kQEwNK2<%%G*E1)ZIp z*x%om{h+L) z7=h8zQCwVHz~k}A@5v!S&Lp!!@+7353rVG_QCQg9*>pxmMv^W!L8DVsQ`TqR8+fW; zawb7?2iUWz=c0#G)hH~v>cNAMQbajJ{PIW20VQ=Aa+nZGMoFcrQCQN+aV#u3W`D&# z2`a7>NbLaio5O_Ab4n^zjlz=MKw|8i#>tUpDzYQpM9jM7FyRw={=sdjY7`c)xU0HA zw>li_d_8Pry9tIp!$>9_FpnZ>Bk{c$CU*9$q4eN|P4)If`wdG|V(zRu$=VN~qAo)jz}Csdjs;A9V&jVS z28N(%;uGMc%WC}fpGK3-2-(PHXfhWM3(*bN(C0g$SSqUb_BcI0ew=-5+fCnn8g(DT z^2NcWi`mJw1o+hgg#_j(qLgL-4z~Nk5y-9~P-5>4b(Bx(yPJ*i2`QQLaa=a0EN(K0A_Q}q*5+l37CRq^BHIy)tBtOZC-;^-^ z&h_GKZR7n$w{^9I2@xaqchoJa^rSRuJlS1%h0!+v@a}%%&kLVu^zP2q`p)-V>(i^= z+!w1eTPl(F=c_Mmzu*u6Y^AZ&1*7fl8F;&XP?dA1Rf!(3pb1#4-WzZ(qGs!&jeFdO zyYoGXk!R+p35>YLkJQaHn+RfFa3d#=Saqh4X$c^W`eMD?a(F_D#d>HX0;fp_k#%=xciWg=M;(0 zsBx|sKv|G-mr?_A{g8E+&j|=F98-JJ1rYPOWcl?DJqExw=lbY=3jlGQ_fcX@AYddZ ze-i-O_K5Y13_)Dx`^ORkfg-k&~yo5OCW9elA`4h zCyKxQ(j_p5P+tZAE*mFx9lP!i2Oq}n8m_+Ip&b#DF>z)$aa#~7g7^Rmp2>TG5FFFU zIjT_I)VJeEtZ1v4`lz0m_eIPho8` z9PxfNs_;{A&SK5Q6z{_NvK=R!xUdX-6LYO5-qn!{`!?hjO~~&#I|1Hdk!HRV9GKsK z&70`|3YInw)qY3UPiVHS&8->5ZAPZe>q0=%m1%N{LIW4>i+6-#_!GO^+CMs4Mq5E! zvY7UWx(>GmMGH0HCr39uRa~)h9jyoM{a-gzf$C`OPi1r`@5$e1(i+lZ;u*!s(qIn8 zZYiO?r;Yw7hc0I&yC}<&ubwY5iTxv8f$lIGJh-xjQsY}jnH19)jTNmN`#9LM)rc?9 z8?vE*noFaWACLQ)`qX*pGlP z`>NN@_~+9zp81-aR=p+w@UrqGEoP08Xg{CUMia_8$62SpH8>RH0hXcTYQQLERas`{T$8{ z-k-RT=rx3xsF-+LmaHkF>8^RLIa?+-qkqVJ2%gchRw2uKHz@lPlMz(`C-Eg9jG> z>aDd8c^V6d2!DGR-G>+H6M@U}$O`T#?4Vi|?x6OW@k#MPe#(3ld>DF;y6aqbzaTtU zLNo^b0d0fY{oeW2!dt;pAfzA^Aaf%|Ahsg0y%8ahc!P?eL*Wo-+eLIia&N}DWX_yA zLGTYHgFu($fqj@xfqVuhGH48C72C(Q@LpkmxB(?(O~yK;iQ>oG6ry`?e8vwSf3qH_ z)~P$$JKZwRlx^uenzu)uN0t0)7F@J!aBwj%v$R&THakjd@@@Lvx4&x zdK|j-ckZun=%ypwu5~JB`c~?fL?^R~?WNpiqMiNGp-fjH9d4ayFTTKJ+@u=O?Ep#% z6*gk!?IIgRGQ5kQX@Sbp9k~&?s@086pM_#~GBguz_?88|B_Aw;ls`H5aiS`#F}cUQ zjcumBRMeE3St%Qvx1VR>k57+J&r`$rkyytx%ihS)sQjIYDGp=HeFyxHBrf>h?H2XD zulDFFm8PoNxh6NA z^EIkY=~hDOaCIVARt^KTmalF<&L+KwEQV?lpH()r)if?F-Ip#R)dD693M85QwYU;W z;s=LpDz0>!%?L~qzG|FWCQa*ULOu{B7?s(T6<6Fhs-BNsdJm?Igoa8)Wo5TqGdBrKm!}2YXV` zOXrTya+8d!a&KmoXMrd3jr8fErIW4oQe|gn4JufTCxTp7z-~Lu*LET8IMub@PWJ<5 zxA^uS`qe@&&rOxRoY9`8o{`lQNaHoip{zU8q(G;08A~2GTR5lvbnjPQ2ALt5Oh@CZ z&nd^InR7pPlvZYT27~bV{g!{+X3^K8%nT(_;i;4*_gjUh6e|N&gLZStu}o1SrxS%n zquasDmE9-GgMxwt<6Zm3*U`B3qM9PSv41|A zukMGArMs)o8;|m1+D~(5==b4cofYmSmky_;C6xmG)cq7~qwd1zg-_+9i{7VAr!A}f z?Gz~tPhu}BmlF?W{YB%-w<5b&tet=-FyY zwD8ZLM<5AbY*_#`o8bd?In{~0wSg|v$;^!<*fvS89x3Ujp@H@JaN4rc%HGPc-jYDe z|B+Rk#-BOY-()pjW9KPrSAhz3J}$+5jQ{e{M1@x>ho4cI{K`QdGRjPWc(JZ{k+&1v$ zGgBDR-kDx!7h3^IY+0N7U6X&aEV;C)!t#HPQcUIyuRK*bk*1eRs;S97Uezz@vMs*5 z{}fQC_#jzYS@Et_?IvsJCh&x5=wen*d?GEHVOSd=rfR=^GanIKt{@^-P(v|eEpK%h zT&Bqz5;Ba+EnO0!r+V4&!&k&13DZ<10YS^(u?8%`m5jCEUmO3j|YA9{2jjO+51`+mJct;_MvB~A0QVTx?d=*v1eObRK z4@FUow*sG12;$&4FOggJ?_2!Pin2)$uaXZ7Xw0W{6G!tW`Y?2{n)u8+fdZ}62CjUs zE^2AkDd-{b{ewv|R9x_#_1<_QaiTb?%KP~PgOeu*JdSh+R|-FO3n<+_qxlv6F8wf* zhB|vxrc8Nv$3@8JYM&ffg)(oc~a%>SvD?DM=n&Wp^$pc!CDj(f0>Gk zcb-Z3@TZ^Hcx;V987AdqP3Q%ZMT@QKLl-Yp zfxhH)a|FwGON=|{fZPLr>=Rq!-&g87SDTkczKE=l0q@j>ZOp~J=YovR*Q&$J=Ky@T zMtK~&V0?J1JiIKyUTY9#s8Q0~vvPBZyAt7ERJvgA_I|I7=HPiW%1c|jFTvh{%wzJ$6`ZV_@LDr4(@6TGb`MK5};j&#!B!APq z8V#2lJv-L9#$Yei}Z=}hjMV`>ObgQrE<4-LTh(81>oQ3Kpp zjEn6qOp2vCJ1kC^iYVuj2<6!XB&^nx`OBij?PoPKzu;$&w`N9!KWtJ@exjvA5(K1oSc zE5<=~sk_vjFhKJ*>5ki~)39T)m`7y%^}Y}&ZgaVD&DVV_T_T++pfH9Vh}?<@z^dY@ zz=^%IFmc=9i|6ze5jD9MzFP+nZ3szyQhWI|e*dI!C?$o@*pr`k-{!pI?K;wYQJkfb zxC;RbWUrh#fhgNwmSc4-ag=X)msIm^- zy4@%k;e43*e;lMUMF~iT`Lg8^X`j0P1}xI|c;#(&obSX&&tT5j-MN5rY&$K6zA(bA zWa%clem~ZL?n=>Cu%AhR#+!=ADrxSG*o^v|AK(>UU@q|(eEx7RAg&_tTkDIK#?v44 zaOCC=z(T0;mAu(qHyG<{WfqLX!s4jbI%&-{hGA|yE_ZzQErkL3CGg_Yi@eRr>N&Nb z{zzy@2t%q;(h|2qm@nS45L;J0qS$tQZNDt-wQVzh@w1HFMkC9Axc!*jld}t-kK*

    t-X15F{Ao|k0mc%~Q@2*yE%IK2b&{I)K3Mh(6M--uD(nxnLSx8NhRWJct z5dsDFg^<{N?U0ZV4@OCc1?xfZY7*7js{%4Ky%Y^_5BNSn;!GqE79RH;5;Bmmpr|4j zyGR~G>e_)1x|QZHc4;mIqIq{r-2-gm()=(f2DX%?q$;LN{3oRYP7?K#n5DbOCc=uT zD;R(+jQi>~j#n&&Qz@w}BhaApD>XlxQkd_e0aHw6 zaa)oCKEaItqrMd=YH@H63#YyqJ(36m|G6w9oMHGwoXjKYc3|QV`ivz#|H7Ce%%G2h zv3ObWOK!#ZAoRTZzp5;N6By#2Gd3_XY$3vigA)_}&C({Gl)nT9ERDKME=xqQO^s(K z_tjhrVS3nO8GN}&FR#%A8O4Yh4TL;3K=wjrlh#|X`8Nd)j_U9vI?6J&bl1Kbg4EMs zt{U)VcKEUWNGZI}5eEmSS+`$)A&ZXxGGO6i9}?n3jKcPB%crh@Sjm13Ese5YQ=Bqo zK(WCbHg9dAQXE7nKQjQ9!o>wL%z+rv2bFI+FD9_F>`8S#jKc)vJ2dOM#8F?r;=v** z@#qLgC(rr}2H#(mQlHo1F#czb@DH2kgICMPl}K|@Y}mQPr>AYmAfZiq`Q&iG34&*2Z2tW9|_^Vq9E`WW#I+!~CV+f`j?!K+M_ zqo)4>)KVI1wkRzYx}*8{rjL=L4gV+qlS{y2M-tvEEPyS;HkZ-v)jPT{;Slo3 zA{2R0b~wSniRc0Z0ainCRFia$l~9_#IGn&wYY<#|JmR;r0+vKP+MHGgHW>Y{(o#}V ziVH_Vw=wCSda&5#z+&fO`*LeY4=#}!ja~jze)=OUyd4JNT=E}}C=Y*PJs~Q3BF}y+ zPqXbGfOqsS&mG5}DR(e0JPIR5vh5V_tWw;BMl1sp0a=B~H9umBb(Eo6S@m2|kQhiyF?g-jpA zwni9bm#@I0ha;UB_oSx*5z_n8#M96Z&17f#Ql3*PtT@57M_V@qx;RsD6mCrOJl~+;A=Wfb6&PO;#cP{}fA- z+-o^p7u28|!R+aEn^&|rSNxAhs2b;u9B!ImVZ;*fG)_YEP2qMfH-FJ9144eGA^7@} zW+t`wCH;$Te*+Y| z1odlb8o#|dRJa%DP-bwKaoAR5A+M_JGOM&BR^X(>;0t7T~wlP6k!0Pdip*h_0M6d=Lg4Za#9>hk6$|oalJ$mN6!I zE8gCc%J+>B3#*C}vAKE@?FasBFt8sA5;H=bN#LNOe4yzkY3rcE2z6+6b4ZJU;If%sPe=vJ_78TCMPWt+p8A&ZV%7+_>=Lv8Wab& zxfg$MTL;D@hl?$>c{sji0?kCqvLsZ(L*4o}7wxhTb4jG2 z2FX5-1F$=j@o@@0q4ZIUa89+M8lx1*HoI?431m>Ey0w z@avN@$044%z`Kvq;eLg3KZ6zDj1b&eFjlz)><@%=f3+>@8{F5}(*?0N`f#HI7fIFB z5}~3+qMnaav6cHw!zf)*8SRt2N)(Q!V}5 zEFq~lpFpmK=ZBBy>TY|hF_~|3i+(E2Q@EW{ufda(Q=Zy8cxuoicEQT_2pYhXyXCMT zrc8`T$}UjnBcw{Rx2j|5P>eFpiBgB{rqy8U_Tjy|#|=Tp>g)W>uh)4I0~Y8Q*ow9k!0T+JNA0Xd}D3d(POwQ2>Db=3Re ze3zt2v=pCOIL_nJ_E&#LA{}YHOJ%tGM7E0(U1||oS@HW$20BX$qP(44*Jw|cr!b6< z6_P^tJKxTMqBwJ{9b+lVNKNHSN3J%0BO~h-3t8atva@J#)(zX24e?N-FH-uAqWHyo z+u(oa2&aDFe3cNG=DvIws-Qer$L5|0ud~=-8(4RL+MRZUoGCBrOu#=(a!>Z*pXasegI1kDIeb;HAbTj;{&nb5RKN?XwK& z-*q3VgiNG#FNCTi^fhTlgoaZtGMsxIhJGxohnjDouA5}4A9Iw(3-9%7vx@myeqPtA z>Z7!s(Vd-tgyO^)1v+@iL6ej~Dy`#hecoBpP+o|(hlGv#lj{!{imG~UY~+iH5EIjq z)e#k7&(%#kNo@%#Jqmtt^!euQV+K-Ljizqp$^?m-6iGfW6#v-#Bt-^=b2k>Tn?cP{ zM{@pQl6&?!E+2V$aI-~WS& zXG^_IBLI$`)SLEHUOCj=%Cd@i>+HyB5U;S55i-3A?!E@@hYX0;0e8l>psp?D_5zHV zD@jTD`SQ{M)~zDx9@ zvx4Wrn{mftJ*>ugTPgM8BxwOGSvMKwV$UulS%c4`21>_W4b-_;&txC5`5vX#elWsm z+Vh(nFb)mgw-Aa!QN%<_AqO1o2nSQ}$q3yejQ{+o8a@n!(vTTo%$yllS$? zcdMsYZs>Trq|N(J{4Ph;9IkN@Eo5ChsP30GYb6m~xQuk#q(5~m(d-VmO1cRF+hI;J z40o-L7w8vYi{n+jaX(k2UvXQi(=PgJ7H#NDU71QQTO5s-mkYpXe*!Uzqv^||Imt`) zJ}rEo^IVY~Q8WX8>AEn-5GX$4LBe$F8z^qO_vq5KH*T3)YZUX_Di{`WE9=2~3qt_g zS;oi3BG+j33pBN^aqIabYhwfkDNQc6c$$Iyd1q)T>R+|OgS3e*pdiED7uI@w>hRdvM_bJ=` zb2_Qq-DImM6TR>7-JH)U-3|HxVT*Ua%Gx39vbuGq&%D+5@oT51}X`6=1B-i>pK#}|9+JSb-m4QFGJaTz@4BJ=tlSs;kR_oDk3|E?X>nNMb*r(|BQT`z71>DVkUwf(Vx-by> zR-I5-i!jPZ=(h9Cc#{xz_*x4-pD0h^_%hQ$4x-6VMc1pw4}9v9Xr9+YyHfZGM~5(t zRd7XRVm?;bit%LYIxMAT@SNzHZ&o{Zc`mv?IH2>Vs3DNT3%%g(BC42Qy)n7sB|~i1 zKKE6*FsCM=l7q;?o%QIW6Uk0ebmdbxH-{2d5NDHA`7}ld&dl9C>aJ~OkiND1+aJ7x z*mj0gWmmFqG0^^C1sWf7!rxMh>w`o7Wpa^}pY_4^Pt=9)r2`ys%Dc_e;P9`#rz}W` z;KuXDdLA1iuvuKDCGilX@nPW_Ej^Gw#|jm@enuG`U|s%HzJLELiQMZ#{UP-A&WWT* zPWkn*S*Y;TMKX@%sX~@_t@@gWJmGj9gTpIC%*fRpH98UP>5x_lGvB+Q7RXM#s%fVu zCl~1F`&7`~r;P5KwS^d+MVvR-v#B&%lYV@&%wuCJ5QsvpbVZ0y&s#9nZEIP_)yfG9uW7~C71Z;ea_m#NNS*3 zf#`;RdtjWq-^`EZCA@&>ZqW~fe|G1i09}0rOS0&T4)k%Wp)A!2d_waRqjXALGh_Q- z-3WRUvy}A@$5)$2EEY0dH%E+=@D~z8^O6#KcbR-w@-~Cs&a67{0K`*~D6zJq&46&l z3Aw=OQg`(GmX#J6G;D|F`xUAh4T8Uv?0M->e&HECuw8czfFmA|_AG|qhpGHhhKB^! zKTnD1thl}>1$l!#T27&rfV^gMWKb?!Afg!aB-G!jp)-qwcmJFs$z(l9T)!!}MTUr| z#Vk3{h-l&NdY6a%{PL@~w?V%GQf3tVK~f5AE0Y`yL1*OhL2rP_+w;ke*t^@f*qb0K zbm&L3uZHl_QuZ~0!SXCmUh>$Y_rraQKEmEAM$j1KAwv;1^rZik2P29pFn&05zBo0X zzZ=3v7v1{pjsFQbANg#?VlC^?`e_SFsd;+7zT2-Oa7Sr8YeSA1LIz8>u>e{aobV20 z($y>V39KKDDE9)Q>AgR{jv+};1+T}K0Tucto3|JuLd@e%d}}|dP(m<5NkJiq0*k9r zcrVr@k41nh21Yj3hAcsA0 zU1RA4FOgST7q;okkXdZQ;^5&&Ll*%0INu}|<}1Vduvg_fL$x+kUznFO5Hh=! zWdTzK7%UnQJ)BLTL4G7gcn0b4aW9HihPElsV!3_&8AxICW@Cw#X9mGr4Z&hjl~%f| zXAC&xNsSEZ9!r78mPGIB59uh$L4TyV+tOlcf605)X>zpynvbsIaa5D%-=W>5*^HJ`0NMKvEA((%365$Ij~eA6L%qfxgFE|ewiTciZ6**#&ZLa8F^FSN zoVqd57ge0pSD@o&s{r(W#yPv;iSog$!*Hmeyo2@I#mH_bUE%+NLA26^d3)6*`&~zq ze1k;+Hyg?x>!?t((=wkCTt)cj zU{)~;?;DJ48vc-QEw?(9@rL~l`X>FV;40t@_u1FoJ^~{5;!1>Quau+Asw9Q~o`?W} zot-0OQ{;T@E!+an50dN3Bn24>gTHWHOns365>aYoF0!?dhUw;^F@|=AM`1tMP8JXEeRf)k21GjARxBL z04{Z6^{pV3ttdnk%iX6ehJWx&^(o$sh4|CFnx{O4dRRLc$)j2DQG+s>;Oa(NUQu_? zD4LT90qdM)g`}k^d3z7pns1x5axci&+gXIFwxnCrRAP(F;MPo^c_*4F5ILM(?FJ}Q za8)#PFpHt=s`jb|AEe%<2|LLJ;JG3u7`l&*L2H_Wp*aK%LflujoA)uWKN;3t#5QHS z;sbeH(l854>y9URjxzgwj|CNFB*FhJhhl;@+PNG>xYkcq$S>)`P*}>0n6U^znK|I( zhHpaL;}IJ=K+{CXdvd|;sM_byT$9tkU6ewc-tvnd!B9dLUNY2r{C>DDuv%rxEDxELMpqsR;p_94LoV%`YO6fsOn(=n!&3b}}SYg;obUAlwz{yz3J* z#>uY%ywLZ2oYiGx$UcCf4K($dAj6@q>?tZAqYLrG4rUEtoUmc6)jm+}*l>`^5m}HF zftMXCQzCzM!F7?LIr_y&D#%RGQf~yfwM_DC0cJiyc@8iZZxRZ6G;+ z=$ZWEiW7cDE%@ow7M)|1H$`Oma8O1T#a&dRlRC4CymcT4b*JBmH7>uN*`w^Wt_A zAcQm_pISTKGjyH($>{+w4i#i@<6uU7{05oDnkdlWdEr=krpA|=S`hsVM|^35tp_G* z^H@wjwj{(qW+oR?L`@gP>3x`fbm3i zOax++VTBL@>*@uej!Y%!E%y= zI>=+gvThHd5^ZwU1}Y)#$Q0JD_C?ez+*3TGk8@5m9I&Q^>qmj-86Q;DX}IB>a`uk? zB0=Ue976_$)9pZBLxgj9I!{P$0Bji<7mw2fMWdzAYA4rpZv+C4a~kWKvvPHyqlojl z7XT)ykMJ_f+?O>C3a^bByNYS_cvXe5;`o&h;V8@6xM&Q;$N<(_OoaHb%cXQcU4)l8 z=nSKhkQjp*$o&@kr2%w{Sze^eb3$^kau-s3dqQHFlRw&9gk(ul0^VjiO^Kv|`4@s@ zaM74M?1X<@OM8!18=bZ{`N=P&TS9cxRX*o+nU*yZD;vDsiryq;hYwpFgql}S8o%xaZ0zi=5)-H4Z`NR?INzN}XSqFDa1=t6t{3z!6w5JZ_J`6|UBEqdunq{lZ~ zZjNY?Rs!BVq)3kZI|~yU`+}p)04vF@bcGAaG5tEPQq_CuPr!+GE3&OECz+gJ-LY3K zCJK_G%*KCjUHtG$@$`Hh9T$xgRb_6qk_F5}ClL-ORROT%>hpjTO-C;rWh`AJ2bp*) z>p!Hv!satcWhvF#tU3^pte#zxUL`>`m;v24!~}%R_?Q59eqNYopk%lkougK5QzCWTJWDoyaal(zZ}@=Gy!meRt@80=wHb0Eo6!l) z9j$yKUmD#50h1{mi8J^{APC6kKdmkuHBC7XW4C6gqU^f z2IebuYLWCBtp8LPv{K!)={4H)9#(dqSi7#c({F5Us($(M6Hkc`w433Yss2XAX_1l2nX5?uT{}5(kX)15@?aWrw;t>U+oobidxwYD9Uv0?=syOPhmlM2kF~sJI1}FSeEQXhb+IN%F|3v@2%HkKW95lFP_6gVdB2ja5nee_+rvTWD38yR+mhGiNV1T7 z&3?3LH-(_kr zO@D!*UD4xp8h-xq7FRgAyi586X-JYVyT?_n=5;~tcfl2X`nUVZ>l z1Ip~z8GIY67iKC}zY5?Q8H2D{se_tMd;C>SMWeJH9qSd-cudYWdfoO5lG4dv9LI!r zNoR{1_Md{}S(_2CMD8ewaKoaPq>>`x_D=N{bq#6RnPG7cC!v3>zCHacfM+z;4%tr7 zN;kXnu*}p`>c0#Nrtl$NeSNvLU$XB{!R&3Ua5#jSP!9{QKcX1lFNQ?dNpG#0w3u(z zx3&Fp!@}wbsUMkMb>Ec!U2G0}1xvG6 z_Ew|+BInM%W61P^fvkJh?5bs7N?3T;(DOPA^3q(}#+p*#$k+g044Rty0?oOb*+wKJ zUp%U@La<<7xbac36~I+C1C8tTAf-fRCp^dc1w7c_b+$Um-ft%vxm5VvPRLO3hac}H zoDQ^KorM`jCL@Y%DU621@qCMVtiUe@v!VMMnt;Yh&M$5Vc3^!)!qEKVX-q!_gtYT% zn@urTd^tZ*&)&XzpWRDwG2T&xo2*x)?s%HVjdyqU3Lh4fxiRmgXT^Ysx9%r`)PK;G zgwCZ10rGrm0AGjm0`6|G$n&f|jTJW^T-osF)Efq=F;kd2$>m16`)`Pa)MpiwlWM=- za`y4BD6jnCWX|0znrzTNZJ;)lM5+Sz5D5X{0-{2O0S+>0`G$zsfz9gI6~5P}%M7Nm z7}xxwqBP9+bow8_L)WGHE}yf>k;WVNh`Go@>8pXglIjzZ7g4(9oo>-~r=1jY)1Bdz zxvD=Avyuf3Z^(t_oKQH#laOb4cJ|9zEzRmMW*U;?K%PGl#gv=D7g?~zBD!YP z%K4AN_zufz)8#K?1rgyu`abvDqnWw8xIe63whBwtt@O&k7aRWpnx7f)kf@Y9rW1HN zt%+_s`NcWfg{Lg!Cqv;q<-{-*DbLnE)l7^nJ&RSF4_MgE|MOj-s|EIWU@EJPO7>B7 z8N!hJ3NM#l?IsPkg>RQOnO_BA^#HmqrJ%2$Ub}x75fvr#`tlr;kg#nHBM4b}c}LB8 zsJDcKL}?ZlQo!9oX=S=xoQF4pFujr1F0}GGEVw1`kxMvYGmNRi4s%-NDq^1`_&usP z^D0;%_IsV8&#^aD)eRHf_vEuOdb!9p)$UevG43r+hH;@*n&8t}PX_vnTa4j{#;Pi8 zcw|f|Lqqbgu(0$+L_|cT*s-xO86~C2+WLewPqWRw2<>{y1jh-Q4CNfp_8@;k6swss z`x9t;#rA5#EQjS31F8E~Ow(C6I)~TYSykWX<;xy@T&klPg0syV>4xWH;JV!kVYlPvD01P2d89YQzBM%;e-U%Q zH8(danJOzN{CcQ%AQK-~#JlZq+7he$-Q;;|V_r#(Ea0Cl-7{0Jm!S$z7BhZN{NPb% zHxYyKOrGK@-Vm5#)MTLuL`W{~xDvv;B6Zm7lv*~4|K&p-4vDULOL9*=RjM9k{Qa(; zO>?iD;Y49l>vU#o=0#x|-EEF!uz>J-47H4aM1m!6)C3qC&ewxJr zI$dcn!{Z5pMcHBgqH}fV`$ZIz;uqc(H)Z+>d92oX^0-M! zNoI3ZCd7g+WtYOoAbNUw!6@pF$4+F3c2E-_seZ(;3ocvmqDEp!sU?sm`;za8LIaOp z>2Er}WBTE^=vf!M+e!0omDl|R>uVeN(2Uu+$B_XRn+2O;rFeGxW1*pUQ&caWbT_{a ztI(Tl@YTUJtjT&q2rP3njXNQ*;1Af^Vh6uQ@NGp)rYq7{?SE~6H6F-Ai7bwhCbsi6 zz54}+@2p|w;ESWWEv2CiF#5k%w$sE~SYsNp=L?saS>rE6Zh z0rDhZ#_Q6j)Te|$ZG=KwqLO&ku!m8ek5L|LF})G-WDNWt(@fSdgMq?gDR;d@Pnekgz~qpH3u0+GFQ@d*loICe;CV%^Ih zX#n`%oXSZBv=#giUdDL}{GkSU`%Du5_wQd7DXE_|(7<+9uR9Zk_+t#;6S(Aq>~d__ zMZyFg0%THjSXvT`(-K*#;^kO*S#=H$2Ut=2rEKeRFCn!Z#_m3k&>5YXspNTkQZQYr zRcaz-!MRj#l~gl2f?hQmC~S8)Q?9XS8jML+tjUs+#d;Tcp~)(t^!ZJj_|CRTd}%W^ zTo*~V)tPD|Vbst4NU<{_?Xx1qv`_L$tOb(6m;`fRY=4u>osokSKKooty|$N!!~OlD ztU|+fk9!8o_jB%i!_u#z6J)*a(WNo9SPnIeTcNNZbd~-1G{yW+<`)Vga)2!%v$oiO zy`paMGwQGKwXY$&Er%6(gK_lgFmOFTxT1{~5jHCFIy9j8>f?acFlgTrBxnnEcR0MB z66faT?p61bs|&t})!J`ihca@3=>@llv$A0N~rU?t^70=+k-& zb(7d2_H9O*F~qJBvIuTewYDy6Ahx4ow-~2f=!A%RpZ!5LRc78o-=f(ngmz>^B|xHU zwXDa<5Itc?fX~Z~6`6cJMcLTcD7Kod&?S29Tao%vf5#dnLnucYK{uMiBeuKFQ)veKsKN>hddiYAc`--}#hQ-~9Y zPZHE^t#vup{kGAAbBFbYlrMUwOh@wldo}A1Zpy(IGrPUR8;+*`7+pD~VOGWO)NWTW zSank0ZAOVY1xHgK&Q=!fLyMsBSVGx?_B)G5-brY6#uoi5lY z@ngBgd8z@dx158*lPgrD?)s@Yjfo1dmXcIrONzFI<*Z!rr~V(`ocqh&T{)nu;qGX@ z_MZ=NXJLN+cqktI6hJ*Cw6?W5oWl9f69|mHTdk#-B47LSN|BCJ`zn+!W}FGi93NNt zpz#|&fz?14L+JOH5?t6k_6zoz8$@B!2lDAXC15kuS7PHD7juX&#|A~?6;o~3=+(xW zM1`rvZzI@rKD&6pW-V4`Cw=j1D#G>7EbXt~zD>Y5JU+n0$*C^&a|lF6-t2}d3Q?4i zv82oK%>}$E20FU>@vrsu^{F;@N6X3l&;!e2*jU!JiOS=#k$ORiC)0JL~HYo3xanFUdN-u&;R}`o56lEU+&;5KquQ1jHMMADDi@_8DH9MgBVM(NmXT=jvH`P;pHd0c({pzH_3&;e#Ik8Ep=H#TT3)Y7Dd`VQSa zi*&3ng2XwP(rpbk@u_uSl zcy1^{&sWfYZ&fSc+VTn$Y9k%a;lx;pKz2GXa>^y9P(Ne}KZFrA@>#o4odwQF8gEo0 zi(a81>3ih04^5`MXa{rEc_%8?;&@EvWQtH2GZSw+*uba}fjWF#^V`?ib$m>6q2gil zL}r~_LdaD%`jcNT`vSZ);D+ol!={e_X#Dw<5OnXuA8xd&+>0@KZw4}f$;x!_^+9*b%x#-o91 zezxAzB3Xr~!C%iBtT9do()%xP2o#cs?Dvd6K;eQXr;z7st@@$~<&6D_LGCi&ME2t} zSa*X^0A>93%kq-`BGNxG*~VBJkLX0K`8u`V2U(TRWMLV13N}XnUAkYOP|^Qi9tK?d z@P5VnG*fw*+M}tes&c{Z6`bp^l6dP*P$g`*zzbhoQ5v$TiWGVOe-<{$d!?io)8pgu zHR_{0pD29p{9H~~$^~iue8*=qOh4&(v{^Qp^WO+0&H$@Tf&bGsf*1h)Il{l&{p+8%mw4$6*Apo|uqJu-t!C=2#28=mWVGYbl^iNU- z{idp#$#Tu|cN&$38UGTPWWEh07N8M)P`SU@p6*Qgpb_>tk-0?ZHXNTZH#0gK`x;<= zIs1PteRV)o&-eDSEU+{SNH<7GBi)UJgd!y=C?(w?yMTnGd_X{28ly?1P1R#o=-xT zfU_<)uFeUhlW^4`rW4JJxx;HYqju>mk^M>!^!G(o|se7R?STBs* zs3JXvG&ZE}#rMshPu+^dUFHURa^2F+u^tGVM#CW|gHhBnpTU~SEadt8PIu-@WH?qt zM4cw1Z+W1txdz^M+#jm_j(4F2>hW}2j!PZwjs9WOxUrpYf#a6#eql^&E{O0wES*_u zbjhq;=+i|4T$S?fU6G6^EAuFi*F38r@$2935)M1G_;bZ*~4+S=&fR+hK zi)(!o<*Bc!i-7R?88qWnze+zSEH2(6(Hz7hb8k-Veq8qG?v!}c`!-00O?vgmK;;4si~Kfd%%?yRc(^N}36Bak}Y`?m;4vcDu6d#uf^=i7B74nrwC z-itodV|63)+KX*|B_QxFe!vgu=kDILALdT;Qh}kkewf7~l1KKw>MSD8q7oHu(k+Ac z)%NH7B%3?B%XD+)Ul}sLTIzW9cO{D1C?YiMzNRQ`Jhm(^J)s_OM5<=enMqw9Bv)4< z*T>UN8r*B%;e>|ENC3-3T^A&`7Fy~qh`hIF3>q%*f2`P1v2%5a&RY8`gXfYbzi~Qn zzmB<|UO#abJv^-Avn?2l+zb21MCre()V9o?D60&(ue<|nvTZ$pL{49;E+T5wz@6hi z0GNW7Fc|g5w5=p_>1~mySofUl%scKacY{sj_K_3v-qbI*Xlran&!*ey&fVxlqTw@a zP(`?;dvN&Q7{d!fBpwCrKq9kVZpa1CF?umGCvc1B?@|-5XRAFSNGq`LVlg{SOS%{k z6}+R^gkWmn_w9ca&eqvaG)!B5tnd#y+WcUSi=(v1c)J-7x~2E4uE0M9K!b0>h(EHJ z6TI#M1jUpi#2hz@h&EpuUn@V@Wq%59F3n4EEZvFDQ-LZYlAzGPU{N)37^*H@R zmUUcnTs#tn2i2W7t*vy5r>Hahz2B#>dI90T+tw-HT3CVA&<6V!%lwc$#J&Pt??i@} zv*F!l7Jux>Ga_br^9FKx5OhQVKrT0HC`Z@4){YjT;pe~gh&0zJ=^in9p>wQJbXYc` z+kQ*0G;Xt47w~?jpJZ6PV)t^UTZbm|t0Tnm?vhnDM|YsfvXUWZ!DH?JuXY}y>V7aK ztjNBrtHY7WB5mrq8k=ymdoYy9bV6mv&}cobOVHtMdj5l4o%vzmZg$}Z32 zVj_OiTGgG^n#?-FzF6uKz`>Uj9Q*Ff87M1<(FL;~5+9)q#+#|mR$~QIK8)TUk!44R zVZG?nbUs`s07kZq0}#=wIj4aE)4Phy%HwsTMWwU%`D(EM1tm|ur6Ix>q2cv|Q^mFP zP2?$s6Lv0DTPXluWt=)a4@IUp0Fl=lQNVmAcVK0$<;Dqf*;tS)cA)%IKb5qu3NO-{x`HxW&A;jgL)e&&` zLX71F;H1rL@d5gcy#WlG#`g@dwhH#e3e!4=;dEiTe2UMkA|n4W`7dMLh3$DcEw(nG z-!f>Emzdx2(eZ=bW-k=)gVoLWA8^poSINY5J*qSld%_@jn??m`>kus%R`2b(KNT($wpM)a+4rHf?3I^F$wtz8Yv9!2~L*kGJ`aSDvN zoGIuGx3|ClPk<4W%9jCTQdYThjV{_CvOj9O(%wDt!nTbc!-Dupx1p-rekv@gFd=6TxaKkpRmi^3?@(>?Y-yiTkarJp7lQy({*R?|dAIrS zhm0feJm$gOXId3>GGGrm+zcD|q{ z5t`vUl#lXs38}zu)nV?(9RMw1DJ?paX~ylgI0Jc0N(36mUk;F^Aw6YIP7KXFS?#p!_)Yt3BwNfe{&U zwt{EY;#qVrFJ%rg!XojBJN-xGWAuv{IBG$X^5Nu-*`h)7C(A0eGCO?8VknH1Mq<7| zgVgNPvk0{Q0S;Bj_Vyt``Kkd0Wcu@1fd*dt2$n9kKK*DX5_vI#ykW_fKICBny!<1u}#8Pm9EXV84=#|t=^1{@+68|GcbWv`r4>RBxN`jS6_L0JZJDBu%AMCInRFAf!DsFiRyt z5Aq}WajfM#fDp6M;~1NY_tE(9Ksb6_^_^kil8ys#_*#;_q!5 z#*0AG+K(qsrGIuHSqmqX*Kd>N@RtdHkK459n>m6p=krbvj_#54$77HpU(j_XgU}#| z5h(oBZURs8%syuKq1m`wN{TDlN5dVV@!R{`1^`{-U7^_T1V1l!e-47vB2TK;UcDHD0S$T$=Jc~d6QBe5=2F1KLy56J z-!uQlOZ?L3_v~H}fp2sHVxOC<+nV;?>r0HJE}r5e$fg+BjtB!*7G1WE8p_kUDK*G? z8sGqVNUs3k(e&e%$C0}{ce&(+yVLhJzsM@IF8>ACb!;YVYT&0GRzR5?77?^OX>yfp zAn+elu^PyY-_agq_=q8avst1C0nk`cAEAD#cBF)rypQDQwIxFUCe6Au+KQV3pJ0uHEfu5CJZZ` z9Tt@nJ15}8#6=_WmvL%Xz*_oJtRU)~YbkxMw#l!+3!X3^fF*qhCM*A$A0|{w5<_~f z6+9dMr+pFc*_R!|9UjLhO{e_K-IEHpJO&)q1gN^}f;zl`a@U(YpHCsz7l5vd{#ezj zWy)P3&E$ihUQF|Hxg4Jjf)4fBnjB+H7*Qh8+NeFl{=BsMKRF)sjM3!J{UUy{FOy34 zK20YTGRg?oTQ-saOhyCmFF??u-LJF&`}stMNkcc9k$4X<`oSu*LHZh11{{CA z)6~7{D3RHSfQ8nbw*@#ro^PoWgvlXPOTCEr@-i6$`Q?s)v3#|m5=I;oU*ChnR5rDk zQu$yjshe}c8T>WwU;sUi08l7vY_W!BW6^NdgG~9J#hg_6HLq*c=m2p3I0#5U=xh`( z+n2(#I?gBehTJx&xvhJ`^6PL2sY(k%bX*8I-Rpk=9&6FYA4ipdlcJ}HEK+I)fky#i zp|O>OId-;U#k(Mq7ke#KPX;iq!#K%ABj2hrU2j4)7WkC6Ticvk(aiRHB zIWbD&OO4H!upSA>B3U!ROtS|dU=D~qfAmib>w-3-(_CX9lXurqrsr5Q$8?Z^E^fGt z?{+$1X*7UGPFd=FjEZHE#;MiA7JoUDC&STsxRHw-pZR1v#S_i=z88JA6l0HJ1?)cw z*si;ODGiDnw0U|qo=Wil2$_aFxBwaFqe`2w)5-ED+E1=!l3skz;8}tUQ=nq=9?Q|! z2AnSXm4S{G!%xrD7C)@NcU&mPBqb+50!AcrR`JaD*+58s>O*f0kI-vcPDV+WN7w(w zQMOPY?Jng4KI|~hC*~Wk!#Usv>7G=XoBDBw6xe z%H{d}#`^^qWbmtU4p3L-8L5XYo8SDyf0esbBMQ@>CjNCSjiK_~_%5+zSmoIbk*5$M z?%_cs3}q7(8*~6@&G#@%Hq`u!(>~s|XRREdahZLYShglJrnH4vBl)oMWMV#tYdILI zbsqnG+NxsnaQ9ccOVeXM?&m`(A4nCh^rvK(MZ4ZGveXc$%kX|iZ1=pT0QCTv`5jg+ z!T`Wthe-8)WE2u6bdlmbt{Buv@h1%Iwjasa8Dy2~fCvOO-@`Y$O(XtD-m)bxeq@!& zFyvxm^R~eu>*=b=rU_CUJIHeo{X;@GMA@-W6VbHdcOaXNn3H+8GM|4xm866?x$YU3 zDgyg0s(t=#i$sl=JLMAHwmYee&%3g2=gN6>ZV$k9tI8hTI*o5M2H64RWTo%zsiJK( z4Oz+-{afe7`Hr`Ti_eqqTysN=enPdAUH_qvoqa*J{oAsgQHLyKIgWbwN4Ekh^yKBD*91ywB z$B!h#(WHc9j9MMsfb{1#Z+<&h?`Zq4(2~rZIP3?U)o+<88rqG=`+pezW>$*U$UvV%LJ{ zD2>m_m%px+inQK2fPNZL(7!bG*sX~di%7j^y6e536cdL1wD{XTQi%*pUw>KQyC%fs zDpjjqtS|4Q_WU6w#N21<$t@E84Ue)>>h3B?lrL9bCkVi6bI8i_-W*lR#s$?54ZjDL z6jW6Gt>3U)*8OxAUNqjso+7)!qV*fMZKjD)CjD6~7p?VZMS^}}i3LTkKf@oG>g1PCZ0xF9hR#0#q4~JNhd8B7Ux(F|I>ou(=?N3(!goEg4dEQg7%qt@D z$WKxpyN;|sj<#Tq8D|M<;{#mHO zj$vtS5i?-5^h0AF3jNJC<9x#3zlZaKotR#{P|W$~DCmMv0nL4rjJlybRvn*3&R0UN zoc(UgNCa8~@$@Cqyv+^sN>?6?FxXlyz6TMGV(Q9|7UfU?ICvX(o{O=~#K)>@WF8qv z)=^95S`(qii?kg9ym#7oX{=uw`KjZ7L0d~7G6I>wThqz|uCd(ZEjAffbN=!Wy}2J| zupvwj(9FCiOdL*Q=@y@c&uEg>r$oy>6Yqoy;w60duu8B?!1ov%JE4U=Dtv&TlkzNd zdh(@{Fti8+jdI1kY` z%)YJ!=6tG(xbsL7E2cpRV1UUA5;NEX zOvWT*YU@%2H?5>Q%R6oZWk1QD=csFen7tYbBxqTiY_>r@E>I`VkZ@yiUdvt4NEf(? zT>0@SYy`;NSt#S6T)nm63~v+e|0zQ=UWK+}Mt;=_bCD)Oe47s4Bk#@f`2x=hmFk82 zrm92|eP~0s#$NjycN3fKcU+%54LtbD_0HjNI(-GKh*yvBM_+E#k95&Dw!anLe(IFh zfT60p5l;>yw_~vOl{;VZTuQ~a^!Nx2?PNDS=N`TLfGA>OGUovw?m@|X9oyJLash@1@w0=O!+ucPK}}pAfr0Iq9zDQun%oKgpf7aqUJR(gD1S>6G}cq9i0~*x0-#>T6q4RN z30Q_0YC-guL7Z&G!4)&eAEn)nOMz>UOyFD`g4#E}k62&BszN4l2~kGCxLtDqtDkN> zX;rs%s3HudpqT3vKXhfu!JA{uAFf+RB4;&8PA1Pg$2Q_e)#nyKq^ULq; z2KBnBbtRg<^8laK14=D7tw1q88CkFvY?+3ZrlM)p>BSr_o>m64Ct zRQ>H0!+obfYfOZC9F3C8eB-fKeaA}K7aeNk_D#|0(yb8i(jWP(VGt1qyfPJs1 zlwR@T4e+42=tLdzn3M+NovYi8pQ3r~(1b)`XWHPqh{_^En*Tn)l7Rgod%K58q61#{Y4;02pnWF|+^}f}Z#e zo0HES1NcDNH??aLy80^GP6`4gGU%5zyp`l`VFd)5)9!TF9y~wU>%HpJQ=u&KO&70i%Q$j?t@Sap7#HKX%6bX0Ls|4I7PY*eV;3`G6((R`n!T~$$#lujeQ-aeVw{P6pq;3Lwv?7z_p z*3l3+hkm261n0e8@6ZPFFP-cUTLmTyFYeNE;VY3H^p1HaGcAW4?iR*v*=1k63PVdjj+{^A{nwWd=e!y;pTr95GKI02 zr-D3cu`}^}m6ZIyXkU%31U7EO?U_XM(Sd$1u08X`Y6j%X@W@~??oqOSvRT@T977mu^lXaLBSG}_%`D3)D;~id8CD)Wjg@GbwqbD!m`Jyp+$mjs zQ9v{$4gpl<*+|9~V_(}46W`UdivmUjgu$dSwbY*Lq+E{kn+0Wau_-)4DDeqdSiDSS zALcDJkYZhd1eaab^M9tXD8J01)@>}--CYAQgMo0^Z zl-_6p93sHiM7e)wsxlXjNo~7Z@<19J7K$&ZN>?vr>PKn$-}~R7zZeu;+_5NX_MUmW ze!IB`$-BQi^dBy96)T$}nYZxYW+mHg{e4pRqeKR-iJKV~D2l@Ui_@dTQllq81_|%n zBN>FtjD*7jjmZ%#@X!}4n&G%iwO?0B6Z)gqnD2wJu?fz*(W7z*QvEJ4>n#t)E#4d;|^E@$=X-U248rio#vMBEz35U;s2fHW>w??S66z_jJYe%IlW+OkHUia&aXyS2@RQy}wlRCA$uG5)G*#M84!KH~Y#Y5K6t0KYyAb%D<4; z@kAB0X}NZ-=)J$1DH_4-cI~)*r&=_CTY^pt-O@l5lWO0~pY^GIeBA-bsj5DigkPT625 zzDTsdy)-9CxY?+7-{9^R2Q#7{`=r|G#@YIz=$bs@&ThSGe(9kPRv+OkUx?Bkc4ULU z?~-$?#>L!DHm=E4Qu5nO*i%r8FUs&;8_8A`D<_MX20PPX5)iYAX{4{uGk{wd^hDz8 zkp-(>nI@wb>__KB={xZZ#?VL)<{@{Kvx%$+IcwwTQjZ5ZXJjl})Jm3)#mu&{*K z3(Y7LnJRE0rN*xx@?O^|=7P z?&zEj2{$Tf-M*}X^4$zdJvy=v+79sLGas&k=Wp4lKKwT?{pqFTPX3>H;*8l*wWhS> z2}rjTpPqQ>NJ#Rt+U?7bdo^dfvdcfD!gi7fsM_n`@m(z&me*fOB@(qj-RWvpdt)!E=eH&9FMBpG zSU~UV(ur2)#NMO!d7ylUK~t+(^O{ZPLU@c-<7T;{K_jbaVThl$l^qeR%?az00%|PJ z$@+CM9~(ioips8g_aH5ct-P%-5A)M!tn;4KvNJiuK#yuTleG1ttd+OyNNXCjE#|e| zViLSV10Ry)qr0vuJGO205{+;db}WuXeX;{P$FN=~{kN`H&+jFY$dU4Ws*L zAqUsa1r`;CIZdm&vrdW&+Vz(qp4F^5rt~SE#$E0&7iLTeB7f_e`7-F3l)r0BZ8%e$ z)nV!z{wX+&#!z}r1{HO!CT4l8zeYcRVe+dWcBs0EH*`g1W>0tgS252QoJsx?w$_rd}UVE?0IQz z7`M47PmaSM&G3GUmHdu(zs(f)M;N3$Ns_fka!z-D+;8%6Tt5 zqCzUe^fV>y$K9P*aw*eZjqEOuJUq$nWVplwY_#EvGfV5mT1Y;iV6MymDb znvFnUU2*KaSR~4wR@ameQ)=sOloCs59*tXT7)p6W&-+;IiZ3vQ{DGh7%>X%+VlA4ppYG_vUFvr8MYZGSbJqG{j<0rAGk=p;#=o zIWUQ`k~c2|Shp76mpa{D9D`9gE6wES9=TJFO&FMpHq(tgP9=LAs&axG9w;wu!+-TN zL7`i+a}#eZk+LNC(71UZf-o%eF&TsnFQRjBnB&4#*kD9g)!1;FF`jC?;?C;MnyQ-y z{bWO&CWeIY!{wKC!!F%nO(Dm~BaI=X5(a4(ZsJB-10qJNbCLt()cJY`Bu-0sVz#9-I&3q!hCC5QVuGC>-Q8 zR(_E)rn5Z=%k`t|1mub*!Ru~ei;aD#J0YwDd4U?6IXhOHyyhalwC309T5wIc$IJgrIC}Bdo%%GhGIx4ERlZVS z{F-W~nfmfCgT*iVKZyy2wtt)0a(CsLFeZx>TH1}a3pk2nuk_s*_`IJ|kBy)4< z1*zt^?hmz`%N+>fh_|@i!=tX93w>;Peyvo^=X&S-$dH6-k~*FW^BYv_GAhydMf|%4 z#E_^;G;YzSkq$DcUjm*%5rZ?rMyLIOaOJi(HHM(ElcOQNV2-8iAt7r{{tH5bqa{`G z>(cxF6bcH++=&vkUuX1shXvgXKOtR*O5Ba9;cVK!sLuNzvQ3njE@mEu3e_ANB5AmL zttPH<*qX9zk~29yB$Py4WPkmmpF1Zlb!^kE+tl!>dAOeaPIf$Z)x*KAq5Y_^pwS=- zo5|V7jXS>Ka)fMj5sNxE?XV4o+qE$^&VDc>FIr9Q7qpJ%5pN+vKJm+ap3HN8^_kq` z^E_{?S$i#xHfOt7BN~iclzFAFdXJeW&!g;~N%l#p>4*BZ5%o>iI=8NO2yJ{$^WiUUATe!=i%JLUx#audV!! zhnf*=UR?h?u-POM)3WBD?~RRF25h{3@Qo*_2(R69p=o?b?CN#4?DL9aFQmfV{?iD2 z7{n40MqV(0^Z5$N_D&*ZINjC9O@t7t6lEN&g5Zt1S=&kC31IWn{q(iofUWL8&2`}D zEa|-kQCnbq__28If!4fZk^%-`*>?nPqpPY4E(Qzbm$wEvc*%2GXtJT3~ z@_*=EURuzIv3VkXHXQ#HNV*>M!PEczw9O;7$#IuBN5gIcKdGN2X;JP5%It}<9268P zw90%o8t$=V=}5GrE$ZEou}cVfa`NA+&m2O;u_QD{<)l0#OcJ#vdKKn=e*exIK2qCzcp2+~l`i85R;j(fcw zQJ9BA3l1vL2(`ZN2ebtx)PK>~w)z73>ob*@BRp`PfEJa-W7DI^!K{Dr*s$|OHmxk& zt#+oQ)1T1{Yft8R%6gzEy#y<%*#9&HWy+~3Gkih^r#oWY%yOpW*oGL|P5${+QP0+Y z-^$VV-6DnjR*R@4aa8TC&$e;N<^K0_@lEwyNYc~l`vQW)l~}4{IJ&z*$jZU7HKWtW z+6ny0;3bWG16S+S3`HA)~;YTFXT9D6)>ho7^5XugpU*B2?QIFI~pN+3!yWRxZPD7e-$!MLgWlo~6T=?;hKTsa>do|&q zBXA%BZ+ZHTD2rRC*m7UqPasa09ou3;m}-!sC%#{|ojhHn7-D>tnSKFPeAjN5>Ba}i zA$jm(G*riX0m7)ZcfqTA;OWd4Jmk?Xow3B3)WCp@7>+Q*m|9Ew6Qbr%1!EQ7Yib~_ zyh|ROPkkO1dahv6J=dbqdn~NC!~Rhehf`fW@a>>s;80$Id$G-O@kdpH5)rt*?^q9V zGuq(n)P3EjcCrhi?;)9S1 z6g4HsIu~WOMAdv>Wcw?BK2}#hOp$854yXQ|C7b8<%V6yakbi%1g(Dvs9|}pIIz7`)8|mql9)Sgj_JQ@xS?CJ?;@|O zD79|*wqpay8_vtL@@Yaf{%7it79H#e9YEx*kMF)mPgiS8S(7bLwDGhGqf9S`j0>|F2U4SKs^_6(AWcNT{AWy`uCP!g*pH~-+f3=+#e>E#=n9Db{5D&1%*_f|yI`Ep^3t!gzl#F@XDJ`k-QPzC3l<|vI*od zW>9;`T!XPvn}_BhX_0D|Tx$q4ZXRE8Cd#MO#zi`{>vvsTCG<0&$DfIO{U=% zMg3mLa{WKTxCsL6r+75*;SV?p?qo|hMoA;SZy2Or_*6%as}2fWzAOD5mH(aAYp0{4 zbXhEI{tHBr67An6eC6I{`dIY`MkXn&te+oS=>SG>Q$|}EOnU0nBxp~hAhO&<+fRgw5F25av9tFYzV^-3~*wQTdMDFE=vRImJADa-#$yFCT zwi{qd=+{V*T)eWPca8*i&sheJ8qAk&kp4=YbVWRGV;@kH|Mg7gUpn@d?4q)en%y?d znm?2n@1AjZ=rqzsq`mjBaYSuSCSG~z^ZYot4k)>!+uTm5Bci>{+;)@w=5Kr7F; zQ+7r+92de7t?*=W^4bU*4n-IoFvzgh3Og*E|8|ah%6~)6Mx>K5s$lnt#85OK-vd_} zHO1OZ?;YSFM{X6{W*Mz{d_;$1N!Xsypr~3V3|dy$&D!uTKPh1=26))uxu)jJ&74}N zR-}^^@n47k>~;>TyyQ6Qxas~k7!mj?+@L^J{WYV1X&X(kE;+3N?gv(87qosNA9a;sS|;QeSs$X-t?{c=et zIGdeY6Zd7vu3~(Me3J14Zpdb-GB6^!*1Zp^Aqn8`{~WvioJNGlUr`IJXkQ!6YUe1! z&saG%qGW~LS#FzDwaTOMer1o(Wo`1_Wq`aDI$?qE^{-#E>Yc?XB*Hns1=-PJz6hto zU#eC-E0DamqD&g_=BGVP(Em;Cz2@`{GxHEB2@izDF*pIT7q({t0mFK!{+haxbvmF{ z320%(fkgD~YrjSX2}`lAt#;M(XuO#08&4;`y-u~AGen=hRL`hTAoM#*-sf^Q|H z*kQ*y16{md+E=Oas*e>95+M;%oL`K_OP39jtX2UB<>Sv*iup?l3ROV#EzSL*`0Mrp zP4=4WQq2mt`!K5?giN4Ykk6W?F@oqnVA1Av+G6TjkH^k^z7LM9r~7a7-{{Bs6Oz;4 zQH+qcibtrfD29gkf9xGhc<@`P#7S)3Uo`V-I3by?!A2>QJ1RoXh&hqc%bHZT$NcxI z3TAiy%*c#udY}c-=l%1&th}_W4Lh0o?mscG)tYSnW)|WAAKa5rn;(V; zw$v&@1_LgL&F{a_cXp}$#p#HpD79fM(6rcKQcZOhZr33IK6juS9kRTnJUMfk zd~T#k3~}oFEJbQOIr+re^F^&yCRpM}HG!M?hDOfI%Kw-kSGL%}OTSMl;;t^DB`oRv z$iW97h^xTcbGcDLKad=nq>v%0PS1zuVb2rUVZ+R4e6hEmRFKub!eEQ}xZJapxr?Rv zWL}%`#sW*Ca7zwoPHj5L*`Z0frR?)t|5Q^lWGOOjFmICBHu30K9?0Lc^p4n(KxI)` zV0a4H;Pu*p*~tSrpzi|cKSc-aw z-rP5xqZ3OigvedUrW&EqaHbcja#uui z&^y{)P4KtP&jO=gnQ?^Iy5~BPN z?yF~)Loo!dUM+H<;i7QUOP!f82}tos_)g@E4BG?0pO0$m?+k{;f*D1F0hvi~O)28pmb zBL=FDfKqAp3PbD9?!&+kxOAU`|F+zmI`E5@s9>8?K`2A^(-6>p7T8sy>Q$);@DJSB zeF9eP+&83oxB|ju5(rZ|2&FuV8Ua;jhh3%BtWqEhd=K-_6bc(gwh~O3z@O1etgs_C z*cFwZhRGr`&`QctF%0vEKXPt98ir&f(tgWkf$Gh z@;A1!V>wcQVbay$SOW;CWvW97e9qsU1%Y^;lFWUxq!NFbJjIBgYJ{b@f?ci#my9FZ zvtP)j2@r?`tJcB}Ps?WqmyJ&>egCU}H7)?*4%X)-gSx81{ptNi;$^9CRm_ynmuD_w z6+=8(|DE%glhu(HJhA5CkK$BkV39X$pHV z{^jU{1d6n}SB@zUDYlrg=N^}aaATgpI-gq1k1l%#IdQC(h5}_wofx|gF>n!lHC~~8 zL838-2PtAMtZP1a1N7}DJ8W}M6K8DWPdB*KPMS0ZV=fo@eJi1tmmR7Ik)Juue#l=3 zW@FjCSUc#26Qd9gK_K4uG(7v2)na102&74#WPqjk7cY+VB6Vvn@*Ys~UGif;Yv4)p zQ^vbrF;zFFN$Y0@R-kqAMSvWx^RoNiC8i3RoCqj)VOBr9|AY*CiVb96)>v?cTmps| zKgCE}9!CVhy6C?2!@nZ%+f6QglG6viK7_k+ywop1D?J?xyh;EKZvoe%UnP`7n~=OC zg|4`}3+waAe*XgVJUA_LtibTw8H6kk!wN+F?Vi&X zL-QrYoAb8WbS&^~8Mo1}(fAYkierTg^u`Gnn==&EgVc%g`@5KEI4#cSF)1z|8|4}& zeIIO{f$P7Im%@ZS<@bWVssP-I`}o2xzk&cvnfZyOp-Ci*(Dd&U**8%?-ds~GFes{~ zcs&z5IZe59=Zfff{hbcYq&;`72r#>-03Zx)AYwN*xNI29o)D8f`@sSq_#D%^7c>Gx zOL4wVBZM2_ar8pA5B4{Np{lCyc~=kGRN};LN(?AY(ic9|zxBdmQN(;1 z3yEXd)3$&74O^gTLrIq5_XAQ80P=?^JZ9TF0p@D~zJ0?0+w42qK>F(}gbXFvh4ty1 zEgVaag=pao%bu-laM9E?u+72?nh1<3-=US-{%&pS{l6?5*ovqS)~vpFf;IbS#?>>7TxB*%#bl##9`J-&HZF8+k+=SkW#sT+GnmLG9d&)INMG)J*(d{yRQU+==9 zkICR2@j~t;H0(r?uY6bVh$9u$RaI5OpO;TlIVY8?99OB1A&I~3OdFh$zMpOy?t_qV zEm02%1b+HJePy$p3CCXQy{<0Erj?c;R6vaF;Z*7nn^$c8d1WzyBvixjQ(gB8Lx@5Z zhyap!1`AEn_4{V*5yT7a{_ej`_on_MP}%%g|DlivQ`6X|KR+xBYIIv!S{j}qT-(0y z*!kK(XgIH-`IX8nCJ}9kM$_VP13O}H*fcAddE#H^F-|ok4wHSPnmwiQF;hf1|> ztN7>JQR$XZ?*!2!dSI~}U#JZS5-dX%Ym|4{;WJt2)L5Z_h=Rs_f`uRIZA31u`xG_< zBxeT@Y%Ij@lxv5~QE>o`wmhCDie0^EFOKcI9&#dr@Dy8F*YBh+B)IRHE$?s5;V$0O zuORMTezw5IG4q0r)SSDUntv4+$~Hv8HJX7<91%hfUdnh{^HTPil*Q~kKoW-VS-%|h?!cTsIP$P`OyX`idM4KHF+9!QFSUo2 zZBsqA*12=iv^=02BP++WAfh3Si}#;YdrrOK+_dXLWFKNrZ^#s`s1 S-vWXl;HRmkt6HUO9rl0lQ?PXa literal 25804 zcmXtfby$?&^Y*h#cM8%S(%szxQj!vq5(3g4OM^;-fOMBMNO!k%hX_cQbiNOt-}n8) z%XP1_=giERxo75{V}zQDJO(N;DgXc&uN7o8000VpgaXKj;9ut+)3*R%9{*ZKQqu!+ zu!7>Dxz&ht@|1GGjIw|dOe-;uV4#+e|Bi6EZc+Pmqix2fY_;(6=j_kh`OD(VCYQ#a zi%rvu@7|H~f1afd&tjxR9cl}rykjd(aUS3^6KA8|P5mTKpI=Nl8wD0J$I+O?UsUUkg(-6?+Jc8x2CS%|St7hp8y6P2L* z{CxfQCI;%WI?S`*oasdc@8LUe0%c4f*hqI_T;Iw4_7OA1D`jNTanT>TY}w$^$I|*j z5F`@b@m)_`oZsNRmPt^~9!utUM*z29ELX)u6=hrr;w3J!0*Sb`f1=l<3vTp z?P$&dbcK7Vv~TedQd28t4|vwQavE2V7=O19LXbd{tm(bi(7eWzmB};Od@*|#+gI>j zfePDrQEcc6LBc9oyeTwu_&Or|d}>4F+|8+W^CoLB9iFO<71->jefj&~e!%B(N=hcL zZpX=`sGE@Ep;e{B9YNy!-<^!iraf6SGN~cMdbd;uKZ1lZhPeD~M7T)S41yfaSrfQ0 zEClu!4fcz#Et%lzW~*6MW|Q!@y@nl~CUUSFhDYnG6Bh{fMako@PSK1fH$0phJ@k+8 zK9wIk;t?c9{@sf-goO|I3pM!i&Y#P-2(hjgLn#Xq9}Z5ym8m?BWM2VqPhXfNDo{L0 zY<5G~a&AaVopUWC2qk5LpIlG>2WRje=&8@l3=d~?o1EZL{zS@tum`2ojK#sh$yeO* z_|22_{&sH>nibpXM@_Av@EHc%T}_9UGXnyfsxmUKraA*1`H%4(v_K)H#LG_@sB>fl zykNg3)@pyxA_SJd0!*7q=496ZYU)Wtm&ngc1@N`(Ko0qtWd(R9zVlQ9Y!OWXU1aD{-&unbprXe|qnbA0phK9P=^I(okWGU@4< znoAPK zmCpbxDu8*1hZ9S&qY2N*4$NPJpEGwf;2Bx}?=!`&8ayNO|GqC~gC^hu^d$b&)YQ$a zJoscEQqQ22x6*##u`Q~LJv<1q5{hWRozJG`BN&M?Y{rBTg+rCAgcm^eFb=q=s7!N> zET$StInW0xU1ZoCmC`i$v>_8!8f&h%)fbuD3$b7<3)`k4~{Y%{Y z3DkKa;@67m=4?kWK0tc=ynvGCJ`g6Of=-eB?{4C1B4I3tHZ0$ zdKq+$WHIc)vQ%CGZrC{DL!r+GdP~id-&ug=T9AKe0O_dl1NBYVId}(a0Ds!*|DS;r ze~yvkk-9^$J(no{6S3#xQs>b~U`GQgEPUw^*H;;IU>siSr8c(@`o;zb5aGYBbkULFt5QW7(lsVp9GN)4kduNK zZUYYs$IU80En-1%st#zY)0WQM%8+a0mdeakmPX&1xqnn=5YSUZ4azSKV8;ZO+y!N! zIK4ab2DopQR_r0ze%G1KPcmdoOqE{$MAKLAVXI^M;yjmCaTO8xi2WCKewp|PTvC-D z`ET(D6gqzz?wQg$eIXci=DC8aeGde)QYH6PO2v>1uhOtkwpR6>Myz6*VNE7bus*XueK8}53U(bg{~w4k=j(1ret%t*dY_@B;-}Vdat-lnL-dd+A<kt2bG@#>N@W8$5h~` zqrWr)>nGwjQfoqg*U1FK!y?%O4wB=Na-mbMhqa6&*mJKe%a-T(IF+j0h$rj?ufw#6lrD26f*9U@I@52U0 zL(g4_AFIm`4yUTj(F*Z{t1r#^?Tsf;jaN-))N$yP^Oysd@PUJecuSW-B*Y8H?W?Kz zr9w;v6I~7XuR=HihaQ%i5=KkzrBPptrn(}bl>p^&?9AHapCoBBaG^&n>5G`|Py*eM zj%wbLT+wmuJqj!qVnSJ3Dv*ScFgtM=#hi zLlh1`uRfVZyMu=aWx#M6i)K(nyb&B8cKi%1NK%G$80=rr)#Jtq2a~M)#RnSWN$0tJ zI5=#9m_Fz0S0UzC1B3l~vV|A_>WyD<{KYeVk_2@MnVY^it_0Q}{UPUCxv zX+nk2v@Ayu2+B0caBd8GZ~(r?yflMJY7BoZqN~$*cXLaqWt4+lZNWH%&sH5=qdV*h znDl9TUSs9!s_=32*<6#@ES$vi502L@OFJ$sbnK18>dT~zj|ssm$wcFZcEBsYqAk7M zT6R6!Vi1p!%4$PWTUybhpwvf-&?wr{?l}K;OshylwEeXAYHW*H#*fAlIgP8QG23Z~ z#rT1K1}Bz1dG_hM@XctL-POnH0|S69+N94 zt6z@7{B< z2()8NobEIFMJE4u=LeZ|st{+aQdrxq>G~RXz}81Ca1D;lQR*B}d0IFY7tHIH=bXUq z{XmR{aYIzL+JBt#ZS(6_XL-oOe!!e1An(zM?JD=LX4L?wZDUMkByjp#!Sg5^QbKbY z_N$X@mPS7v5q*f$!3PqvupyE!vOo7?wzS78j z!x_u0)}PiRM>%njLt0cte2vyb%s32RUABfb!sQ?r8_;sz|DW!+_A$XS1I8u~W zjbrFWw$7AR3?hzIwgu;YX>EMN#cjO)QCs+;u7JGn&zq3WgB3~TRU}&>_sdOAJ>6S@Q!@ z;u(L|#7aAp*vEObvHTs_9DF?iS+P$i!qodjZH8Muk$wwPuaF-bdV4m4D$#^?PsT4aub8b**F~D;Z*P+ zp}#^tI@sQ%C8D~v`h;C^fcV(*Lf1E0pI{035VzsXXZ^w*mhKJuGh2*(b#+11fX|a` zp>W}yI`{tX-FSqr%-jyr)_`dB4JqAlWgzSV>St5usE?WAVUrq>^bHhj0QbTTZ~S8Y5Y zOVP>K4+MDr3#crDJ+TmdxzHLmV-P1M6hS-nH6X&MNjTvJtT{;hODD!_+Thnp0DDHX ztoIq??c~I-2Cdi-waGY6`^)Gv=50-rY}f{74G zgJkzUHp^_Fu9YzJ_W|c+u}CS?qx}m9Z&@HwPs~ol;Aj%J+fUT7r{`0BvWG2AW$Q#( zFU+USNpNm%+|do0bUj;g(_t3C4jJIgoxC2FqHeG9l9zUd9cvRe6m+GAon6P;w%@DQ zwZPi#FgDy%-?T9E@86bT$GnBB5Fqq$Ezv?b)F#8&?J$Q(P|?YD&{+y}hqRe)R8zyb zYdP#^%o*wtR2p>zwn~be3!Vh76(E6SUPUy5kssQ8?HgB~JO}}>Y5VVPF=cGeq`lJX zeoim*GP(&tEptCt4(4DW3HZMP$i>VzIx*-UKb1ziVVPS9O+oOUy6pmcpdDA6#+eoA zTg!q+NZQ^0r88*vj#og5K>P8>vxg_c)_}|lj#HQxvPjbcLx=?Bx-FiMHEN|_{GOEp z6&v)t#-{YN{lL~AJ?I_A6Dznu`^c2T@! z9x~lJBT#675OS+`rD!?7_AjzM;?xl1zC|8b@wCFK%l*X!PhOUY5JZ1uXt{x<&zcs+;v$|IM1my$PWV?r}tA4S=}Xct9=YJ?-eGN&~?n@*2SldoOV14=z@DCmB@ z4uSY^AYcFG!>g}AF?G&G%A~m4S$_-bmKPvfr(pr^rMBC z%$k!M2AQDr2j{L43Z`3$##6HfLn4ai3-L2iUjf0lFV?fQZ0}lyR7$m z`0K`bV(SZR9bCj0jIm=H_j2IPmGN*+Fy}&?L>urS{ttweS7_k5fmOf>v8S;`X{L_- zMGf(jrOg`y{lP}R$@h{?0sfb~Cuf(GeR?4s5cVG!17l7EIPJzSAn*N(g@_d?2>>G+ zhWo@9rBT#WDg&ISQWe1M8LhZeijpE!_nYNLDs!O6I2sc2ix)yP5PyF|SK0NBLb zs{#;Z(vqL>)UJ5?sj=?fy0Fi171zwLN|q3cG>720CWobrGLW<T$b!#P1MJ5~Y&pC36G}HHbS}Z1Iv_OFcE_|h*)3@I+?fCS#MC@OdZ zv_d4}In-;eD2m$N3^jnCc+$g_{U+lFS~4#q?8~?B*K=%1P?)^0&_q9=x;_3oeb4b608N&7Fnre|_md}?GGWaGg*C?e#2=_BC8c_dol5l6?4X8E;XK{VR zKcxkbx%_iq4pH9!v~k|c*7C#9DPgnZMhO&N9lQ&~7jzxT@yq-yR=kf>x6Y{)>OVG9 zJS_o-pIY#wE^o;w1r?nVe;~w6L0^Al0bCfcrsreJKi+ef^*ybDyuk)vNk=8B)jSQP zoEb`M`EaAW9q0|K- zz{YG!4eQs$Q$Y(z4c44TX~BPW)5oD~RC1dCjse~zvM#X0#4s#qGOQ*2ME^Jy4KB<{ zpXR~k@QRI~DG7@Bw#hbVGTs7DDv&2cj0)~pJ|>1S;4n4hY1z4^Fm{7S7lJ?g3B%zt zFc(8g-}qG@uC50vA@93y@N+A=^dUkc+tb7tyIhb#!YO65Hop`!OIaoG>y7=-=BQiV zH}|=#=6_TZsLy^pltu^qOKRNg>G-AIxi5}%Nuf!GQP%;L;I~Y-@zpVKGAN(97T3b- z+1j%IUP9^A{;vt~#K#x=k4|GAa!eY1W8_=NI}=D&ypiZK_xUH@NB1NM|Cz^oYP!c# z5g0F0V8gL<5ZY$|XNse!nS8kelb6@ycu{49scJ0%IfQYx0;xd>J| ze%Vv-iAI27s!$w#&VI5@_9%N#>@;-|oj9OcJ%!$~h~06jjZ;Zebo1|3ql(iiTD+$G zhBphKNis{p$f`{yi?7_WDh?BC{LVl~ow=7{w!Y;D`D(No$PK0a`}*k4stVjc5&@>@ zw0vycUmBHTRuCb6v1#N_y)q~%IX+9=;8us`hNy6)U;Viso*BG8IwC}+DSytDhVqUJ zt$TGUr=X8a(ChIdN~2%CmaxsX3SGgI3nH+WVg2B$#iSIlDheWKHlDL`ONXq#O!-+- zDDcg9GFQiNhJ3wQ}jr#}CnfJM^CcqANI+AmNB-SLw~C7$lul=1wxh@NCJ&aPG= zJS@n2qGybaj*l9`Na{A=uK9061(F_jO03)cr8D|o2Zo!{BYB9v{kY!5OI(2zv&<;y zG}{kKi4mz!6aBirZJGg7lT5a`&yCZ;_eI!aM9a?N5b)T>9nSC4#-rf0nWh@R?x}Cg z1a6&(qisR*%iT(Joa5A>we1u~{jaFbr>rZV$a+M@s00JSKhiU?*HAQ=W(KL^0d2G(a0)bSyk-NMOj)sb8b>&pliNf zt#SDnald}10Y_-heX?jj6Dvd6sNuA&90jE%L4%nOj{u<;pc!ORI8M#UK<-rBvwBQo zMxHntsxX$;3JCbfxYB0yK`9qhNb`=D+pRaSw5f|We~HId3~)cWlm+a&uDqZWeCzbr zo1!?XXG#~Kjlajv&LwFeb1M^PVe7m_0Hg1Mn+Ul4z;G1R@<%I7hc^h`PxuR+K}c0z7dFiS@2gBh9^yj%4j1b#mHbxb z=jV&tbF;F5ASA55EXg1a(;nnBhc1+t0uGeW#qyNXpC5-XM9vy##>h3vUcZb}qAM(4 zDH6gRH-W^UOW*G4z1DB7em`sVlJHfH@10xA-BI)P^`Gb}mtBp!!*8tmm6qe=q+&h- z*8azUgQN7n0Ubj0>(2_CeC)qsKk z0T3~p4-}Pwc%(~6NF>mlEXpE|da);dvxzs7!j1HWkp1VHqFF@{jeL~x)=;9y`Gox8 z+(0aiI6?XoICBOi0&u%M$eUt)F6vvf3EuLRC$&O7zMSQ z_D4V(;S?W~l23VD$-jKpChJrA2P|H?o&Y$cgVmbz9qI19F9fU_WZF_Asr*>E^3i?i z?yC_<6h7EDH(upsr>KKCf65F_?=fd$gQ*%55hSFl00r8G@|-`^^iw_KUZ7Qb?T(fk zJ@(7$Iec$jMl!`IQu#j}op*_(i#}fexm4)uiNKp^^>&~6?Xk%2rHjzvhT#scV88XP zBiIxYqX6e!8b$d-e;BrBJ4*iH^LLhkc&dBrse<1RS8M$VuijRES`(Ww$zMKLsNwuD z^73w<5)JW{Agzv1>2e32zLq?0=%y|KfYJ@6R9E~At1d6ewHn@gc&ZilezK?b-VwiE zhilGG^1N3Sf0#b{jaO+i!<6QI)OdLd+t@G#WtvqjErS|=3C#uK%;@Iq*YbsMRgEDr zjK2Hl-n#4OkIWuRnX_((iy;=n-%R$Vi`}rEM)}uj|6aTj(OYv^vaA1H;s3ylg{v5M z#_~oUvU$ha_^lqE9v%%QGvRnj;r;Y3F7dkh%CGM$(Ish{?dX(+aE5-%^~RTmy^>Og zP6Wat%-))#DOWJCStbl)YOiESXyOq1Ek{}V`yccoo( zm1*PjJ!52TSW@^*d;7M2$EKlyELZ52NoriANc(th*^IYyWE%CA<}mA1SOnpNXZsAV7d+qm5qjZw)65@%nT6l;TFR!oc5zfkD={%KhsTMrcU$IikT8qJpJr|Qn-qI)Q`Z?#r~m|smQB;o zC0sM=q{BRp@(6z)h5z)Ce5(DFL372(!lFqQ$nMiW#45g2wD3(L1u@2e6ul&>Cs7yZ z`55lk{q*<6caiJD_`XPzu)E`S3SqY$4+^G`sTxbw8LI0*QY;q14`)V^PG2{T2YU_B zUlI}kr;~Q4nKO4!6d?=T(vE2jG;Y=1ZyjC z$Ic74zx8VMqw0*>9tN9&wBZNr(&(b7JcPl)o5s#jfbGae3n1iFvVp?PorO)Q@jMzht znh+=1$tW9?-cg?nSHz)|9*Y)#Y*_Kg|8C&UEb6{+M$c}&yuZJHnBmaw_i#Yv#UE=* zD=fU^he8xdc~$h&N#*^%e!XVlQU&kusC@^NQu{mE(_N$n-(xW)#tcogNFZ~019a`_ z@#-*;azYqBFE%Mu9rI@_O#~A9OPEosm&rg3)#Y6tQd)ex*^?mkOnHntkX``c`M=!= zUeJwI#Wz(FXORfpXKHkZVfEKqPaSygWcojPw%lx|>b82hPCvDcSPUDqjI<7)2cB#GlNJ@}asrG{Ny!YinmG`cboUf#0z{;;-(x2xW7Uf0+go>(0+eZ=0C6-YEip)rM zHehXo_X?nuuK~h|(O|loJG}ia&U7UHGkKiHE6w!})Mu%w%rGRrlBgVnQK#A?5EpWO zzH@~iRmOWiY6+2$*-O(iUWdHRl@4$jnqUL1_s$UY{D!I?{)d{}3&+RI@aZb&nCxLv zAdQr@(W~B`pI|ovL8A6{+DZ#BSkcPV4IgN?XW=}NH!N78lUFLwXjTIw^m!k_g%TQp zz8H}i9Bdp2oKuQpzT3&?zwV4uO^;eKNs zaHmXm4aD3%fV6~W33Uq{A}AZpm{QKl?QkU&`4djDJmWNbkI?{x#@g!hg;c{dM0^XY zvr2UhQV|bqr6jiA=L%>z+&uMnj_j9%TxT;X`M*P_9ffI5pIhx5&vzzvCW5XC-)`XR zH!3(yj!jd<5M{_UzHIt?dj?(@5kBof>irz@B3mt_alR^q=LBZw=)$dWuJVRxBSID z`)4c=+e)W|fOMyyeW00hKc$25HH0DHY`^KpRqsD0_}6&&8|#p13{Jq3eKW>$qVL8M zANdpUiY+dlmj6)o;6e8^KJDR>bVl7O8bN}G=ba{3)ZLS)$^LAaz;VmJ1inXB(c7I| zw?FK%fVv1RzqKd7G>que@-L<3|wsXbwuDXlwi{QIQBjEzI2mhL(kKFZQu0X6`N|(I)3?K z!gMCqDiT3Lo{L*k{?`Z(XH&9st^L*G-SJY`^^U?AMZ?9cKIg|-7I>(Et>OfUq3uIU za^&sT~B8Dhdu zGP>`729NRDb+%c2LHAvAcKTH{pyu9w-OKLK`$ES-2k6}_(SU28H8U)YZ!R3sAPbq* z1zcouXY%rIgQe1qcerF0qk6v({t3bo>nJYFC;?TDHBFaW;T>9O0?9jS3?Wei{QB?T ziD#%>6xd#R9oEg6G69?O8z87G^loE|<>rZyl z57C&Udv7N$)17t(8f>S`fR?kfvzW}x=)geeU03epq=vbLMRrb3SKGb9kw8rSS=+&Z zZIlt?uQ0(OEnT2iUORSgQokndcQ2hm!WM#Ae^hU@|NWm_jP!EzsvMp!R(Td;5|S#v z2d_K$?&lm+k2_Rhp=4GRn}p~;S8kZz)=x=}`%zCXr8T{(yc`qkyX2l89}W#ME-o%! zMfZPVi?tq_`JRUSauKC+j~l$SF9;IeO>XLBlHB{2g6xJtVV{NUc7A0GfI)Rg{&Q?I zud6V_Ysh|`kj=oVJ#QkZOV)^q_&Q2K*{LC}WfQR%%;)pRs;a8>@)%>{Pd;~YGM-Cy zA9apg6gY(CcM}R|!$8yv2M^&PmO98*Wt@IJsg$VXA@}vA34eK0oY6gN{c?`b*Wj2y zSvmR)zgz1&y0@rcL)69Jc8X!(wqSAT0;LPxEV+mTV>U+}a}Ec5X|}`hb!HPv4mo(0 zn3$OSoD%7dTRi`1hW!z)R(US-y3_7O2f!gD-y)Y;Gj^`Bg{^@q^GEh)aR4?H=O#Hr+oG3;*=BV|`$lHXfw@|sz zKx>Zd+Bjg3u@-b$(O$4j6krNV$5oAcu`hnziRJJ&-Q9G#!O>$YQAaauQ=g0JBz5f` zk-hCYr}gr8&KI@~D+$tS*V{Pjgl^X!aEIMnA5TQ{-E&R#oUQF`)7{DZl5R=?BwjGm@gM~Av9-dWk@e`*NFhO=|ljSfFMb$ zlqp??^r18g7AHB@nknMRW#oII)dB)TNq4r}Kyl!w_6I%{@duZg>;@@+W=r48kUhrl zRtdwdU@3_k8HG${G+-2_^TVihQOsvMl7F?5#D5`3&@ zp9P?vuqt9t7jG};^MCYFP7}b1r+-teb2}XAu_?xFIaVug$Hna`v@56jZi^+-snK2+ zz@|%1%Vu}Jom?Ld5&t+>u0@7R*YTX3ltMR$OsLt7Arc8d^?L)ao5}U@4AG@F;-nV& zDEn_{!Qm}1&=j76&;FoV_?xGiOvq*62xmy7ttHQd@;IJ3w%E*5D6+}Yaflw50Eork zufeEHLx2&OKk9^D6e_0#`aj*RT?UHjk;*+**{=xAP&G*9tLP^UHNY=Qj$} zKHQC0!pApbIxkoMj=c{z@R+7aP!^5%`6k)6%%gnEn<8uBY$H#i!}ls<+jl-Oy6y(F zXU})uk1^@#WlOZ3*m*c=4m@1_zQkL@Z=~TRD4A0J&DL@=kafm$m_+N{ffa8*NGw<+ zF~H}6oq5w62ZYh-a}DXJe)O}g0;*$WN_34|SEdxRFFNx-?MUcVGk!?j9h~(|ib^s@ zuo*V(@O8eJ=C_`*i(%)-zySg{3cM4jm=?FpKYS?p;hXWt|L(9}x81MRJ{~?vz0O9< z0PInkMja5eaxp#wFaHdWO2flW!@XFU(GR(QjMwAd&ViUX8F zsE!lw$Dq_u2?t(~f-0fU>~`HA&y1d**Il7U=>>@|h9d2zH>rHGARDAss6sYfZb)*m zHzU2$qw_W^R=P6y80fq!TmyfK;WmfHeaU6_?Vci^66>KgT*?f zEsvA&Zx)Het015E2c(hu4M8QZ*9hS&D4~?tlk2?-x?$snV)0i6pmTxzL&DM^S~iW4 z5OJN&j0T!dz5U9sazkNP*P~@3&{rkE4j$_`r@Jnd?JMR9jVy4S#H#<3(L^F3COO$d zmqkrNO*w{1tAz2cVaNS&@x{a4m3)O!tNCws?od)lI6GE2GVmuhHA%Q-p~kY*P)z^G zezEp-{c9;4m%V8e5dWyz+V7n-OA9L8F02A3T0EUyFLtNoQ$=IHK)$rAu}}k0laX?+ zYI5qM?Ubr^kV%|zN)mo}!K_UwF8;pWS_;K>xj`Lc=y&KVCS@k#ap$QD9Eyz$=bcbSi-0l`??XN5^8?0<2Qw7WO zQ}~=f#BO(J(mc0QJWe{19KrG=TP~8g=?z}jSFO>kwW{YJkpbX0VrpIzIbjuU?f#?` zX?eI@@;IpK&zo!O|9y&)E5yIz5?_)_A>zSd-~Qm1_>$2h-eoDv5f)}{hJy^c^uQ3` z2U>?}q~kTvcv6SR7HRh8o#^*-@BPWZ)F=gZSks~oze5O1G{ifF^R`H)Q8<+NUIu`6 z2tP;93L!FVk7Jb{vX+uDGRi=`8{VL3JZT6+$!O7K^LVa>zvN_O+k}H{REjYY;_uZZwUOGG?q7%$5!Lc;*C4U0KDEwZQy{n5W_hzH- zrnU3ukpJ(e5=9R4r;%@TXs6x_5UZGzihA*^`d%3tcpug^JU!m!`>mBJxQxFD2e6q) z*&dUOyk0$CwLk6h$#P)RV?ji;*>xK4<*QWa>o#;Qe zi16!p29i=kkzo=Ciqm$IG94zI;*ZxfY|RH;&#Ap$kSYMf{<=wENdlRj^zZOc0N8cE zyjpS3WMZ(L{gGl{10OF3IbP0PLN&tygWxiHd(=#dwc4zYYFKWI5zZC`F0FHH&>zGn zUcZ|y!j*c7b3j!}|n#?qEu6h#G05r-TJJm!6Km{%ijgx!{zc zL}s&*WKJ6e^e}imL}qtXf~dx=nQZB>?)Ma2=E%=9)i{TwBvr>}$f|0z*liK6mAZO0 zqZWLr^Fl>uOwX1_aAtlO~I6|2((|~;X%Fx{XPe=sR+VZV>v!+qXYuQOwLn%`vZnyvm0wQ%?g;^PC@$5 zs!|0xw4p)ZndebNKDn9(3B471&u^{tHzjt>uKLD2)WBz&@w8a&smTETrJbKSrq+wK z#fq5Vdj6RsR?*gt0wAcBSdXoPl#>Esq-!*b@qZStDl~onuXA8$CEmH$G|wdOe0Ga@iYGhMdUzSBsil739yS&d z!VEXw)!Rpcw12T2=V&Uwjuw(d$WvdUj!^_S0}DQx2_ZakdY2nQH3yT@E~w&q`&4|Q7rX{hcX zBUD^UE$DHQ_3qyD@|b>Jxcy`#mG?}!(!95~!SPRm@n>_e`#bp^Mq#>GYt5v7Qc_y3 z(Jv*n8_s!1t4t3e_<{_J6WA2!W3pI#6&iOwa5*8@5wZb#PEVSkvrDQ5(@O*sw%&=8 zm%*05!J$FDO?ERl`Fb;(0v9bm9~(EA2_}O$N$Gs^%-4UP!g@@;1%n$J6TN2Oo;+@U zQ*-)_s6d8RP*9L*DRa=w{?E@Pd$i=!vCV!EV&IP3?#hR%V$2{#R9ZhIetUQM;m6Uw zB>kg-E(DFi?ZCx>sNwEz)5acfy*8A8i5}~Gn#p4wXa80a!=WNi_KNKU`L#E?1 zB7Gkx7xpekVQ?$Ob;fh5<1%MN#@)$9*L!+%wo(AP4Xv^b-ER1PFA>352`lRxX57n* zzihwC3?Cb^Y6_(|I0T&z=BrBbPk&`gS2_Oa!|bK0k)l$`Kw9;=YgtO*>I}&gzMJg&;js;0 z`Ehlay`A*b7xN{Cv3*Bb{p#nZ`@iB`#zn{<4(IGT)j4jW+w>U;z>0G9V{2KBEjLL=>mgb0!%g2qMueN_y<11*@{v?Kf9MCCK0&&^g+Nm#H$ zu*{Ut+mg-d1n?S+If`)Chw({{>t^giuJpii^xgf!?s%Dl;%|_C)-P`l`h5h_Nkr|B zx242WB4B=@Wnc&!kaF+x-njoa-VZYJGpCM3aTneDWIWSUCD`Uw@iALsqCb^~M8*D{gOsHmsAmk8^Q$j)%{5fht^qrXG9vOu=K zmI>(r1h$DHb($4=>kzS5Q+!2Gn3z5z4i3=iK&cNN<3M_9ImmbP(PkiMo72eu!L_b5 zH^`kk&Dvp*E-Co_cuT5(FiiQY*)c3#n5KD(7y*!%c?<6lXptwCX+E-{s(iM9NCS#F z$>pN&fZj~o^up=#cr6+n+R0ypxC^Jbt5V^OExO7n2 zH84`6{`L$QLU1ojgZ3+XVqTp>S>M%mgyYaKov*d52clJ)_M(b_6iA5-TbvT&f}jIP z$d$w!=b^vYxbd%k4WWDupc8{;GgYIeq`}D)`h3^z=~zTC)BXRS55$ z1?wF%)&bvuow=`hWYyxvJG8^jD6t zI2*vl-_6e^iXM9&9n*PWjyklcJom=DIxvjjd1*=wXE;++Q-@X0zrR5vN~Q9xlCM`C zWtrezq5qqq2k$_4!wu4^!cC90KCDS%wz&JVOLYEcnc|#oQ!lZ9g?g?Wh7VZ3%F$+N z6>G>|psf#>%jqri@d;}7^!06Yp|NWwLhY8k>OK4a(qjM{H{!l^*!a{yU~gp<42i|q zvmj*ZKpvuIb(7p=+umIyfcKVNFOO17BmQy#31K zF)f4BaTHLdUq5T7GLVfm#Ak8J;M0~5XZ#C9SBz%d0PRi;EfnD>?3C{id0>aHM|r-? z9^_MObXvfkcx5{{kzCZP$VmiGc#@O&1f1QX=@>Z5_WZMxZz$iSUJ}~zd)VCA9BoBA8E!n)awIwXww4<*JeqzVn6HtqSb{08N%qu* zu!O>mF9y!3Ma~9jN^IHUj4gmLlm{>vi}a?1OCFr3nxu{iAZo-iKmua7efc~o$*VA1 zo+8`Tv5FjHJOcW3u(5j+aw}NJ8fR?vP&=hEWhbYmmgm4l)r?g}#&R(D}FEe-&@mvCwv& z_}dRw65|&CkkF)`4ouehgk1N6!GRdgaqAU%hQ~%k_#R1z*{h$J+p&>LH;fBey_p=X zmhN%(%myLIu*qr~a;p`C`WIn0YzR@nFFRSQ!J#23MMYFxJiHm`_;;sJwUjqwWbNzY zw|~{ccC()(IQWg{D@_^>s)se#U?FIPdwj)R#&oDke0p5FALvsFY;!*mC_ZnEn`xc^ z=(_z%?*|N~3surTkBlh0YL6p`Q&Bw^1bZJ_S|-!kNh^0%lGqGgQq}E++>d@Z!Of@s z9%RV;8r}x^5xTD4F`2LAnyT?($N3vM2MZLNz4>VpOdPegt0tP_Ks`Ae2l_~GCFoH5 ze7&ydFF7PG?ygV|s0S1Sx~w|l=#*Si@!i1pAffzgK5u0umj_<{>3WJ1O|9Sm+2sm4 z7pwOb#B+=-KThz|%Dnj%8QibkXi`Cq#88yZscH+Q#EWCuCbz?qTSSKppc&b#&QhAH zqU8(~5sUmQ=vVuE`O{x{S?@B%JUlDb5!ewKkR5J{Qb051qSSMj`!%&jZbUT*2Ls ze3m2xkStXK#YkjWwXs3rD+)2CsuL+@_ejdEWiJ&~GwoV6u5t0FmOUmyl#>kODN4DB zmrPeoX>vF7X3<0oJ+H9OdF5Cidjv8MFhO4msndtGiAH)MuPO!8051CKUdbq zJV0EMa|Vl?Ci_BNqvvw|xw~Te8!!Q|Yr`tFIEM8WNIF?t>cP&gzcZKm);xO}v>)@* zC=-(MxTRiHWa)k?jbdO(-8$F=oo&WssCBS;i7-WIf}_XMZ2@#LA^bo6(Q{yco4_&G zBLla|E=wE~HHJe^L!Uw2x-zB^Q2;rbzD7-;vfu$62up!=H;t3Avg35A4%XWOWl8Yq zkZWqr3;H2nunM-xHfR3*6@BXaucUO4TiEBLvf45GDt-HuM1%uaguG^G^?vD!e)8sf zB$kuibg_BVo6at`pA~JlOypiWR4WB9;ZpCP$v=?f_+|H*a~T{3Ju};mQ*Zc9ZqBxv zMo~}>{5!XG@Vn@1=1y7H@<@1YlQ{0#QD7Ew@Dh51g7CD3kVtf<-;O;4ORxFl8h$WH zP+^H(XO$ouH%}`tFfpNmU~kex`;dru8Dsq3_Y%_sWPuIDb;H%!wc)`Tq+I>0-ZPaP zlP}`gSYr`s+LPJf#-8)l-7JuG4k7aYf^p#noLE(YMQBe?&kmm~^D~-;q7&sTp_@fS zMQNi1lGY3x;o93X_8x^TEG#sQGRCT-G_f*5Z;i7@!0W-{OdZ)n-HD0&^k?53ji2u; z=x-?kr#*O_;Ip3dy_w+|l~xh3icG|j8m#oD#Do9TcJqPPcp#Ev(dG3eZmf;B{YbC&1W&fXyjH^Ysny4OEJ~m_U_ytMmlc(W>yqD$>JX19B(yU zIsD3!gd0f{!~@?SY4cv#3*)XE)3zbTd(QQM+kN^O{4^Yd3_I(3oT5ho!rouOm2$DB zy_-r`2PVOXMam#zx(5HL%u-kfn-fhMr;y2RLmry{SJIUSLiv6DXU1UcV^?;vls(zS z7-TIXB6}%IhLLQA8CxnurBYdweGS={v1eD=*Fp9@vd;28-}m?D+`0F;_nzn6b3XTT z&b^NWD8jUtG+yInI@Lxxzsp>7vkEm=O}H=%RW2LN2V^;I(AW0%Fm+l{4ZT-61e}J4 z(S|3hGxaJUSr`ZAM-{B$9G_`mnGM)_Xn9Q(UMJB-^hx+qk1udkhp^6Sw+HnVd*Fug=Bl=MI5aBrHxAGg=A&5fy>w&QQxKt!P6dQ2l1v? zscg2$P=VA#)jGpqR4Hi5L2t%5fC^fSSGjePg}5UL9>m>NPw^kMEilFp!&=_nP&b+x z%lX^tO~s96lbWDpB4J2L8*T>sVfN?B8+{~-1-fDQ*R{8oXteOzU%@z$O$|o4q?!B# z%mp*6R$I#Po~bM7PFS0Fs{UPICH2l+-E&yd%GTvhEq_OPek5-Ec%{*miW=FpbX1F~ z1-XMu);?D}^~wYV9bZ-NS@X6D5H7bW)M!(PiXhrI`tBDXWqNDTW)9r8Z77S0I1d6< zEX%L)gqBFFi3~dPl-=j8x6%~-kIbB;qF}5*=G{eWLghfGSZ~~oN`><1_&QlH7JClH z&-)E211ana3yU*~@UNir4O;%_b}Rq9Hut6X;E3~KEg(H)XBkL2_;&CeWe5^S z#^dkS8x;NR_9S?ygTCg+TU#-OWb{HL+8aS0t7fZe>K4;6Xtd|O5PhGlN5AMZaDH<} zecC+j4{ys2JKIw6r)d5gwp7IskkO>6IKAZQ&5I)wq=d`9M`mC5oeV)S8(SCA4qQ!j zFnVnFNSgX4Aa@JK$C3ppVsnllMA5Mi>$QNC_?ogw>W)RywBO*>JnQ05-hNRc&Swtd z^S%;bT3$k-Z`*uM@cweLx_`mXcJ)nrfvM& zBXtZWCHDS1ngQd>>+U_naTL`1%?f#~er3!)wAt+Xi=q~1&Tu#mgI6C}j_-S#$oDiY zfFrC~y^bm0hKG|Nn>t3tqM6ZD6}q}F$O>4_CQRQ z0p>rt|IUf0pHF+To^NaepMBPRCRN&C;Sfh30w$e#s#Rb5H( zYxP3A*I;8ZW3>Y*7H5K7dO#G_jeK>A9Fl4OO*5ApBwfOmXIk>|7a$yr%|_P2GA|6M zE;9Nzf@s26_3~xBCd82=0o>^u%UcLN;$iKwu~e;mICdj+hRM|Q+qd!d7uY|@DpN88 zy9m(QQU3kfdzi(%_NJ!E*huxwtCQ`y4v4-e18qLb{$3NC0p>F@`u)dxEXwIp6g4X_ zAF*_akDZUdcvhcy7N6=p9XnmYARWY|xLkgx#AKg5xgWhBel^R3G;)fxE!Bah zRW+x6t3`Uu`KR^L=7^|;i4c5eZ;moa*yQeGJAwx|zqd;pxQaTeo8nsbT8tB(^9d!( z`jRl6Jf7{z9<6iYrxLqfr~rx!=qy#c`>Cwa@)+X`L2;5HDnm$5e9=<6@4iw|=0@}1 z)Y?-TWql|(ul`?3*KW|=QdOR59O-=L->4`9_WWkPvblbNQRYlknv}J}(F%ePOdA_l zRherblBzr44+Z^gb_XE|Z)M$n%tc|GBDke#y=}6DONjuNB03b1W6Yfe=m0oTcBD1q z^bv;;+;QdX3IqEura2NtxEuSQ%Di-@fHog^42y%>o146X!diM=mnUizM+qJ2L$@DT zO$RL-g459d=FW*Rrqz{#X0(P!@^|ev@=?Ph+%kvE${E8tKc1L5UAzScd!#T8Qz&?~TfJ6|Kg8Edt!9?}Ugro`zJs4TjN8Nww=_WKeL_O-uh)t;Q zeZa)KRmi(}0j49#SznHx_Ik3aJ@;k?ODzh`5OKM_u`q%x{r%XEEivSn&%k9q!TXnx zA)=v`$xfQ@irPl{kc#mPHX6j;UtIJ7UMj2NFH>)D(prQzb~~AdU!6mS(L!*Y{b^=~ zX18-q$8Iafp;_jc&w-&9pWbi~ZZdZ@esW(Vs&mN}N{Jv5(>*DS41?{w0;g^hbHwbr z;^&5Xz^d~W7d8-2(FCYWkB~xz}eEGV!rqC(&ZPx}rJ=5USdG7pv zr&{61!4nE<^=y@j8V$;ViPtG*nk&!$i?@j}KBiFRj?ILO@f#?03-S%~#QM3V3QtY@ za8wkggU00Q=Mr4gtN+!sOkR{+c>77MnRVY}`@vS^ zEgE=)Fi~ot^?-548fN6!G&e?fO$ba7RfWW|Tx<4=)20_HVpPqpi;npe3rD~l;*836 zpYdKM)9F$Ud@pYe@_++{)w`rlGrLddRf~x&s;0PTpeu{+&QH>aKw+6*KBhgGPur5U zC3ctStsT4ZhybRM^e68NagyB91+NxsWk);Z-l6Tyd&O=TA~f;Sp~@xWn_oKS$}j8< zBEg4u&YEH$_Av}T>TcU=i{3!@?LZG+3qT?e0bKVd*FXB{*9u!d=fc{Yh>*~f; z96MDG+>h0ssG8bogMon=XLUs^^)q{>;k=xwHyIZ-nGvi)@TGgfEg!LUQ(Tmy$gnvv zo_IL$8?*>do*(HXR+ws|<=HH}cuc<7G3R)7-%?J8W@a|Gdx5 zXx^7l4`_B+iQw#OW?PG1Y1vzh@ps2XI75r}n}^U7O&xF`fiCP`!IbpJ7B5 z_?S+UMo@Of{hk*uLnJTw(xcuu$7qlI>5}m$8?R;f0Tbm?spou+GDcWjiWP>mUrNEqzXm@v@lts&`Y)ZW62LrFth3m>E91s zp5KDQS=;|`Fht&U__XE(-ypgT{C}Goza<3m>yDphw^yJzwLoW#UG-%0M;Dir3$*mC z_%c<7tm#jix8dBOrvj%!E#JW|G)x;#f`u`@a!2YMUE4mt!fTR4Ox@*zArUI`!IX@C zuCS>cznu!>n&aOqhQHD`SRn-J(GF<;d8or={p2@kHG*z655uCyDaM2U1r2=G<;Jt< z&&pGVeStgs`Gke$fY`Yec!>cFcl$V))x3gcsNkcwNsoTcR@;4EFU_H$R=X`d7<_xB zmY*x_MPTrc=EPJw&?wavBT!LrKyGiwi*RZZp2OsCXQ9Pspr%fJtRyAqRGomzT^GQl zpxVDlO?86KgP6ATHxVmL*BvG(8breiI7ZIYc-JuIg@Q(~r~hT7)?-KXe1)=wm{3iu zQ9hUV3u@*`0h{CQCX&VWijE!-#8kELC-QX6WLiZrLo$SXDcskCtFvl9^XB~o)mtrZ zL3hf-_HeQOaY7WaJ5v`wtoF*M`zQJZ;x5?s^>8DZjsGQ1l4Uc6-$4DL;7~wzH09w& zn-gykL5VKy-jllMsj6|qDowV(67QE-&T=2DR_Vd1BzBeGDKiVWn$gRzNqjhhtG<_> zirL_&)e!1v?LvpRTXgW2nqX9(`k|*e-R?zv2p~nBqZ|kyh()XrQZKOra&77}KB=_F zpTcH+O$RmzLrKe0e5^y0F;kxmuONrIf(+tjK_KENw{=R#P1y;1e+Qc&3dL`18pCo1 zX=zecF4EptD_uH7D{C1JbakP>3~lM{G$^-(C<|f&NOm%P{ZYATQqRt@QpLB;)Lk8}}%{Goo&Mjgi46I_qirtoPzldxRF*v3>^B zo7+Qf@H7J$@@ts~FM^-?K%>h}1UcW9%;6mJDf*_wiG0m#J_dNE8|r0rOx48m+cU(5 zL&lco<3WdoBTkea2*=;p2(FaUuTK4r6afsYLwMNS7W=QB1bu(ULds4pLqI_sjiE5} z#vZl39gL5NrR+$BkMR22iQEzr0YsP%_XfJDWp@^@yDc~5yrT^_Q6A^9>1vIY302L0 zM(dP|2&fXM+#9}em?8ON`)D2A-hm}sI4{x6yoYnf!EuJJy#dZN4N}nO`*k_4_*!Yk z{FOF_R|xl;BUz?lsQAM%P(S^g?OY$Z}ML}((Q+4H3yivYS zFjIcQC&o|F?BgQE9znk=0Wm&@Gv|2gMzxa0oHE;S#t99_I3C5BI^wr{PimSKFeagb zbz>X~&LY0F=#UhzMN)gjTF6UyV;~(j(ccc2&b?NpC(oefWYvfC-ZDI?;{cUd^v2-%Qe zrn=LW7DA{ES}8}bB%JVA%*A+*;DqBt@|=ujOMfMPbX%-&<$cJ43Oz750-pufB~JyM zDU!q{%>HxosI}x1sj?B@E2KeIRs?({G?Rf`lrh#Lsv$ER8xV!m6})40h%J(eAn=sa za}oJtaNh>H+C#$r0_;eB< zKzz6=9R#b|Q2!(eolp9B0oj7^=Ngx7Qe0d*!<@~ScdcH=n|}9r#~+s8J+QZPy42t# zNo5Qep2wMcCUfsD9pSS>an{%U?G|PEbTIg5p8BR~OW4hj;RG7*ydB-P9%QaD-fCb) z$$mC}F>%Rk)b8y)(W~6aiJqeK$ur<-cm|yo2W{GuzEe(Bq5jaQU-MFiS+7B|B!GGO z`0VA8>Nzl;%tx0*yV7X#9e4C5;dIj4BviFK*jTQZVdPz6JYBsyG}Gs*V1dEsy)d_x zspRUhPGdLzyB1p9r)z6SFYoy(6xUf|YX`Rbyz{&({VEWcbl%#N9-pK<2QU(Kg9~KPt`w(A&HU94sQx3 z$Yx7Dthb+25R8(yNM0JeFg>j~GYS`&e-03s#BbP1vNXilL{8V$I>B$1e4P>z7GirJ z$aL~PYddUTWr;1y97ANqNt01O2sf50y76L-B)W)4K6I$H%#7JoII$8je*12a0U}~~ z`~tqs2w>GxGlBE-Y4n7nQYQiKqet77?lW9;5l_of94OOb$UbpUf&$BiFrX_;94_p# zXzlC<9opfe1i64H2jxuPd-gyMdik=yooEop+)o1_0%2{F+ZX)DOL)3k!aTd&I~LZW z`S)+Q6FHGC48^0S+=I0Nj?Ex{;7GWr>D{|wczw6C1ey!yh2Ufd?6j=&fQZMsXw{uyM-yKPskACbW#exxwnEUHs2hJro103}HAh=?uWP~aVA z;+wp9*@#9n+ApGo+)apio6TizD(O4fQ*6Sml9!>*_=aDKw~b9VI#~7;mkO28LZX} zyXwV?L-jF!AB?{j5K!Z-AKZv0V;}@VaCDWfFW6H1+19o=$zZHi2yzbLl13aH_5eH4 zx`dWXJr*gH)FaxfbuArw-cHErLrOx986A2H%J2QNgmO00~J z3QprI$$gAgD|3x^f~Q;)7COpx2JDZ=ylBYJA?3`gRo4(uiv~bd940hiC7+n0i!bdZ z-h^)??Ry2l#?GoB<(NamHY(+dyY`k@a4ciCYoj~>fnS?M!=hypshuyY^DJrKt@ z_+t;+D@77FA(`$qQ)a!uDEhU0Gl3~YKkP}eNCHrEyPTO~)B~YrF%Qx-ujaxSKgE7% zS#_VWrW41{XjPnybwV$$)fKZwC9+GBZNCD${1l0EtkOZz2cZUEpx~O>vV&~h=^^oZ z4CSH|j?yH_~7P`gThJDdNKp0wA>IZd(FV(hMC{X}!>J#(oseU{FW%hmA|^|a3(q293(!4^6Q+$C#RlV1sNSvSkGhZ1Lx?Q_(h0E2P{{pi|2 zq>yTYoQl7I&S{0dP9r7cP3&?26O}{?dfg*g+Q2Fl z_xt2eMN*jER3O={xk#&%cZZh6g^*h9#H``uyVb z%x!8ddJ-vgpA^2Rv^i?`$U|}+GTsX?cqHRpJ9yQVOY@&n0?jD=JGk&o$Quhf>x*So!Q8r{2uV!WcXxjZ~SCM=0r9C1){H zADnUyngG_MK+|l$aJs#&>RlZwL|& z;C_#ne*0V(f?VV015jt3$d}qc%5ULf3dS55=ksq;<_3U)9FIZDKa?eR^)+g%0$*L70H7x6-qchVHEy_EgCM#H0pzRh z*-_^6fU;mjp{FCt&j7c;0?>MR==z+W6HOY+qC&bmaV2{pV1TYaW2vCxUa5ByFjOmT zzDJ95xnsPd&`S=8X9G|hTrB{y_Ep-xLLIr{ClslfGc~Nh0e+w0;YISzdtIBBf-(S1 z0~86Xx;Q!h>K83fFa-+=5RfwZVMQ;n{#mp*awcw7#Ku+_4p1vQP$cp`f@MQjIWmr^ zkS`RJi5`A$0EBn7F60^&;9T?Vzk+fAp{@dl0(Vl&k7M4_;8v?@92mekwU3*SKc!p& zqDJpULU31e`Ho68f&uspEe!;iA6_K;yU_tHWB?f2vhUDNkpa98X%SE$%0faZYVm6B0= zEZi)B4jdqyH_bkdF@oXD`Ji`AT1@(r0UXu!{NtEzu!sX{ElvxSm$Q^2yI4Sk+6CRM z%FS>H0H4j7^u?rje@C$vK)h68fZ|L(dF-*gWdt&%VF3Qh^;)n!4X%t1l0PZ^;~Wa; z)6x1B*!mrN?-xYqk0oqJh8^a-kfSI z(nB}O&t(FpRsyqI0?Q76Rk0rm=>S__M9^Pjc>}XgS+ZkG4w*kH14{S-g4xvC^{RB<;mr&T{EGmH8q9)v|u4#|N21Q0TBp?L@ zY;sF#q2OmC0K(Tp*^2(LX)9whYury$U^USRnW@dVdE@*v={ykgBGxBR$tgQGIz0@E z%xr4|fS7!xob$4UcTT%l0p_yL^0fWu0B5JgHzZPd*xSm#T_Ql7(BL_ELL)TPk5=HL z2Cy4+&i*RNLaWg2o&CiwaUiaU9MK;T!!Y{v$gs4zqMOQb8SkGzhLs`iBY=SnkC1}= z56&}J2C^doo5UH^+~o%FaRB$Pf2~eF>@9V(v1R+L&Yq6kN9bNL@|0s`I)b{|ACP4z~aR diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png index 5b176e0815f5504641242c45fbdc88d137ac26b5..6e5a0d708e60f1bb921931ba798aa26eef08c7ab 100644 GIT binary patch literal 5748 zcmV-)7K`bLP)StO&>uS)ve<0AYj> z5AR{$W90N^4L=L-RlQUJ&DC0@ZjPh;=*jPLSYvv5M~MFBAl0-BNIsH15C~g000{K(ZT*WKal6< z?_01!^k@7iDG<<3=fuAC~28EsPoqkpK{9G%|Vj z005J}`Hw&=0RYXHq~ibpyyzHQsFW8>#s~laM4*8xut5h5!4#~(4xGUqyucR%VFpA% z3?#rj5JCpzfE)^;7?wd9RKPme1hudO8lVxH;SjXJF*pt9;1XPc>u?taU>Kgl7`%oF z1VP9M6Ja4bh!J9r*dopd7nzO(B4J20l7OTj>4+3jBE`sZqynizYLQ(?Bl0bB6giDt zK>Co|$RIL`{EECsF_eL_Q3KQhbwIhO9~z3rpmWi5G!I>XmZEFX8nhlgfVQHi(M#xc zbO3#dj$?q)F%D*o*1Pf{>6$SWH+$s3q(pv=X`qR|$iJF~TPzlc-O$C3+J1#CT#lv5;6stS0Uu9wDA3 zUMCI{Uz12A4#|?_P6{CkNG+sOq(0IRX`DyT~9-sA|ffUF>wk++Z! zkWZ5P$;0Hg6gtI-;!FvmBvPc55=u2?Kjj3apE5$3psG>Lsh-pbs)#zDT1jo7c2F-< zhp7`Zb($s3n-)XMq%EV>(3)vyY4>O^>2$gY-Gd%Qm(Z8eYv>2*=jns=cMJ`N4THx> zVkjAF8G9M07`GWOnM|ey)0dgZR4~^v8<}UA514ONSSt1^d=-((5|uiYR+WC0=c-gy zb5%dpd8!Lkt5pxHURHgkMpd&=fR^vEcAI*_=wwAG z2sV%zY%w@v@XU~7=xdm1xY6*0;iwVIXu6TaXrs|dqbIl~?uTdNHFy_3W~^@g_pF#!K2~{F^;XxcN!DEJEbDF7S8PxlSDOr*I-AS3sI8l= z#CDr)-xT5$k15hA^;2%zG3@;83hbKf2JJcaVfH2VZT8O{%p4LO);n}Nd~$Sk%yw*W zyz8XlG{dRHsl(}4XB%gsbDi@w7p6;)%MzD%mlsoQr;4X;pL)xc% z+^yMd)ZNTI#eJ*$O)i@o$z8)e??LqN_gLa_%;TM>o2SC_kmoO6c3xRt`@J4dvz#WL z)-Y|z+r(Soy~}%GIzByR`p)SCKE^%*pL(B%zNWq+-#xw~e%5}Oeh2)X`#bu}{g3#+ z;d$~F@lFL`0l@*~0lk45fwKc^10MvL1f>Tx1&sx}1}_Xg6+#RN4Ot&@lW)Km@*DYM zGu&q^n$Z=?2%QyL8~QNJCQKgI5srq>2;UHXZ>IT7>CCnWh~P(Th`1kV8JQRPeH1Aw zGO8}>QM6NZadh`A)~w`N`)9q5@sFvDxjWlxwsLl7tZHmhY-8-3xPZ8-xPf?w_(k!T z5_A(J3GIpG#Ms0=iQ{tu=WLoYoaCBRmULsT<=mpV7v|~C%bs^USv6UZd^m-e5|^?+ z<%1wXP%juy<)>~<9TW0|n}ttBzM_qyQL(qUN<5P0omQ3hINdvaL;7fjPeygdGYL;p zD|wL_lDQ-EO;$wK-mK5raoH_7l$?~Dqf!lNmb5F^Ft;eTPi8AClMUo~=55LwlZVRp z zxOiFd;3B_8yA~shQx|tGF!j;$toK>JuS&gYLDkTP@C~gS@r~shUu{a>bfJ1`^^VQ7&C1OKHDNXFTgC{M|V%fo{xK_dk6MK@9S!GZ*1JJzrV5xZBjOk9!NTH<(q(S+MDf~ceQX@ zDh|Ry<-sT4rhI$jQ0Sq~!`#Eo-%($2E^vo}is5J@NVEf|KK?WT&2;PCq@=ncR8zO#GQ^T~S@VXG71PKNocF zOt)Y6$@AXlk6rM*aP%VgV%sIRORYVwJx6|U{ozQjTW{-S_si{9Jg#)~P3t?+@6&(! zYQWWV*Z9{iU7vZq@5byKw{9lg9JnRA_4s!7?H6|n?o8ZWdXIRo{Jz@#>IeD{>VLHU zv1Pz*;P_y`V9&!@5AO~Mho1hF|I>%z(nrik)gwkDjgOrl9~%uCz4Bzvli{bbrxVZ0 zepdf^>vOB;-~HnIOV3#R*zgPai_gEVd8zYq@2jb=I>#f&AH2?aJ@Kaet@S+x1`iH<@#e& zmH1s(x^JIz?z!ildmcKT z=gAr#x4iJbQ1WEijjHCviYM*S^=*b=y`k5q-O%UGes*S;BfGevYplT!UBCdldOY1G zbb7ftwFUdQ)kg(+{xUz@|K{>pK^H^(JesWyrW@(UizQDM9L+AM>Sm|ybc#lnuRKEKzUZ&Ps8*xnrq z-Y$Ky>~~Tj3=5#)nZXA$FEIaxqQlVV2Of*RT$vE)?ItXTVF7IYN73=d_O8&^Ugbvu zW35r&6$)On_AdSdz7hlgYtPon$8R+AMsOT~SH|<-u{#I?z*Z;xGG1_VWtR()(**Hz zZy%ANn_XSwMFGcn{+tP5wXU|c(_h@@#|S#+BTWe;3Srk<%)Iz|v7Ot3`_b1=)TUK_;bqBvqaC&R(h<=?AcMphgmn=sjjXjUZAjHxeY+8Q9306+1HixM@X z>M_y1Ux}Jp?MxuAgLkWA?(KZLj_dDD^xkZ7#z(uVAh?+6MA6ekZTN37QL~vZVdH}&6Os4O!qYQe>U)WP>E`L?3!)!7h}xBwJ_G>)hcIE}ULCbI z;83T-scuxGOq)WK^czLP#<4?NvKL2NCv&vilWDYrWzCqwuGFDzxOb4Ji|s_Gnt00A z^K2B^b6!l6A1)`l@FP)mt<9u^ciqsD);2_j5iMKD&SVaz-?Jlj5@Y;mhy%@Z)4m)a zs1&ADDc&5F8F>2qF;BTn5GG3t0$;(j?)&RZmmk_hK6uBpIob3yW?q4LZ>H)Qp$_zs zpMC5=EE8Z(6i45+^0e(CPi@krfp;%mDB1(tG{G4HaMb)5);!c+#(XUEZ!#k|3Ujf) zPxYZMM{}9|Nd1+k5~;rg8kRF!zRf3Ud8Tz(M+iV0wNO16JlUF0WD6;u&6JmJ>>SEa zXO6DKFxgiyW7(-d)4y`G?hc%G0br|>S^IZf$DVm3@Q!@8aWA^hQ<+o~Koe*y{8`Iz zoHh^8pKTa3BTc@-n$L&N>OS(do%znrPAV%aqw4BvYH4X9 zXJ==cGiMIXo;@3pEUVAs-DjKGl4zHF2^v9blR7O>F94Z~3nwQ%#9@R7%+b`;MAxoe zqr$>M;V+mU7%+GFHf-2HXV0EhC4{3P99<|KeCaG1y~Rrw1HmRxCjduB@l+=PJUlf{ zPHt{4oj7rVN=izowpQIjI(YCPO`A5&>b;-=v}EfgUxL;jej-v3t{mzF0JV}G zY2n_g!Sw0V>FU+1^!)jAlkeT#-6=FQlmY?*$iu^fdU|^3>C>mw*w{$H!NKJ3@2_fn zBQ0>5hXGna^TRr;&#D)I1UT5hw^xJ6$Vj?-_b%n+}EREjYUbFirPMk>V z)~%ys$BvP!tLunki!@2>0B8p7RsyXm1mI%!RglK>BQnsi16f&FR8v!9_PY}E0G3Hc zMuuQW_w3m-;yV;+a&xwW02Bh6-YT>bs(ktKWx@F2s;jeZkSw9C&AL;gNRyNGnX+p% zxVyWXPM$nTd3kws<;oS|vswfO1`2!s+O=!R#l?j>Iy$JnzFycKUqG+q^C-|RhjjrM%x4h+ z%sC3T&X_TSGBYy;;$hJNFE1}zvu2H8<>3`tLq$aeZQZ(6*d7lZIz$^cZX^eJ$V~xH zl+1_%?Q*CP05c-}Y|16u5u&%L7QzTgNlEnR(IbHoSnlxfa5{bZH0{{2!|dMU$B$Ea zc{!arb&3WD2Tgv1Hf`R#S$Ou$nKKj}9X%qMpveTFSw*T%oegN!i`kkXAap$vz&O@z zKO+LOc;v_tvwLvrgHSNL(3mY-wg^6f97RP%l#q}h>;}*VOE9CURj+uT9O?vsT%AM! zh}$D{t>g`2CZPdvdN9MKrKRRCW!eOWjHKE>FMc$;H2p4>Y`1XHj%+# zpzYhYn~eurK$98GDxgjPNL0qXOdug?fw(CNi(gJaNDX@LvD7$3I5@EKK zfSKI4Z=c0iK`^&&-4d9^`j-M*B7!G!0e}`0fY!(M6aZ4x$kHNFIRu=)OAWkPOaSVP z<1f}Uygwu0*6!cGU)UzCS#=zhVHlH>lWFJ9oq|6A#Ky+bym|9X?nUB6JPJ$b0Ie$1 z>gpXKq^Oal9Xi6|l|sfQ%G?gXXkks?yLXQ&D=W#{+glI}&iz`Dnwm;WmoBCA=g$k< zDvY3$%)0{(CaE)cM4(kA)C&Old8ie#v_r^alK-}qr{62Y1##Aoi;EMk(EtY}>=H^q zw#Y1H1{yWg5@>UUuNRx<{n=lntLD1XxJQO-dc;(j3G81ZG10txISP6~cp;{%kg*x7o zLvaG~^O7wMxjLk)kg*v}!bAy*>2UyO2+(3%wa5SjfOC|}GA;>_k4JIBQqvj%*aW1j z{@Kh?dWgE*!AP)JAOV2+?~6uLCDNlqvw_W3BB;!O+AWur$S^|ln0uOEI;grtMhe9e z89DQK?Z5{;#e3vgS2U*%2gu`P56Jn7RuUI7YtY19OD;G&A2n`0$ z4ngsJ(}Vy|ml~^$lK^hG`0In^nwzJMz=P~cwb(x2$xe~nxVO&(#uoYk m_HU1;`ve0!*tFWxKL0;}-J(0000I*bFF3VhJCvaK!o>#Hrd%8lNvRYG z7ZOJ@JfuMtHz9<$hzCHZNFX5uFGfN_Lc#)s9;|KUxRq*O<547n(7e2)>>$D8P{M z;~2D21O~k)41WsX9tkJQ1Xt5w*D(nbsy$|MTtv+1C zjo|gt-_b;^Z3Mo(u636%AUs_lMYMY1?}5ZO{hsos2n8P|0E;GxMvYbQ&IBOIBY&5$ ziQId0;dTvDlQG%8)O$4w(-;61(yHLGO*Ff3KJDy|6x8*o_8YMDaeco|FHULvV!+S{3!Za#VvilL=MXYm(Qz!_NR`o>s$c39s{1C&o7DxszggA zx_=^p2r3Rb+R0**;&f&!5X08RNa+y~?tH1$8Q(>SF@A)i*mD9-Rq5h4n+3i1sC! zQ4#6$!N7Z#h(T!8f80Z(1G$mo-~MU)I)C;BU~bP$OoxxeQ1@AK=*GWz@d9;qb!cvG zMtgfZCQh7){QP{(pFdyN6#TlpcWImG63=vBk|Vjc+VcYY0vJ+UCOO4vQ33v7Mr&&; zE?>Tk>gsCwO5+Cx%qid6wQEsYT53y#!)Xe>s&x+~OWthpe2pzm_5_HI)@F4&Fn`0d zljKxXRN(mWm+nh){pLr&LR=&42|%|p zOlg_k+QIbc({bt2B|Lxr+~@oF_;_SwWMJ~-$(S^05?;T4jmM84B&yD{tSv9esU$IDGgp4jw!xJt8M3N4`%_PY-^P03eqS z6IA?N-wh0${lT69ZzcMCeILjWB;mEs}K_tgYNEbJbLs<4v+KZ%?tW}HN>_3 z-~w=I+JG)UGfpNtyLa!F(cURqT3WDq^JW}9dK5c%?v&Y}lU$(7Du3s(;BG{40eZ}> z$OX)Ni&JOLoQblsGD)5hok&bf#LAT`Wt3-D7z_;!4cN44lN=ro95{e=>((L4xa4Mm z|5}9+3+_hP5I_Wxe$nK*;fSlZMSd1jmoHzAd-v{1Lm0Vd%$R{wr%qw()~%*!T=aU3$#MjT>c7U_?z#4Hhg|AV&jwgFl!!b#z&tXM{ZgSgX?s zz;$~rU0Y>?Y)N_mlODEkZEdajrox+Okk_>rFJ6r6*RM;rFMlpBmcr@r^5sjcU%wtb zJw4d6WsB*0HegQx*5w#cbvXfx7F@U2gToi6vP+jPm91q3 zw&b2Yd;H#t!hc-7dQ}?B{;vmzL@u5f1t1q6kn8<$3cwOItF$asdcgU2ZI5bN6QDbD z`pZ7e?9U6PwR`vOmBVDPsLrV}17l%fA+~MXCi4LzH#Zjx7cTTUmxU8;Dy-u{t~Sf+ z_7fqNs9B{|hPI%|ip?x@9AMC5pT2qXCK?+Xk(87qg@56^-wBF}icnBcfU{@M%3+m3 zaDpMbBL|<-88aeswF&zIus%<>VwKi|N}>Gc9V-54u`bBD{@l59yJ`D>lO^m{`HGJWg;9K`tTg772Ylfc1E8PJbxy-6O!5z;e}J+7uM0*{dA{g5M1i z1dac?W>~vKhPNQXof&kyWri&>f@q~kPpfL(wztUWVYx-dXgu%xf8QcQkiZvJT6Zv% z%}JaYBaP5DNvW2bq@MO`^Lgt{QWl~y;Duq66yZ`}u?fj3+Ma5g6SzNcPL}01ITkIr zY=5mSU5B`S#c@82+vLbHd~1RvRQ)4R-=vkO!?97)3mP8wjgs=h^Z*56-7ZUltk1JV z{acY3%y6(()`*C1mGyXlGWa&kVAjY8%_{Av+bm6J&l0)lrF^ z*eW6zv&8 zFI>9s=3.0.0 <4.0.0" dependencies: + built_collection: ^5.1.1 cached_network_image: ^3.2.2 cached_network_image_platform_interface: ^4.0.0 cupertino_icons: ^1.0.5 @@ -17,7 +18,7 @@ dependencies: ferry: ^0.16.0+1 ferry_flutter: ^0.9.0-dev.2 ferry_hive_store: ^0.5.2 - file_picker: ^6.0.0 + file_picker: ^8.0.0+1 flex_color_scheme: ^7.3.1 flutter: sdk: flutter @@ -40,8 +41,8 @@ dependencies: infinite_scroll_pagination: ^4.0.0 intl: ^0.18.0 json_annotation: ^4.8.1 - network_info_plus: ^4.0.0 - package_info_plus: ^5.0.1 + network_info_plus: ^5.0.2 + package_info_plus: ^6.0.0 path: ^1.8.3 path_provider: ^2.0.11 permission_handler: ^11.0.0 @@ -110,4 +111,4 @@ flutter_launcher_icons: image_path: "assets/icons/launcher/sorayomi_icon.png" macos: generate: true - image_path: "assets/icons/launcher/ios_sorayomi_icon.png" + image_path: "assets/icons/launcher/sorayomi_icon.png" diff --git a/scripts/tachidesk-sorayomi-arm64.wxs b/scripts/tachidesk-sorayomi-arm64.wxs new file mode 100644 index 00000000..abdd69ff --- /dev/null +++ b/scripts/tachidesk-sorayomi-arm64.wxs @@ -0,0 +1,75 @@ + + + + + + + + VersionNT64 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scripts/tachidesk-sorayomi-x64.wxs b/scripts/tachidesk-sorayomi-x64.wxs index 6953635c..abdd69ff 100644 --- a/scripts/tachidesk-sorayomi-x64.wxs +++ b/scripts/tachidesk-sorayomi-x64.wxs @@ -1,6 +1,6 @@  - + @@ -30,8 +30,8 @@ - - + + @@ -72,4 +72,4 @@ - \ No newline at end of file + diff --git a/scripts/tachidesk-sorayomi.desktop b/scripts/tachidesk-sorayomi.desktop index e3e22d7e..fe882e0e 100644 --- a/scripts/tachidesk-sorayomi.desktop +++ b/scripts/tachidesk-sorayomi.desktop @@ -1,5 +1,5 @@ [Desktop Entry] -Name=Tachidesk Sorayomi +Name=Sorayomi Comment=Tachidesk UI flutter Exec=tachidesk-sorayomi Icon=tachidesk-sorayomi diff --git a/web/index.html b/web/index.html index a4a7840b..4a186488 100644 --- a/web/index.html +++ b/web/index.html @@ -27,7 +27,7 @@ - Tachidesk Sorayomi + Sorayomi - + - - - + + +